[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AIX 7 fails to link test-localename when single-threaded

From: Eric Blake
Subject: AIX 7 fails to link test-localename when single-threaded
Date: Wed, 23 Mar 2011 17:11:13 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9


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
                              RLD: Address  Section  Rld-type
Referencing Symbol
 .pthread_mutex_lock       [724]   ER PR
                                   00000310 .text    R_BR     [576]
 .pthread_mutex_unlock     [730]   ER PR
                                   000003e8 .text    R_BR     [576]

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]