libusb on Leopard with Macports 1.8.0
Christopher Vance
cjsvance at gmail.com
Sun Sep 6 14:36:02 PDT 2009
$ sudo port -d install libusb 2>&1 | tee /tmp/libusb
DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port libusb.
DEBUG: Requested variant i386 is not provided by port libusb.
DEBUG: Requested variant macosx is not provided by port libusb.
DEBUG: Attempting ln -sf
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb/work
---> Computing dependencies for libusb
DEBUG: Executing org.macports.main (libusb)
---> Fetching libusb
DEBUG: Executing org.macports.fetch (libusb)
---> Verifying checksum(s) for libusb
DEBUG: Executing org.macports.checksum (libusb)
---> Checksumming libusb-1.0.3.tar.bz2
DEBUG: Correct (md5) checksum for libusb-1.0.3.tar.bz2
DEBUG: Correct (sha1) checksum for libusb-1.0.3.tar.bz2
DEBUG: Correct (rmd160) checksum for libusb-1.0.3.tar.bz2
DEBUG: setting option extract.cmd to /usr/bin/bzip2
---> Extracting libusb
DEBUG: Executing org.macports.extract (libusb)
---> Extracting libusb-1.0.3.tar.bz2
DEBUG: setting option extract.args to
/opt/local/var/macports/distfiles/libusb/libusb-1.0.3.tar.bz2
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work"
&& /usr/bin/bzip2 -dc
/opt/local/var/macports/distfiles/libusb/libusb-1.0.3.tar.bz2 |
/usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (libusb)
---> Applying patches to libusb
---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb/files/patch-libusb__io.c
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.3"
&& /usr/bin/patch -p0'
patching file libusb/io.c
---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb/files/patch-libusb__os__darwin_usb.c
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.3"
&& /usr/bin/patch -p0'
patching file libusb/os/darwin_usb.c
---> Configuring libusb
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (libusb)
DEBUG: Environment: CFLAGS='-O2 -arch i386'
CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386'
MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2
-m32' LDFLAGS='-L/opt/local/lib' OBJC='/usr/bin/gcc-4.0' FCFLAGS='-O2
-m32' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch i386'
FFLAGS='-O2 -m32' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.3"
&& ./configure --prefix=/opt/local'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.0 accepts -g... yes
checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc-4.0... gcc3
checking build system type... i386-apple-darwin9.8.0
checking host system type... i386-apple-darwin9.8.0
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/gcc-4.0...
/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to
reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from /usr/bin/gcc-4.0
object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... /usr/bin/gcc-4.0 -E
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 for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/gcc-4.0 supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc-4.0 option to produce PIC... -fno-common -DPIC
checking if /usr/bin/gcc-4.0 PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/gcc-4.0 static flag -static works... no
checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc-4.0 linker
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
libraries... yes
checking dynamic linker characteristics... darwin9.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for inline... inline
checking whether /usr/bin/gcc-4.0 and cc understand -c and -o together... yes
checking operating system... Darwin/MacOS X
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating examples/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
---> Building libusb
DEBUG: Executing org.macports.build (libusb)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.3"
&& /usr/bin/make -j1 all'
/usr/bin/make all-recursive
Making all in libusb
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0
-DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -fvisibility=hidden
-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow
-pthread -O2 -arch i386 -MT libusb_1_0_la-core.lo -MD -MP -MF
.deps/libusb_1_0_la-core.Tpo -c -o libusb_1_0_la-core.lo `test -f
'core.c' || echo './'`core.c
libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..
-I/opt/local/include -fvisibility=hidden -std=gnu99 -Wall -Wundef
-Wunused -Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -pthread -O2 -arch i386 -MT
libusb_1_0_la-core.lo -MD -MP -MF .deps/libusb_1_0_la-core.Tpo -c
core.c -fno-common -DPIC -o .libs/libusb_1_0_la-core.o
In file included from core.c:32:
libusb.h:1115: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:125: warning: shadowed declaration is here
libusb.h:1169: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:125: warning: shadowed declaration is here
In file included from core.c:33:
libusbi.h:739: error: syntax error before 'nfds_t'
libusbi.h:739: warning: function declaration isn't a prototype
make[2]: *** [libusb_1_0_la-core.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.3"
&& /usr/bin/make -j1 all " returned error 2
Command output: /usr/bin/make all-recursive
Making all in libusb
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0
-DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -fvisibility=hidden
-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow
-pthread -O2 -arch i386 -MT libusb_1_0_la-core.lo -MD -MP -MF
.deps/libusb_1_0_la-core.Tpo -c -o libusb_1_0_la-core.lo `test -f
'core.c' || echo './'`core.c
libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..
-I/opt/local/include -fvisibility=hidden -std=gnu99 -Wall -Wundef
-Wunused -Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -pthread -O2 -arch i386 -MT
libusb_1_0_la-core.lo -MD -MP -MF .deps/libusb_1_0_la-core.Tpo -c
core.c -fno-common -DPIC -o .libs/libusb_1_0_la-core.o
In file included from core.c:32:
libusb.h:1115: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:125: warning: shadowed declaration is here
libusb.h:1169: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:125: warning: shadowed declaration is here
In file included from core.c:33:
libusbi.h:739: error: syntax error before 'nfds_t'
libusbi.h:739: warning: function declaration isn't a prototype
make[2]: *** [libusb_1_0_la-core.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
DEBUG: Backtrace: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.3"
&& /usr/bin/make -j1 all " returned error 2
Command output: /usr/bin/make all-recursive
Making all in libusb
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0
-DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -fvisibility=hidden
-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow
-pthread -O2 -arch i386 -MT libusb_1_0_la-core.lo -MD -MP -MF
.deps/libusb_1_0_la-core.Tpo -c -o libusb_1_0_la-core.lo `test -f
'core.c' || echo './'`core.c
libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..
-I/opt/local/include -fvisibility=hidden -std=gnu99 -Wall -Wundef
-Wunused -Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -pthread -O2 -arch i386 -MT
libusb_1_0_la-core.lo -MD -MP -MF .deps/libusb_1_0_la-core.Tpo -c
core.c -fno-common -DPIC -o .libs/libusb_1_0_la-core.o
In file included from core.c:32:
libusb.h:1115: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:125: warning: shadowed declaration is here
libusb.h:1169: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:125: warning: shadowed declaration is here
In file included from core.c:33:
libusbi.h:739: error: syntax error before 'nfds_t'
libusbi.h:739: warning: function declaration isn't a prototype
make[2]: *** [libusb_1_0_la-core.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for libusb):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: Status 1 encountered during processing.
$
--
Christopher Vance
More information about the macports-users
mailing list