Attention libtool maintainer: Re: `make install' of glib fails

Gerrit P. Haase gerrit@familiehaase.de
Thu May 26 07:24:00 GMT 2005


Franz Haeuslschmid wrote:

> After having managed to actually make the latest version of glib,
> `make install' fails and spits out an error message that I don't
> understand (excuse the mass of lines):
> 
> haeuslsc@pan /cygdrive/d/Src/glib-2.6.4/gobject
> $ make install
> 
> make  install-am
> make[1]: Entering directory `/cygdrive/d/Src/glib-2.6.4/gobject'
> make[2]: Entering directory `/cygdrive/d/Src/glib-2.6.4/gobject'
> test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
>  /bin/bash ../libtool --mode=install /usr/bin/install -c  'libgobject-2.0.la' '/usr/local/lib/libgobject-2.0.la'
> libtool: install: warning: relinking `libgobject-2.0.la'
> (cd /cygdrive/d/Src/glib-2.6.4/gobject; /bin/bash ../libtool  --tag=CC --mode=relink gcc -g -O2 -Wall -o libgobject-2.0.la -rpath /usr/local/lib -version-info 600:4:600 -export-dynamic -no-undefined -export-symbols-regex "^[^_].*" gboxed.lo gclosure.lo genums.lo gobject.lo gparam.lo gparamspecs.lo gsignal.lo gsourceclosure.lo gtype.lo gtypemodule.lo gtypeplugin.lo gvalue.lo gvaluearray.lo gvaluetransform.lo gvaluetypes.lo ../glib/libglib-2.0.la -lintl )
> generating symbol list for `libgobject-2.0.la'
> /usr/bin/nm -B  .libs/gboxed.o .libs/gclosure.o .libs/genums.o .libs/gobject.o .libs/gparam.o .libs/gparamspecs.o .libs/gsignal.o .libs/gsourceclosure.o .libs/gtype.o .libs/gtypemodule.o .libs/gtypeplugin.o .libs/gvalue.o .libs/gvaluearray.o .libs/gvaluetransform.o .libs/gvaluetypes.o  | sed -n -e 's/^.*[ 	]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ 	][ 	]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | /usr/bin/sed -e '/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/' | /usr/bin/sed -e '/^[AITW] /s/.* //' | sort | uniq > .libs/libgobject-2.0.exp
> grep -E -e "^[^_].*" ".libs/libgobject-2.0.exp" > ".libs/libgobject-2.0.expT"
> mv -f ".libs/libgobject-2.0.expT" ".libs/libgobject-2.0.exp"
> if test "x`/usr/bin/sed 1q .libs/libgobject-2.0.exp`" = xEXPORTS; then cp .libs/libgobject-2.0.exp .libs/cyggobject-2.0-0.dll.def; else echo EXPORTS > .libs/cyggobject-2.0-0.dll.def; cat .libs/libgobject-2.0.exp >> .libs/cyggobject-2.0-0.dll.def; fi
>  gcc -shared .libs/cyggobject-2.0-0.dll.def  .libs/gboxed.o .libs/gclosure.o .libs/genums.o .libs/gobject.o .libs/gparam.o .libs/gparamspecs.o .libs/gsignal.o .libs/gsourceclosure.o .libs/gtype.o .libs/gtypemodule.o .libs/gtypeplugin.o .libs/gvalue.o .libs/gvaluearray.o .libs/gvaluetransform.o .libs/gvaluetypes.o  -L/usr/lib -L/usr/local/lib -lglib-2.0 -lintl  -o .libs/cyggobject-2.0-0.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libgobject-2.0.dll.a
> Creating library file: .libs/libgobject-2.0.dll.a
> ..libs/gboxed.o(.text+0x1af): In function `g_boxed_type_init':
> /cygdrive/d/Src/glib-2.6.4/gobject/gboxed.c:136: undefined reference to `_g_assert_warning'

[...more undefined references...]

> make: *** [install] Error 2
> 
> 
> Once again: any ideas?


-> -L/usr/lib -L/usr/local/lib -lglib-2.0

You're linking against the old glib2 library, another libtool bug.
I thought that this was fixed in the latest release?  Again, which 
version of libtool are you using now?  Is it the one from the Cygwin
mirrors or do you have compiled your own version?  Charles, wasn't
that included in the 1.5 release branch?

BTW, 1.5.18 is out: http://www.gnu.org/software/libtool/libtool.html


Gerrit
-- 
=^..^=



More information about the Cygwin-xfree mailing list