Thank you for looking into this.  I will closely compare your output with
mine tomorrow.  I do a lot of development on this cygwin installation so I
may have configured something strangely that this lib isn't liking.  I will
let you know what I find.

Cheers,
Dan.


On Mon, Apr 15, 2013 at 4:43 PM, Pete Batard <p...@akeo.ie> wrote:

> On 2013.04.15 17:29, Daniel Goertzen wrote:
>
>> Hello, I am struggling with libusbx on cygwin under Windows 8.
>>
>
> You shouldn't be. I tested it and it works fine (see below).
>
>
>  When I
>> "configure" and "V=1 make" I get the failed build output below.  It
>> looks like a pthread linkage issue and I normally know how to deal with
>> that, but not when it is buried under automake and libtool.  Any tips?
>>
>> details:
>> - libusbx-1.0.15-rc3
>> - Windows 8 (64 bit)
>> - cygwin updated today (15 April 2013)
>>
>
> I have now tested this _exact_ configuration, with a fresh copy of cygwin,
> and didn't see the errors you report.
>
> The only problem I saw was with a permission denied on depcomp during
> conf, which doesn't worry me too much. I'm attaching my cygwin build log
> (sorry for the shitty formatting, but I don't really use this machine for
> development).
>
> By the way, are you using gcc 3 or gcc 4?
> FYI I only tested gcc 4 (v4.5.3).
>
> If you used gcc 4, I would suspect a problem with your configuration.
>
> Also for the record, because cygwin is often problematic, I do test it on
> regular basis, the platform was tested against RC1 (though that was cywgin
> 1.7.15 rather than 1.7.17).
>
> For good measure, I have also upgraded my on Windows 7 x64 (from 1.7.15
> and 1.7.17) and found no issue...
>
>
>  C:\cygwin\home\goertzen\**libusbx-1.0.15-rc3\libusb/**core.c:513:
>> undefined
>> reference to `_imp__pthread_mutex_init'
>> C:\cygwin\home\goertzen\**libusbx-1.0.15-rc3\libusb/**core.c:525:
>> undefined
>> reference to `_imp__pthread_mutex_lock'
>> C:\cygwin\home\goertzen\**libusbx-1.0.15-rc3\libusb/**core.c:527:
>> undefined
>> reference to `_imp__pthread_mutex_unlock'
>>
>
> Are you sure you didn't run into an issue during your install?
> Considering that it's a fresh install, and I haven't been able to
> reproduce it, I would say that there's a fair chance it has to do with your
> environment.
>
> As I am unable to reproduce the issue on any of the cygwin platforms I
> tried, I will proceed with the 1.0.15 release as planned (i.e. *now*). At
> worst, it might be a gcc v3 issue localized to cywgin, which I don't really
> see as a showstopper.
>
> Regards,
>
> /Pete
>
> $ ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> 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... ./configure: line 3763: ./depcomp:
> Permissio
> n denied
> none
> checking build system type... i686-pc-cygwin
> checking host system type... i686-pc-cygwin
> checking how to print strings... printf
> checking for a sed that does not truncate output... /usr/bin/sed
> 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 gcc... /usr/i686-pc-cygwin/bin/ld.exe
> checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
> checking the name lister (/usr/bin/nm -B) interface... BSD nm
> checking whether ln -s works... yes
> 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-cygwin file names to i686-pc-cygwin
> format... fu
> nc_convert_file_noop
> checking how to convert i686-pc-cygwin file names to toolchain format...
> func_co
> nvert_file_noop
> checking for /usr/i686-pc-cygwin/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 /usr/bin/nm -B 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... yes
> 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 (/usr/i686-pc-cygwin/bin/ld.exe) supports
> shared
>  libraries... 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... Cygwin (using Windows backend)
> 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... yes
> checking for sigaction... yes
> 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
> 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
>
> $ make V=1
> make  all-recursive
> make[1]: Entering directory
> `/cygdrive/d/libusbx-1.0.15-rc3/libusbx-1.0.15-rc3'
> Making all in libusb
> make[2]: Entering directory
> `/cygdrive/d/libusbx-1.0.15-rc3/libusbx-1.0.15-rc3/l
> ibusb'
> \
> source='core.c' object='libusb_1_0_la-core.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
>    -s
> td=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
> -Werror-implicit-function-de
> claration -Wno-pointer-sign -Wshadow   -g -O2 -c -o libusb_1_0_la-core.lo
> `test
> -f 'core.c' || echo './'`core.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c core.c  -DDLL_EXPORT -DPIC -o .libs/libusb_1_0_la-core.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c core.c -o libusb_1_0_la-core.o >/dev/null 2>&1
> \
> source='descriptor.c' object='libusb_1_0_la-descriptor.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
>    -s
> td=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
> -Werror-implicit-function-de
> claration -Wno-pointer-sign -Wshadow   -g -O2 -c -o
> libusb_1_0_la-descriptor.lo
> `test -f 'descriptor.c' || echo './'`descriptor.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c descriptor.c  -DDLL_EXPORT -DPIC -o
> .libs/libusb_1_0_la-descrip
> tor.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c descriptor.c -o libusb_1_0_la-descriptor.o >/dev/null 2>&1
> \
> source='io.c' object='libusb_1_0_la-io.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
>    -s
> td=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
> -Werror-implicit-function-de
> claration -Wno-pointer-sign -Wshadow   -g -O2 -c -o libusb_1_0_la-io.lo
> `test -f
>  'io.c' || echo './'`io.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c io.c  -DDLL_EXPORT -DPIC -o .libs/libusb_1_0_la-io.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c io.c -o libusb_1_0_la-io.o >/dev/null 2>&1
> \
> source='sync.c' object='libusb_1_0_la-sync.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
>    -s
> td=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
> -Werror-implicit-function-de
> claration -Wno-pointer-sign -Wshadow   -g -O2 -c -o libusb_1_0_la-sync.lo
> `test
> -f 'sync.c' || echo './'`sync.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c sync.c  -DDLL_EXPORT -DPIC -o .libs/libusb_1_0_la-sync.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c sync.c -o libusb_1_0_la-sync.o >/dev/null 2>&1
> \
> source='os/poll_windows.c' object='libusb_1_0_la-poll_windows.lo'
> libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
>    -s
> td=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
> -Werror-implicit-function-de
> claration -Wno-pointer-sign -Wshadow   -g -O2 -c -o
> libusb_1_0_la-poll_windows.l
> o `test -f 'os/poll_windows.c' || echo './'`os/poll_windows.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c os/poll_windows.c  -DDLL_EXPORT -DPIC -o
> .libs/libusb_1_0_la-po
> ll_windows.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c os/poll_windows.c -o libusb_1_0_la-poll_windows.o
> >/dev/null 2>
> &1
> \
> source='os/windows_usb.c' object='libusb_1_0_la-windows_usb.lo'
> libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
>    -s
> td=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
> -Werror-implicit-function-de
> claration -Wno-pointer-sign -Wshadow   -g -O2 -c -o
> libusb_1_0_la-windows_usb.lo
>  `test -f 'os/windows_usb.c' || echo './'`os/windows_usb.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c os/windows_usb.c  -DDLL_EXPORT -DPIC -o
> .libs/libusb_1_0_la-win
> dows_usb.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c os/windows_usb.c -o libusb_1_0_la-windows_usb.o
> >/dev/null 2>&1
>
> /bin/sh ../libtool    --tag=RC --mode=compile windres  -i libusb-1.0.rc -o
> libus
> b-1.0.lo
> libtool: compile:  windres -i libusb-1.0.rc  -o .libs/libusb-1.0.o
> libtool: compile:  windres -i libusb-1.0.rc -o libusb-1.0.o >/dev/null 2>&1
> \
> source='os/threads_posix.c' object='libusb_1_0_la-threads_posix.lo'
> libtool=yes
> \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
>    -s
> td=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
> -Werror-implicit-function-de
> claration -Wno-pointer-sign -Wshadow   -g -O2 -c -o
> libusb_1_0_la-threads_posix.
> lo `test -f 'os/threads_posix.c' || echo './'`os/threads_posix.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c os/threads_posix.c  -DDLL_EXPORT -DPIC -o
> .libs/libusb_1_0_la-t
> hreads_posix.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow -g -O2 -c os/threads_posix.c -o libusb_1_0_la-threads_posix.o
> >/dev/null
> 2>&1
> /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99 -Wall -Wundef
> -Wunuse
> d -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -W
> shadow    -g -O2 -version-info 1:0:1 -no-undefined -avoid-version
> -Wl,--add-stdc
> all-alias  -o libusb-1.0.la -rpath /usr/local/lib libusb_1_0_la-core.lo
>  libusb_
> 1_0_la-descriptor.lo libusb_1_0_la-io.lo  libusb_1_0_la-sync.lo
> libusb_1_0_la-po
> ll_windows.lo  libusb_1_0_la-windows_usb.lo libusb-1.0.lo
> libusb_1_0_la-threads_
> posix.lo
> libtool: link: gcc -shared  .libs/libusb_1_0_la-core.o
> .libs/libusb_1_0_la-descr
> iptor.o .libs/libusb_1_0_la-io.o .libs/libusb_1_0_la-sync.o
> .libs/libusb_1_0_la-
> poll_windows.o .libs/libusb_1_0_la-windows_usb.o .libs/libusb-1.0.o
> .libs/libusb
> _1_0_la-threads_posix.o    -O2 -Wl,--add-stdcall-alias   -o
> .libs/cygusb-1.0.dll
>  -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
> .libs/libusb-1.0.dl
> l.a
> libtool: link: ar cru .libs/libusb-1.0.a  libusb_1_0_la-core.o
> libusb_1_0_la-des
> criptor.o libusb_1_0_la-io.o libusb_1_0_la-sync.o
> libusb_1_0_la-poll_windows.o l
> ibusb_1_0_la-windows_usb.o libusb-1.0.o libusb_1_0_la-threads_posix.o
> libtool: link: ranlib .libs/libusb-1.0.a
> libtool: link: ( cd ".libs" && rm -f "libusb-1.0.la" && ln -s "../
> libusb-1.0.la"
>  "libusb-1.0.la" )
> make[2]: Leaving directory
> `/cygdrive/d/libusbx-1.0.15-rc3/libusbx-1.0.15-rc3/li
> busb'
> Making all in doc
> make[2]: Entering directory
> `/cygdrive/d/libusbx-1.0.15-rc3/libusbx-1.0.15-rc3/d
> oc'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/cygdrive/d/libusbx-1.0.15-rc3/libusbx-1.0.15-rc3/do
> c'
> make[2]: Entering directory
> `/cygdrive/d/libusbx-1.0.15-rc3/libusbx-1.0.15-rc3'
> make[2]: Leaving directory
> `/cygdrive/d/libusbx-1.0.15-rc3/libusbx-1.0.15-rc3'
> make[1]: Leaving directory
> `/cygdrive/d/libusbx-1.0.15-rc3/libusbx-1.0.15-rc3'
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> libusbx-devel mailing list
> libusbx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusbx-devel
>
>


-- 
*Daniel Goertzen | Senior Software Engineer*
Office: 828.610.4596 | Fax: 828.322.5294 | d...@networkintegritysystems.com
*Network Integrity Systems | We Bring Security To Light™*

1937 Tate Blvd. SE****
Hickory, North Carolina, USA 28602

*N**etwork Integrity Systems is the leader in network infrastructure
security and offers solutions specifically developed for Government and
Private Enterprise.  Our innovative, best-of-breed products include the
INTERCEPTOR™ Optical Network Security System (for US Government) and the
VANGUARD™ Fiber Optic Network Monitoring System (for Private Enterprise and
Non-US Government).  Our solutions ensure unparalleled protection and cost
effectiveness for secure network infrastructures world-wide.  For more
information, visit our website a**t: www.networkintegritysystems.com.*
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to