I am not a programmer, so please be easy on me.
I have been asked to compile an application on RHEL 4 and 5 servers. I have been successful with a simple command as follows ;
[tag]
[root@rayn02 bin]# cc wholocks.c -o wholocks
[/tag]
However, when I try and compile on this particualter RHEL5 server it gets really messy.
[tag]
[root@rayn02 bin]# cc wholocks.c -o wholocks
wholocks.c:10:1: warning: "O_RDWR" redefined
In file included from /usr/include/fcntl.h:34,
from wholocks.c:3:
/usr/include/bits/fcntl.h:36:1: warning: this is the location of the previous definition
wholocks.c: In function âmainâ:
wholocks.c:45: warning: incompatible implicit declaration of built-in function âexitâ
wholocks.c:62: warning: incompatible implicit declaration of built-in function âexitâ
wholocks.c:68: warning: incompatible implicit declaration of built-in function âexitâ
/usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in /tmp/cc3T8B3O.o
/lib64/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
[root@rayn02 bin]#
[/tag]
The libc programs installed include the following;
[tag]
[root@rayn02 bin]# rpm -qa |grep libc
libcap-1.10-26
glibc-2.5-24
glibc-headers-2.5-24
compat-glibc-2.3.4-2.26
glibc-common-2.5-24
libcap-devel-1.10-26
compat-glibc-2.3.4-2.26
libcroco-0.6.1-2.1
glibc-devel-2.5-24
libcroco-0.6.1-2.1
libchewing-0.3.0-8.el5
glibc-2.5-24
libcap-1.10-26
glibc-devel-2.5-24
libcap-devel-1.10-26
compat-glibc-headers-2.3.4-2.26
[/tag]
Anyone indeas on what I might be missing?
Thanks in advance