Understanding libpthread.so.2 undef reference error....

Kris Kennaway kris at FreeBSD.org
Mon Nov 5 23:50:32 PST 2007


Norberto Meijome wrote:
> On Mon, 05 Nov 2007 23:39:17 +0100
> Kris Kennaway <kris at FreeBSD.org> wrote:
> 
>>> Hi Kris,
>>> thanks for the explanation. I don't think I did that, as this is a 100% clean install of 7,but maybe I bungled it somewhere.
>>>
>>> is there a way to know what is cross linked? should I get rid of compat6x?   
>> Well in that case you managed to somehow install a 6.x binary on there 
>> (not compat6x), which is now being linked to 7.0 binaries (this should 
>> never happen in a correctly functioning system).  Either rerun 
>> portupgrade -fa, or use pkg_which on the binaries and libraries that are 
>> giving problems to try and track down which need to be reinstalled.
> 
> Thanks Kris, that's what I did. 
> for each of the messages that I got showing :
> 
> /usr/bin/ld: warning: libpthread.so.2, needed by /usr/local/lib/libicui18n.so.36, not found (try using -rpath or -rpath-link
> 
> or similar, i did
> 
> pkg_info -W {Library}
> 
> ( in this case /usr/local/lib/libicui18n.so.36 , which pointed to icu), and rebuilt the package.
> 
> It seems I must have used portinstall -pP instead of -p in a couple of places and managed to confuse the heck of my system.
> 
> Everything seems to be building ok so far :)
> 
> thanks so much for the pointer!

Hmm, portinstall -P should have still worked, unless your FTP mirror is 
seriously out of date.  Which one are you using?  Or maybe you have old 
local packages in your PKG_PATH?

Kris



More information about the freebsd-stable mailing list