Bug 68788 - sane-backends-1.0.14 doesn't compile
Summary: sane-backends-1.0.14 doesn't compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-07 22:40 UTC by siegbert.baude
Modified: 2004-07-08 17:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description siegbert.baude 2004-07-07 22:40:21 UTC
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.

Fix: 

unknown
How-To-Repeat: cvsup to latest ports- and src-tree, then:
portupgrade sane-backends
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-07-08 13:38:18 UTC
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
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2004-07-08 13:38:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

I'll look into this.
Comment 3 siegbert.baude 2004-07-08 17:18:26 UTC
# 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?
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2004-07-08 17:34:04 UTC
State Changed
From-To: open->closed

Fixed, thanks for your submission!