You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Radha Manickam <ra...@gmail.com> on 2011/06/27 06:32:46 UTC

ActiveMQ compilation in CC compiler in Solaris

Hi, 

I am getting the following error while compiling ActiveMQ-CPP in CC compiler
in Solaris 10.

/*libtool: compile:  CC -DHAVE_CONFIG_H -I. -I../.. -m64 -mt -w -O5
-library=stlport4 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/u01/kla-tencor/udb/KTFL/Libraries/64bit/include/apr-1
-I/u01/kla-tencor/udb/KTFL/Libraries/64bit/include/apr-1 -I/usr/sfw/include
-m64 -library=no%Cstd,no%Crun -c
decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp  -KPIC -DPIC -o
decaf/internal/net/ssl/openssl/.libs/libactivemq_cpp_la-OpenSSLSocket.o
"decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 364: Warning
(Anachronism): Formal argument callback of type extern "C"
int(*)(int,x509_store_ctx_st*) in call to SSL_set_verify(ssl_st*, int,
extern "C" int(*)(int,x509_store_ctx_st*)) is being passed
int(*)(int,x509_store_ctx_st*).
"decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 405: Warning
(Anachronism): Formal argument callback of type extern "C"
int(*)(int,x509_store_ctx_st*) in call to SSL_set_verify(ssl_st*, int,
extern "C" int(*)(int,x509_store_ctx_st*)) is being passed
int(*)(int,x509_store_ctx_st*).
"decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 679: Error: Formal
argument in of type unsigned char** in call to
ASN1_item_d2i(ASN1_VALUE_st**, unsigned char**, long, const ASN1_ITEM_st*)
is being passed const unsigned char**.
"decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 680: Error: Formal
argument 2 of type unsigned char** is being passed const unsigned char**.
"decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 680: Error: Cannot
use int to initialize stack_st*.
3 Error(s) and 2 Warning(s) detected.
*** Error code 1
make: Fatal error: Command failed for target
`decaf/internal/net/ssl/openssl/libactivemq_cpp_la-OpenSSLSocket.lo'
Current working directory
/u01/kla-tencor/udb/KTFL/Compilation/activemq-cpp-library-3.4.0/src/main
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='src/main src/examples '; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory
/u01/kla-tencor/udb/KTFL/Compilation/activemq-cpp-library-3.4.0
*** Error code 1
make: Fatal error: Command failed for target `all'*/

Machine Configuration is as follows:

*#uname -a
SunOS fermi 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Blade-T6320*

Compiler Configuration is as follows:

*CC: Sun C++ 5.10 SunOS_sparc 2009/06/03*

I have attached the config.log file with this post.

Please anyone help me on this issue.

Thanks & Regards,
Radha.

http://activemq.2283324.n4.nabble.com/file/n3626956/config.log config.log 

--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-compilation-in-CC-compiler-in-Solaris-tp3626956p3626956.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ compilation in CC compiler in Solaris

Posted by Timothy Bish <ta...@gmail.com>.
On Sun, 2011-06-26 at 21:32 -0700, Radha Manickam wrote:
> Hi, 
> 
> I am getting the following error while compiling ActiveMQ-CPP in CC compiler
> in Solaris 10.
> 

You could try building without SSL support enabled and see what you get.
Not sure what version of SSL libs are installed but we tested with 0.9.8
and above.

If you run ./configure --help you will get a list of the available
configuration options I think --disable-ssl is the one you want.

Regards

> /*libtool: compile:  CC -DHAVE_CONFIG_H -I. -I../.. -m64 -mt -w -O5
> -library=stlport4 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
> -I/u01/kla-tencor/udb/KTFL/Libraries/64bit/include/apr-1
> -I/u01/kla-tencor/udb/KTFL/Libraries/64bit/include/apr-1 -I/usr/sfw/include
> -m64 -library=no%Cstd,no%Crun -c
> decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp  -KPIC -DPIC -o
> decaf/internal/net/ssl/openssl/.libs/libactivemq_cpp_la-OpenSSLSocket.o
> "decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 364: Warning
> (Anachronism): Formal argument callback of type extern "C"
> int(*)(int,x509_store_ctx_st*) in call to SSL_set_verify(ssl_st*, int,
> extern "C" int(*)(int,x509_store_ctx_st*)) is being passed
> int(*)(int,x509_store_ctx_st*).
> "decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 405: Warning
> (Anachronism): Formal argument callback of type extern "C"
> int(*)(int,x509_store_ctx_st*) in call to SSL_set_verify(ssl_st*, int,
> extern "C" int(*)(int,x509_store_ctx_st*)) is being passed
> int(*)(int,x509_store_ctx_st*).
> "decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 679: Error: Formal
> argument in of type unsigned char** in call to
> ASN1_item_d2i(ASN1_VALUE_st**, unsigned char**, long, const ASN1_ITEM_st*)
> is being passed const unsigned char**.
> "decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 680: Error: Formal
> argument 2 of type unsigned char** is being passed const unsigned char**.
> "decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp", line 680: Error: Cannot
> use int to initialize stack_st*.
> 3 Error(s) and 2 Warning(s) detected.
> *** Error code 1
> make: Fatal error: Command failed for target
> `decaf/internal/net/ssl/openssl/libactivemq_cpp_la-OpenSSLSocket.lo'
> Current working directory
> /u01/kla-tencor/udb/KTFL/Compilation/activemq-cpp-library-3.4.0/src/main
> *** Error code 1
> The following command caused the error:
> fail= failcom='exit 1'; \
> for f in x $MAKEFLAGS; do \
>   case $f in \
>     *=* | --[!k]*);; \
>     *k*) failcom='fail=yes';; \
>   esac; \
> done; \
> dot_seen=no; \
> target=`echo all-recursive | sed s/-recursive//`; \
> list='src/main src/examples '; for subdir in $list; do \
>   echo "Making $target in $subdir"; \
>   if test "$subdir" = "."; then \
>     dot_seen=yes; \
>     local_target="$target-am"; \
>   else \
>     local_target="$target"; \
>   fi; \
>   (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
>   || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
>   make  "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory
> /u01/kla-tencor/udb/KTFL/Compilation/activemq-cpp-library-3.4.0
> *** Error code 1
> make: Fatal error: Command failed for target `all'*/
> 
> Machine Configuration is as follows:
> 
> *#uname -a
> SunOS fermi 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Blade-T6320*
> 
> Compiler Configuration is as follows:
> 
> *CC: Sun C++ 5.10 SunOS_sparc 2009/06/03*
> 
> I have attached the config.log file with this post.
> 
> Please anyone help me on this issue.
> 
> Thanks & Regards,
> Radha.
> 
> http://activemq.2283324.n4.nabble.com/file/n3626956/config.log config.log 
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-compilation-in-CC-compiler-in-Solaris-tp3626956p3626956.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

-- 
Tim Bish
------------
FuseSource
Email: tim.bish@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/