LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-04-2009, 07:22 PM   #1
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80

Rep: Reputation: 15
Installing 32-bit application on Slackware64


Hi,

I tried to install Wireshark (downloaded from SlackBuilds), but failed with following error message (when building the package):

Code:
wireshark-1.2.1/wsutil/Makefile.common                                                                                     
wireshark-1.2.1/wsutil/Makefile.in                                                                                         
wireshark-1.2.1/wsutil/Makefile.nmake                                                                                      
wireshark-1.2.1/wsutil/file_util.c                                                                                         
wireshark-1.2.1/wsutil/file_util.h                                                                                         
wireshark-1.2.1/wsutil/libwsutil.def                                                                                       
wireshark-1.2.1/wsutil/mpeg-audio.c                                                                                        
wireshark-1.2.1/wsutil/mpeg-audio.h                                                                                        
wireshark-1.2.1/wsutil/privileges.c                                                                                        
wireshark-1.2.1/wsutil/privileges.h                                                                                        
wireshark-1.2.1/wsutil/str_util.c                                                                                          
wireshark-1.2.1/wsutil/str_util.h                                                                                          
wireshark-1.2.1/wsutil/type_util.c                                                                                         
wireshark-1.2.1/wsutil/type_util.h                                                                                         
wireshark-1.2.1/wsutil/unicode-utils.c                                                                                     
wireshark-1.2.1/wsutil/unicode-utils.h                                                                                     
wireshark-1.2.1/ylwrap                                                                                                     
checking for a BSD-compatible install... /usr/bin/ginstall -c                                                              
checking whether build environment is sane... yes                                                                          
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p                                                                   
checking for gawk... gawk                                                                                                  
checking whether make sets $(MAKE)... yes                                                                                  
checking how to create a ustar tar archive... gnutar                                                                       
checking for gcc... gcc                                                                                                    
checking for C compiler default output file name...                                                                        
configure: error: C compiler cannot create executables                                                                     
See `config.log' for more details.
Could anyone tell me how to build a 32bit package to use under Slackware64?

Thank you very much.
 
Old 09-04-2009, 07:31 PM   #2
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Rep: Reputation: 32
Hello Sir.

As far as I know (and I did the same) you should install multilib to run 32 bit applications with Slackware64.

Read and follow this link. Credits go to Alien Bob.


http://alien.slackbook.org/dokuwiki/...kware:multilib

I hope this helps.
 
Old 09-05-2009, 02:10 AM   #3
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by glore2002 View Post
Hello Sir.

As far as I know (and I did the same) you should install multilib to run 32 bit applications with Slackware64.

Read and follow this link. Credits go to Alien Bob.


http://alien.slackbook.org/dokuwiki/...kware:multilib

I hope this helps.
Hi, thank you very much for your information. :-)
 
Old 09-05-2009, 06:09 AM   #4
iphigenie
Member
 
Registered: Aug 2009
Location: IDLE, UK
Distribution: Slackware
Posts: 30

Rep: Reputation: 9
A silly thing but did you set your ARCH variable prior to running it - some builds fail because they default to 32 bit but would work if told to build for ARCH=x86_64

Very few tools really are 32 bit only, especially something like wireshark I suspect works as 64 perhaps? Worth a try
 
Old 09-05-2009, 06:32 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,232

Rep: Reputation: Disabled
Setting ARCH=x86_64 will certainly help. Wireshark comes as source code, and can be compiled effortlessly into 64bit binaries. Why would you want to build Wireshark as 32bit binaries on Slackware64?

Eric
 
Old 09-07-2009, 01:40 AM   #6
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by iphigenie View Post
A silly thing but did you set your ARCH variable prior to running it - some builds fail because they default to 32 bit but would work if told to build for ARCH=x86_64

Very few tools really are 32 bit only, especially something like wireshark I suspect works as 64 perhaps? Worth a try
Hi, thank you for your information.
I changed the ARCH in the slackbuild script and I managed to build the 64bit wireshark now. :-)

Thank you very much.
 
Old 09-07-2009, 01:42 AM   #7
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien Bob View Post
Setting ARCH=x86_64 will certainly help. Wireshark comes as source code, and can be compiled effortlessly into 64bit binaries. Why would you want to build Wireshark as 32bit binaries on Slackware64?

Eric
Hi Alien Bob,

Ya... it really help. :-)
I never know (or never realize) that I can change the ARCH in the script.
True, what the hell to I need to run a 32 bit binary on a 64 bit Slackware... damn me. hahaha.

Thanks for the help all guys. Appreaciate!
 
  


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
slackware64 + multilib or simply install 32-bit? [GOD]Anck Slackware 1 08-31-2009 03:51 AM
List the 32-bit packages you have working in Slackware64, using Bluewhite64 ia32. Shingoshi Slackware 3 06-01-2009 06:04 PM
Slackware64 and 32-bit compatibility mattydee Slackware 24 05-23-2009 02:01 PM
32 bit Application on 64 bit Linux OS -- Memory Usage saleem_ak Linux - Newbie 3 04-01-2009 02:59 PM
porting of 32 bit application on 64 bit linux architecture vikaschoudhry1985 Linux - Newbie 2 07-13-2008 10:39 PM


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