Hi, I'm trying to compile OpenOCD-0.7.0 to use the USBprog 4.0 interface on Mac-OS-X
I've installed libusb-1.0 and compiling for a different interace (an FT2232-based OpenOCD-USB) went OK (after fixing usb.h). However, if I try to compile after ./configure --enable-usbprog compilation ends with: Making all in drivers /bin/sh ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../src -I../../../src -I../../../src/helper -DPKGDATADIR=\"/usr/local/share/openocd\" -DPKGLIBDIR=\"/usr/local/lib/openocd\" -I../../../jimtcl -I../../../jimtcl -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT usb_common.lo -MD -MP -MF .deps/usb_common.Tpo -c -o usb_common.lo usb_common.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../src -I../../../src -I../../../src/helper -DPKGDATADIR=\"/usr/local/share/openocd\" -DPKGLIBDIR=\"/usr/local/lib/openocd\" -I../../../jimtcl -I../../../jimtcl -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT usb_common.lo -MD -MP -MF .deps/usb_common.Tpo -c usb_common.c -o usb_common.o cc1: warnings being treated as errors In file included from usb_common.c:23: usb_common.h:26: warning: 'struct usb_dev_handle' declared inside parameter list usb_common.h:26: warning: its scope is only this definition or declaration, which is probably not what you want usb_common.c:27: warning: 'struct usb_device' declared inside parameter list usb_common.c: In function 'jtag_usb_match': usb_common.c:30: error: dereferencing pointer to incomplete type usb_common.c:31: error: dereferencing pointer to incomplete type usb_common.c: At top level: usb_common.c:38: warning: 'struct usb_dev_handle' declared inside parameter list usb_common.c:39: error: conflicting types for 'jtag_usb_open' usb_common.h:26: error: previous declaration of 'jtag_usb_open' was here usb_common.c: In function 'jtag_usb_open': usb_common.c:40: warning: implicit declaration of function 'usb_find_busses' usb_common.c:41: warning: implicit declaration of function 'usb_find_devices' usb_common.c:43: warning: implicit declaration of function 'usb_get_busses' usb_common.c:43: warning: initialization makes pointer from integer without a cast usb_common.c:44: error: dereferencing pointer to incomplete type usb_common.c:45: error: dereferencing pointer to incomplete type usb_common.c:45: error: 'struct usb_device' declared in 'for' loop initial declaration usb_common.c:45: error: dereferencing pointer to incomplete type usb_common.c:46: warning: passing argument 1 of 'jtag_usb_match' from incompatible pointer type usb_common.c:49: warning: implicit declaration of function 'usb_open' usb_common.c:49: warning: assignment makes pointer from integer without a cast make[6]: *** [usb_common.lo] Error 1 make[5]: *** [all-recursive] Error 1 make[4]: *** [all] Error 2 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 colin ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel