installing openmama on ubuntu 12
John Gray <john.gray@...>
I have installed openmama on Ubuntu 12 (32bit) but having trouble building it - getting the following error:
Googling seems to indicate a problem with Boost or pthreads. Any advice?
Thanks John
/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -L/usr/local/lib -L./../../cpp -L./../../c -L./../../../../../common/c_cpp/src/c -o mamalistencpp mamalistencpp.o -lmamacpp -lmama -lpthread -ldl -lnsl libtool: link: g++ -g -O2 -o .libs/mamalistencpp mamalistencpp.o -L/usr/local/lib -L./../../cpp -L./../../c -L./../../../../../common/c_cpp/src/c /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/cpp/.libs/libmamacpp.so -L./../c /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so -L./../../../../common/c_cpp/src/c -lrt -luuid -lpthread -ldl -lnsl -Wl,-rpath -Wl,/home/openmama/openmama/OpenMAMA-2.1/lib /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_init' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_mutexattr_settype' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_key_create' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_destroy' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_getspecific' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_timedwait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_create' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_mutexattr_init' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_key_delete' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_post' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_trywait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_getvalue' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_setspecific' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_wait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_join' |
|
Jacobraj Benet <JBenet@...>
Hi John,
It looks like your missing the pthread library, Can you make sure that you have the pthread library installed in your machine.
Thanks,
Jacob
-- Jacob
From: John Gray <john.gray@...>
Date: Monday, August 27, 2012 2:23 PM To: "openmama-users@..." <openmama-users@...> Subject: [Openmama-users] installing openmama on ubuntu 12 I have installed openmama on Ubuntu 12 (32bit) but having trouble building it - getting the following error:
Googling seems to indicate a problem with Boost or pthreads. Any advice?
Thanks John
/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -L/usr/local/lib -L./../../cpp -L./../../c -L./../../../../../common/c_cpp/src/c -o mamalistencpp mamalistencpp.o -lmamacpp -lmama -lpthread -ldl -lnsl libtool: link: g++ -g -O2 -o .libs/mamalistencpp mamalistencpp.o -L/usr/local/lib -L./../../cpp -L./../../c -L./../../../../../common/c_cpp/src/c /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/cpp/.libs/libmamacpp.so -L./../c /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so -L./../../../../common/c_cpp/src/c -lrt -luuid -lpthread -ldl -lnsl -Wl,-rpath -Wl,/home/openmama/openmama/OpenMAMA-2.1/lib /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_init' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_mutexattr_settype' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_key_create' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_destroy' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_getspecific' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_timedwait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_create' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_mutexattr_init' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_key_delete' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_post' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_trywait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_getvalue' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_setspecific' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_wait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_join' Please consider the environment before printing this email. Visit our website at http://www.nyse.com |
|
Roan Horning
I haven't run into this specific issue, but usually when I get
toggle quoted message
Show quoted text
messages about undefined references it means I haven't installed the development version of the library in question. It looks like there is a libboost-thread-dev package in Ubuntu. That might solve your problems. --Roan On Mon, Aug 27, 2012 at 3:23 PM, John Gray <john.gray@...> wrote:
I have installed openmama on Ubuntu 12 (32bit) but having trouble building |
|
John Gray <john.gray@...>
Hi Jacob -still getting stuck
Did an install for pthread – then noticed that configuration was warning that there was no ncurses – so installed this also.
Now configuration giving warning:
Checking /opt/openmama/include/wombat/machine.h usability…no Checking /opt/openmama/include/wombat/machine.h presence…no Checking for /opt/openmama/include/wombat/machine.h …no Configure: WARNING: Not using WombatCommon API
The only thing in /opt/ folder is the Oracle VBOX guest additions.
Still getting the undefined references below for the pthread funcs.
NOTE: this is version 2.1 - not the latest download.
Thanks j
From: Jacobraj
Benet [mailto:JBenet@...]
Sent: 27 August 2012 20:42 To: John Gray; openmama-users@... Subject: Re: [Openmama-users] installing openmama on ubuntu 12
Hi John,
It looks like your missing the pthread library, Can you make sure that you have the pthread library installed in your machine.
Thanks, Jacob -- Jacob
From: John Gray <john.gray@...>
I have installed openmama on Ubuntu 12 (32bit) but having trouble building it - getting the following error:
Googling seems to indicate a problem with Boost or pthreads. Any advice?
Thanks John
/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -L/usr/local/lib -L./../../cpp -L./../../c -L./../../../../../common/c_cpp/src/c -o mamalistencpp mamalistencpp.o -lmamacpp -lmama -lpthread -ldl -lnsl libtool: link: g++ -g -O2 -o .libs/mamalistencpp mamalistencpp.o -L/usr/local/lib -L./../../cpp -L./../../c -L./../../../../../common/c_cpp/src/c /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/cpp/.libs/libmamacpp.so -L./../c /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so -L./../../../../common/c_cpp/src/c -lrt -luuid -lpthread -ldl -lnsl -Wl,-rpath -Wl,/home/openmama/openmama/OpenMAMA-2.1/lib /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_init' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_mutexattr_settype' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_key_create' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_destroy' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_getspecific' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_timedwait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_create' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_mutexattr_init' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_key_delete' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_post' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_trywait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_getvalue' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_setspecific' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `sem_wait' /home/openmama/openmama/OpenMAMA-2.1/mama/c_cpp/src/c/.libs/libmama.so: undefined reference to `pthread_join' Please consider the environment before printing this email. Visit our website at
http://www.nyse.com |
|
John Gray <john.gray@...>
Hi Roan,
toggle quoted message
Show quoted text
I've loaded with synaptic package manager pretty much everything that might effect this in terms of pthread and boost. But still getting same error. Also still getting the warning about WombatCommon in the configuration stage - also getting an error in make: libmama.so: Could not read symbols: File in wrong format. Has anyone else tried a Ubuntu 12 install? Note: this is version 2.1 of the src and exe downloads. j -----Original Message-----
From: Roan Horning [mailto:roan.horning@...] Sent: 27 August 2012 20:56 To: John Gray Cc: openmama-users@... Subject: Re: [Openmama-users] installing openmama on ubuntu 12 I haven't run into this specific issue, but usually when I get messages about undefined references it means I haven't installed the development version of the library in question. It looks like there is a libboost-thread-dev package in Ubuntu. That might solve your problems. --Roan On Mon, Aug 27, 2012 at 3:23 PM, John Gray <john.gray@...> wrote: I have installed openmama on Ubuntu 12 (32bit) but having trouble |
|
Roan Horning
Hi John,
toggle quoted message
Show quoted text
I have successfully compiled and installed it on Ubuntu 12,04. It is the 64 bit version though--so don't know if that is making a difference. Roan On Mon, Aug 27, 2012 at 5:09 PM, John Gray <john.gray@...> wrote:
Hi Roan, |
|