From nobody@FreeBSD.org  Wed Jul  7 21:39:50 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2F22516A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  7 Jul 2004 21:39:50 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2AC5D43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  7 Jul 2004 21:39:50 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i67LdnPW041113
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 7 Jul 2004 21:39:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i67LdnD9041112;
	Wed, 7 Jul 2004 21:39:49 GMT
	(envelope-from nobody)
Message-Id: <200407072139.i67LdnD9041112@www.freebsd.org>
Date: Wed, 7 Jul 2004 21:39:49 GMT
From: Siegbert Baude <siegbert.baude@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sane-backends-1.0.14 doesn't compile
X-Send-Pr-Version: www-2.3

>Number:         68788
>Category:       ports
>Synopsis:       sane-backends-1.0.14 doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    vs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 07 21:40:21 GMT 2004
>Closed-Date:    Thu Jul 08 16:34:32 GMT 2004
>Last-Modified:  Thu Jul 08 16:34:32 GMT 2004
>Originator:     Siegbert Baude
>Release:        5.2-CURRENT
>Organization:
>Environment:
$ uname -a FreeBSD lilith 5.2-CURRENT FreeBSD 5.2-CURRENT #9: Thu Jul  1 04:06:21 CEST 2004     toor@lilith:/usr/obj/usr/src/sys/LILITH  i386
>Description:
sane-backends-1.0.14 fails to compile with the following error:

[snip]
rm -f .libs/fujitsu.lo
cc -c -O -pipe -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=fujitsu -DLIBDIR=/usr/local/lib/sane fujitsu.c  -fPIC -DPIC -o .libs/fujitsu.lo
In file included from fujitsu.c:173:
/usr/local/include/libc.h:33: error: syntax error before "Rune"
/usr/local/include/libc.h:34: error: syntax error before '*' token
fujitsu.c:3754: warning: `sigtermHandler' defined but not used
gmake[1]: *** [fujitsu.lo] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/sane-backends/work/sane-backend
s-1.0.14/backend'
gmake: *** [all-recursive] Error 1
*** Error code 2

I just built a new world, kernel and did a complete portupgrade; everything worked fine, so my system seems to be in a usable state. This error persists since at least some weeks over different versions of world and kernel.
>How-To-Repeat:
cvsup to latest ports- and src-tree, then:
portupgrade sane-backends
>Fix:
unknown
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->vs 
Responsible-Changed-By: vs 
Responsible-Changed-When: Thu Jul 8 12:38:40 GMT 2004 
Responsible-Changed-Why:  
I'll look into this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68788 

From: "Volker Stolz" <vs@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, siegbert.baude@gmx.de
Cc:  
Subject: Re: ports/68788: sane-backends-1.0.14 doesn't compile
Date: Thu, 08 Jul 2004 14:38:18 +0200

 Can you please run "pkg_info -W usr/local/include/libc.h"? Looks like  
 we've got a conflict there.
 Then, please run "make clean patch", and edit ${WRKSRC}/configure --  
 there's one occurence of
 "libc.h" in there. Please remove it and try to build. If everything works  
 out fine, I'll add a
 patch for this to the port.
 
 Volker

From: Siegbert Baude <siegbert.baude@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/68788: sane-backends-1.0.14 doesn't compile
Date: Thu, 08 Jul 2004 18:18:26 +0200

 # pkg_info -W /usr/local/include/libc.h
 /usr/local/include/libc.h was installed by package 9libs-1.0
 #
 
 I changed the configure-script as you described, i.e. I removed the word 
 "libc.h". The compile worked this time, the scanner does its job as 
 expected. Thanks for the fast help.
 
 Further on I noticed that the "xsane-0.93" port has exactly the same 
 problem. Fortunately the same patch works. Should i open a separate PR 
 for this one?
State-Changed-From-To: open->closed 
State-Changed-By: vs 
State-Changed-When: Thu Jul 8 16:34:04 GMT 2004 
State-Changed-Why:  
Fixed, thanks for your submission! 

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