Compile fix for libusb detection
Richard Hughes
hughsient at gmail.com
Sun Feb 4 14:18:59 PST 2007
Compile error with head "./autogen.sh --prefix=/home/hughsie/root";
make[5]: Entering directory `/home/hughsie/hal/hald/linux/addons'
if gcc -DHAVE_CONFIG_H -I. -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=
\""/usr/local/var"\" -I../../.. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -g -O2 -Wall -Wchar-subscripts
-Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -MT addon-usb-csr.o -MD -MP -MF ".deps/addon-usb-csr.Tpo"
-c -o addon-usb-csr.o addon-usb-csr.c; \
then mv -f ".deps/addon-usb-csr.Tpo" ".deps/addon-usb-csr.Po";
else rm -f ".deps/addon-usb-csr.Tpo"; exit 1; fi
addon-usb-csr.c:30:17: error: usb.h: No such file or directory
addon-usb-csr.c: In function ‘check_battery’:
addon-usb-csr.c:115: error: ‘usb_dev_handle’ undeclared (first use in
this function)
addon-usb-csr.c:115: error: (Each undeclared identifier is reported only
once
addon-usb-csr.c:115: error: for each function it appears in.)
addon-usb-csr.c:115: error: ‘handle’ undeclared (first use in this
function)
Patch attached, to better check for libusb. Tested with and without
libusb-devel installed. Okay to commit?
Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-no-libusb.patch
Type: text/x-patch
Size: 999 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070204/8ced2200/hal-fix-no-libusb.bin
More information about the hal
mailing list