This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/14569] New: libpthread.a isn't linked in properly


http://sourceware.org/bugzilla/show_bug.cgi?id=14569

             Bug #: 14569
           Summary: libpthread.a isn't linked in properly
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: unassigned@sourceware.org
        ReportedBy: hjl.tools@gmail.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


[hjl@gnu-32 tmp]$  gcc tst-raise1-static.o -static -v -mx32 -pthread 
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --disable-build-with-cxx
--disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--with-multilib-list=m32,m64,mx32 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.1 20120629 (Red Hat 4.7.1-1) (GCC) 
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.7.1/:/usr/libexec/gcc/x86_64-redhat-linux/4.7.1/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.7.1/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.7.1/x32/:/usr/lib/gcc/x86_64-redhat-linux/4.7.1/../../../../libx32/:/lib/../libx32/:/usr/lib/../libx32/:/usr/lib/gcc/x86_64-redhat-linux/4.7.1/:/usr/lib/gcc/x86_64-redhat-linux/4.7.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-static' '-v' '-mx32' '-pthread' '-mtune=generic'
'-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/4.7.1/collect2 --build-id --no-add-needed
--hash-style=gnu -m elf32_x86_64 -static
/usr/lib/gcc/x86_64-redhat-linux/4.7.1/../../../../libx32/crt1.o
/usr/lib/gcc/x86_64-redhat-linux/4.7.1/../../../../libx32/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.7.1/x32/crtbeginT.o
-L/usr/lib/gcc/x86_64-redhat-linux/4.7.1/x32
-L/usr/lib/gcc/x86_64-redhat-linux/4.7.1/../../../../libx32 -L/lib/../libx32
-L/usr/lib/../libx32 -L/usr/lib/gcc/x86_64-redhat-linux/4.7.1
-L/usr/lib/gcc/x86_64-redhat-linux/4.7.1/../../.. tst-raise1-static.o
--start-group -lgcc -lgcc_eh -lpthread -lc --end-group
/usr/lib/gcc/x86_64-redhat-linux/4.7.1/x32/crtend.o
/usr/lib/gcc/x86_64-redhat-linux/4.7.1/../../../../libx32/crtn.o
/usr/lib/gcc/x86_64-redhat-linux/4.7.1/../../../../libx32/libpthread.a(libpthread.o):
In function `sem_open':
(.text+0x6988): warning: the use of `mktemp' is dangerous, better use `mkstemp'

-lpthread is placed in --start-group -lgcc -lgcc_eh -lpthread -lc --end-group.
glibc tests should do the same.  It is important to properly test
statically linked libpthread.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]