Re: Problem installing glib on Solaris



Dan Espen <dane mk telcordia com> writes:
> 
> I'm having a little trouble installing glib 2.0.1 on a Solaris 2.6 system.
> 
> I've installed pkg-config 0.12.0, that seemed to go OK.
> 
> For glib, I did:
> 
> ./configure --prefix=/opt/public
> make
> 
> The make ran for a while, but then produced this:
> 
> Making all in gobject
> /u/tools/dane/glib-2.0.1/gobject
> /opt/forte61/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GL
> ib-GObject\"                -I..                            -I../glib       -
> I..  -DGOBJECT_COMPILATION                     -DG_DISABLE_CONST_RETURNS     
>   libglib = ../glib/libglib-2.0.la    -g -D_REENTRANT -c glib-genmarshal.c
> "../config.h", line 425: warning: macro redefined: _FILE_OFFSET_BITS
> /bin/ksh ../libtool --mode=link /opt/forte61/SUNWspro/bin/cc  -g -D_REENTRANT
>   -o glib-genmarshal  glib-genmarshal.o  
> mkdir .libs
> /opt/forte61/SUNWspro/bin/cc -g -D_REENTRANT -o glib-genmarshal glib-genmarsh
> al.o 
> ild: (undefined symbol) g_scanner_destroy -- referenced in the text segment o
> f glib-genmarshal.o
> 
> 
> Any hints?

To follow up on my own post, I tried exporting CC=gcc,
doing a "make clean",
re-running configure, make.
Now I get:

Making all in gobject
/u/tools/dane/glib-2.0.1/gobject
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GLib-GObject\"         -I.. -I../glib                  -I..                     -DGOBJECT_COMPILATION  -DG_DISABLE_CONST_RETURNS               libglib = ../glib/libglib-2.0.la    -g -O2 -Wall -D_REENTRANT -c glib-genmarshal.c
gcc: libglib: No such file or directory
gcc: =: No such file or directory
In file included from glib-genmarshal.c:22:
../config.h:425: warning: `_FILE_OFFSET_BITS' redefined
/usr/include/sys/feature_tests.h:80: warning: this is the location of the previous definition
*** Error code 1
make: Fatal error: Command failed for target `glib-genmarshal.o'


I'm confused, I think the library it wants is in:

../glib/.libs, but I don't see how the "libglib = ../glib/libglib-2.0.la"
part is supposed to work.

-- 
Dan Espen                           E-mail: dane mk telcordia com
444 Hoes Lane  Room RRC 1C-214      Phone: (732) 699-5570
Piscataway, NJ 08854



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