You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Ds <sd...@163.com> on 2015/05/28 03:48:39 UTC

Getting problem with ActiveMQ CMS building.

Hello,
I'm building CMS on Ubuntu 12.04LTS following the building guide on
http://activemq.apache.org/cms/building.html

I get trouble when I run: make.
Can you help me?

Thanks a lot.

The information on the terminal are:

make[2]: Leaving directory
`/home/southernduck/Desktop/activemq-cpp-library-3.8.4/src/main'
Making all in src/examples
make[2]: Entering directory
`/home/southernduck/Desktop/activemq-cpp-library-3.8.4/src/examples'
g++ -DHAVE_CONFIG_H -I. -I../..    -ansi -pedantic   -DLINUX -D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/local/apr/include/apr-1    -W
-Wall -Wextra -Wconversion -fPIC -fstrict-aliasing -Wstrict-aliasing=2
-Wno-long-long   -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-I/usr/local/apr/include/apr-1    -Wno-non-virtual-dtor
-Wno-unused-parameter -Wno-uninitialized -I./../main -g -O2 -pthread -MT
example-main.o -MD -MP -MF .deps/example-main.Tpo -c -o example-main.o `test
-f 'main.cpp' || echo './'`main.cpp
mv -f .deps/example-main.Tpo .deps/example-main.Po
/bin/bash ../../libtool --tag=CXX   --mode=link g++ -ansi -pedantic  
-DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-I/usr/local/apr/include/apr-1    -W -Wall -Wextra -Wconversion -fPIC
-fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long   -DLINUX -D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/local/apr/include/apr-1   
-Wno-non-virtual-dtor -Wno-unused-parameter -Wno-uninitialized -I./../main
-g -O2 -pthread   -o example example-main.o ../main/libactivemq-cpp.la 
/usr/local/apr/lib/libapr-1.la -luuid -lrt -lcrypt  -lpthread -ldl      
-lpthread 
libtool: link: g++ -ansi -pedantic -DLINUX -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/local/apr/include/apr-1 -W -Wall -Wextra
-Wconversion -fPIC -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long
-DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-I/usr/local/apr/include/apr-1 -Wno-non-virtual-dtor -Wno-unused-parameter
-Wno-uninitialized -I./../main -g -O2 -pthread -o .libs/example
example-main.o  ../main/.libs/libactivemq-cpp.so
/usr/local/apr/lib/libapr-1.so -luuid -lrt -lcrypt -ldl -lpthread -pthread
-Wl,-rpath -Wl,/usr/local/apr/lib
../main/.libs/libactivemq-cpp.so: undefined reference to
`ERR_error_string_n'
../main/.libs/libactivemq-cpp.so: undefined reference to `X509V3_EXT_get'
../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_new'
../main/.libs/libactivemq-cpp.so: undefined reference to `OBJ_obj2nid'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_set_default_passwd_cb'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_new'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_use_certificate_chain_file'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_verify'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_shutdown'
../main/.libs/libactivemq-cpp.so: undefined reference to `X509_get_ext'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_NAME_ENTRY_get_data'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_get_error'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_ctrl'
../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_s_socket'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_set_cipher_list'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_load_verify_locations'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_bio'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_use_PrivateKey_file'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSLv23_method'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_pending'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_ctrl'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_read'
../main/.libs/libactivemq-cpp.so: undefined reference to `ASN1_item_d2i'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_NAME_get_entry'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_load_error_strings'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_library_init'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_connect'
../main/.libs/libactivemq-cpp.so: undefined reference to
`OPENSSL_add_all_algorithms_noconf'
../main/.libs/libactivemq-cpp.so: undefined reference to `EVP_cleanup'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_get_subject_name'
../main/.libs/libactivemq-cpp.so: undefined reference to
`CRYPTO_set_id_callback'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_set_default_passwd_cb_userdata'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_write'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_EXTENSION_get_object'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_free'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_new'
../main/.libs/libactivemq-cpp.so: undefined reference to `sk_num'
../main/.libs/libactivemq-cpp.so: undefined reference to
`CRYPTO_set_locking_callback'
../main/.libs/libactivemq-cpp.so: undefined reference to `RAND_seed'
../main/.libs/libactivemq-cpp.so: undefined reference to `ASN1_STRING_data'
../main/.libs/libactivemq-cpp.so: undefined reference to `OBJ_nid2sn'
../main/.libs/libactivemq-cpp.so: undefined reference to `sk_value'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_NAME_get_index_by_NID'
../main/.libs/libactivemq-cpp.so: undefined reference to `X509_free'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_get_ext_count'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_get_peer_certificate'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_free'
../main/.libs/libactivemq-cpp.so: undefined reference to `CRYPTO_num_locks'
../main/.libs/libactivemq-cpp.so: undefined reference to `ERR_get_error'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_set_default_verify_paths'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_shutdown'
../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_int_ctrl'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_accept'
collect2: ld returned 1 exit status
make[2]: *** [example] Error 1
make[2]: Leaving directory
`/home/southernduck/Desktop/activemq-cpp-library-3.8.4/src/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/southernduck/Desktop/activemq-cpp-library-3.8.4'
make: *** [all] Error 2
southernduck@ubuntu:~/Desktop/activemq-cpp-library-3.8.4$ 




