LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-25-2011, 10:02 PM   #1
daniel.sweet
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
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.
 
Old 01-27-2011, 12:15 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

..
 
Old 01-27-2011, 08:05 PM   #3
daniel.sweet
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 01-28-2011, 02:23 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.)
..

Last edited by knudfl; 01-28-2011 at 03:03 AM.
 
Old 01-28-2011, 06:22 PM   #5
daniel.sweet
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 01-29-2011, 12:04 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

..

Last edited by knudfl; 01-29-2011 at 12:09 AM.
 
Old 01-29-2011, 01:55 PM   #7
daniel.sweet
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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?
 
Old 01-29-2011, 03:07 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

.
 
Old 01-29-2011, 03:44 PM   #9
daniel.sweet
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 01-29-2011, 11:52 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
..
 
Old 01-30-2011, 01:55 PM   #11
daniel.sweet
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 01-30-2011, 03:12 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

..
 
Old 02-01-2011, 05:58 PM   #13
daniel.sweet
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 02-02-2011, 01:56 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.)

..

Last edited by knudfl; 02-02-2011 at 01:59 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installed ARCH x86_64; no flashplugin? linus72 Arch 8 06-28-2010 09:16 AM
[SOLVED] arch - x86 or x86_64? Gerard Lally Linux - Kernel 2 04-29-2010 07:00 PM
ATI Proprietary Driver (Legacy for X1300) Install Problem (Arch Linux x86_64) rotund Linux - Hardware 3 08-25-2009 03:23 AM
Strange arch string 'x86_64-unknown-linux-gnu' on Arch64 samwise17 Arch 2 07-25-2008 09:49 PM
Can't get kernel to compile as x86_64 arch... Electrode Linux - Software 22 12-18-2003 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration