undefined reference to uuid_generate - rev1761


18-02-2009 17:15:37

Hi everyone.
I'm on Linux amd64, gcc 4.1.2.
With a from scratch checkout MyGUi compiles and installs fine. But when trying to create an executable linking against it I get
/usr/local/lib/libmygui.so: undefined reference to `uuid_generate'
This function is used in ./MyGUIEngine/src/MyGUI_Guid.cpp.

ldd shows
linux-vdso.so.1 => (0x00007fff115ff000)
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libstdc++.so.6 (0x00007fc408bff000)
libm.so.6 => /lib/libm.so.6 (0x00007fc40897d000)
libc.so.6 => /lib/libc.so.6 (0x00007fc408634000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fc408427000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc409481000)

That function seems to reside in libuuid.so, since using -luuid makes it work.
I think that means that the build script misses to link the mygui library against libuuid.so. For someone knowing autotools this should be fairly easy to fix I guess.