LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Tilp 2 on x86_64 Arch Linux (https://www.linuxquestions.org/questions/linux-software-2/tilp-2-on-x86_64-arch-linux-858685/)

daniel.sweet 01-25-2011 10:02 PM

Tilp 2 on x86_64 Arch Linux
 
I have been attempting to install Tilp2 on my laptop running Arch Linux. I have the list of dependancies and can get all to install without issues except for 'libticables'. This is my output when I try to install the AUR package.

Code:

../src/.libs/libticables2.so: undefined reference to `usb_debug'
../src/.libs/libticables2.so: undefined reference to `usb_error_type'
../src/.libs/libticables2.so: undefined reference to `usb_error_str'

There are a few Google results that turn up multiple people with the same issues, with no solutions. The few that do have solutions are outdated and filled with broken links. I was wondering if anyone has Tilp2 working currently, have installed it recently, or have a current fix for my problem. Any help would be greatly appreciated.

knudfl 01-27-2011 12:15 PM

Welcome to LQ.

'libticables': A later libusb-0* will do, e.g. libusb-0.1.12 (0.1.3 will fail.)

Please have a look in Debian (Sid) :
It's all included, hopefully the versions will fit together.
http://packages.debian.org/sid/libticables2-1

Also found at the site ( Use the 'Search' ) :
libticalcs libticonv libtifiles2

..

daniel.sweet 01-27-2011 08:05 PM

im not really sure i understand your post. do you think my libusb is too new and i should downgrade? or will the deb pacakge you linked take care of my problem. either way, installing a deb package on arch can be annyoing, so do you know where i can download the source code for the deb package? thanks for your help.

knudfl 01-28-2011 02:23 AM

You didn't mention your version of libusb-0.
Default is usually two installed versions : libusb 0 , libusb 1.


'libticables' uses the old libusb-0, sometimes called "compat".
I upgraded libusb-0 from 0.1.3 to 0.1.12 .
Please read (again) http://packages.debian.org/sid/libticables2-1
The link has it all : 1) Explains everything. 2) And has source code.
→ → libusb-0.1-4 → http://packages.debian.org/sid/libusb-0.1-4
> > Links for libusb-0.1-4 > > [libusb_0.1.12.orig.tar.gz]



"libusb1" :
The later libusb, a different one, usually also installed on most *Linux,
e.g. version 1.0.8 cannot be used with 'libticables'.

( Slackware has only libusb 1 , may be Arch also comes with "1" only.)
..

daniel.sweet 01-28-2011 06:22 PM

Sorry about that I was having trouble understanding what you meant.

Well your fix has gotten me farther than I've ever come before. In fact, after switching to libusb-0.1.12 I got libticables installed and afterwards Tilp. But now, when I try to start Tilp I get this error:

Code:

tilp: symbol lookup error: /usr/lib/libticables2.so.3: undefined symbol: usb_debug
Any idea what it could be? usb_debug was one of the errors I got before when trying to install libticables so I'm sure it's related to this new libusb. Thanks again for all your help.

knudfl 01-29-2011 12:04 AM

Yes, I had the same error it seems. ( Didn't install Tilp2 until now.)

cd libticables2-1.2.0/
./configure --disable-debug
make clean && make
# make install
Then a new libticables2* is created, and 'tilp' can open the GUI.

..

daniel.sweet 01-29-2011 01:55 PM

I tried your fix and everything seemed to be working until I tried to start Tilp and received the same error as before. Looking back at the output I noticed this:

Code:

configure: WARNING: unrecognized options: --disable--debug
I am using libticables2-1.3.1 could this be an issue?

knudfl 01-29-2011 03:07 PM

The Debian link was meant to show, which versions, that will fit together.
And work.
The option "--disable--debug" is not included in "./configure --help"
for libticables2-1.2.0. It was done by trying, and it worked.

""configure: WARNING: unrecognized options: --disable--debug""
This means, it is not being used by version 1.3.1 .

1.2.0 : http://ftp.de.debian.org/debian/pool....0.orig.tar.gz
> > libticables_1.2.0.orig.tar.gz

.

daniel.sweet 01-29-2011 03:44 PM

And we return to the original error:

Code:

../src/.libs/libticables2.so: undefined reference to `usb_debug'
../src/.libs/libticables2.so: undefined reference to `usb_error_type'
../src/.libs/libticables2.so: undefined reference to `usb_error_str'

Something must have went wrong with the installation of libusb-0.1.12 Is it possible that 0.1.3 didn't get removed or is somehow still there next to 0.1.12? The only thing that puzzles me is that libticables2-1.2.0 successfully installed. Any ideas or commands I should run to give you some insight?

'whereis libusb' returns:

Code:

libusb: /usr/lib/libusb.a /usr/lib/libusb.so /usr/local/lib/libusb.a /usr/local/lib/libusb.la /usr/local/lib/libusb.so
and ' ls -l /usr/local/lib/libusb*' returns:

Code:

lrwxrwxrwx 1 root root    19 Jan 29 16:31 /usr/local/lib/libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
-rwxr-xr-x 1 root root  87921 Jan 29 16:31 /usr/local/lib/libusb-0.1.so.4.4.4
-rw-r--r-- 1 root root 129662 Jan 29 16:31 /usr/local/lib/libusb.a
-rwxr-xr-x 1 root root    795 Jan 29 16:31 /usr/local/lib/libusb.la
lrwxrwxrwx 1 root root    21 Jan 29 16:31 /usr/local/lib/libusbpp-0.1.so.4 -> libusbpp-0.1.so.4.4.4
-rwxr-xr-x 1 root root 213872 Jan 29 16:31 /usr/local/lib/libusbpp-0.1.so.4.4.4
-rw-r--r-- 1 root root 420312 Jan 29 16:31 /usr/local/lib/libusbpp.a
-rwxr-xr-x 1 root root    834 Jan 29 16:31 /usr/local/lib/libusbpp.la
lrwxrwxrwx 1 root root    21 Jan 29 16:31 /usr/local/lib/libusbpp.so -> libusbpp-0.1.so.4.4.4
lrwxrwxrwx 1 root root    19 Jan 29 16:31 /usr/local/lib/libusb.so -> libusb-0.1.so.4.4.4

I don't know if that will help but just in case.

knudfl 01-29-2011 11:52 PM

The two version of libusb should both be installed to --prefix=/usr.

The libusb, you have in /usr/ is probably version 1.0.x, and as /usr/lib/
is first in the search path : It will be used.


If you later on want to develop with libusb 1 : change the link libusb.so
to point to libusb-1.0.so.0.0.0 .
But for now it is libusb.so -> libusb-0.1.so.4.4.4 only.
..

daniel.sweet 01-30-2011 01:55 PM

So what should I do in order to get Tilp working. After switching to libticables-1.2.0 I cannot complete the install because I get the original 'undefined reference' error.

knudfl 01-30-2011 03:12 PM

If you didn't install libusb-0.1.12 to /usr/ :
Then you are still compiling libticables with the wrong libusb.
→ post #10.

Reason : 'libusb 0' = the version required for compiling must overwrite
libusb.so and usb.h to insure no mix-up with 'libusb 1' files.


Alternatively tell which version of glibc, you have :
And I will find a binary libticables for Arch 64bits, that works.
Or compile it, + test it with Tilp2. And upload it to Google Docs.

..

daniel.sweet 02-01-2011 05:58 PM

I reinstalled libusb to /usr/, however, I still got the same error.

I am not sure which is the version number for glibc so here is the output of 'ls -al /lib/libc*'

Code:

-rwxr-xr-x 1 root root 1412400 Jan 16 06:27 /lib/libc-2.12.2.so
lrwxrwxrwx 1 root root      11 Dec 22 17:20 /lib/libcap.so -> libcap.so.2
lrwxrwxrwx 1 root root      14 Dec 22 17:20 /lib/libcap.so.2 -> libcap.so.2.19
-rwxr-xr-x 1 root root  16584 Dec 22 17:20 /lib/libcap.so.2.19
-rwxr-xr-x 1 root root  190744 Jan 16 06:27 /lib/libcidn-2.12.2.so
lrwxrwxrwx 1 root root      17 Jan 16 06:27 /lib/libcidn.so.1 -> libcidn-2.12.2.so
lrwxrwxrwx 1 root root      17 Dec 25 05:47 /lib/libcom_err.so.2 -> libcom_err.so.2.1
-rwxr-xr-x 1 root root  11872 Dec 25 05:47 /lib/libcom_err.so.2.1
-rwxr-xr-x 1 root root  35008 Jan 16 06:27 /lib/libcrypt-2.12.2.so
lrwxrwxrwx 1 root root      22 Dec 23 17:06 /lib/libcryptsetup.so -> libcryptsetup.so.1.1.0
lrwxrwxrwx 1 root root      22 Dec 23 17:06 /lib/libcryptsetup.so.1 -> libcryptsetup.so.1.1.0
-rwxr-xr-x 1 root root  91400 Dec 23 17:06 /lib/libcryptsetup.so.1.1.0
lrwxrwxrwx 1 root root      18 Jan 16 06:27 /lib/libcrypt.so.1 -> libcrypt-2.12.2.so
lrwxrwxrwx 1 root root      14 Jan 16 06:27 /lib/libc.so.6 -> libc-2.12.2.so


knudfl 02-02-2011 01:56 PM

Installed Chakra-0.3.2 (Arch Linux), 64bits today.

Tilp2-1.1.2 :
./configure \
--prefix=/usr/ --with-qt-dir=/opt/ --with-qt-includes=/opt/qt/include/ \
--with-qt-libraries=/opt/qt/lib/ --without-kde

The package tilp2-1.12-pkg.x86_64.tgz
https://docs.google.com/leaf?id=0B7S...ut=list&num=50

And : libticables2-1.2.0-x86_64.tgz
https://docs.google.com/leaf?id=0B7S...ut=list&num=50

The packages can be installed with the Slackware 'installpkg' script :
# sh installpkg <package>
https://docs.google.com/leaf?id=0B7S...ut=list&num=50

( I don't know, how to build an 'Arch' package.)

..


All times are GMT -5. The time now is 03:21 AM.