On Mon, Jul 1, 2013 at 7:14 PM, Hans de Goede <hdego...@redhat.com> wrote: > You can download the 1.0.16-rc2 tarbal here: > http://downloads.sourceforge.net/libusbx/libusbx-1.0.16-rc2.tar.bz2 > > Please give it a thorough testing, and report any issues you > find.
It seems to fail to build under MinGW/MSys (MinGW.org) and MinGW-w64/MSys (. libusbx git is okay using autogen.sh. /c/work/libusbx/libusbx-1.0.16-rc2 $ ./configure --enable-examples-build --enable-tests-build checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports nested variables... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... c:/mingw/mingw32/bin/ld.exe checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm checking the name lister (/mingw/bin/nm) interface... BSD nm checking whether ln -s works... no, using cp -pR checking the maximum length of command line arguments... 8192 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format... func_convert_file_msys_to_w32 checking how to convert i686-pc-mingw32 file names to toolchain format... func_c onvert_file_msys_to_w32 checking for c:/mingw/mingw32/bin/ld.exe option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... file_magic ^x86 archive import| ^x86 DLL checking for dlltool... dlltool checking how to associate runtime and link libraries... func_cygming_dll_for_imp lib checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /mingw/bin/nm output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -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... no checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (c:/mingw/mingw32/bin/ld.exe) supports shared li braries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... Win32 ld.exe 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 windres... windres checking for inline... inline checking whether gcc and cc understand -c and -o together... yes checking operating system... Windows checking sys/timerfd.h usability... no checking sys/timerfd.h presence... no checking for sys/timerfd.h... no checking whether TFD_NONBLOCK is declared... no checking whether to use timerfd for timing... no (header not available) checking for struct timespec... no checking for sigaction... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for gettimeofday... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking that generated files are newer than configure... done 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 tests/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 /c/work/libusbx/libusbx-1.0.16-rc2 $ make make all-recursive make[1]: Entering directory `/c/work/libusbx/libusbx-1.0.16-rc2' Making all in libusb make[2]: Entering directory `/c/work/libusbx/libusbx-1.0.16-rc2/libusb' CC libusb_1_0_la-core.lo In file included from core.c:41:0: libusbi.h:229:2: error: unknown type name 'usbi_mutex_t' libusbi.h:234:2: error: unknown type name 'usbi_mutex_t' libusbi.h:238:2: error: unknown type name 'usbi_mutex_t' libusbi.h:246:2: error: unknown type name 'usbi_mutex_t' libusbi.h:250:2: error: unknown type name 'usbi_mutex_t' libusbi.h:255:2: error: unknown type name 'usbi_mutex_t' libusbi.h:263:2: error: unknown type name 'usbi_mutex_t' libusbi.h:270:2: error: unknown type name 'usbi_mutex_t' libusbi.h:271:2: error: unknown type name 'usbi_cond_t' libusbi.h:291:2: error: unknown type name 'usbi_mutex_t' libusbi.h:320:2: error: unknown type name 'usbi_mutex_t' libusbi.h:367:2: error: unknown type name 'usbi_mutex_t' libusbi.h:953:23: error: unknown type name 'POLL_NFDS_TYPE' libusbi.h:963:41: warning: 'struct timespec' declared inside parameter list [ena bled by default] libusbi.h:963:41: warning: its scope is only this definition or declaration, whi ch is probably not what you want [enabled by default] libusbi.h:1002:1: error: unknown type name 'usbi_mutex_static_t' core.c:55:2: error: #error "Unsupported OS" core.c:63:1: error: unknown type name 'usbi_mutex_static_t' core.c:63:51: error: 'USBI_MUTEX_INITIALIZER' undeclared here (not in a function ) core.c:66:1: error: unknown type name 'usbi_mutex_static_t' core.c: In function 'usbi_alloc_device': core.c:511:2: error: implicit declaration of function 'usbi_mutex_init' [-Werror =implicit-function-declaration] core.c: In function 'usbi_connect_device': core.c:539:2: error: implicit declaration of function 'usbi_mutex_lock' [-Werror =implicit-function-declaration] core.c:541:2: error: implicit declaration of function 'usbi_mutex_unlock' [-Werr or=implicit-function-declaration] core.c:547:3: error: implicit declaration of function 'usbi_write' [-Werror=impl icit-function-declaration] core.c: At top level: core.c:646:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_device_list' core.c:713:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_free_device_list' core.c:734:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_bus_number' core.c:744:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_port_number' core.c:760:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_port_numbers' core.c:786:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_port_path' core.c:805:1: error: unknown type name 'DEFAULT_VISIBILITY' core.c:806:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '* ' token core.c:816:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_device_address' core.c:827:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_device_speed' core.c:873:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_max_packet_size' core.c:922:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_get_max_iso_packet_size' core.c:958:1: error: unknown type name 'DEFAULT_VISIBILITY' core.c:959:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '* ' token core.c:972:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l ibusb_unref_device' core.c: In function 'usbi_fd_notification': core.c:1032:2: error: implicit declaration of function 'usbi_read' [-Werror=impl icit-function-declaration] core.c: At top level: core.c:1064:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_open' core.c:1133:1: error: unknown type name 'DEFAULT_VISIBILITY' core.c:1134:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' *' token core.c: In function 'do_close': core.c:1223:2: error: implicit declaration of function 'usbi_mutex_destroy' [-We rror=implicit-function-declaration] core.c: At top level: core.c:1238:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_close' core.c:1299:1: error: unknown type name 'DEFAULT_VISIBILITY' core.c:1300:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' *' token core.c:1325:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_get_configuration' core.c:1402:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_set_configuration' core.c:1437:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_claim_interface' core.c:1481:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_release_interface' core.c:1526:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_set_interface_alt_setting' core.c:1566:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_clear_halt' core.c:1595:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_reset_device' core.c:1621:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_kernel_driver_active' core.c:1656:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_detach_kernel_driver' core.c:1690:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_attach_kernel_driver' core.c:1726:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_set_auto_detach_kernel_driver' core.c:1761:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_set_debug' core.c:1781:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_init' core.c:1893:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_exit' core.c:1953:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' libusb_has_capability' core.c: In function 'usbi_log_v': core.c:2075:2: error: implicit declaration of function 'usbi_gettimeofday' [-Wer ror=implicit-function-declaration] core.c:2111:4: error: implicit declaration of function 'usbi_get_tid' [-Werror=i mplicit-function-declaration] core.c: At top level: core.c:2161:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before ' const' core.c:2216:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c onst' core.c:62:12: warning: 'default_context_refcnt' defined but not used [-Wunused-v ariable] core.c:63:28: warning: 'default_context_lock' defined but not used [-Wunused-var iable] core.c:448:32: warning: 'discovered_devs_alloc' defined but not used [-Wunused-f unction] core.c:489:13: warning: 'discovered_devs_free' defined but not used [-Wunused-fu nction] core.c:832:49: warning: 'find_endpoint' defined but not used [-Wunused-function] core.c:1169:13: warning: 'do_close' defined but not used [-Wunused-function] cc1.exe: some warnings being treated as errors make[2]: *** [libusb_1_0_la-core.lo] Error 1 make[2]: Leaving directory `/c/work/libusbx/libusbx-1.0.16-rc2/libusb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/c/work/libusbx/libusbx-1.0.16-rc2' make: *** [all] Error 2 -- Xiaofan ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel