From: Saurabh A. <srb...@gm...> - 2010-04-10 11:42:23
|
Hi All, I am trying to compile the CLUCENE 2.3.2 demo program statically, so that I can take the executable to some other machine using same environment. Using ccmake I set the C and CXX FLAGS as static, moreover the EXE linker flags as static too, but when I try to compile it si giving me lpthread error Linking CXX executable ../../bin/cl_demo /lib/libpthread.so.2: undefined reference to `ksem_destroy' /lib/libpthread.so.2: undefined reference to `_dup' /lib/libpthread.so.2: undefined reference to `_recvmsg' /lib/libpthread.so.2: undefined reference to `__sys_aio_suspend' /lib/libpthread.so.2: undefined reference to `__sys_nanosleep' /lib/libpthread.so.2: undefined reference to `__pselect' /lib/libpthread.so.2: undefined reference to `_sendto' /lib/libpthread.so.2: undefined reference to `_getlogin' /lib/libpthread.so.2: undefined reference to `_getsockopt' /lib/libpthread.so.2: undefined reference to `_socket' /lib/libm.so.4: undefined reference to `ldexp' /lib/libz.so.3: undefined reference to `vsnprintf' /lib/libpthread.so.2: undefined reference to `_getsockname' /lib/libpthread.so.2: undefined reference to `__sys_msync' /lib/libpthread.so.2: undefined reference to `__sys_sigaltstack' /lib/libpthread.so.2: undefined reference to `_sendmsg' /lib/libpthread.so.2: undefined reference to `__sys_fork' /lib/libpthread.so.2: undefined reference to `__wait' Even when I remove the static flag from EXE linker flags it gives the same error Linking CXX executable ../../bin/cl_demo /lib/libpthread.so.2: undefined reference to `ksem_destroy' /lib/libpthread.so.2: undefined reference to `_dup' /lib/libpthread.so.2: undefined reference to `_recvmsg' /lib/libpthread.so.2: undefined reference to `__sys_aio_suspend' /lib/libpthread.so.2: undefined reference to `__sys_nanosleep' /lib/libpthread.so.2: undefined reference to `__pselect' /lib/libpthread.so.2: undefined reference to `_sendto' /lib/libpthread.so.2: undefined reference to `_getlogin' /lib/libpthread.so.2: undefined reference to `_getsockopt' /lib/libpthread.so.2: undefined reference to `_socket' /lib/libm.so.4: undefined reference to `ldexp' /lib/libz.so.3: undefined reference to `vsnprintf' /lib/libpthread.so.2: undefined reference to `_getsockname' /lib/libpthread.so.2: undefined reference to `__sys_msync' /lib/libpthread.so.2: undefined reference to `__sys_sigaltstack' /lib/libpthread.so.2: undefined reference to `_sendmsg' /lib/libpthread.so.2: undefined reference to `__sys_fork' /lib/libpthread.so.2: undefined reference to `__wait' /lib/libpthread.so.2: undefined reference to `__sys_sigpending' Saurabh Agarwal |