From nobody@FreeBSD.org  Fri Jan  4 07:55:48 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id D392E37B420
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Jan 2002 07:55:47 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g04FtlN92259;
	Fri, 4 Jan 2002 07:55:47 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201041555.g04FtlN92259@freefall.freebsd.org>
Date: Fri, 4 Jan 2002 07:55:47 -0800 (PST)
From: Mack <macklobell@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libungif-4.1.0b1 doesn't build with gcc 3.0.2
X-Send-Pr-Version: www-1.0

>Number:         33539
>Category:       ports
>Synopsis:       libungif-4.1.0b1 doesn't build with gcc 3.0.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 04 08:00:08 PST 2002
>Closed-Date:    Sat Oct 26 05:34:06 PDT 2002
>Last-Modified:  Sat Oct 26 05:34:06 PDT 2002
>Originator:     Mack
>Release:        4.4
>Organization:
>Environment:
FreeBSD killerqueen 4.4-RELEASE-p2 FreeBSD 4.4-RELEASE-p2 #0: Fri Jan  4 11:19:14 CET 2002     root@killerqueen:/usr/src/sys/compile/KERNEL441  i386      
>Description:
When i try to build the port libungif with gcc 3.0.2 the make fails on qprintf.c.

Output with gcc 3.0.2:

/bin/sh ../libtool --mode=compile gcc30 -DHAVE_CONFIG_H -I. -I. -I..     -pipe -mpentiumpro -O3  -I/usr/X11R6/include -c qprintf.c
rm -f .libs/qprintf.lo
gcc30 -DHAVE_CONFIG_H -I. -I. -I.. -pipe -mpentiumpro -O3 -I/usr/X11R6/include -c qprintf.c  -fPIC -DPIC -o .libs/qprintf.lo
qprintf.c: In function `GifQprintf':
qprintf.c:42: `va_start' used in function with fixed args
*** Error code 1

Stop in /usr/ports/graphics/libungif/work/libungif-4.1.0b1/lib.
*** Error code 1

Output with gcc 2.95.3:

/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I..     -pipe -mpentiumpro -O3  -I/usr/X11R6/include -c qprintf.c
rm -f .libs/qprintf.lo
cc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -mpentiumpro -O3 -I/usr/X11R6/include -c qprintf.c  -fPIC -DPIC -o .libs/qprintf.lo
cc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -mpentiumpro -O3 -I/usr/X11R6/include -c qprintf.c -o qprintf.o >/dev/null 2>&1
mv -f .libs/qprintf.lo qprintf.lo


>How-To-Repeat:
Install gcc 3.0.2 from the ports, then:

make USE_GCC30=yes      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Alan E <alane@geeksrus.net>
To: freebsd-gnats-submit@FreeBSD.org, macklobell@hotmail.com
Cc:  
Subject: Re: ports/33539: libungif-4.1.0b1 doesn't build with gcc 3.0.2
Date: Fri, 4 Jan 2002 20:35:27 -0500

 Problem is that libungif uses the *old* varargs.h if it finds it, and uses 
 stdarg.h (which is what gcc assumes va_start comes from, it seems) only if the
 old file isn't found.
 
 Solution: disable the test for varargs.h.
 
 Index: files/patch-configure.in
 ===================================================================
 RCS file: files/patch-configure.in
 diff -N files/patch-configure.in
 --- /dev/null   1 Jan 1970 00:00:00 -0000
 +++ files/patch-configure.in    5 Jan 2002 01:24:19 -0000
 @@ -0,0 +1,11 @@
 +--- configure.in~      Thu Feb 17 07:51:53 2000
 ++++ configure.in       Fri Jan  4 20:23:49 2002
 +@@ -48,7 +48,7 @@
 + dnl Checks for header files.
 + AC_HEADER_STDC
 + AC_CHECK_HEADERS(fcntl.h)
 +-AC_CHECK_HEADERS(varargs.h)
 ++#AC_CHECK_HEADERS(varargs.h)
 +
 + dnl Checks for typedefs, structures, and compiler characteristics.
 + AC_C_CONST
 
 
 
 -- 
 Alan Eldridge
 Pmmfmffmmfmp mmmpppppffmpmfpmpppff $PffMmmPppMpmPpfPpm mfpmmmmmfpmpmpppff.
State-Changed-From-To: open->feedback 
State-Changed-By: petef 
State-Changed-When: Sat Jun 8 17:17:06 PDT 2002 
State-Changed-Why:  
Is this really needed still?  I just built this port OK with -current's 
gcc 3.1. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33539 
State-Changed-From-To: feedback->closed 
State-Changed-By: arved 
State-Changed-When: Sat Oct 26 05:32:25 PDT 2002 
State-Changed-Why:  
feedback timeout (4.5 months) 
Fixed by naddy on Feburary 01.   

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