From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 7 09:50:12 2008 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 5A287106564A for ; Sun, 7 Dec 2008 09:50:12 +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 487B78FC08 for ; Sun, 7 Dec 2008 09:50:12 +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 mB79oBl5012282 for ; Sun, 7 Dec 2008 09:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mB79oBK7012275; Sun, 7 Dec 2008 09:50:11 GMT (envelope-from gnats) Date: Sun, 7 Dec 2008 09:50:11 GMT Message-Id: <200812070950.mB79oBK7012275@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Volker Jahns Cc: Subject: Re: ports/129439: devel/libusb does not compile in FreeBSD 7.0-RELEASE X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volker Jahns List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2008 09:50:12 -0000 The following reply was made to PR ports/129439; it has been noted by GNATS. From: Volker Jahns To: Rene Ladan Cc: bug-followup@freebsd.org Subject: Re: ports/129439: devel/libusb does not compile in FreeBSD 7.0-RELEASE Date: Sun, 07 Dec 2008 10:33:23 +0100 Rene Ladan schrieb: > It builds fine for me on 7.0R/i386, 7.0R/amd64 and 7.1/amd64. > There are no error reports on http://portsmon.freebsd.org/portserrs.py > > Is there anything non-standard in your environment setings or /etc/make.conf ? > Which compiler version do you use? > Yes, on 6.2-STABLE I do not observe this problem either. On 7.0-RELEASE libusb won't compile. The information you requested -- volker@caspar ~ > gcc -dumpversion 4.2.1 volker@caspar ~ > gcc -dumpmachine i386-undermydesk-freebsd volker@caspar ~ > cat /etc/make.conf # added by use.perl 2008-05-28 18:27:44 PERL_VER=5.8.8 PERL_VERSION=5.8.8 -- however, what I am really concerned about is this error message -- /usr/include/strings.h:44: warning: 'ffs' declared 'static' but never defined /usr/include/strings.h:47: warning: 'fls' declared 'static' but never defined /usr/include/string.h:62: warning: 'memcmp' declared 'static' but never defined /usr/include/string.h:68: warning: 'memset' declared 'static' but never defined /usr/include/string.h:74: warning: 'strchr' declared 'static' but never defined /usr/include/string.h:101: warning: 'strrchr' declared 'static' but never defined -- gcc issues here warnings which - because of the makefile configuration - leads to a fullstop in the compilation process. If the corresponding configuration option is removed compilation continues and the libraries created are functional ( which I have tested with a 1-Wire DS9097U USB adapter). Therefore I question the configuration option -Werrors in libusb's makefile. On the other hand, gcc warnings are observed whenever source code is compiled which includes the system header files and/or . This might be caused by outdated and/or inappropriate system headers. I will look into this. -- Volker Jahns, volker@thalreit.de