From rsmith@xs4all.nl  Mon Jul 27 16:03:19 2009
Return-Path: <rsmith@xs4all.nl>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 805A1106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Jul 2009 16:03:19 +0000 (UTC)
	(envelope-from rsmith@xs4all.nl)
Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1DE5A8FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Jul 2009 16:03:18 +0000 (UTC)
	(envelope-from rsmith@xs4all.nl)
Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160])
	by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id n6RFiDJK039634
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Jul 2009 17:44:13 +0200 (CEST)
	(envelope-from rsmith@xs4all.nl)
Received: by slackbox.xs4all.nl (Postfix, from userid 1001)
	id F07DABAA6; Mon, 27 Jul 2009 17:44:12 +0200 (CEST)
Message-Id: <20090727154412.F07DABAA6@slackbox.xs4all.nl>
Date: Mon, 27 Jul 2009 17:44:12 +0200 (CEST)
From: Roland Smith <rsmith@xs4all.nl>
Reply-To: Roland Smith <rsmith@xs4all.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] building world for 8.0-BETA2 fails on 7.2-RELEASE
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         137180
>Category:       bin
>Synopsis:       [build] [patch] building world for 8.0-BETA2 fails on 7.2-RELEASE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-usb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 27 16:10:01 UTC 2009
>Closed-Date:    Mon Aug 09 12:31:55 UTC 2010
>Last-Modified:  Mon Aug 09 12:31:55 UTC 2010
>Originator:     Roland Smith
>Release:        FreeBSD 7.2-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD slackbox.xs4all.nl 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Fri Jul 3 18:47:40 CEST 2009 rsmith@slackbox.xs4all.nl:/usr/obj/usr/src/sys/QUADSLACK amd64


	
>Description:
	Trying to build world for 8.0-BETA2 failed on 7.2-RELEASE in
	usbconfig because of missing symbols in libusb. It looks like it is
	trying to link to the libusb in 7.2-RELEASE? 
	This looks very wrong. Shouldn't the buildworld process use the
	libraries that it has built itself? Incidentally, the shared library
	version for libc still is 7. [revision 1.73.8.1 of
	/usr/src/lib/libc/Makefile] Shouldn't this be changed to 8?
>How-To-Repeat:
- Update the source to 8.0-BETA2.
- Try to build world.
>Fix:
As a quick fix, I added the path for the newly built libusb to the Makefile
for usbconfig:

----- patch for /usr/src/usr.sbin/usbconfig/Makefile -----
--- Makefile.orig	2009-07-27 17:26:26.000000000 +0200
+++ Makefile	2009-07-26 21:12:59.000000000 +0200
@@ -4,6 +4,6 @@
 PROG=	usbconfig
 MAN=	usbconfig.8
 SRCS=	usbconfig.c dump.c
-LDADD+= -lusb
+LDADD+= -lusb -L/usr/obj/usr/src/lib/libusb/
 
 .include <bsd.prog.mk>
----- patch for /usr/src/usr.sbin/usbconfig/Makefile -----
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Sun Jan 3 12:32:15 UTC 2010 
State-Changed-Why:  
To submitter: do you know if this has been fixed?  I've not seen 
any other reports of it, and usually before a release is published 
it is tested to ensure an upgrade can be done from the previous 
release. 


Responsible-Changed-From-To: freebsd-bugs->freebsd-usb 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Sun Jan 3 12:32:15 UTC 2010 
Responsible-Changed-Why:  
USB related issue 

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

From: Roland Smith <rsmith@xs4all.nl>
To: gavin@FreeBSD.org
Cc:  
Subject: Re: bin/137180: [build] [patch] building world for 8.0-BETA2 fails
 on 7.2-RELEASE
Date: Sun, 3 Jan 2010 13:54:27 +0100

 --TB36FDmn/VVEgNH/
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Sun, Jan 03, 2010 at 12:33:43PM +0000, gavin@FreeBSD.org wrote:
 > Synopsis: [build] [patch] building world for 8.0-BETA2 fails on 7.2-RELEA=
 SE
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: gavin
 > State-Changed-When: Sun Jan 3 12:32:15 UTC 2010
 > State-Changed-Why:=20
 > To submitter: do you know if this has been fixed?  I've not seen
 > any other reports of it, and usually before a release is published
 > it is tested to ensure an upgrade can be done from the previous
 > release.
 
 This problem occurred on one machine. On the second machine I deleted libus=
 b1
 and all ports that depended on it _before_ upgrading the base system, so it
 didn't cause any problems.
 
 So I guess that would be the "fix". It is not very difficult once you
 know. And if nobody else had the same problem, you can close the PR as far =
 as
 I'm concerned.
 
 Roland
 --=20
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
 
 --TB36FDmn/VVEgNH/
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.14 (FreeBSD)
 
 iEYEARECAAYFAktAk4MACgkQEnfvsMMhpyVcUgCfT3F0sHcqKA/QAxjyhc5MgfY3
 YPgAoKUNRW3aE1aYmZQ1XiWFtxi0dPc0
 =cIpe
 -----END PGP SIGNATURE-----
 
 --TB36FDmn/VVEgNH/--
 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Mon Aug 9 12:31:08 UTC 2010 
State-Changed-Why:  
Submitter is happy for this to be closed. 

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