Bug 98980 - Bad: crosscompiled binary unusable
Summary: Bad: crosscompiled binary unusable
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: compat-gcc
Version: 9
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2003-07-11 10:07 UTC by Pertti Karppinen
Modified: 2007-04-18 16:55 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2004-10-07 14:32:52 UTC

Attachments (Terms of Use)

Description Pertti Karppinen 2003-07-11 10:07:46 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Linux 2.4.20-8 i686) Opera 7.11  

Description of problem:
I get an unresolved dependency to GLIBC_2.3 when compiling a binary:
prog: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by prog)
Using nm on the non-working binary reveals only one reference to GLIBC_2.3:
 U __ctype_b_loc@@GLIBC_2.3

This seems to be related to ctype.h functions and has been reported as bug 
before, in some earlier version of Red_Hat

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. create a short test.c:
#include <ctype.h>
main() {return isspace('A');}
2. i386-redhat-linux7-gcc test.c -o test
3. copy to a machine running redhat 7.2
4. Run the program

Actual Results:  
./test: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by ./test)
Exit 1

Expected Results:  nothing (the program should return 0)

Additional info:

Comment 1 Jakub Jelinek 2004-10-07 14:32:52 UTC
You are linking against RHL9 glibc, not RHL 7.2 glibc that you'd
have to use if you wanted to build programs that could run on 7.2.
glibc only has backward compatibility, not forward compatibility.

Note You need to log in before you can comment on or make changes to this bug.