cascadium / OpenMAMA-zmq

OpenMAMA ZeroMQ Bridge
MIT License
17 stars 8 forks source link

undefined symbol: uuid_unparse #13

Closed btorpey closed 7 years ago

btorpey commented 7 years ago

After building from head, attempts to use the library produce the following error:

2017-05-12 14:41:20: mama_loadmamaPayload(): Could not open middleware bridge library [mamazmqimpl] [/build/share/OpenMAMA-zmq/master/lib/libmamazmqimpl.so: undefined symbol: uuid_unparse]

This doesn't happen with 1.0 branch.

When comparing the two builds, the 1.0 build reports the following:

$ readelf -d ./OpenMAMA-zmq-1.0/libmamazmqimpl.so | grep NEEDED

Dynamic section at offset 0xe688 contains 25 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libmama.so]
 0x0000000000000001 (NEEDED)             Shared library: [libuuid.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libzmq.so.3]
 0x0000000000000001 (NEEDED)             Shared library: [libevent-1.4.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

The master build reports the following:

$ readelf -d ./OpenMAMA-zmq/build/src/libmamazmqimpl.so | grep NEEDED

Dynamic section at offset 0x1d6a8 contains 25 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libmama.so]
 0x0000000000000001 (NEEDED)             Shared library: [libzmq.so.5.1.1]
 0x0000000000000001 (NEEDED)             Shared library: [libevent-1.4.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

Notice that libuuid.so.1 is listed as NEEDED for 1.0 branch, but not for master.

I'm not sure how the project can even build without libuuid, but it definitely won't run, at least in my environment.

Thanks for any help!

fquinner commented 7 years ago

Erm, you build master with scons or cmake?

btorpey commented 7 years ago

cmake

fquinner commented 7 years ago

Thanks @btorpey just pushed in a change which looks to fix it on my end - try again now.

btorpey commented 7 years ago

Thanks! Looks to do the trick, will keep you posted.

P.S. Very nice piece of work here and I'm looking forward to playing with it.

btorpey commented 7 years ago

Works like a charm -- thanks again!

fquinner commented 7 years ago

Great news glad to see it getting some independent Tyre kicking :)