LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware64 multilib compile error (http://www.linuxquestions.org/questions/slackware-14/slackware64-multilib-compile-error-877947/)

Breeze 04-29-2011 11:41 PM

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!

samac 04-30-2011 12:32 AM

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

Breeze 04-30-2011 01:30 AM

Packages can be compiled before I install multilib.

marrowsuck 05-01-2011 09:26 AM

Are you trying to compile a 64bit program?
If so, maybe this helps:
http://www.linuxquestions.org/questi...ilib-752172/#6

ralf@hagakure.me 05-21-2011 12:21 PM

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

ralf@hagakure.me 05-21-2011 12:56 PM

ARCH=x86_64 ./some.SlackBuild

Found it, I guess.

Didier Spaier 05-21-2011 01:28 PM

Ralf, could please ask one question in only one place?

ralf@hagakure.me 05-22-2011 02:56 AM

Hi Didier,

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

R


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