From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 11 15:40:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD7E81065674 for ; Wed, 11 Mar 2009 15:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A7BDE8FC1C for ; Wed, 11 Mar 2009 15:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2BFe1HE019432 for ; Wed, 11 Mar 2009 15:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2BFe1BY019431; Wed, 11 Mar 2009 15:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 11 Mar 2009 15:40:01 GMT Resent-Message-Id: <200903111540.n2BFe1BY019431@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ben Kelly Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1FD4106566C for ; Wed, 11 Mar 2009 15:35:49 +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 856BC8FC1D for ; Wed, 11 Mar 2009 15:35:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2BFZnuq052564 for ; Wed, 11 Mar 2009 15:35:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n2BFZnZL052563; Wed, 11 Mar 2009 15:35:49 GMT (envelope-from nobody) Message-Id: <200903111535.n2BFZnZL052563@www.freebsd.org> Date: Wed, 11 Mar 2009 15:35:49 GMT From: Ben Kelly To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/132548: [newusb] apcupsd compile broken with USB support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 15:40:03 -0000 >Number: 132548 >Category: ports >Synopsis: [newusb] apcupsd compile broken with USB support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 11 15:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ben Kelly >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD vmfbsd.localdomain 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r179:183: Wed Mar 11 13:53:21 GMT 2009 root@vmfbsd.localdomain:/usr/obj/usr/src/sys/VMWARE i386 >Description: Building apcupsd on a recent CURRENT using the new USB stack results in the following error: CXX src/drivers/usb/bsd/bsd-usb.c bsd-usb.c: In function 'int init_device(UPSINFO*, const char*)': bsd-usb.c:101: error: aggregate 'usb_device_info devinfo' has incomplete type and cannot be defined bsd-usb.c:104: error: 'MAXDEVNAMELEN' was not declared in this scopebsd-usb.c:111: error: 'USB_GET_DEVICEINFO' was not declared in this scope bsd-usb.c:163: error: 'intdevname' was not declared in this scope bsd-usb.c: In function 'int open_usb_device(UPSINFO*)':bsd-usb.c:197: error: 'MAXDEVNAMELEN' was not declared in this scope bsd-usb.c:198: error: aggregate 'usb_device_info devinfo' has incomplete type and cannot be definedbsd-usb.c:259: error: 'USB_DEVICEINFO' was not declared in this scope bsd-usb.c:264: error: 'MAXDEVNAMES' was not declared in this scope bsd-usb.c:268: error: 'MAXDEVNAMES' was not declared in this scope bsd-usb.c:269: error: ISO C++ forbids applying 'sizeof' to an expression of function type bsd-usb.c:269: error: cannot convert 'char* (*)(__dev_t, __mode_t)' to 'char*' for argument '1' to ' char* astrncpy(char*, const char*, int)' bsd-usb.c:270: error: ISO C++ forbids applying 'sizeof' to an expression of function type bsd-usb.c:275: error: cannot convert 'char* (*)(__dev_t, __mode_t)' to 'const char*' for argument '2 ' to 'int init_device(UPSINFO*, const char*)' bsd-usb.c:276: error: cannot convert 'char* (*)(__dev_t, __mode_t)' to 'const char*' for argument '2 ' to 'char* astrncpy(char*, const char*, int)' gmake[5]: *** [.obj/bsd-usb.o] Error 1 I tried adding --with-generic-usb as discussed in this mail thread: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=412215+0+archive/2009/freebsd-usb/20090215.freebsd-usb This did not work, however, because the apcupsd configure script looks for libusb-config. Unfortunately, the libusb port can no longer be installed when the new USB stack is in use. Should the base system provide a libusb-config binary? >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: