Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

GLIBC_2.4 not found - error compiling example

807575Jun 17 2010 — edited Jun 24 2010
Hi,
Just installed Sunstudio 12 on a RH machine. I am getting the following error trying to compile an example from the package .


[xxxxxx@xxxxxxxxx1 ~/jsynprog]$ make
---- Build: libcloop.so -----
CC -G -g -V -m32 -o libcloop.so -I/usr/java/bin/../include -I/usr/java/bin/../include/solaris gethrtime.c cloop.cc
CC: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by CC)
make: *** [libcloop.so] Error 1

[xxxxxx@xxxxxxxxx1bin]$ CC
CC: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by CC)


I tried some of the c examples and it compiles ok.

[xxxxxx@xxxxxxxxx1 bin]$ cc
usage: cc [ options] files. Use 'cc -flags' for details



uname -a
Linux xxxxxxxxx1 2.6.9-67.0.4.ELlargesmp #1 SMP Fri Jan 18 05:10:01 EST 2008 x86_64 x86_64 x86_64 GNU/Linux


[xxxxxx@xxxxxxxxx1 bin]$ strings /lib/tls/libc.so.6 | grep GLIBC
GLIBC_2.0
GLIBC_2.1
GLIBC_2.1.1
GLIBC_2.1.2
GLIBC_2.1.3
GLIBC_2.2
GLIBC_2.2.1
GLIBC_2.2.2
GLIBC_2.2.3
GLIBC_2.2.4
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_PRIVATE


is 2.4 a pre-requisite for the C++ compiler to work ?

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2010
Added on Jun 17 2010
2 comments
658 views