print/hplip does not build with new USB stack (8-CURRENT)

Vladimir Grebenschikov vova at fbsd.ru
Fri Mar 20 00:26:49 PDT 2009


Hi


# portupgrade -f hplip
--->  Reinstalling 'hplip-2.8.2_3' (print/hplip)
--->  Building '/usr/ports/print/hplip'
===>  Cleaning for net-snmp-5.4.2.1_3
===>  Cleaning for hplip-2.8.2_3
===>  Found saved configuration for hplip-2.7.12
===>  Extracting for hplip-2.8.2_3
=> MD5 Checksum OK for hplip-2.8.2.tar.gz.
=> SHA256 Checksum OK for hplip-2.8.2.tar.gz.
===>  Patching for hplip-2.8.2_3
===>  Applying FreeBSD patches for hplip-2.8.2_3
===>   hplip-2.8.2_3 depends on file: /usr/local/bin/python2.5 - found
===>   hplip-2.8.2_3 depends on shared library: jpeg.9 - found
===>   hplip-2.8.2_3 depends on shared library: sane.1 - found
===>   hplip-2.8.2_3 depends on shared library: cups.2 - found
===>   hplip-2.8.2_3 depends on shared library: netsnmp.16 - found
===>  Configuring for hplip-2.8.2_3
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... gawk
...
checking for cups/cups.h... yes
checking for usb_init in -lusb... yes
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking whether /usr/local/bin/python2.5 version >= 2.2... yes
...
===>  Building for hplip-2.8.2_3
/bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"HP\ Linux\ Imaging\ and\ Printing\" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"2.8.2\" -DPACKAGE_STRING=\"HP\ Linux\ Imaging\ and\ Printing\ 2.8.2\" -DPACKAGE_BUGREPORT=\"2.8.2.10\" -DPACKAGE=\"hplip\" -DVERSION=\"2.8.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBM=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_PTHREAD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_LIBCUPS=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_LIBUSB=1 -DHAVE_USB_H=1 -DHAVE_PYTHON2_5_PYTHON_H=1 -DHAVE_LIBSANE=1 -I. -I. -Iip -Iio/hpmud -Iscan/sane  -I/usr/local/include -I/usr/local/include/python2.5 -O2 -pipe!
  -fno-strict-aliasing -c -o cupsext_la-cupsext.lo `test -f 'prnt/cupsext/cupsext.c' || echo './'`prnt/cupsext/cupsext.c
mkdir .libs
 cc "-DPACKAGE_NAME=\"HP Linux Imaging and Printing\"" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"2.8.2\" "-DPACKAGE_STRING=\"HP Linux Imaging and Printing 2.8.2\"" -DPACKAGE_BUGREPORT=\"2.8.2.10\" -DPACKAGE=\"hplip\" -DVERSION=\"2.8.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBM=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_PTHREAD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_LIBCUPS=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_LIBUSB=1 -DHAVE_USB_H=1 -DHAVE_PYTHON2_5_PYTHON_H=1 -DHAVE_LIBSANE=1 -I. -I. -Iip -Iio/hpmud -Iscan/sane -I/usr/local/include -I/usr/local/include/python2.5 -O2 -pipe -fno-strict-aliasing -c prnt/cupsext/cupsext.c!
   -fPIC -DPIC -o .libs/cupsext_la-cupsext.o
/bin/sh ./libtool --tag=CC --mode=link cc  -O2 -pipe -fno-strict-aliasing   -L/usr/local/lib -o cupsext.la -rpath /usr/local/lib/python2.5/site-packages -module -avoid-version cupsext_la-cupsext.lo  -lsane -lusb -lcups -lnetsnmp -lcrypto  -ljpeg -lm -pthread
grep: /usr/local/lib/libusb.la: No such file or directory
/usr/local/bin/gsed: can't read /usr/local/lib/libusb.la: No such file or directory
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20090320-2598-exqhin-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=hplip-2.8.2_3 UPGRADE_PORT_VER=2.8.2_3 make

no libusb port installed, all old usb libraries and headers are cleaned (make delete-old).

# pkg_info -I '*usb*'
pkg_info: can't find package '*usb*' installed or in a file!
# ldconfig -r | fgrep usb
	94:-lusbhid.3 => /usr/lib/libusbhid.so.3
	101:-lusb.1 => /usr/lib/libusb.so.1
	1165:-lsane-mustek_usb.1 => /usr/local/lib/compat/pkg/libsane-mustek_usb.so.1
	1166:-lsane-mustek_usb2.1 => /usr/local/lib/compat/pkg/libsane-mustek_usb2.so.1
	1501:-lusb.0 => /usr/local/lib/compat/libusb.so.0
	1502:-lusbhid.0 => /usr/local/lib/compat/libusbhid.so.0
	1503:-lusbhid.1 => /usr/local/lib/compat/libusbhid.so.1
	1504:-lusbhid.2 => /usr/local/lib/compat/libusbhid.so.2
# ls -ldtr /usr/include/*usb*
-r--r--r--  1 root  wheel   1451 Nov 26 01:10 /usr/include/libusb20_compat10.h
-r--r--r--  1 root  wheel   3601 Feb  2 17:20 /usr/include/usbhid.h
-r--r--r--  1 root  wheel   9496 Mar 11 02:51 /usr/include/usb.h
-r--r--r--  1 root  wheel  15969 Mar 11 02:51 /usr/include/libusb20_desc.h
-r--r--r--  1 root  wheel  11822 Mar 18 17:31 /usr/include/libusb20.h
#

-- 
Vladimir B. Grebenschikov
vova at fbsd.ru


More information about the freebsd-usb mailing list