Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7941603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:43:10+00:00 2026-06-03T23:43:10+00:00

A C program compiled here runs fine on our Ubuntu servers. But when a

  • 0

A C program compiled here runs fine on our Ubuntu servers. But when a somebody else tries to run it on their particular Linux server they get the following errors:

./myprog-install: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./myprog-install)
./myprog-install: /lib/tls/libc.so.6: version `GLIBC_2.7' not found (required by ./myprog-install)

Do I need to upgrade our glibc libraries and recompile? Or are they missing something on their server?

If I run apt-cache show libc6 my Ubuntu tells me the version is:

Package: libc6
Priority: required
Section: libs
Installed-Size: 9368
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: i386
Source: eglibc
Version: 2.11.1-0ubuntu7.10

If I look at http://packages.ubuntu.com/hardy/libc6 the current version appears to be 2.7-10ubuntu8.1.

I’m confused by the numbers. On the one hand 2.11-1-0 is a higher number than 2.7-11. On the other hand 7.10 is a lower number than 8.1.

Is it just a matter of me upgrading the C library package and recompiling do you think? Or is the other person’s server missing some needed library there for compatibility?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:43:12+00:00Added an answer on June 3, 2026 at 11:43 pm

    You have built on glibc-2.11 system. You are trying to run on a system with glibc-2.3 or older. That’s not going to work.

    Is it just a matter of me upgrading the C library package

    No: upgrading your glibc will only make things worse.

    You may want to try solutions listed here.

    Is this something we can reasonably request the other party to upgrade their system to support, rather than downgrade our compiler?

    Usually the client will strongly resist requests to upgrade their system: it’s working fine for them as is, and any upgrade can break other existing applications.

    If you are planning to distribute binaries on Linux (as opposed to building them on the target system), then you need to learn how to make binaries that will run everywhere, or you need to state your requirements (minimum kernel and libc versions, etc.) and turn clients who can’t meet these requirements away.

    Update:

    Why did they get two errors. Why didn’t they just get one for GLIBC_2.11.1 which is apparently what I built with?

    Symbol versioning doesn’t work that way.

    When a new symbol is introduced, it is marked with the current libc version, e.g. readdir64@@GLIBC_2.2, posix_spawn@@GLIBC_2.15, etc.

    When you link a program that uses both of the above symbols, and try to run it on e.g. glibc-2.1 system, you would get two errors.

    But if you link a program that doesn’t use any of the above symbols, e.g.

    int main() { return 0; }
    

    then your program will just run without any errors.

    Update 2:

    they don’t have to add both GLIBC_2.4 and GLIBC2.7 to their Linux system, do they?

    No, they don’t. The GLIBC_2.11 will have all the previous symbols in it. In fact, they couldn’t install both glibc-2.4 and 2.7 even if they wanted to: it is quite difficult to have multiple versions installed at the same time, and impossible to have multiple versions installed in default location.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when i run my program it compiles fine but when it runs i get
HI, I would like to run a cygwin compiled program in visual studio using
I have compiled an Ada program on Ubuntu using GNAT. Afterwards, I tried a
My code compiles and runs fine in Eclipse, but when I try to make
I have a Haskell program that uses Gtk/GtkGLExt and runs fine on Linux (up-to-date
We're working on a C program compiled with arm-eabi-gcc under Linux. We're using a
Is there any way, from within a Java program compiled by gcj, to find
I am trying to test whether a c program has compiled and executed correctly
I'm new to Mono and just started recently. Is mono program are compiled from
I have a very basic program in C++ compiled in VS 11 Beta on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.