pkgsrc-Users archive

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

Re: ../../gthread/.libs/libgthread-2.0.so: 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
wrong.

gmake[3]: Entering directory
`/usr/pkgsrc/devel/glib2/work/glib-2.26.1/gthread/tests'
/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/libglib-2.0.la ../../gthread/libgthread-2.0.la
../../gthread/libgthread-2.0.la -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
-L/usr/pkgsrc/devel/glib2/work/glib-2.26.1/glib/.libs
-L/usr/pkgsrc/devel/glib2/work/.buildlink/lib
../../glib/.libs/libglib-2.0.so ../../gthread/.libs/libgthread-2.0.so
-lpthread -lthread
/usr/pkgsrc/devel/glib2/work/glib-2.26.1/glib/.libs/libglib-2.0.so
/usr/pkgsrc/devel/glib2/work/.buildlink/lib/libpcre.so
/usr/pkgsrc/devel/glib2/work/.buildlink/lib/libintl.so
/usr/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.so -lc -lnsl
-lsocket -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath
-Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib
/opt/compat/bin/ld: ../../gthread/.libs/libgthread-2.0.so:
pthread_mutex_unlock: invalid version 3 (max 0)
../../gthread/.libs/libgthread-2.0.so: could not read symbols: Bad value
collect2: ld returned 1 exit status
gmake[3]: *** [1bit-mutex] Error 1
gmake[3]: Leaving directory
`/usr/pkgsrc/devel/glib2/work/glib-2.26.1/gthread/tests'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/pkgsrc/devel/glib2/work/glib-2.26.1/gthread'
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
http://sourceware.org/bugzilla/show_bug.cgi?id=6431
and here
http://sourceware.org/bugzilla/show_bug.cgi?id=2524

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

Thanks,

njm

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

Thanks,

njm


Home | Main Index | Thread Index | Old Index