--
View this message in context: http://activemq.2283324.n4.nabble.com/Getting-problem-with-ActiveMQ-CMS-building-tp4696962.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: Getting problem with ActiveMQ CMS building.

Posted by Timothy Bish <ta...@gmail.com>.
On 05/27/2015 09:48 PM, Ds wrote:
> Hello,
> I'm building CMS on Ubuntu 12.04LTS following the building guide on
> http://activemq.apache.org/cms/building.html
>
> I get trouble when I run: make.
> Can you help me?
>
> Thanks a lot.

Seems there is something not right with the OpenSSL configuration, try
using the configure to disable ssl support and see if your build makes
it all the way through. 

> The information on the terminal are:
>
> make[2]: Leaving directory
> `/home/southernduck/Desktop/activemq-cpp-library-3.8.4/src/main'
> Making all in src/examples
> make[2]: Entering directory
> `/home/southernduck/Desktop/activemq-cpp-library-3.8.4/src/examples'
> g++ -DHAVE_CONFIG_H -I. -I../..    -ansi -pedantic   -DLINUX -D_REENTRANT
> -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/local/apr/include/apr-1    -W
> -Wall -Wextra -Wconversion -fPIC -fstrict-aliasing -Wstrict-aliasing=2
> -Wno-long-long   -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
> -I/usr/local/apr/include/apr-1    -Wno-non-virtual-dtor
> -Wno-unused-parameter -Wno-uninitialized -I./../main -g -O2 -pthread -MT
> example-main.o -MD -MP -MF .deps/example-main.Tpo -c -o example-main.o `test
> -f 'main.cpp' || echo './'`main.cpp
> mv -f .deps/example-main.Tpo .deps/example-main.Po
> /bin/bash ../../libtool --tag=CXX   --mode=link g++ -ansi -pedantic  
> -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
> -I/usr/local/apr/include/apr-1    -W -Wall -Wextra -Wconversion -fPIC
> -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long   -DLINUX -D_REENTRANT
> -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/local/apr/include/apr-1   
> -Wno-non-virtual-dtor -Wno-unused-parameter -Wno-uninitialized -I./../main
> -g -O2 -pthread   -o example example-main.o ../main/libactivemq-cpp.la 
> /usr/local/apr/lib/libapr-1.la -luuid -lrt -lcrypt  -lpthread -ldl      
> -lpthread 
> libtool: link: g++ -ansi -pedantic -DLINUX -D_REENTRANT -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE -I/usr/local/apr/include/apr-1 -W -Wall -Wextra
> -Wconversion -fPIC -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long
> -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
> -I/usr/local/apr/include/apr-1 -Wno-non-virtual-dtor -Wno-unused-parameter
> -Wno-uninitialized -I./../main -g -O2 -pthread -o .libs/example
> example-main.o  ../main/.libs/libactivemq-cpp.so
> /usr/local/apr/lib/libapr-1.so -luuid -lrt -lcrypt -ldl -lpthread -pthread
> -Wl,-rpath -Wl,/usr/local/apr/lib
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `ERR_error_string_n'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `X509V3_EXT_get'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_new'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `OBJ_obj2nid'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_CTX_set_default_passwd_cb'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_new'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_CTX_use_certificate_chain_file'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_verify'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_shutdown'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `X509_get_ext'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `X509_NAME_ENTRY_get_data'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_get_error'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_ctrl'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_s_socket'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_CTX_set_cipher_list'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_CTX_load_verify_locations'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_bio'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_CTX_use_PrivateKey_file'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSLv23_method'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_pending'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_ctrl'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_read'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `ASN1_item_d2i'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `X509_NAME_get_entry'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_load_error_strings'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_library_init'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_connect'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `OPENSSL_add_all_algorithms_noconf'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `EVP_cleanup'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `X509_get_subject_name'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `CRYPTO_set_id_callback'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_CTX_set_default_passwd_cb_userdata'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_write'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `X509_EXTENSION_get_object'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_free'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_new'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `sk_num'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `CRYPTO_set_locking_callback'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `RAND_seed'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `ASN1_STRING_data'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `OBJ_nid2sn'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `sk_value'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `X509_NAME_get_index_by_NID'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `X509_free'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `X509_get_ext_count'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_get_peer_certificate'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_free'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `CRYPTO_num_locks'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `ERR_get_error'
> ../main/.libs/libactivemq-cpp.so: undefined reference to
> `SSL_CTX_set_default_verify_paths'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_shutdown'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_int_ctrl'
> ../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_accept'
> collect2: ld returned 1 exit status
> make[2]: *** [example] Error 1
> make[2]: Leaving directory
> `/home/southernduck/Desktop/activemq-cpp-library-3.8.4/src/examples'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/southernduck/Desktop/activemq-cpp-library-3.8.4'
> make: *** [all] Error 2
> southernduck@ubuntu:~/Desktop/activemq-cpp-library-3.8.4$ 
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Getting-problem-with-ActiveMQ-CMS-building-tp4696962.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>


-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.redhat.com 
twitter: @tabish121
blog: http://timbish.blogspot.com/