Skip to content

Instantly share code, notes, and snippets.

@bmix
Created October 16, 2011 09:33
Show Gist options
  • Save bmix/1290706 to your computer and use it in GitHub Desktop.
Save bmix/1290706 to your computer and use it in GitHub Desktop.
sane-backend fail, though libusb is installed
brew install sane-backends
==> Downloading ftp://ftp2.sane-project.org/pub/sane/sane-backends-1.0.22/sane-backends-1.0.22.tar.gz
File already downloaded in /Users/bmix/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/sane-backends/1.0.22 --without-gphoto2 --enable-local-backends --enable-libusb --disable-latex
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking for gcc... /usr/bin/gcc-4.2
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc-4.2... none
checking whether /usr/bin/gcc-4.2 and cc understand -c and -o together... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether /usr/bin/gcc-4.2 needs -traditional... no
checking for sane-config... no
checking for msgfmt... /usr/local/MacGPG2/bin/msgfmt
checking for xgettext... /usr/local/MacGPG2/bin/xgettext
checking for msgmerge... /usr/local/MacGPG2/bin/msgmerge
checking for latex... /usr/texbin/latex
checking for dvips... /usr/texbin/dvips
checking for makeindex... /usr/texbin/makeindex
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether runtime link path should be used... yes
checking linker parameter to set runtime link path...
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking whether byte ordering is bigendian... no
checking for le32toh in machine/endian.h... no
checking for ntohl in arpa/inet.h... yes
checking for swap32 in machine/endian.h... no
checking for bswap_32 in byteswap.h... no
checking for bswap32 in machine/endian.h... no
checking for __byte_swap_long in sys/types.h... no
checking for NXSwapLong in machine/byte_order.h... yes
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in include/_stdint.h (assuming C99 compatible system)
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen in -ldl... yes
checking for dlopen... yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking for sqrt in -lm... yes
checking for jpeg_start_decompress in -ljpeg... yes
checking jconfig.h usability... yes
checking jconfig.h presence... yes
checking for jconfig.h... yes
checking for jpeglib - version >= 61 (6a)... yes
checking for TIFFFdOpen in -ltiff... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking ieee1284.h usability... no
checking ieee1284.h presence... no
checking for ieee1284.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for pthread_create... yes
checking for pthread_kill... yes
checking for pthread_join... yes
checking for pthread_detach... yes
checking for pthread_cancel... yes
checking for pthread_testcancel... yes
checking whether to enable pthread support... yes
checking whether to use pthread instead of fork... yes
configure: WARNING: Group uucp does not exist on this system.
configure: WARNING: Locking feature will be disabled.
checking whether to enable device locking... no
checking for LIBV4L... no
checking for sane_init in -lsane... no
checking for net-snmp-config... /usr/bin/net-snmp-config
checking for snmp_timeout in -lnetsnmp... yes
checking for proper SNMP version... no
configure: WARNING: You need at least net-snmp 5.6, your version is 5.4.2.1
configure: WARNING: *** Warning: net-snmp library disabled, autodetecting network scanners will not be supported.
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking libc.h usability... yes
checking libc.h presence... yes
checking for libc.h... yes
checking sys/dsreq.h usability... no
checking sys/dsreq.h presence... no
checking for sys/dsreq.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sys/scanio.h usability... no
checking sys/scanio.h presence... no
checking for sys/scanio.h... no
checking os2.h usability... no
checking os2.h presence... no
checking for os2.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/io.h usability... no
checking sys/io.h presence... no
checking for sys/io.h... no
checking sys/hw.h usability... no
checking sys/hw.h presence... no
checking for sys/hw.h... no
checking for sys/types.h... (cached) yes
checking linux/ppdev.h usability... no
checking linux/ppdev.h presence... no
checking for linux/ppdev.h... no
checking dev/ppbus/ppi.h usability... no
checking dev/ppbus/ppi.h presence... no
checking for dev/ppbus/ppi.h... no
checking machine/cpufunc.h usability... no
checking machine/cpufunc.h presence... no
checking for machine/cpufunc.h... no
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking be/kernel/OS.h usability... no
checking be/kernel/OS.h presence... no
checking for be/kernel/OS.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking asm/types.h usability... no
checking asm/types.h presence... no
checking for asm/types.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for tiffio.h... (cached) yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for asm/io.h... no
checking resmgr.h usability... no
checking resmgr.h presence... no
checking for resmgr.h... no
checking return type of signal handlers... void
checking for size_t... yes
checking for pid_t... yes
checking for ssize_t... yes
checking for u_char... yes
checking for u_short... yes
checking for u_int... yes
checking for u_long... yes
checking for long long support... yes
checking for socklen_t in <sys/socket.h>... yes
checking for union semun in <sys/sem.h>... yes
checking for struct flock in fcntl.h... yes
checking for Linux ioctl defines... no
checking whether byte ordering is bigendian... (cached) no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for gethostbyaddr... yes
checking for gethostbyaddr... (cached) yes
checking for socket... yes
checking for inet_aton... yes
checking for inet_addr... yes
checking for inet_aton... (cached) yes
checking for inet_ntoa... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for atexit... yes
checking for ioperm... no
checking for i386_set_ioperm... no
checking for mkdir... yes
checking for strftime... yes
checking for strstr... yes
checking for strtod... yes
checking for cfmakeraw... yes
checking for tcsendbreak... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for _portaccess... no
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for poll... yes
checking for setitimer... yes
checking for iopl... no
checking for getenv... yes
checking for isfdtype... no
checking for sigprocmask... yes
checking for snprintf... yes
checking for strcasestr... yes
checking for strdup... yes
checking for strndup... no
checking for strsep... yes
checking for usleep... yes
checking for vsyslog... yes
checking for getopt_long... yes
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking for usb_interrupt_read in -lusb... no
configure: error: USB support requested but required libraries not found.
==> Exit Status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/sane-backends.rb#L16
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: ecc162613d2e103a8785cb05aac95041332a41b4
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 32-bit core
OS X: 10.6.8
Kernel Architecture: i386
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 3.2.6
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/gcc-4.2
CFLAGS: -O3 -march=prescott -mfpmath=sse -w -pipe
CXXFLAGS: -O3 -march=prescott -mfpmath=sse -w -pipe
Error: Failed executing: ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/sane-backends/1.0.22 --without-gphoto2 --enable-local-backends --enable-libusb --disable-latex
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
We saved the configure log, please gist it if you report the issue:
~/Library/Logs/Homebrew/config.log
coca:~ bmix$ brew edit sane-backends
coca:~ bmix$ brew info libusb
libusb 1.0.8
http://www.libusb.org/
/usr/local/Cellar/libusb/1.0.8 (8 files, 292K)
http://github.com/mxcl/homebrew/commits/master/Library/Formula/libusb.rb
coca:~ bmix$ brew info libusb-compat
libusb-compat 0.1.3
http://www.libusb.org/
Depends on: pkg-config, libusb
/usr/local/Cellar/libusb-compat/0.1.3 (10 files, 128K)
http://github.com/mxcl/homebrew/commits/master/Library/Formula/libusb-compat.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment