Opened 15 years ago

Last modified 10 years ago

#20886 closed defect

libusbi.h:739: error: syntax error before 'nfds_t' on upgrade from port 'libusb' — at Initial Version

Reported by: jryan2002de@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: libusb

Description

Hello,

I've got the following error when I try to upgrade the port libusb from version 0.1.12_1 to 1.0.2_0. Actually the computer run's under MacOSX 10.5.8 Leopard.

Errormessage:

/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

Greets -jryan

Change History (0)

Note: See TracTickets for help on using tickets.