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 01-24-2012, 07:05 AM   #1
gaurav.rustagi
LQ Newbie
 
Registered: Jan 2012
Location: Mumbai, India
Distribution: Red Hat
Posts: 23

Rep: Reputation: Disabled
building shared libary in 32 bit mode on 64 bit machine using -m32 option


Hi,

I am trying to build one shared library in 32 bit mode on 64 bit machine. I am able to compile source files using -m32 option, but not able to link these objects files to get .so.

Here, i am also using some static libraries which have been compiled on 32 bit machine, so i am assuming there is no need to compile these libraries again ( using -m32 switch ).


It fails during linking.

Thanks,
Gaurav
 
Old 01-24-2012, 07:55 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
What errors are you getting? Posting those might be slightly helpful.
 
Old 01-24-2012, 08:08 AM   #3
gaurav.rustagi
LQ Newbie
 
Registered: Jan 2012
Location: Mumbai, India
Distribution: Red Hat
Posts: 23

Original Poster
Rep: Reputation: Disabled
Compilation string :g++ -m32 typeid.cpp

Error : g++: /usr/lib/crt1.o: No such file or directory
 
Old 01-24-2012, 09:03 AM   #4
gaurav.rustagi
LQ Newbie
 
Registered: Jan 2012
Location: Mumbai, India
Distribution: Red Hat
Posts: 23

Original Poster
Rep: Reputation: Disabled
Problem solved.

I installed glibc-devel-2.5-49.i386.rpm package. Now, i have all the libraries and headers files required for 32 bit compilation on x86_64 machine.

Thanks everyone.
 
  


Reply



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
segmantation fault on a 64 bit machine caused by binary compiled on a 32 bit machine ninofattore Linux - Newbie 1 10-13-2011 01:48 PM
[SOLVED] Red Hat Enterprise Desktop 5.3 on 64 bit machine need 32-bit library file hhs1982 Linux - Newbie 4 06-29-2010 11:55 AM
Compiling 32 bit sample program on 64 bit fedora using -m32 option pankajdev Linux - Newbie 2 10-07-2009 07:42 AM
32/64 bit libs - FC6/gcc 4.1.1 -m32 picking up 64 bit library marier Fedora 0 04-24-2007 12:57 PM
Displaying 8-bit images in 24-bit mode and vice versa yrraja Linux - General 4 04-29-2003 11:54 PM

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

All times are GMT -5. The time now is 01:29 AM.

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