Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2008 19:35:48 +0900 (JST)
From:      NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/124779: devel/gettext fails on 8-current
Message-ID:  <200806201035.m5KAZmHQ097183@roddy.4407.kankyo-u.ac.jp>
Resent-Message-ID: <200806201040.m5KAe6Hc019407@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124779
>Category:       ports
>Synopsis:       devel/gettext fails on 8-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 20 10:40:06 UTC 2008
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806201035.m5KAZmHQ097183>