LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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
  Search this Thread
Old 04-29-2011, 11:41 PM   #1
Breeze
Member
 
Registered: Dec 2010
Distribution: ArchLinux,Slackware
Posts: 53

Rep: Reputation: 4
Slackware64 multilib compile error


I have installed multilib by http://connie.slackware.com/~alien/multilib/.
And 32-bit programs can run.
When I compile packages,something error.
Quote:
#./configure
#make
Quote:
/usr/lib/***.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
I have tried what http://connie.slackware.com/~alien/multilib/ say and not work too. Thanks!
 
Old 04-30-2011, 12:32 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
This is probably the section you need to re-read.
Quote:
Compiling 32-bit programs
=========================

In case you need to compile a 32-bit program (wine and grub are two examples
of open source programs that are 32-bit only) you first configure your
shell environment by running the command:

. /etc/profile.d/32dev.sh

Note the 'dot' in front of the filename - that is actually part of the
commandline! It will change or create several environment variables so
that 32-bit versions of binaries are preferred.

You will be able to use standard SlackBuilds to build 32-bit packages for
Slackware64. There are two things to keep in mind:
(1) You will have to define the ARCH variable as 'x86_64' even though you
are compiling a 32-bit program!
(2) You will have to edit the SlackBuild and if it wants to use 'lib64/'
directories for "$ARCH = x86_64", you will have to force it to use 'lib/'
directories instead. Usually, this is accomplished by finding a definition
like:
LIBDIRSUFFIX="64"
and change this line to
LIBDIRSUFFIX=""
Alternately you could use sbopkg to manage your 3rd party applications it is available here. http://www.sbopkg.org/

I they don't have a package you could learn to write a slackbuild http://www.slackwiki.org/Writing_A_SlackBuild_Script or use something that will do the job for you, such as http://www.src2pkg.net/ or http://www.dawoodfall.net/mkslack.

Hope this helps.

samac
 
Old 04-30-2011, 01:30 AM   #3
Breeze
Member
 
Registered: Dec 2010
Distribution: ArchLinux,Slackware
Posts: 53

Original Poster
Rep: Reputation: 4
Packages can be compiled before I install multilib.
 
Old 05-01-2011, 09:26 AM   #4
marrowsuck
Member
 
Registered: Sep 2006
Posts: 202

Rep: Reputation: 89
Are you trying to compile a 64bit program?
If so, maybe this helps:
http://www.linuxquestions.org/questi...ilib-752172/#6
 
Old 05-21-2011, 12:21 PM   #5
ralf@hagakure.me
LQ Newbie
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Ubuntu and Slack
Posts: 5

Rep: Reputation: 0
From: alien multilib Wiki page:

-Compiling 32-bit programs
"Rather than editing the script and change/remove CFLAGS definitions, you can set the ARCH to “x86_64” and save yourself some time."

Hi all,

I am a Slackware noob, so forgive me any stupid questions.
How do you set ARCH to “x86_64”? The instructions say not to edit the Slackbuild script. I have been looking around and this site seemed the most appropriate to ask this question.

Thanks much!

R
 
Old 05-21-2011, 12:56 PM   #6
ralf@hagakure.me
LQ Newbie
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Ubuntu and Slack
Posts: 5

Rep: Reputation: 0
ARCH=x86_64 ./some.SlackBuild

Found it, I guess.
 
Old 05-21-2011, 01:28 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Ralf, could please ask one question in only one place?
 
Old 05-22-2011, 02:56 AM   #8
ralf@hagakure.me
LQ Newbie
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Ubuntu and Slack
Posts: 5

Rep: Reputation: 0
Hi Didier,

I will, I'm new to this forum and trying to find my way. Thanks for responding.

R
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
Compile SDL app in Slackware64 w Eric's Multilib installed lightkuragari Slackware 4 07-06-2010 08:54 AM
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM
[SOLVED] Slackware64 multilib, can't compile 32-bit apps. RajahBrooke Slackware 19 06-05-2010 12:02 PM
[SOLVED] Transcode will not compile in Slackware64-13.0, Multilib TSquaredF Slackware 9 04-07-2010 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:52 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