Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-12-2004, 10:21 PM   #1
LQ Newbie
Registered: May 2001
Location: Tokyo, Japan
Distribution: Fedora, Gentoo
Posts: 19

Rep: Reputation: 0
Question Compiling 32-bit binary in a 64-bit environment

Hi all!

I ran into some problems while compiling a binary file for an application which is only compatible on 32-bit platforms. I'm using the following distribution:

Red Hat Enterprise Linux ES (v. 3 for Intel EM64T, update 2) <recently patched via up2date>

The problem occurs when I run the following:

cc -rdynamic -o /opt/CA/ingresii/ingres/bin/iimerge /opt/CA/ingresii/ingres/lib/iimerge.o -L/opt/CA/ingresii/ingres/lib -lbecompat.1 -lscf.1 -lpsf.1 -lopf.1 -lrdf.1 -lqef.1 -lqsf.1 -ldbutil.1 -ltpf.1 -lrqf.1 -lgcf.1 -lsxf.1 -lcuf.1 -lgwf.1 -ldmf.1 -lulf.1 -lcompat.1 -lq.1 -lframe.1 /opt/CA/ingresii/ingres/lib/iiclsadt.o /opt/CA/ingresii/ingres/lib/iiuseradt.o /opt/CA/ingresii/ingres/lib/libsd.a

Which resulted in the output below:

/usr/bin/ld: skipping incompatible /opt/CA/ingresii/ingres/lib/ when searching for -lbecompat.1
/usr/bin/ld: cannot find -lbecompat.1
collect2: ld returned 1 exit status

After checking the compatibility list it seems that the application does not support EM64T platforms - hence the failure to compile iimerge as seen above. Then it got me thinking; if I could use related 32-bit native c libraries on the 64-bit platform, would it be possible to successfully compile the binary?

Just to confirm that glibc is indeed the culprit, I did a comparison for both 32bit and 64bit versions of binutils (where 'ld' is part of the package), and got the following dependencies:

[root@localhost root]# rpm binutils- -qR
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

[root@localhost root]# rpm binutils- -qpR
warning: binutils- V3 DSA signature: NOKEY, key ID db42a60e
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

So it looks like we're dealing with two different sets of standard C libraries for each platform.

It's a longshot, but has anyone tried to use 32-bit libraries to successfully compile in a 64-bit env?

Many thanks in advance!

Last edited by Kaj; 12-12-2004 at 11:21 PM.
Old 12-13-2004, 09:43 AM   #2
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
It would be nice to be able to use 32 bit libs on 64 bit platform. But I don't know the answer to your questions, I have been compiling all the libs I need on 64 bit platform first and then compile the binary.

It's nice to see someone using the CA Open Ingres Database What are you using it for?


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
compiling 64 bit kernel in 32 bit linux MadnessASAP Linux - Hardware 6 05-04-2009 11:47 AM
has anyone EVER had ndiswrapper work in a 64 bit environment? superbnerb Linux - Wireless Networking 28 01-01-2008 03:44 PM
Compiling an AMD64 kernel from a 32-bit environment justinmc Linux - General 3 01-16-2005 06:47 PM
C, read 8 bit octal numbers, convert to 24 bit binary bamalabs Programming 3 01-20-2004 09:59 AM
Graphic Card that Supports displaying 8-bit and 24-bit images simultaneously yrraja Linux - Hardware 2 04-30-2003 06:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration