Solved

compiling with different version of glibc

Posted on 2004-08-23
3
346 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 SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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