Archived

This forum has been archived. Please start a new discussion on GitHub.

linking error /usr/lib/libIceUtil.so: undefined reference to `pthread_condattr_setclo

Hi,

I am trying to build a project on RHEL4 using GCC 3.4.6 and Ice 3.3.1. Compilation works no problem, but on linking I get the following.

g++ -Wall ... -L/usr/lib -lIce -lIceUtil ...
/usr/lib/libIceUtil.so: undefined reference to `pthread_condattr_setclock'
collect2: ld returned 1 exit status

Perhaps I need to link some other libs as well or install some dependency? The same slice definitions and code build with no warnings/errors using Ice 3.2.0.

Any help greatly appreciated!

Comments