[MacPorts] #20886: libusbi.h:739: error: syntax error before 'nfds_t' on upgrade from port 'libusb'
MacPorts
noreply at macports.org
Wed Jun 15 06:43:52 PDT 2011
#20886: libusbi.h:739: error: syntax error before 'nfds_t' on upgrade from port
'libusb'
-----------------------------------+----------------------------------------
Reporter: jryan2002de@… | Owner: macports-tickets@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Resolution: | Keywords:
Port: libusb |
-----------------------------------+----------------------------------------
Changes (by gregoire.favre@…):
* status: closed => reopened
* resolution: invalid =>
Comment:
Here's my log :
{{{
version:1
:debug:main Executing org.macports.main (libusb)
:msg:main ---> Fetching libusb
:debug:fetch fetch phase started at Wed Jun 15 15:40:56 CEST 2011
:debug:fetch Executing org.macports.fetch (libusb)
:msg:fetch ---> Verifying checksum(s) for libusb
:debug:checksum checksum phase started at Wed Jun 15 15:40:56 CEST 2011
:debug:checksum Executing org.macports.checksum (libusb)
:info:checksum ---> Checksumming libusb-1.0.8.tar.bz2
:debug:checksum Correct (md5) checksum for libusb-1.0.8.tar.bz2
:debug:checksum Correct (sha1) checksum for libusb-1.0.8.tar.bz2
:debug:checksum Correct (rmd160) checksum for libusb-1.0.8.tar.bz2
:debug:checksum setting option extract.cmd to /usr/bin/bzip2
:msg:checksum ---> Extracting libusb
:debug:extract extract phase started at Wed Jun 15 15:40:56 CEST 2011
:debug:extract Executing org.macports.extract (libusb)
:info:extract ---> Extracting libusb-1.0.8.tar.bz2
:debug:extract setting option extract.args to
'/opt/local/var/macports/distfiles/libusb/libusb-1.0.8.tar.bz2'
:debug:extract Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:extract 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.8.tar.bz2' |
/usr/bin/gnutar --no-same-owner -xf -'
:debug:patch patch phase started at Wed Jun 15 15:40:56 CEST 2011
:debug:patch Executing org.macports.patch (libusb)
:msg:patch ---> Configuring libusb
:debug:patch Using compiler 'Mac OS X gcc 4.2'
:debug:configure configure phase started at Wed Jun 15 15:40:56 CEST 2011
:debug:configure Executing org.macports.configure (libusb)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2
-arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch
x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6'
CXX='/usr/bin/g++-4.2'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/.CC_PRINT_OPTIONS'
F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64'
OBJC='/usr/bin/gcc-4.2' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install
-c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64'
CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
:debug:configure Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.8"
&& ./configure --prefix=/opt/local'
:info:configure checking for a BSD-compatible install... /usr/bin/install
-c
:info:configure checking whether build environment is sane... yes
:info:configure checking for a thread-safe mkdir -p... ./install-sh -c -d
:info:configure checking for gawk... no
:info:configure checking for mawk... no
:info:configure checking for nawk... no
:info:configure checking for awk... awk
:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking for gcc... /usr/bin/gcc-4.2
:info:configure checking whether the C compiler works... yes
:info:configure checking for C compiler default output file name... a.out
:info:configure checking for suffix of executables...
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /usr/bin/gcc-4.2 accepts -g... yes
:info:configure checking for /usr/bin/gcc-4.2 option to accept ISO C89...
none needed
:info:configure checking for style of include used by make... GNU
:info:configure checking dependency style of /usr/bin/gcc-4.2... gcc3
:info:configure checking build system type... i386-apple-darwin10.7.0
:info:configure checking host system type... i386-apple-darwin10.7.0
:info:configure checking for a sed that does not truncate output...
/opt/local/bin/gsed
:info:configure checking for grep that handles long lines and -e...
/usr/bin/grep
:info:configure checking for egrep... /usr/bin/grep -E
:info:configure checking for fgrep... /usr/bin/grep -F
:info:configure checking for ld used by /usr/bin/gcc-4.2...
/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
:info:configure checking if the linker (/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) is GNU ld... no
:info:configure checking for BSD- or MS-compatible name lister (nm)...
/usr/bin/nm
:info:configure checking the name lister (/usr/bin/nm) interface... BSD nm
:info:configure checking whether ln -s works... yes
:info:configure checking the maximum length of command line arguments...
196608
:info:configure checking whether the shell understands some XSI
constructs... yes
:info:configure checking whether the shell understands "+="... yes
:info:configure checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
option to reload object files... -r
:info:configure checking for objdump... no
:info:configure checking how to recognize dependent libraries... pass_all
:info:configure checking for ar... ar
:info:configure checking for strip... strip
:info:configure checking for ranlib... ranlib
:info:configure checking command to parse /usr/bin/nm output from
/usr/bin/gcc-4.2 object... ok
:info:configure checking for dsymutil... dsymutil
:info:configure checking for nmedit... nmedit
:info:configure checking for lipo... lipo
:info:configure checking for otool... otool
:info:configure checking for otool64... no
:info:configure checking for -single_module linker flag... yes
:info:configure checking for -exported_symbols_list linker flag... yes
:info:configure checking how to run the C preprocessor... /usr/bin/gcc-4.2
-E
:info:configure checking for ANSI C header files... yes
:info:configure checking for sys/types.h... yes
:info:configure checking for sys/stat.h... yes
:info:configure checking for stdlib.h... yes
:info:configure checking for string.h... yes
:info:configure checking for memory.h... yes
:info:configure checking for strings.h... yes
:info:configure checking for inttypes.h... yes
:info:configure checking for stdint.h... yes
:info:configure checking for unistd.h... yes
:info:configure checking for dlfcn.h... yes
:info:configure checking for objdir... .libs
:info:configure checking if /usr/bin/gcc-4.2 supports -fno-rtti -fno-
exceptions... no
:info:configure checking for /usr/bin/gcc-4.2 option to produce PIC...
-fno-common -DPIC
:info:configure checking if /usr/bin/gcc-4.2 PIC flag -fno-common -DPIC
works... yes
:info:configure checking if /usr/bin/gcc-4.2 static flag -static works...
no
:info:configure checking if /usr/bin/gcc-4.2 supports -c -o file.o... yes
:info:configure checking if /usr/bin/gcc-4.2 supports -c -o file.o...
(cached) yes
:info:configure checking whether the /usr/bin/gcc-4.2 linker
(/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared
libraries... yes
:info:configure checking dynamic linker characteristics... darwin10.7.0
dyld
:info:configure checking how to hardcode library paths into programs...
immediate
:info:configure checking whether stripping libraries is possible... yes
:info:configure checking if libtool supports shared libraries... yes
:info:configure checking whether to build shared libraries... yes
:info:configure checking whether to build static libraries... yes
:info:configure checking for inline... inline
:info:configure checking whether /usr/bin/gcc-4.2 and cc understand -c and
-o together... yes
:info:configure checking operating system... Darwin/MacOS X
:info:configure checking sys/timerfd.h usability... no
:info:configure checking sys/timerfd.h presence... no
:info:configure checking for sys/timerfd.h... no
:info:configure checking whether TFD_NONBLOCK is declared... no
:info:configure checking whether to use timerfd for timing... no (header
not available)
:info:configure configure: creating ./config.status
:info:configure config.status: creating libusb-1.0.pc
:info:configure config.status: creating Makefile
:info:configure config.status: creating libusb/Makefile
:info:configure config.status: creating examples/Makefile
:info:configure config.status: creating doc/Makefile
:info:configure config.status: creating doc/doxygen.cfg
:info:configure config.status: creating config.h
:info:configure config.status: executing depfiles commands
:info:configure config.status: executing libtool commands
:msg:configure ---> Building libusb
:debug:build build phase started at Wed Jun 15 15:41:02 CEST 2011
:debug:build Executing org.macports.build (libusb)
:debug:build Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:build Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.8"
&& /usr/bin/make -j4 all'
:info:build /usr/bin/make all-recursive
:info:build Making all in libusb
:info:build CC libusb_1_0_la-core.lo
:info:build CC libusb_1_0_la-descriptor.lo
:info:build CC libusb_1_0_la-sync.lo
:info:build CC libusb_1_0_la-io.lo
:info:build In file included from io.c:37:
:info:build libusbi.h:764: error: expected declaration specifiers or '...'
before 'nfds_t'
:info:build In file included from descriptor.c:25:
:info:build libusbi.h:764: error: expected declaration specifiers or '...'
before 'nfds_t'
:info:build In file included from sync.c:26:
:info:build libusbi.h:764: error: expected declaration specifiers or '...'
before 'nfds_t'
:info:build io.c: In function 'handle_events':
:info:build io.c:1780: error: 'nfds_t' undeclared (first use in this
function)
:info:build io.c:1780: error: (Each undeclared identifier is reported only
once
:info:build io.c:1780: error: for each function it appears in.)
:info:build io.c:1780: error: expected ';' before 'nfds'
:info:build io.c:1787: error: 'nfds' undeclared (first use in this
function)
:info:build io.c:1867: error: too many arguments to function
'usbi_backend->handle_events'
:info:build make[2]: *** [libusb_1_0_la-sync.lo] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[2]: *** [libusb_1_0_la-io.lo] Error 1
:info:build In file included from core.c:33:
:info:build libusbi.h:764: error: expected declaration specifiers or '...'
before 'nfds_t'
:info:build make[2]: *** [libusb_1_0_la-descriptor.lo] Error 1
:info:build make[2]: *** [libusb_1_0_la-core.lo] Error 1
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-1.0.8"
&& /usr/bin/make -j4 all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see
log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for libusb):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
:notice:build Log for libusb is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/main.log
}}}
It's my first report on macport so I hope it's correct.
--
Ticket URL: <https://trac.macports.org/ticket/20886#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list