pkgsrc-Users archive

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

Re: ../../gthread/.libs/ could not read symbols: Bad value

On 12/ 2/10 01:57 AM, Noah McNallie wrote:
pkgsrc on solaris..

alright the first error was resolved by using gnu ld, perl was compiled
by using gcc4 from a different vendor instead of gcc3, now this:

if glib2 will compile i think most anything will after that, i could be

gmake[3]: Entering directory
/usr/pkg/bin/pdksh ../../libtool --tag=CC --mode=link gcc -O
-I/usr/include -I/usr/pkg/include -Wall -L/usr/lib -Wl,-R/usr/lib
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o 1bit-mutex 1bit-mutex.o
../../glib/ ../../gthread/
../../gthread/ -lintl -lnsl -lsocket
libtool: link: gcc -O -I/usr/pkgsrc/devel/glib2/work/.buildlink/include
-Wall -Wl,-R/usr/pkg/lib -o .libs/1bit-mutex 1bit-mutex.o
../../glib/.libs/ ../../gthread/.libs/
-lpthread -lthread
/usr/pkgsrc/devel/glib2/work/.buildlink/lib/ -lc -lnsl
-lsocket -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath
/opt/compat/bin/ld: ../../gthread/.libs/
pthread_mutex_unlock: invalid version 3 (max 0)
../../gthread/.libs/ could not read symbols: Bad value
collect2: ld returned 1 exit status
gmake[3]: *** [1bit-mutex] Error 1
gmake[3]: Leaving directory
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.26.1'
gmake: *** [all] Error 2
*** Error code 2


This is a known error in solaris 10 and 11 that results in glib2 failing
to compile from netbsd pkgsrc on current solaris.

The bug can be found here
and here

and i'm currently trying to find a way to work around this.



work around is as said in above bug report if compiling for solaris libc, remove -lpthread and -thread from configure/ for glib2 and it compiles just fine.



Home | Main Index | Thread Index | Old Index