Bruno, On AIX 7.1, I got this link failure:
$ ./gnulib-tool --create-testdir --dir=testdir1 --with-tests localename
checking whether imported symbols can be declared weak... no
/opt/fsw/gcc44/bin/gcc -g -Wl,-bnoquiet -o test-localename
test-localename.o ../gllib/libgnu.a
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error:
Symbol Inpndx TY CL Source-File(Object-File) OR
Import-File{Shared-object}
RLD: Address Section Rld-type
Referencing Symbol
----------------------------------------------------------------------------------------------
.pthread_mutex_lock [724] ER PR
localename.c(../gllib/libgnu.a[localename.o])
00000310 .text R_BR [576]
<.struniq>
.pthread_mutex_unlock [730] ER PR
localename.c(../gllib/libgnu.a[localename.o])
000003e8 .text R_BR [576]
<.struniq>
Looks like the pragma weak detection for a single-threaded library is
not working there, but I'm not sure how to fix glthread/lock.h to work
around it. Any ideas, or other things I should do to help debug this?
--
Eric Blake [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
