I moved from redhat 5.2 to 6.0 and found that I get following error
gcc -DLINUX_RH -D_POSIX_SOURCE -I. -I../linux -I../generic
-DCLIENT_BUILD -DDUMB_CLIENT -DSVR4 -D_REENTRANT -D_BSD_SOURCE -c
../generic/error.c -o error.o
ar cq libcscomm.a authorize_client_rpc.o connect_to_rpc_service_rpc.o
login_rpc.o utils_rpc.o get_handle_rpc.o bind_tcp_port_rpc.o
get_tcp_ports_rpc.o register_interface_rpc.o clnt_async.o svc_async.o
csc_socket.o char_descriptor.o error.o csc_platform_utils.o
BFD: error.o: invalid string offset 6912 >= 99 for section `.shstrtab'
BFD: error.o: invalid string offset 8448 >= 99 for section `.shstrtab'
BFD: error.o: invalid string offset 11008 >= 99 for section `.shstrtab'
gcc -o epcommd procedure.o server.o epcommd.o getmount.o parsemnt.o
esl_directory.o direntries.o epcplatform.o rpcsvc.o cluster.o -L.
-L../../../../csc/fbrowser -Bstatic -lepcomm_api -lepcomm_svc -lcscomm
-lcsc_config_clnt -lcsc_common_clnt -llogging -lesl_utils_c -leerrno
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/bin/ld: error.o: invalid string offset 6912 >= 99 for section
/usr/bin/ld: error.o: invalid string offset 8448 >= 99 for section
/usr/bin/ld: error.o: invalid string offset 11008 >= 99 for section
The same code if compiled on redhat 5.2 will work fine without any problem.
On 6.0 I first loaded egcs-1.1.2-12 & egcs-c++-1.1.2-12. On seeing the
above problem I then moved to egcs-1.1.2-30 & egcs-c++-1.1.2-30. But this
also did not fix the problem.
On a side note very few times the compilation does go fine without any
problem. It seems to me that most of the time error.o object in not
generated correctly. I did cmp -l on bad error.o and good error.o and found
that at that difference is of one additional byte. See below:
jain1 66> cmp -l linux_rh_60.bad/error.o linux_rh_60.good/error.o
7845 0 33
7846 33 0
7849 0 1
7850 1 0
7853 0 6
7854 6 0
7861 0 100
7862 100 0
7865 0 262
7866 262 6
7867 6 0
7877 0 20
Please help as I cannot proceed further. Thanks....
This definitely is not compiler issue (error.o is created by assembler),
but it looks like either hardware problem (most probably) or some kernel
corruption issue. I'd suggest you try it on some other hardware or try
some newer kernel (such as from 6.2 distribution).
I have the same machine running 5.2 and 6.0. On 5.2 it compiles perfect. Hence
it cannot be a hardware problem. As far as your suggestion to put 6.2 kernel on
6.0 operating system, I am not sure whether it is really desirable for following
1. I want to create my application on 6.0 only so that I can support it for
6.0/6.1/6.2/7.0. I am not sure that after putting 6.2 kernel I would be able to
support 6.0 and 6.1.
2. I see another bug# 5853 reported the similar problem.
3. I installed the 6.0 kernel out of the CDROM provided by redhat. I am sure
that this kernel is not buggy.
Let me know your thoughts. Please give your highest priority to resolve this
I tried on another machine but it gives me the same problem. Please help!!
If you are still able to reproduce this with some current distribution
(FC2 or FC3t2), please reopen.