Subject: glib2 and iconv [Re: pkgsrc on solaris 8/sparc + bmake gnome2]
To: Super-User <jjacocks@mac.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 06/26/2003 00:19:07
--2rNXa4ZKUTN10Xl5
Content-Type: multipart/mixed; boundary="iQubofM0ARSW16RL"
Content-Disposition: inline


--iQubofM0ARSW16RL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Wed, Jun 25, 2003 at 05:50:32PM -0400, Super-User wrote:
>
> To see if my gcc-3.3 installation actually works, I built glib-2.2.
> However, it doesn't seem to be detecting/linking GNU iconv correctly.
>=20
> ...
>
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=3D\"GLib\"
> -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
> -I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
> -I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gconvert.c
> -fPIC -DPIC -o .libs/gconvert.o
> gconvert.c:46:2: #error GNU libiconv not in use but included iconv.h is
> from libiconv
> gconvert.c: In function `g_iconv':
> gconvert.c:169: warning: passing arg 2 of `libiconv' from incompatible
> pointer type
> gmake[3]: *** [gconvert.lo] Error 1
> gmake[3]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.2.2/glib'
>
> ...
>
> Any ideas?

i fixed this few days ago but forgot to commit, oops.
apply the attached patch meanwhile.  it will hit the anoncvs soon.


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>                   --
--                  <salo@silcnet.org>                   --

--iQubofM0ARSW16RL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="glib2.diff"
Content-Transfer-Encoding: quoted-printable

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/devel/glib2/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile	2003/06/09 23:03:29	1.23
+++ Makefile	2003/06/25 22:17:16
@@ -17,6 +17,7 @@
 USE_PKGLOCALEDIR=3D	yes
 USE_GMAKE=3D		yes
 USE_PERL5=3D		yes
+USE_GNU_ICONV=3D		yes
=20
 USE_LIBTOOL=3D		yes
 LIBTOOL_OVERRIDE=3D	${WRKSRC}/libtool
@@ -30,6 +31,7 @@
 CONFIGURE_ARGS+=3D	--enable-gtk-doc=3Dno
 CONFIGURE_ARGS+=3D	--includedir=3D${PREFIX}/include/glib
 CONFIGURE_ARGS+=3D	--with-html-dir=3D${PREFIX}/share/doc/html
+CONFIGURE_ARGS+=3D	--with-libiconv=3Dgnu
=20
 test: build
 	cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_PROGRAM} check 2>&1 | \

--iQubofM0ARSW16RL--

--2rNXa4ZKUTN10Xl5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)

iD4DBQE++h/biwjDDlS8cmMRAunxAJivlo88gz/Wc+PJJYYStPP5PO2nAJ4rGpyU
pwBwgr6knMBhgddvrvsR4w==
=MuiX
-----END PGP SIGNATURE-----

--2rNXa4ZKUTN10Xl5--