Problems building glib-2.12.13 on Solaris 10



Hello,


I'm running into what appears to be a linking error while trying to
compile glib-2.12.13 on a Solaris 10 (sparc) system.


The error is as follows :

---

 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../glib -I../../gmodule
-DG_DISABLE_CAST_CHECKS -D_REENTRANT -D_PTHREADS -g -O2 -Wall -MT
testmodule.lo -MD -MP -MF .deps/testmodule.Tpo -c testmodule.c  -fPIC
-DPIC -o .libs/testmodule.o
/bin/bash ../../libtool --mode=link gcc  -g -O2 -Wall   -o
libtestgobject.la   testmarshal.lo testmodule.lo
ar cru .libs/libtestgobject.a .libs/testmarshal.o .libs/testmodule.o
ranlib .libs/libtestgobject.a
creating libtestgobject.la
(cd .libs && rm -f libtestgobject.la && ln -s ../libtestgobject.la
libtestgobject.la)
gmake[4]: Leaving directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/GLIB-2.12/glib-2.12.13/tests/gobject'
gmake[3]: Leaving directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/GLIB-2.12/glib-2.12.13/tests/gobject'
Making all in refcount
gmake[3]: Entering directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/GLIB-2.12/glib-2.12.13/tests/refcount'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../glib
-I../../gmodule -DG_DISABLE_CAST_CHECKS  -D_REENTRANT -D_PTHREADS  -g -O2
-Wall -MT closures.o -MD -MP -MF ".deps/closures.Tpo" \
  -c -o closures.o `test -f 'closures.c' || echo './'`closures.c; \
then mv -f ".deps/closures.Tpo" ".deps/closures.Po"; \
else rm -f ".deps/closures.Tpo"; exit 1; \
fi
/bin/bash ../../libtool --mode=link gcc  -g -O2 -Wall   -o closures
closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la
../../gthread/libgthread-2.0.la -lpthread -lthread -lrt -lrt
mkdir .libs
gcc -g -O2 -Wall -o .libs/closures closures.o
../../glib/.libs/libglib-2.0.so ../../gobject/.libs/libgobject-2.0.so
../../gthread/.libs/libgthread-2.0.so
/afs/cad/u/a/n/andym/ftp/GLIB-2.12/glib-2.12.13/glib/.libs/libglib-2.0.so
/usr/local/lib/libiconv.so -lpthread -lthread -lrt -Wl,--rpath
-Wl,/afs/cad/solaris/glib-2.12/lib -Wl,--rpath -Wl,/usr/local/lib
/usr/local/gnu/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]: *** [closures] Error 1
gmake[3]: Leaving directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/GLIB-2.12/glib-2.12.13/tests/refcount'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/GLIB-2.12/glib-2.12.13/tests'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/GLIB-2.12/glib-2.12.13'
gmake: *** [all] Error 2

---


Build details :

Solaris 10 11/06 - Generic_125100-10
gcc -v :
eading specs from
/afs/cad.njit.edu/solaris/solaris10_gcc-3.4.6/bin/../lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure
--prefix=/afs/cad/solaris/solaris10_gcc-3.4.6
--with-as=/usr/local/gnu/bin/as --with-ld=/usr/local/gnu/bin/ld
--enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

ld -v
GNU ld (GNU Binutils) 2.18

libtool --version
ltmain.sh (GNU libtool) 1.5.24 (1.1220.2.455 2007/06/24 02:13:29)

Copyright (C) 2007  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


Thanks for any information one can provide.


        ---Andy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]