activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kururuKT <kt2...@gmail.com>
Subject Re: Compiling issue with ActiveMQ-CPP on armv7l
Date Wed, 26 Jun 2013 18:03:40 GMT
Yet another update.

All the errors I got is related to out of memory. I was able to compile
activemq-3.4.4 locally, but not 3.7.0.

So means I'm going to cross-compile, and IT GIVE ME HELL AGAIN

I downloaded + cross-compiled APR library - after pain search - with the
following configure option

./configure --prefix=/usr/arm-linux-gnueabi/apr --host=arm-linux-gnueabi
ac_cv_file__dev_zero=no ac_cv_func_setpgrp_void=no
apr_cv_tcp_nodelay_with_cork=no cross_compiling=yes
apr_cv_process_shared_works=no ac_cv_sizeof_struct_iovec=1

Then I moved on to cross-compile activemq
./configure --prefix=/usr/arm-linux-gnueabi/activemq
--host=arm-linux-gnueabi -with-apr=/usr/arm-linux-gnueabi/apr -disable-ssl
(cross-compiling openssl is another can of worms... deal with that later)

Below is the error I got:
libtool: link: arm-linux-gnueabi-g++ -ansi -pedantic -DLINUX -D_REENTRANT
-D_GNU_SOURCE -I/usr/arm-linux-gnueabi/apr/include/apr-1 -W -Wall -Wextra
-Wconversion -fPIC -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long
-DLINUX -D_REENTRANT -D_GNU_SOURCE
-I/usr/arm-linux-gnueabi/apr/include/apr-1 -Wno-non-virtual-dtor
-Wno-unused-parameter -Wno-uninitialized -I./../main -g -O2 -o .libs/example
example-main.o  ../main/.libs/libactivemq-cpp.so
/usr/arm-linux-gnueabi/apr/lib/libapr-1.so -lrt -lcrypt -ldl -Wl,-rpath
-Wl,/usr/arm-linux-gnueabi/activemq/lib -Wl,-rpath
-Wl,/usr/arm-linux-gnueabi/apr/lib
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_getspecific'
../main/.libs/libactivemq-cpp.so: undefined reference to `pthread_create'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_rwlock_destroy'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_rwlock_tryrdlock'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_mutex_trylock'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_key_delete'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_key_create'
/usr/arm-linux-gnueabi/apr/lib/libapr-1.so: undefined reference to
`pthread_once'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_rwlock_rdlock'
../main/.libs/libactivemq-cpp.so: undefined reference to `pthread_join'
../main/.libs/libactivemq-cpp.so: undefined reference to `pthread_detach'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_rwlock_trywrlock'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_rwlock_init'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_attr_getstacksize'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_rwlock_unlock'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_rwlock_wrlock'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_attr_setstacksize'
/usr/arm-linux-gnueabi/apr/lib/libapr-1.so: undefined reference to
`pthread_sigmask'
../main/.libs/libactivemq-cpp.so: undefined reference to
`pthread_setspecific'
collect2: ld returned 1 exit status
make[2]: *** [example] Error 1
make[2]: Leaving directory
`/home/jacky/apache/Apache_apr/activemq-cpp-library-3.7.0/src/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/jacky/apache/Apache_apr/activemq-cpp-library-3.7.0'
make: *** [all] Error 2

So it looks like the libapr-1 file that I cross-compiled has some issue with
pthread?

Anyone has some advice on cross-compiling activemq?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Compiling-issue-with-ActiveMQ-CPP-on-armv7l-tp4668533p4668608.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message