Created attachment 326674 [details] build.log Compiling libticables2 doesn't work with libusb-compat. (See attached build.log) Though it works fine with libusb:0, I preferred to test experimental support for libusb-1 (as mentionned in comments in the ebuild). Applying what's suggested in those comments worked fine for me (no compile problem, but I can't test connection to any real Ti calculator)
trying to emerge sci-calculators/tilp2, Calculating dependencies ... done! [ebuild N ] sci-libs/libticables2-1.3.3 USE="nls usb -doc -static-libs" 0 kB [ebuild N ] sci-libs/libtifiles2-1.1.5 USE="nls -doc -static-libs" 0 kB [ebuild N ] sci-libs/libticalcs2-1.1.7 USE="nls -doc -static-libs" 513 kB [ebuild N ] sci-calculators/tilp2-1.16-r1 USE="nls threads -xinerama" 2,772 kB I got the same error message: make[2]: Entering directory `/var/tmp/portage/sci-libs/libticables2-1.3.3/work/libticables2-1.3.3/tests' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../src -march=native -O2 -pipe -D__LINUX__ -fvisibility=hidden -c test_ticables_2.c /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D__LINUX__ -fvisibility=hidden -Wl,-O1 -Wl,--as-needed -o test_ticables_2 test_ticables_2.o ../src/libticables2.la libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D__LINUX__ -fvisibility=hidden -Wl,-O1 -Wl,--as-needed -o .libs/test_ticables_2 test_ticables_2.o ../src/.libs/libticables2.so ../src/.libs/libticables2.so: undefined reference to `usb_error_type' ../src/.libs/libticables2.so: undefined reference to `usb_debug' ../src/.libs/libticables2.so: undefined reference to `usb_error_str' collect2: ld returned 1 exit status make[2]: *** [test_ticables_2] Error 1 make[2]: Leaving directory `/var/tmp/portage/sci-libs/libticables2-1.3.3/work/libticables2-1.3.3/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sci-libs/libticables2-1.3.3/work/libticables2-1.3.3' make: *** [all] Error 2 * ERROR: sci-libs/libticables2-1.3.3 failed (compile phase): * emake failed
Created attachment 335278 [details] build log
Created attachment 335280 [details] environment
Created attachment 335282 [details] emerge --info =sci-libs/libticables2-1.3.3
Created attachment 335308 [details, diff] libticables2-1.3.3.ebuild.patch As said before, just uncomment what's about libusb-1 in the ebuild fixes the problem.
Thank you, that and a little finagling got it installed and linking to my calculator. The patch build but tipl2 could not find my TI89 (over usb cable) I installed dev-libs/libusb and removed the --disable-libusb line, after which everything worked. My main reason for comments &etc is that the bug is still UNCONFIRMED.
+ 23 Jan 2013; Justin Lecher <jlec@gentoo.org> libticables2-1.3.3.ebuild, + metadata.xml: + As I can't find any bug reports in the net, I am following user's suggestion + to use libusb:2, #438534 +
Created attachment 336624 [details, diff] libticables2-1.3.3.ebuild.patch As mentionned by jimtahu in comment #6 the ebuild patch should be replaced. I'll soon be able to test connecting to physical device, if it can help to confirm. P.S.: jlec metadata.xml should refer to libusb:1 just for better cosmetics
(In reply to comment #8) > Created attachment 336624 [details, diff] [details, diff] > libticables2-1.3.3.ebuild.patch > > As mentionned by jimtahu in comment #6 the ebuild patch should be replaced. > > I'll soon be able to test connecting to physical device, if it can help to > confirm. > > P.S.: jlec metadata.xml should refer to libusb:1 just for better cosmetics So do you build and link against libusb 0 or 1?
I build using and linking against libusb:1. In comment #7 you added lines to metadata.xml, but there's a typo (libusb:2) Sorry if my last comment wasn't easy enough to understand.
+*libticables2-1.3.3-r1 (24 Jan 2013) + + 24 Jan 2013; Justin Lecher <jlec@gentoo.org> -libticables2-1.3.3.ebuild, + +libticables2-1.3.3-r1.ebuild: + We need enable-libusb and enable-libusb10 for usb support; debugging support + added +