Solved

compiling with different version of glibc

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

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…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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