https://bugzilla.novell.com/show_bug.cgi?id=378105
User Joseph.Comfort@asu.edu added comment
https://bugzilla.novell.com/show_bug.cgi?id=378105#c7
--- Comment #7 from Joseph Comfort 2008-04-22 12:51:09 MST ---
Reply to comments 5 & 6.
Yes, a static executable generated under 10.3 will fail.
I get my gcc/gfortran direct from SuSE rpms. On my 10.2 system (64bit), it is
version 4.1.2_20061115. On my 10.3 system (64bit), I am currently using
version 4.3.0_20080221 from the 11.0 site (following a suggestion from
someone). I have also used 4.2.1_20070724. At one point, I tried a 4.1.3
version. All versions have the same problem on the 10.3 system. (If I recall
correctly, I tried a 4.2 version on my 10.2 system, and it worked fine, so the
actual version does not appear to be the issue.)
I always regenerate my libraries from scratch on each machine and with each
change in compiler version. I am aware of version incompatibilities because,
when I upgrade to a later SuSE release, my user codes will not compile/link
until the libraries are regenerated. With 10,2, that works fine. But not on
10.3.
Maybe there is an issue with -fPIE. The libraries are generated with -fPIC
because that flag is needed when they are linked to another major (CERN)
package, which utilizes its own dynamic libraries. I am not actually familiar
with these flags. Am I doing something wrong? Can both be used? Is one
sufficient?
Greps on my libraries show there are no references to fillin_rpath or
dl_init_paths. There are lots of uses of strlen, but I did not see any code
for it. The test case executable contains fillin_rpath, but the load map does
not. The dl_init_paths is in both (also strlen). The load map shows that both
dl_init_paths and strlen come from /usr/lib64/libc.a.
I have one 32bit machine, running 10.2. An executable made on it runs fine on
the 10.3 64bit machine. I have generated a 32bit version on the 10.3 system,
but it also fails. I doubt that it is a 32/64-bit problem, although valgrind
may be susceptible to it.
Again, thank you.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.