Solved

compiling with different version of glibc

Posted on 2004-08-23
3
355 Views
Last Modified: 2013-12-05
I have a linux system, think it is isolinux, which is a stripped down version of slackware 8.1. I want to compile binaries to run on it, but it is a specialized system that is functioning as an access point so I can't do development on it. I have a slackware 9.1 machine that I use to do development on. But when I transfer the binaries to the other system, I get this error:

 /lib/libpthread.so.0: version `GLIBC_2.3.2' not found

How can I compile my programs so that they will run on the other system?

-ryan
0
Comment
Question by:dignified
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Expert Comment

by:avizit
ID: 11868275
try  

-L /path/to/transferred binaries

as comand line argument to gcc


or
add the directory where you have transferred the slackware binaries in  /etc/ld.so.conf and run ldconfig


do the above two one after another if you havent already done so
0
 
LVL 1

Accepted Solution

by:
ttimonen earned 250 total points
ID: 11881914
Alternatively you can:
-use '-static' flag when compiling the binaries. Then the binaries are somewhat larger, but don't depend on glibc.

-Update the glibc and friends in slack8.1 system.

-Build a chroot environment to slack8.1 system where to run this binary. Alternatively you can override the libc reading path by using LD_LIBRARY_PATH environment variable (see man ld.so for details)

-Or you can build a chroot environment to your slack9.1 system where to compile these binaries.
0
 

Author Comment

by:dignified
ID: 11918960
-static in LD_FLAG in the make file seemed to work fine.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order for businesses to be compliant with certain information security laws in some countries, you need to be able to prove that a user (which user it was becomes important to the business to take action against the user after an event has occurr…
After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question