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 08-27-2014, 10:11 AM   #1
shoshia
Member
 
Registered: Apr 2014
Location: Tbilisi,Georgia
Distribution: Slackware
Posts: 35

Rep: Reputation: Disabled
Building 32 bit progs/libs on multilib


Hi all
I have installed multilib
run
$/etc/profiled/32env.sh /dont remember exact name/

1. than compile program
but ld linker is executed from x86_64_slackware lib
so question:
is build program/lib 32 bit?

2. It seems i can not use slackbuild script to build 32 bit staff? since
ARCH is found from

PHP Code:
if [ -"$ARCH]; then
  
case "$( uname -m )" in
    i
?86ARCH=i486 ;;
    
arm*) ARCH=arm ;;
       *) 
ARCH=$( uname -) ;;
  
esac
fi 
if i just do
PHP Code:
#if [ -z "$ARCH" ]; then
#  case "$( uname -m )" in
#    i?86) ARCH=i486 ;;
#    arm*) ARCH=arm ;;
#       *) ARCH=$( uname -m ) ;;
#  esac
#fi
ARCH=i486 ;; 
code does not compile...

any suggestions..or it is nesessary to have 32 bit installed separately?
 
Old 08-27-2014, 10:29 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

to build 32-bit softwares on Slackware64/multilib, you must :

1. run the command :

Code:
$ . /etc/profile.d/32dev.sh
Note the dot in front of /etc/profile.d/32dev.sh (which is equivalent to the command 'source') is required.

2. pass ARCH=i486 to the slackbuild :

Code:
$ ARCH=i486 ./foo.SlackBuild
--
SeB
 
1 members found this post helpful.
Old 08-27-2014, 11:46 AM   #3
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
Also, you can convert existing libraries using convertpkg-compat32 with packages from the 32 bit distribution. For example:
Code:
convertpkg-compat32 -i libgnome-keyring-3.8.0-i486-1.txz
And then install the package using installpkg or upgradepkg --install-new.

(This was not part of multilib, and I needed it for a package.)
 
  


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
Can't find 32 bit libs to run 32 bit prog on 64 bit CentOS homer_3 Linux - Distributions 2 09-30-2013 08:45 PM
Building problem of "some" 32-bit programs in Slackware64 multilib aalireza Slackware 1 06-05-2013 08:24 AM
64bit multilib and KDE Libs nankura Sabayon 0 09-18-2011 07:51 PM
[SOLVED] ORBit2 Slackbuild fails when building 32 bit package on current multilib damgar Slackware 4 04-10-2010 02:26 PM
[SOLVED] ati driver 32-bit compatibility for Slackware 64-bit multilib? vik Slackware 25 02-16-2010 07:06 PM

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

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