LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2008, 10:30 AM   #1
x0563511
LQ Newbie
 
Registered: Dec 2005
Distribution: In OS limbo
Posts: 7

Rep: Reputation: 0
Question building i386 SDL on x86_64


Anyone have the pleasure of building libSDL for i386 on an x86_64 host? I'm running into some wierd issues.

I'm running Fedora 10, and I believe I have all the required foo.i386 packages installed.

On trying to build, I can do nothing and it builds fine for x86_64. If I set CFLAGS to have -m32, it builds the objects fine, but then ld tries to link them as elf64.x86_64 objects... and fails. If I also try to set formats in LDFLAGS, such as '-F elf32.i386' (objdump tells me that's a supported format) ./configure fails telling me my compiler can't create executables.

Checking my config.log, gcc complains (to paraphrase, I don't have the log presently) file not found: elf32.i386

I don't know if something is screwey with this, as I'm not telling it where to find a file, but which format to use when linking. But I've checked the Fedora repos (and RPMFusion) for any packages that contain a file named elf32.i386, and none occur.

I'm really scratching my head on this one.

Any ideas?

(building from http://www.libsdl.org/release/SDL-1.2.13.tar.gz)
 
Old 11-28-2008, 10:31 AM   #2
x0563511
LQ Newbie
 
Registered: Dec 2005
Distribution: In OS limbo
Posts: 7

Original Poster
Rep: Reputation: 0
Oh... yes I have libSDL for i386 installed from the repository. But in this case, I need to use a patch for a particular application (Neverwinter Nights + nwmovies).

(this was meant to be edited into the first post, not a new reply. Oopsies. Pardon the double post)

Last edited by x0563511; 11-28-2008 at 10:32 AM. Reason: whoops
 
Old 01-25-2009, 09:49 PM   #3
julianLiuRsch
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 1
try this :
ld -melf_i386...
 
1 members found this post helpful.
  


Reply

Tags
i386, x8664



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
Is it possible to building i386 rpm on x86_64 system? MikeyCarter Linux - Software 2 06-02-2008 03:41 PM
i386 vs. X86_64 wfernley Linux - Software 9 10-16-2007 07:32 AM
i386 and x86_64 nmansour Fedora 2 09-18-2007 08:58 PM
SDL update in SuSE x86_64 question Last Attacker Linux - Software 1 07-18-2006 08:20 AM
i386 or x86_64? rssguy Linux - Newbie 2 04-20-2005 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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