From nobody@FreeBSD.org  Sun Dec  6 21:43:19 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 701801065670
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  6 Dec 2009 21:43:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 52DC38FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  6 Dec 2009 21:43:19 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nB6LhIqQ093365
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 6 Dec 2009 21:43:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nB6LhI60093332;
	Sun, 6 Dec 2009 21:43:18 GMT
	(envelope-from nobody)
Message-Id: <200912062143.nB6LhI60093332@www.freebsd.org>
Date: Sun, 6 Dec 2009 21:43:18 GMT
From: Igor Soumenkov <2igosha@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sane-backends doesn't build on 8-STABLE
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         141233
>Category:       ports
>Synopsis:       graphics/sane-backends doesn't build on 8-STABLE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 06 21:50:02 UTC 2009
>Closed-Date:    Sat Dec 12 00:12:00 UTC 2009
>Last-Modified:  Mon Apr 12 00:20:01 UTC 2010
>Originator:     Igor Soumenkov
>Release:        8-STABLE
>Organization:
>Environment:
FreeBSD igosha-desktop 8.0-STABLE FreeBSD 8.0-STABLE #0: Sat Nov 28 00:09:29 MSK 2009     igosha@igosha-desktop:/usr/obj/usr/src/sys/IGOSHA-8  i386

>Description:
build fails with the following output:

/bin/sh ../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I. -I../include -I../include -I/usr/local/include  -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d      -DPATH_SANE_DATA_DIR=/usr/local/share       -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane           -DV_MAJOR=1 -DV_MINOR=0  -O2 -pipe -fno-strict-aliasing -W -Wall -MT sanei_usb.lo -MD -MP -MF .deps/sanei_usb.Tpo -c -o sanei_usb.lo sanei_usb.c
 cc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I. -I../include -I../include -I/usr/local/include -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane -DV_MAJOR=1 -DV_MINOR=0 -O2 -pipe -fno-strict-aliasing -W -Wall -MT sanei_usb.lo -MD -MP -MF .deps/sanei_usb.Tpo -c sanei_usb.c  -fPIC -DPIC -o .libs/sanei_usb.o
In file included from sanei_usb.c:101:
/usr/include/dev/usb/usb.h:274: error: redefinition of 'struct usb_device_descriptor'
/usr/include/dev/usb/usb.h:365: error: redefinition of 'struct usb_config_descriptor'
/usr/include/dev/usb/usb.h:382: error: redefinition of 'struct usb_interface_descriptor'
/usr/include/dev/usb/usb.h:499: error: redefinition of 'struct usb_endpoint_descriptor'
/usr/include/dev/usb/usb.h:543: error: redefinition of 'struct usb_string_descriptor'
sanei_usb.c: In function 'kernel_get_vendor_product':
sanei_usb.c:248: warning: unused parameter 'fd'
sanei_usb.c:248: warning: unused parameter 'name'
sanei_usb.c:248: warning: unused parameter 'vendorID'
sanei_usb.c:248: warning: unused parameter 'productID'
sanei_usb.c: In function 'sanei_usb_init':
sanei_usb.c:578: warning: format '%04x' expects type 'unsigned int', but argument 3 has type 'uint8_t *'
sanei_usb.c:578: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'uint8_t *'
sanei_usb.c:585: warning: format '%04x' expects type 'unsigned int', but argument 3 has type 'uint8_t *'
sanei_usb.c:585: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'uint8_t *'
sanei_usb.c:590: error: 'struct usb_config_descriptor' has no member named 'bNumInterfaces'
sanei_usb.c:599: error: 'struct usb_config_descriptor' has no member named 'interface'
sanei_usb.c:600: error: 'struct usb_config_descriptor' has no member named 'interface'
sanei_usb.c:605: warning: format '%04x' expects type 'unsigned int', but argument 3 has type 'uint8_t *'
sanei_usb.c:605: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'uint8_t *'
sanei_usb.c:608: error: 'struct usb_config_descriptor' has no member named 'interface'
sanei_usb.c:627: error: 'struct usb_config_descriptor' has no member named 'interface'
sanei_usb.c:628: error: 'struct usb_config_descriptor' has no member named 'interface'
sanei_usb.c:629: warning: format '%04x' expects type 'unsigned int', but argument 3 has type 'uint8_t *'
sanei_usb.c:629: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'uint8_t *'
sanei_usb.c:636: warning: format '%04x' expects type 'unsigned int', but argument 3 has type 'uint8_t *'
sanei_usb.c:636: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'uint8_t *'
sanei_usb.c:647: warning: assignment makes integer from pointer without a cast
sanei_usb.c:648: warning: assignment makes integer from pointer without a cast
sanei_usb.c:655: warning: format '%04x' expects type 'unsigned int', but argument 3 has type 'uint8_t *'
sanei_usb.c:655: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'uint8_t *'
sanei_usb.c: In function 'sanei_usb_get_vendor_product':
sanei_usb.c:1029: warning: assignment makes integer from pointer without a cast
sanei_usb.c:1031: warning: assignment makes integer from pointer without a cast
sanei_usb.c: In function 'sanei_usb_open':
sanei_usb.c:1235: error: 'struct usb_config_descriptor' has no member named 'bNumInterfaces'
sanei_usb.c:1238: error: 'struct usb_config_descriptor' has no member named 'interface'
sanei_usb.c:1245: error: 'struct usb_config_descriptor' has no member named 'interface'
sanei_usb.c:1253: error: 'struct usb_interface_descriptor' has no member named 'endpoint'
sanei_usb.c: In function 'sanei_usb_write_bulk':
sanei_usb.c:2177: warning: passing argument 3 of 'usb_bulk_write' discards qualifiers from pointer target type
sanei_usb.c: In function 'sanei_usb_get_descriptor':
sanei_usb.c:2842: warning: assignment makes integer from pointer without a cast
sanei_usb.c:2843: warning: assignment makes integer from pointer without a cast
sanei_usb.c:2848: error: 'struct usb_device_descriptor' has no member named 'bMaxPacketSize0'
gmake[1]: *** [sanei_usb.lo] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1
gmake[1]: Leaving directory `/usr/ports/graphics/sane-backends/work/sane-backends-1.0.20/sanei'
gmake: *** [all-recursive] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1
*** Error code 1

>How-To-Repeat:
cd /usr/ports/graphics/sane-backends
make
>Fix:
none known

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Thu Dec 10 14:12:51 UTC 2009 
State-Changed-Why:  
This builds on the package cluster.  Have you used non-default OPTIONS in this 
port?  Can you let me see output of "make showconfig"? 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Thu Dec 10 14:12:51 UTC 2009 
Responsible-Changed-Why:  
This builds on the package cluster.  Have you used non-default OPTIONS in this 
port?  Can you let me see output of "make showconfig"? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141233 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Sat Dec 12 00:11:49 UTC 2009 
State-Changed-Why:  
Cannot reproduce, probably local pollution 

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

From: Markus Hoenicka <markus.hoenicka@mhoenicka.de>
To: bug-followup@FreeBSD.org, 2igosha@gmail.com
Cc:  
Subject: RE: ports/141233: graphics/sane-backends doesn't build on 8-STABLE
Date: Mon, 12 Apr 2010 02:06:10 +0200

 I ran into the same problem as the OP of this bug report. Turns out  
 that the devel/libusb port must be deinstalled after upgrading from  
 FreeBSD 7.x to 8.0. With that version of libusb out of the way,  
 sane-backends builds ok.
 
 regards,
 Markus
 
 -- 
 Markus Hoenicka
 http://www.mhoenicka.de
 AQ score 38
 
 
>Unformatted:
