LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2010, 01:17 AM   #1
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Rep: Reputation: 15
Build dependency conflict on 32 bit and 64 bit machines


Hello,

I have a project that is working on 32 bit machine, if i try the same compilation on 64 bit machine, it doesn't work.

Error:-

/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
make_380: *** [FORCE] Error 127
Make done in 00:02 (Return code 2)

There is no .so file present in the project,

Any quick pointers to debug this???
 
Old 10-15-2010, 01:30 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

Which package you are trying to build?

You need to get 64 bit package to build on 64 bit machines.
 
Old 10-15-2010, 01:49 AM   #3
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
I am building an internal package.

If i do ldd /bin/bash on passing 32 bit machine:-

-----
ldd /bin/bash
libtermcap.so.2 => /lib/libtermcap.so.2 (0xb7fcd000)
libdl.so.2 => /lib/libdl.so.2 (0xb7fc8000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7e99000)
/lib/ld-linux.so.2 (0xb7fe8000)
-------


On 64 bit machine:-

---
ldd /bin/bash
libtermcap.so.2 => /lib64/libtermcap.so.2 (0x0000002a9566c000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000002a9576f000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a95873000)
/lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
-----

does it have anything to do with this?
 
Old 10-15-2010, 01:53 AM   #4
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
You need 64bit libraries.
 
Old 10-15-2010, 01:55 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
what is that internal package?
 
Old 10-15-2010, 06:27 AM   #6
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
Its a project (comprised of lot of modules and sub project), that is building fine on 32 bit machines. But has some issues with 64 bit environment.

The build is not getting started on 64 bit machine.
 
  


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
Build 32 bit r600_dri in 64 bit system lindemidux Linux - Software 0 12-17-2009 04:38 PM
Mozilla Firefox 64-bit build for Linux with Adobe Flash Player 64-bit integrated silos Linux - Software 4 12-03-2009 07:40 PM
Apache & Tomcat build fine in RHEL5 32-bit, not in 64-bit. Why? jackofalltrades Linux - Newbie 1 10-30-2009 01:07 PM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM
Can I build 32-bit LFS on a 64-bit AMD system? dhave Linux From Scratch 4 07-23-2007 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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