Subject: pkg/22484: devel/glib2 broke on SunOS
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 08/14/2003 15:53:36
>Number:         22484
>Category:       pkg
>Synopsis:       devel/glib2 broke on SunOS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 14 15:54:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build0 5.8 Generic_108528-15 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -I/home/jonp/cvs/pkgsrc/devel/glib2/work/.buildlink/include -threads -O -I/home/jonp/cvs/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

It's something to do with the configure script checking the C library
first, before -liconv, and on SunOS picking up the Sun iconv
implementation.  This then fails to define USE_LIBICONV_GNU and
breakage ensues.
>How-To-Repeat:

>Fix:
It may just be a case of commenting out line 4210 of the configure
script to try GNU libiconv first, but I've not had enough time to
verify this yet.  I may have a patch ready next week, but thought
I'd send-pr now just incase someone's found bugs like this before
and knows the correct, quick fix.
>Release-Note:
>Audit-Trail:
>Unformatted: