Hartmut Schmider wrote:
we're running GPC on an UltraSparc-III cluster under Solaris8. Our version is precompiled (2.1). For a specific program, we keep getting a segmentation fault at the first call to the standard library libc.so The GNU debugger gives:
Program received signal SIGSEGV, Segmentation fault. 0xff2b303c in strlen () from /usr/lib/libc.so.1
So the suspicion is that libc.so.1 doesn't work together with the code generated by gpc. Is there a way to force the use of an alternative libc? The compiler seems to work alright, it just doesn't seem to like the Solaris standard dynamic libraries.
This should be possible using appropriate linker options (perhaps just a -L option). However, first you'd have to know (and get) the exact version of the library it was compiled against, and it might give problems when using other libraries which use your libc. In the long run, this might be more trouble than recompiling GPC from sources against your installed libraries.
Frank