From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16781 invoked by alias); 10 Sep 2012 21:47:04 -0000 Received: (qmail 16772 invoked by uid 22791); 10 Sep 2012 21:47:03 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_GC,TW_IB,TW_LG X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Sep 2012 21:46:50 +0000 From: "hjl.tools at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug nptl/14569] New: libpthread.a isn't linked in properly Date: Mon, 10 Sep 2012 21:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00087.txt.bz2 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.