From owner-freebsd-hackers Thu Apr 11 13:16:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from www.example.org (ANice-103-1-2-73.abo.wanadoo.fr [80.11.145.73]) by hub.freebsd.org (Postfix) with SMTP id D6FEE37B41A for ; Thu, 11 Apr 2002 13:16:28 -0700 (PDT) Received: (qmail 68408 invoked by uid 1000); 11 Apr 2002 20:16:24 -0000 Date: Thu, 11 Apr 2002 22:16:24 +0200 From: Marco Molteni To: hackers@freebsd.org Cc: joe@freebsd.org Subject: build of usbhidctl broken in -stable? Message-ID: <20020411221624.A68388@cobweb.example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I think the build of usbhidctl is broken in stable, and by this I mean it is not self-contained under /usr/src but expects to have include files under /usr/include and the library uder /usr/lib. If I do a make buildworld I get ===> usr.bin/usbhidctl cc -O -pipe -c /usr/src/usr.bin/usbhidctl/usbhid.c /usr/src/usr.bin/usbhidctl/usbhid.c:50: libusbhid.h: No such file or directory and this is obvious because I don't have /usr/inlcude/libusbhid.h, I still have to install it. so I modified src/usr.bin/usbhidctl/Makefile; I added CFLAGS+= -I${.CURDIR}/../../lib/libusbhid but this is not enough, now the Makefile expects to have libusbhid.so already build: molter@cobweb[/usr/src/usr.bin/usbhidctl]$ make cc -O -pipe -I/usr/src/usr.bin/usbhidctl/../../lib/libusbhid -o usbhidctl usbhid.o -lusbhid /usr/libexec/elf/ld: cannot find -lusbhid *** Error code 1 I guess this means that src/lib/libusbhid should be built before src/usr.bin/usbhidctl, but I don't know the Makefile magic to make this happen. Am I correct or is my build environment screwed up? thanks marco -- Computers are like air conditioners. They stop working when you open Windows. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message