Bug 145052

Summary: /usr/ports/sysutils/hal failed to build
Product: Ports & Packages Reporter: Adam PAPAI <wooh>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Adam PAPAI 2010-03-26 08:50:02 UTC
failed to compile /usr/ports/sysutils/hal 

error output:

gmake[5]: Entering directory `/usr/ports/sysutils/hal/work/hal-0.5.13/hald/freebsd/probing'
cc -DHAVE_CONFIG_H -I. -I../../..  -DPACKAGE_SYSCONF_DIR=\""/usr/local/etc"\" -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_BIN_DIR=\""/usr/local/bin"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_LOCALSTATEDIR=\""/var"\" -I../../.. -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include   -I/usr/local/include  -O2 -pipe -fno-strict-aliasing -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT probe-hiddev.o -MD -MP -MF .deps/probe-hiddev.Tpo -c -o probe-hiddev.o probe-hiddev.c
probe-hiddev.c: In function 'main':
probe-hiddev.c:81: error: 'USB_GET_REPORT_ID' undeclared (first use in this function)
probe-hiddev.c:81: error: (Each undeclared identifier is reported only once
probe-hiddev.c:81: error: for each function it appears in.)
gmake[5]: *** [probe-hiddev.o] Error 1
gmake[5]: Leaving directory `/usr/ports/sysutils/hal/work/hal-0.5.13/hald/freebsd/probing'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/usr/ports/sysutils/hal/work/hal-0.5.13/hald/freebsd'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/sysutils/hal/work/hal-0.5.13/hald'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/sysutils/hal/work/hal-0.5.13/hald'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/sysutils/hal/work/hal-0.5.13'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/sysutils/hal.
*** Error code 1

Stop in /usr/ports/sysutils/hal.

Fix: under /usr/ports/sysutils/hal/work/hal-0.5.13/hald/freebsd/probing/probe-hiddev.c should include the <dev/usb/usb_ioctl.h> #ifndef HAVE_LIBUSB20

Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/sysutils/hal 
make clean
make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-03-26 08:50:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jeremy Messenger freebsd_committer freebsd_triage 2010-04-28 03:51:38 UTC
State Changed
From-To: open->closed

You need to uninstall the libusb and try it again. The libusb should 
not be installed at all because the FreeBSD 8.x and above have libusb in the 
base system.