From nakaji@kankyo-u.ac.jp  Fri Jun 20 10:35:58 2008
Return-Path: <nakaji@kankyo-u.ac.jp>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 076611065670
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Jun 2008 10:35:58 +0000 (UTC)
	(envelope-from nakaji@kankyo-u.ac.jp)
Received: from d4407.kankyo-u.ac.jp (unknown [IPv6:2001:3e0:a84:2::2])
	by mx1.freebsd.org (Postfix) with ESMTP id 8186F8FC27
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Jun 2008 10:35:57 +0000 (UTC)
	(envelope-from nakaji@kankyo-u.ac.jp)
Received: from roddy.4407.kankyo-u.ac.jp (localhost [127.0.0.1])
	by d4407.kankyo-u.ac.jp (8.14.2/8.14.2) with ESMTP id m5KAZoKf097214
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Jun 2008 19:35:50 +0900 (JST)
	(envelope-from nakaji@roddy.4407.kankyo-u.ac.jp)
Received: (from nakaji@localhost)
	by roddy.4407.kankyo-u.ac.jp (8.14.2/8.14.2/Submit) id m5KAZmHQ097183;
	Fri, 20 Jun 2008 19:35:48 +0900 (JST)
	(envelope-from nakaji)
Message-Id: <200806201035.m5KAZmHQ097183@roddy.4407.kankyo-u.ac.jp>
Date: Fri, 20 Jun 2008 19:35:48 +0900 (JST)
From: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
Reply-To: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/gettext fails on 8-current
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         124779
>Category:       ports
>Synopsis:       devel/gettext fails on 8-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ade
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 20 10:40:06 UTC 2008
>Closed-Date:    Fri Jun 20 11:42:58 UTC 2008
>Last-Modified:  Fri Jun 20 11:42:58 UTC 2008
>Originator:     NAKAJI Hiroyuki
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD roddy.4407.kankyo-u.ac.jp 8.0-CURRENT FreeBSD 8.0-CURRENT #126: Thu Jun 19 14:48:32 JST 2008 root@roddy.4407.kankyo-u.ac.jp:/usr/obj/usr/src/sys/RODDY i386


>Description:
	Gettext-tools in devel/gettext uses "cc -std=gnu99" option and it
	fails to compile. And, many packages depending on gettext cannot
	be upgraded.

----

/bin/sh /usr/local/bin/libtool --tag=CC    --mode=compile cc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\"  -DEXEEXT=\"\" -I. -I..   -I../intl -I../intl  -I.. -I.. -DDEPENDS_ON_LIBICONV=1  -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC -I../intl    -I./libcroco  -I/usr/local/include  -O2 -pipe  -fno-strict-aliasing -c -o execute.lo execute.c
 cc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC -I../intl -I./libcroco -I/usr/local/include -O2 -pipe -fno-strict-aliasing -c execute.c  -fPIC -DPIC -o .libs/execute.o
In file included from execute.c:48:
/usr/include/spawn.h:69: error: static or type qualifiers in abstract declarator
/usr/include/spawn.h:69: error: static or type qualifiers in abstract declarator
/usr/include/spawn.h:72: error: static or type qualifiers in abstract declarator
/usr/include/spawn.h:72: error: static or type qualifiers in abstract declarator
*** Error code 1

Stop in /usr/ports/devel/gettext/work/gettext-0.17/gettext-tools/gnulib-lib.

----
The revision of /usr/include/spawn.h is 1.2.

$FreeBSD: src/include/spawn.h,v 1.2 2008/06/17 07:09:58 ed Exp $

>How-To-Repeat:
	
portupgrade -fr gettext

>Fix:

Removing "-std=gnu99" from gettext-tools can avoid this error. Here is a
patch for files/patch-gettext-tools_configure.

Index: files/patch-gettext-tools_configure
===================================================================
RCS file: /home/ncvs/ports/devel/gettext/files/patch-gettext-tools_configure,v
retrieving revision 1.6
diff -u -r1.6 patch-gettext-tools_configure
--- files/patch-gettext-tools_configure	17 Mar 2007 22:37:26 -0000	1.6
+++ files/patch-gettext-tools_configure	20 Jun 2008 10:19:42 -0000
@@ -1,6 +1,8 @@
---- gettext-tools/configure.orig	Mon Nov 27 09:34:40 2006
-+++ gettext-tools/configure	Sun Dec  3 17:54:35 2006
-@@ -3962,7 +3962,3 @@
+--- gettext-tools/configure.orig	2007-11-07 08:37:40.000000000 +0900
++++ gettext-tools/configure	2008-06-20 19:17:49.000000000 +0900
+@@ -4258,11 +4258,7 @@
+ 
+ 
  
 -if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
 -  BUILDJAVAEXE=yes
@@ -8,7 +10,11 @@
    BUILDJAVAEXE=no
 -fi
  
-@@ -5110,13 +5106,5 @@
+ 
+ 
+@@ -5494,17 +5490,9 @@
+ fi
+ 
  
 -if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
 -  BUILDJAVA=yes
@@ -22,7 +28,20 @@
    TESTJAVA=no
 -fi
  
-@@ -50083,2 +50071,13 @@
+ 
+ 
+@@ -6872,7 +6860,7 @@
+   return 0;
+ }
+ _ACEOF
+-for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
++for ac_arg in ''
+ do
+   CC="$ac_save_CC $ac_arg"
+   rm -f conftest.$ac_objext
+@@ -64687,6 +64675,17 @@
+ 
+ 
  case "$host_os" in
 +  freebsd[5-9]*)
 +
@@ -36,3 +55,5 @@
 +
 +    ;;
    linux*)
+ 
+ cat >>confdefs.h <<\_ACEOF
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ade 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jun 20 10:40:11 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124779 
State-Changed-From-To: open->closed 
State-Changed-By: ade 
State-Changed-When: Fri Jun 20 11:42:24 UTC 2008 
State-Changed-Why:  
Already been fixed by davidxu. 

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