/lib/pthread.so.2 is sought during some port compilation

Garrett Cooper youshi10 at u.washington.edu
Wed Nov 28 18:56:54 PST 2007


Yuri wrote:
> Sorry about that.
> Please find the logs below.
>
> My system is upgraded from 6.3. And /lib/libpthread.so.2 is not a symlink.
> But when I make it a symlink (ln -s /lib/libthr.so.3 /lib/libpthread.so.2)
> I get another error, see log below.
>
> Some requisite libs are compiled with /lib/libpthread.so.2 (?) and now
> firefox is being compiled with a new libc.so.7.
>
> So do I have to rebuild all ports to be able to run on 7.0?
>
> UPDATES file doesn't say anything about this beyond the line that it was replaced.
>
> Yuri
>
> Quoting Kris Kennaway <kris at FreeBSD.org>:
>
>   
>> libpthread is a symlink to libthr on a correctly functioning FreeBSD 7.0 
>> installation.
>>
>> In general, when you encounter a problem you need to cut and paste the 
>> exact errors, instead of typing from memory and getting it wrong (there 
>> is no "/lib/pthread.so.2", etc).  Showing us the errors mean that we are 
>> more likely to understand your problem and help you to fix it.
>>
>> Kris
>>
>>     
>
>
> -- build log with /lib/libpthread.so.2 as a file from 6.3 --
>
> /usr/ports/www/firefox/work/mozilla/config/nsinstall -R -m 755 xpt_dump xpt_link
> ../../../../dist/sdk/bin
> gmake[6]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpt/tools'
> gmake[5]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpt/tools'
> gmake[4]: Leaving directory `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpt'
> gmake[4]: Entering directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpidl'
> gmake[5]: Entering directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpidl'
> cc -o xpidl -I/usr/local/include/nss -I/usr/local/include/nss/nss 
> -I/usr/local/include  -I/usr/local/include -Wall -W -Wno-unused -Wpointer-arith
> -Wcast-align -Wno-long-long -I/usr/local/include -O5 -fno-strict-aliasing -pipe
> -finline-limit=5000 -funit-at-a-time --param max-inline-insns-single=5000
> --param max-inline-insns-auto=1200 --param large-function-insns=30000 --param
> large-function-growth=2000 --param inline-unit-growth=10000 -funroll-loops
> -fpeel-loops -funswitch-loops -march=i386 -O2 -fno-strict-aliasing -O2 -pipe 
> -DNDEBUG -DTRIMMED -O2 -I/usr/local/include/libIDL-2.0
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   xpidl.o
> xpidl_idl.o xpidl_util.o xpidl_header.o xpidl_typelib.o xpidl_doc.o xpidl_java.o
>   -L/usr/local/lib/nss -Wl,-rpath,/usr/local/lib/firefox   -L../../../dist/bin
> -L../../../dist/lib ../../../dist/lib/libxpt.a -L/usr/local/lib   -lIDL-2
> -lglib-2.0 -liconv   -lm -pthread -pthread -L/usr/local/lib -liconv
> /usr/bin/ld: warning: libm.so.4, needed by /usr/local/lib/libicui18n.so.36, may
> conflict with libm.so.5
> /lib/libpthread.so.2: undefined reference to `__malloc_lock'
> gmake[5]: *** [xpidl] Error 1
> gmake[5]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpidl'
> gmake[4]: *** [export] Error 2
> gmake[4]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpidl'
> gmake[3]: *** [export] Error 2
> gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/xpcom/typelib'
> gmake[2]: *** [export] Error 2
> gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/xpcom'
> gmake[1]: *** [tier_2] Error 2
> gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla'
> gmake: *** [default] Error 2
> *** Error code 2
>
> -- error log with /lib/libpthread.so.2 as a symlink to /linnb/libthr.so.3 --
>
> gmake[4]: Entering directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpidl'
> gmake[5]: Entering directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpidl'
> cc -o xpidl -I/usr/local/include/nss -I/usr/local/include/nss/nss 
> -I/usr/local/include  -I/usr/local/include -Wall -W -Wno-unused -Wpointer-arith
> -Wcast-align -Wno-long-long -I/usr/local/include -O5 -fno-strict-aliasing -pipe
> -finline-limit=5000 -funit-at-a-time --param max-inline-insns-single=5000
> --param max-inline-insns-auto=1200 --param large-function-insns=30000 --param
> large-function-growth=2000 --param inline-unit-growth=10000 -funroll-loops
> -fpeel-loops -funswitch-loops -march=i386 -O2 -fno-strict-aliasing -O2 -pipe 
> -DNDEBUG -DTRIMMED -O2 -I/usr/local/include/libIDL-2.0
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   xpidl.o
> xpidl_idl.o xpidl_util.o xpidl_header.o xpidl_typelib.o xpidl_doc.o xpidl_java.o
>   -L/usr/local/lib/nss -Wl,-rpath,/usr/local/lib/firefox   -L../../../dist/bin
> -L../../../dist/lib ../../../dist/lib/libxpt.a -L/usr/local/lib   -lIDL-2
> -lglib-2.0 -liconv   -lm -pthread -pthread -L/usr/local/lib -liconv
> /usr/bin/ld: warning: libm.so.4, needed by /usr/local/lib/libicui18n.so.36, may
> conflict with libm.so.5
> /usr/local/lib/libicuuc.so.36: undefined reference to `close at LIBTHREAD_1_0'
> /usr/local/lib/libicuuc.so.36: undefined reference to `open at LIBTHREAD_1_0'
> /usr/local/lib/libicuuc.so.36: undefined reference to
> `pthread_mutex_init at LIBTHREAD_1_0'
> /usr/local/lib/libicuuc.so.36: undefined reference to
> `pthread_mutex_unlock at LIBTHREAD_1_0'
> /usr/local/lib/libicuuc.so.36: undefined reference to
> `pthread_mutex_destroy at LIBTHREAD_1_0'
> /usr/local/lib/libicuuc.so.36: undefined reference to
> `pthread_mutex_lock at LIBTHREAD_1_0'
> gmake[5]: *** [xpidl] Error 1
> gmake[5]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpidl'
> gmake[4]: *** [export] Error 2
> gmake[4]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/xpcom/typelib/xpidl'
> gmake[3]: *** [export] Error 2
> gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/xpcom/typelib'
> gmake[2]: *** [export] Error 2
> gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/xpcom'
> gmake[1]: *** [tier_2] Error 2
> gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla'
> gmake: *** [default] Error 2
> *** Error code 2
This is most likely your problem:

/usr/bin/ld: warning: libm.so.4, needed by /usr/local/lib/libicui18n.so.36, may
conflict with libm.so.5

Try "make delete-old-libs" from /usr/src.

-Garrett


More information about the freebsd-hackers mailing list