NetBSD-Bugs archive

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

Re: toolchain/47104: -pg -lpthread warns about xdr symbols and __findenv



The following reply was made to PR toolchain/47104; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, toolchain-manager%netbsd.org@localhost, 
        gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc: 
Subject: Re: toolchain/47104: -pg -lpthread warns about xdr symbols and 
__findenv
Date: Mon, 22 Oct 2012 10:38:22 -0400

 On Oct 22,  8:25am, kretschm%cs.uni-bonn.de@localhost 
(kretschm%cs.uni-bonn.de@localhost) wrote:
 -- Subject: toolchain/47104: -pg -lpthread warns about xdr symbols and __find
 
 Although what you are doing should work, it is better to use:
 
     $ gcc -pthread -g -pg test.c
 
 or the equivalent and less portable:
 
     $ gcc -g -pg test.c -lpthread_p
 
 What's happening is that you are picking a static libc and a dynamic
 libpthread which can cause sphincter issues :-), and does not profile
 libpthread.
 
 christos
 


Home | Main Index | Thread Index | Old Index