delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/16/12:14:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Subject: Re: Error compiling glib, help?
From: Jean =?ISO-8859-1?Q?Br=E9fort?= <jean DOT brefort AT free DOT fr>
To: Jamil <Jamil_Alkadir AT hotmail DOT com>
Cc: Cygwin <cygwin AT cygwin DOT com>, Gtk_mailing_list <gtk-list AT gnome DOT org>
In-Reply-To: <000d01c43b6a$1215d790$904fefd8@escalantewin>
References: <000d01c43b6a$1215d790$904fefd8 AT escalantewin>
Message-Id: <1084724406.391.12.camel@Newton>
Mime-Version: 1.0
Date: 16 May 2004 18:20:06 +0200

--=-+LuTOeB+1QV8RxzM/1Xb
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Le dim 16/05/2004 =C3=A0 19:20, Jamil a =C3=A9crit :
> I am trying to compile the latest version of glib under a CYGWIN/WinXP
> using NTFS, but I get errors about function's references. I would
> appreciate if someone would help me fix this problem; here is an error
> report that more clearly explains what my problem is.
>=20
> Please note that my intention is to eventually install GTK+ and GTKmm.
>=20
> TIA
>=20
> OS
> ~~~
> CYGWIN-mswxp [NTFS]
>=20
> Compiler
> ~~~~~~~~~~
> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
> Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld
> --with-gnu-as --prefix=3D/usr --exec-prefix=3D/usr --sysconfdir=3D/etc
> --libdir=3D/usr/lib --libexecdir=3D/usr/sbin --mandir=3D/usr/share/man
> --infodir=3D/usr/share/info
> --enable-languages=3Dc,ada,c++,f77,pascal,java,objc --enable-libgcj
> --enable-threads=3Dposix --with-system-zlib --enable-nls
> --without-included-gettext --enable-interpreter --enable-sjlj-exceptions
> --disable-version-specific-runtime-libs --enable-shared
> --disable-win32-registry --enable-java-gc=3Dboehm
> --disable-hash-synchronization --verbose --target=3Di686-pc-cygwin
> --host=3Di686-pc-cygwin --build=3Di686-pc-cygwin Thread model: posix gcc
> version 3.3.1 (cygming special)
>=20
> Error
> ~~~~~
> Creating library file: .libs/libgobject-2.0.dll.a
> libs/gboxed.o(.text+0x57): In function `value_copy':
> /cygdrive/c/tmp/downloads/GTK+/glib-2.4.1/gobject/gboxed.c:74: undefined
> reference to `_g_malloc0'
> libs/gboxed.o(.text+0xd6): In function `gstring_copy':
> /cygdrive/c/tmp/downloads/GTK+/glib-2.4.1/gobject/gboxed.c:99: undefined
> reference to `_g_string_new_len'
> libs/gboxed.o(.text+0xf5): In function `gstring_free':
> /cygdrive/c/tmp/downloads/GTK+/glib-2.4.1/gobject/gboxed.c:107:
> undefined reference to `_g_string_free'
> libs/gboxed.o(.text+0x26a): In function `g_boxed_type_init':
> /cygdrive/c/tmp/downloads/GTK+/glib-2.4.1/gobject/../glib/gbsearcharray.
> h:136: undefined reference to `_g_realloc'
>=20
> //////// NOTE  ////////////
> **** The same error is displayed for several  *******
> **** hundreds of functions in different files *******
> ///////  END  ////////////
>=20
> collect2: ld returned 1 exit status
> make[3]: *** [libgobject-2.0.la] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> _______________________________________________

I have no experience with cygwin, but the problem is that the linker
does not find libglib-2.0.??? (I do not know the exact name of the file
in this case). This file should be in glib/.libs.If it does not exist
(this would be very surprising), go to the glib directory and run make
to create it. Check it and also check the arguments of the ld command.

--=-+LuTOeB+1QV8RxzM/1Xb
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAp5S2UkVLHK5zOkcRAtC3AKDnUhotVT7TRtPK3GSQSPeVXRKTpwCg7dGf
OFtKXfMogMrHN8SfvJOXjuI=
=Kcd3
-----END PGP SIGNATURE-----

--=-+LuTOeB+1QV8RxzM/1Xb--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019