Solved

compiling with different version of glibc

Posted on 2004-08-23
3
345 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now