Re: Building 32-Bit ONLY Perl on Mac OSX

[email protected] (Michael Nhan)
Newsgroups perl.dbi.users
Message-ID <[email protected]>
Hi,

You are trying to build 32bit application on a 64bit osx.  You will need 
to tell both the compiler and the linker that you want to build 32bit 
apps.  Gcc is easy enough with the -m32 flag.  ld is a little trickier. 
On linux, I have to link using "ld -melf_i386" instead of plain ld.   Run 
ld -V to see what emulation modes are available to you.  I don't have a 
64bit macosx to help you.  Building 32bit perl on a 64bit os will require 
you to change the make file to build with gcc -m32 and get the ld to link 
with the proper parameter.  You may have to temporarily move ld to ld.bin 
and make a script that calls ld.bin -melf_i386 (or whatever fits your neeed) 
as ld so it links properly if you can't get the makefile do you what you 
want.

Regards,

Michael



On Tue, 15 Jun 2010, [email protected] wrote:

> Date: Tue, 15 Jun 2010 22:48:54 +0200
> From: [email protected]
> To: [email protected]
> Subject: Building 32-Bit ONLY Perl on Mac OSX
> 
> Hi DBI-Users,
>
> my question isn't directly related to DBI, but i need to compile a 386/32
> Bit ONLY Perl Binary on Mac OSX 10.6 (SnowLeopard),
> not only but also because we only have a 32 Bit Oracle Instant Client...
>
> No Matter what Config-Params i tried, the only thing i get is the
> following:
>
> "...file was built for i386 which is not the architecture being linked
> (x86_64)"...
>
> Does anyone have an idea or a good link?
>
> BTW, this problem seems to happen also on 64-Bit Linux...
>
> Thanks in advance for any idea
>
> Kai
> --
> Kai Schwermann, Geschäftsführer
> bill-X GmbH
> Möserstr. 34          49074 Osnabrück, Germany
> Tel. +49-541-71008-0   Fax +49-541-71008-499
> http://www.bill-X.de    [email protected]

-- 
 		---//---
Time flies like the wind. Fruit flies like bananas.
 	--- Groucho Marx

Either write something worth reading or do something worth writing.
 	--- Benjamin Franklin

A meeting is an event at which the minutes are kept and the hours are lost
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.