vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am getting a strange unresolved external error: [Additional object modules and libraries cut for brevity} /usr/vacpp/bin/cc_r -o CO ... -L... -l... -g -lm -lpthread ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_setkind_np I've looked through the compiler and linker options and I can't see why this is not working. The symbol seems to be there in the library: % nm /usr/lib/libpthread.a | grep pthread_mutexattr_setkind_np ..pthread_mutexattr_setkind_np T 6180 pthread_mutexattr_setkind_np D 14672 12 TIA, W |
| |||
| W schrieb: > I am getting a strange unresolved external error: > [Additional object modules and libraries cut for brevity} > > /usr/vacpp/bin/cc_r -o CO ... -L... -l... -g -lm -lpthread > ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_setkind_np When the compiler driver is invoked as "cc_r" the compiler and later the linker appends the libpthread itself. No need to specify it on the command line or in the Makefile. It depends on the AIX level, on older releases cc_r linked thread safe apps against libc_r.a. There are compatibility invocations cc_r4 and cc_r7 for sources conforming pre-AIX 4.3 threads model. -- Uli (Reply to ulrich <dot> link <domain-delimiter> epost <dot> de) |
| ||||
| Uli Link <spamkuebel.csiph@linkitup.homeunix.com> writes: > W schrieb: > > > ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_setkind_np > > There are compatibility invocations cc_r4 and cc_r7 for sources > conforming pre-AIX 4.3 threads model. From: http://publib.boulder.ibm.com/infoce...setkind_np.htm This subroutine is provided only for compatibility with the DCE threads. It should not be used when writing new applications. You must compile and link with 'cc_r4' and you must have DCE-compatibility packages, containing libdcelibc_r.a and libdcepthreads.a installed. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |
| Thread Tools | |
| Display Modes | |
|
|