Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-14-2012, 02:58 PM
|
#1
|
|
Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,369
|
multilib mess
I'm coming to the conclusion linux lacks in the multilib area, because I can't specify where things are too well. Here's an example:
Quote:
|
(kicad:15482): Gtk-WARNING **: /usr/lib64/gtk-2.0/2.10.0/engines/libxfce.so: wrong ELF class: ELFCLASS64
|
A check revealed I have the library on board
Quote:
bash-4.1$ ls /usr/lib64/gtk-2.0/2.10.0/engines/
libpixmap.la libpixmap.so libsvg.la libsvg.so libxfce.la libxfce.so
bash-4.1$ ls /usr/lib/gtk-2.0/2.10.0/engines/
libpixmap.la libpixmap.so libxfce.la libxfce.so
bash-4.1$ file /usr/lib64/gtk-2.0/2.10.0/engines/libxfce.so
/usr/lib64/gtk-2.0/2.10.0/engines/libxfce.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
bash-4.1$ file /usr/lib/gtk-2.0/2.10.0/engines/libxfce.so
/usr/lib/gtk-2.0/2.10.0/engines/libxfce.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
|
What's the *correct* way to handle this sort of thing?
|
|
|
|
09-14-2012, 03:14 PM
|
#2
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,734
Rep: 
|
It looks like you are using a 32-bit version of an open source software on Slackware64. That is not making sense.
The only reason for needing a multilib setup is if you have proprietary 32-bit software that you can't live without, or if you want to run 32-bit MS Windows programs under Wine.
For all other cases, you should just compile a 64-bit package out of the sources.
Eric
|
|
|
2 members found this post helpful.
|
09-14-2012, 03:18 PM
|
#3
|
|
Member
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.0, Slackware 14.0
Posts: 453
Rep: 
|
I've been runnning Slackware64 multilib for ages with no problems, including installing 32-bit packages, compiling 32-bit packages, etc.
- Did you install the 32-bit compatibility onto Slackware64 properly? You can't just install a 32-bit package and expect it to work
- Are you trying to compile a 32-bit software on Slackware64?
- Are you trying to run both arch of a package at the same time? If so, why?
See also:
http://alien.slackbook.org/dokuwiki/...kware:multilib
http://slackware.com/~alien/multilib/
|
|
|
|
09-14-2012, 03:19 PM
|
#4
|
|
Member
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.0, Slackware 14.0
Posts: 453
Rep: 
|
Dang, too slow. Alien BOB is quicker in the draw!
|
|
|
|
09-14-2012, 04:57 PM
|
#5
|
|
Member
Registered: Feb 2004
Distribution: Slackware
Posts: 185
Rep:
|
Hey Kingbeowulf ...
It is hard to beat Alien Bob's speed ... 
|
|
|
|
09-15-2012, 03:46 AM
|
#6
|
|
Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,369
Original Poster
|
Ah! kicad is a major,major PITA to compile, certainly in 64 bit. That kind of rules it out. It relies tetotally on wxwidgets, and you get compile errors in kicad which originate in wxwidgets, so I spent an afternoon farting with this (fortunately making .txz packages so I could retreat with dignity)recompiling both. Then I did what they told me to, installed precompiled binaries.
So whoever compiled that had his 32bit libs in /usr/lib64?
32 bit compatibility should be taken more seriously. Another example of it is mesa, which even has a --enable-64bit-libs and --enable-32-bit-libs type switches, but specify both, and you're snookered.
|
|
|
|
09-15-2012, 05:37 PM
|
#7
|
|
Member
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 292
Rep:
|
Quote:
Originally Posted by business_kid
(kicad:15482): Gtk-WARNING **: /usr/lib64/gtk-2.0/2.10.0/engines/libxfce.so: wrong ELF class: ELFCLASS64
|
The problem is caused by /etc/X11/xinit/xinitrc.xfce by overriding the built-in defaults of GTK:
Code:
# Export GTK_PATH so that GTK+ can find the Xfce theme engine
export GTK_PATH="$GTK_PATH:/usr/lib64/gtk-2.0"
Comment it out and voila: GTK loads the correct theme engine for every ABI.
BTW: The GLADE-Stuff in xinitrc.xfce looks also very bogus. It sets GLADE_MODULE_PATH and others to ":" and breaks LIBGLADE_MODULE_PATH for multilib in the same way as GTK. Scripts like this trying to do fancy stuff should be inspected. There environment variables aren't needed at all.
Last edited by jtsn; 09-15-2012 at 05:47 PM.
|
|
|
1 members found this post helpful.
|
09-16-2012, 03:11 AM
|
#8
|
|
Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,369
Original Poster
|
Thank you Sir!
That's the sort of thing that sorts a problem once and for all. Will grok that xinit.xfce for unwanted stuff.
I worked around it by
removepkg wxwidgets* kicad* :-)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|