From nobody@FreeBSD.org  Fri Oct 11 07:17:30 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 2214AF23
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Oct 2013 07:17:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id F0CA02D01
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Oct 2013 07:17:29 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9B7HTYY026980
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Oct 2013 07:17:29 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9B7HTC2026979;
	Fri, 11 Oct 2013 07:17:29 GMT
	(envelope-from nobody)
Message-Id: <201310110717.r9B7HTC2026979@oldred.freebsd.org>
Date: Fri, 11 Oct 2013 07:17:29 GMT
From: Thomas Schweikle <tps@vr-web.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: glib20 wont compile because of iconv.h problems
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182899
>Category:       ports
>Synopsis:       devel/glib20 wont compile because of iconv.h problems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 11 07:20:00 UTC 2013
>Closed-Date:    Sat Nov 23 22:54:40 UTC 2013
>Last-Modified:  Sat Nov 23 22:54:40 UTC 2013
>Originator:     Thomas Schweikle
>Release:        
>Organization:
>Environment:
>Description:
Trying to compile devel/glib20:

:/usr/ports/devel/glib20 # make clean build
[...]
gconvert.c:66:2: error: GNU libiconv not in use but included iconv.h is from libiconv
#error GNU libiconv not in use but included iconv.h is from libiconv
 ^
gconvert.c:310:21: warning: passing 'gchar **' (aka 'char **') to parameter of type 'const char **' discards qualifiers in nested
      pointer types [-Wincompatible-pointer-types-discards-qualifiers]
  return iconv (cd, inbuf, inbytes_left, outbuf, outbytes_left);
                    ^~~~~
/usr/local/include/iconv.h:83:48: note: passing argument to parameter 'inbuf' here
extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
                                               ^
1 warning and 1 error generated.
gmake[6]: *** [libglib_2_0_la-gconvert.lo] Error 1
gmake[6]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/glib20
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/glib20
:/usr/ports/devel/glib20 #


Setting MAKE_JOBS_UNSAFE=yes:
:/usr/ports/devel/glib20 # make clean build
[...]
gconvert.c:66:2: error: GNU libiconv not in use but included iconv.h is from libiconv
#error GNU libiconv not in use but included iconv.h is from libiconv
 ^
gconvert.c:310:21: warning: passing 'gchar **' (aka 'char **') to parameter of type 'const char **' discards qualifiers in nested
      pointer types [-Wincompatible-pointer-types-discards-qualifiers]
  return iconv (cd, inbuf, inbytes_left, outbuf, outbytes_left);
                    ^~~~~
/usr/local/include/iconv.h:83:48: note: passing argument to parameter 'inbuf' here
extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
                                               ^
1 warning and 1 error generated.
gmake[6]: *** [libglib_2_0_la-gconvert.lo] Error 1
gmake[6]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/glib20
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/glib20
:/usr/ports/devel/glib20 #

Same again. libiconv is not installed, according "pkg info":
:/usr/ports/devel/glib20 # pkg info | grep iconv
:/usr/ports/devel/glib20 #

Trying to install libiconv leads to:
:/usr/ports/converters/libiconv # make clean build
===>  Cleaning for libiconv-1.14_1
===>  libiconv-1.14_1 converters/libiconv should not be used with OSVERSION > 1000043.  Please fix the port which tries to use it.
*** Error code 1

Stop.
make: stopped in /usr/ports/converters/libiconv
:/usr/ports/converters/libiconv #

Searching the filesystem for "iconv.h" finds various iconv.h-Files:
:/usr/ports/converters/libiconv # find / -name 'iconv.h'
/usr/include/sys/iconv.h
/usr/include/iconv.h
/usr/local/include/iconv.h
/usr/obj/usr/src/tmp/usr/include/sys/iconv.h
/usr/obj/usr/src/tmp/usr/include/iconv.h
/usr/obj/usr/src/lib32/usr/include/sys/iconv.h
/usr/obj/usr/src/lib32/usr/include/iconv.h
/usr/src/sys/sys/iconv.h
/usr/src/include/iconv.h
:/usr/ports/converters/libiconv #

After removing "/usr/local/include/iconv.h":


>How-To-Repeat:
Upgrade a system with libiconv installed from FreeBSD < 10 to 10-ALPHA
Remove libiconv (since the new system implements iconv itself)
Compile glib20
>Fix:
Remove left over "/usr/local/include/iconv.h" after "pkg deinstall libiconv".

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Oct 12 17:46:32 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182899 
State-Changed-From-To: open->closed 
State-Changed-By: kwm 
State-Changed-When: Sat Nov 23 22:53:21 UTC 2013 
State-Changed-Why:  
having libiconv install on 10.0 isn't supported. see entry 20130904 of 
ports/UPDATING for details. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182899 
>Unformatted:
