Building glib 2, Cygwin



(this was supposed to be mailed from *this* email address, not my other one. Excuse me if it ends up being duplicated. Need to fix my Netscape configuration).




Compiling 0.17.1 under Cygwin, I eventually get this message during the
install for glib 2.0.6:


============================
*** Warning: This library needs some functionality provided by
../glib/libglib-2.0.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
libtool: link: warning: `/lib/libintl.la' seems to be moved
rm -fr .libs/libgobject-2.0.la .libs/libgobject-2.0.* .libs/libgobject-2.0.*
============================


It has already made it's way through the ./glib files, and seems to have
  run OK there.  But once it gets to the ./work/glib-2.0.6/gobject/*.c
files, I get this error at the beginning, then a long string of
"undefined reference" errors  (such as below):


============================
generating symbol list for `libgobject-2.0.la'
  dlltool --export-all --exclude-symbols
DllMain 12,_cygwin_dll_entry 12,_cygwin_noncygwin_dll_entry 12,DllMainCRTStartup 12,DllEntryPoint 12
--output-def .libs/cyggobject-2.0-0.dll-def  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
  sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" <
.libs/cyggobject-2.0-0.dll-def > .libs/libgobject-2.0.exp
if test "x`head -1 .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; _lt_hint=1; cat
.libs/libgobject-2.0.exp | while read symbol; do set dummy $symbol; case
$# in 2) echo " $2 @ $_lt_hint ; " >> .libs/cyggobject-2.0-0.dll-def;;
*) echo " $2 @ $_lt_hint $3 ; " >> .libs/cyggobject-2.0-0.dll-def;;
esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi
  gcc -Wl,--base-file,.libs/cyggobject-2.0-0.dll-base
-Wl,-e,__cygwin_dll_entry 12 -o .libs/cyggobject-2.0-0.dll  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  -L/usr/lib -L/lib
-L/opt/garnome/lib -L/usr/X11R6/lib .libs/libimp-cygintl-2.a
.libs/libimp-cygiconv-2.a
gboxed.lo: In function `value_copy':
/d/Archives/cygwin.other/garnome/garnome-0.17.1/gnome/glib/work/glib-2.0.6/gobject/gboxed.c:70:
undefined reference to `g_malloc0'
gboxed.lo: In function `value_free':
/d/Archives/cygwin.other/garnome/garnome-0.17.1/gnome/glib/work/glib-2.0.6/gobject/gboxed.c:87:
undefined reference to `g_free'
gboxed.lo: In function `gstring_copy':
============================

and so forth, until it fails out at:


============================
/d/Archives/cygwin.other/garnome/garnome-0.17.1/gnome/glib/work/glib-2.0.6/gobject/gvaluetypes.c:871:
undefined reference to `g_strdup'
gvaluetypes.lo: In function `g_pointer_type_register_static':
/d/Archives/cygwin.other/garnome/garnome-0.17.1/gnome/glib/work/glib-2.0.6/gobject/gvaluetypes.c:898:
undefined reference to `g_log'
/usr/lib/libcygwin.a(libcmain.o)(.text+0x81): undefined reference to
`WinMain 16'
collect2: ld returned 1 exit status
make[7]: *** [libgobject-2.0.la] Error 1
============================



Does that shared library error earlier on have something to do with
this?  (I have a log file of the entire run, including the errors, if it
would be of any use to anyone).







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