On Thu, Nov 21, 2013 at 3:41 AM, Erik van Pienbroek <erik@vanpienbroek.nl> wrote:
Richard Shaw schreef op wo 20-11-2013 om 22:01 [-0600]:
> I had tried a few combinations of libtoolize but hadn't tried --force,
> but no dice, same error...
>
>
> /bin/sh ../libtool  --tag=CC   --mode=link x86_64-w64-mingw32-gcc
> -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused
> -Wstrict-prototypes -Werror-implicit-function-declaration
> -Wno-pointer-sign -Wshadow
> -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libusb-1.0   -O2 -g
> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> --param=ssp-buffer-size=4 -version-info 8:4:4 -release 0.1  -o
> libusb.la -rpath /usr/x86_64-w64-mingw32/sys-root/mingw/lib
> libusb_la-core.lo -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib
> -lusb-1.0
> libtool: link: warning: undefined symbols not allowed in
> x86_64-w64-mingw32 shared libraries

I just took a quick look at the libusb-compat source code and found out
that something is missing from the libusb/Makefile.am. Could you try
this patch:

--- libusb/Makefile.am
+++ libusb/Makefile.am
@@ -5,5 +5,5 @@ libusb_la_SOURCES = core.c usbi.h
 libusb_la_CFLAGS = -fvisibility=hidden $(AM_CFLAGS)
$(LIBUSB_1_0_CFLAGS)
 libusb_la_LIBADD = $(LIBUSB_1_0_LIBS)
 libusb_la_LDFLAGS = -version-info $(LT_MAJOR):$(LT_REVISION):$(LT_AGE)
\
-       -release 0.1
+       -release 0.1 -no-undefined

After applying it, you'd have to re-run libtoolize,
autoreconf, ./configure and make.

THANK YOU THANK YOU

That got it to compile, I just hope that the symbols aren't actually undefined! It's nice it builds but I wan it to work too! :) 

Thanks,
Richard