LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-14-2012, 02:58 PM   #1
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,959

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
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?
 
Old 09-14-2012, 03:14 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,115

Rep: Reputation: Disabled
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.
Old 09-14-2012, 03:18 PM   #3
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 498

Rep: Reputation: 136Reputation: 136
I've been runnning Slackware64 multilib for ages with no problems, including installing 32-bit packages, compiling 32-bit packages, etc.
  1. Did you install the 32-bit compatibility onto Slackware64 properly? You can't just install a 32-bit package and expect it to work
  2. Are you trying to compile a 32-bit software on Slackware64?
  3. 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/
 
Old 09-14-2012, 03:19 PM   #4
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 498

Rep: Reputation: 136Reputation: 136
Dang, too slow. Alien BOB is quicker in the draw!
 
Old 09-14-2012, 04:57 PM   #5
animeresistance
Member
 
Registered: Feb 2004
Distribution: Slackware
Posts: 189

Rep: Reputation: 19
Hey Kingbeowulf ...
It is hard to beat Alien Bob's speed ...
 
Old 09-15-2012, 03:46 AM   #6
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,959

Original Poster
Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
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.
 
Old 09-15-2012, 05:37 PM   #7
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 695

Rep: Reputation: 276Reputation: 276Reputation: 276
Quote:
Originally Posted by business_kid View Post
(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.
Old 09-16-2012, 03:11 AM   #8
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,959

Original Poster
Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
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* :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
alternative multilib Skaperen Slackware 41 04-07-2011 09:56 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM
Multilib Question slowpoke Slackware 2 03-28-2010 12:49 AM
Multilib slack64 wingevil Slackware 6 02-21-2010 07:53 PM


All times are GMT -5. The time now is 06:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration