Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438534 - sci-libs/libticables2-1.3.3 with dev-libs/libusb-compat - ../src/.libs/libticables2.so: undefined reference to `usb_error_type'
Summary: sci-libs/libticables2-1.3.3 with dev-libs/libusb-compat - ../src/.libs/libtic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-16 02:44 UTC by Samuel Bauer
Modified: 2013-01-24 07:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (libticables2-1.3.3-build.log,31.64 KB, text/plain)
2012-10-16 02:44 UTC, Samuel Bauer
Details
build log (build.log,30.60 KB, text/plain)
2013-01-12 03:32 UTC, Micah Shennum
Details
environment (environment,74.21 KB, text/plain)
2013-01-12 03:33 UTC, Micah Shennum
Details
emerge --info =sci-libs/libticables2-1.3.3 (emerge.info,18.65 KB, text/plain)
2013-01-12 03:34 UTC, Micah Shennum
Details
libticables2-1.3.3.ebuild.patch (libticables2-1.3.3.ebuild.patch,772 bytes, patch)
2013-01-12 11:35 UTC, Samuel Bauer
Details | Diff
libticables2-1.3.3.ebuild.patch (libticables2-1.3.3.ebuild.patch,1.11 KB, patch)
2013-01-23 19:18 UTC, Samuel Bauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2012-10-16 02:44:36 UTC
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)
Comment 1 Micah Shennum 2013-01-12 03:31:48 UTC
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
Comment 2 Micah Shennum 2013-01-12 03:32:34 UTC
Created attachment 335278 [details]
build log
Comment 3 Micah Shennum 2013-01-12 03:33:05 UTC
Created attachment 335280 [details]
environment
Comment 4 Micah Shennum 2013-01-12 03:34:47 UTC
Created attachment 335282 [details]
emerge --info =sci-libs/libticables2-1.3.3
Comment 5 Samuel Bauer 2013-01-12 11:35:09 UTC
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.
Comment 6 Micah Shennum 2013-01-12 17:23:47 UTC
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.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2013-01-23 11:48:10 UTC
+  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
+
Comment 8 Samuel Bauer 2013-01-23 19:18:01 UTC
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
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2013-01-23 20:11:28 UTC
(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?
Comment 10 Samuel Bauer 2013-01-24 06:22:53 UTC
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.
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2013-01-24 07:39:58 UTC
+*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
+