This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47571] [4.6 Regression] undefined reference to clock_gettime in Linux build of 02/01/2011
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 7 Mar 2011 16:20:21 +0000
- Subject: [Bug fortran/47571] [4.6 Regression] undefined reference to clock_gettime in Linux build of 02/01/2011
- Auto-submitted: auto-generated
- References: <bug-47571-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47571
--- Comment #26 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-03-07 16:20:17 UTC ---
> --- Comment #25 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-07 16:08:23 UTC ---
> (In reply to comment #24)
>> All fortran testing is broken on Tru64 UNIX, where libgfortran.so has an
>> undefined reference to clock_gettime:
>> The function is defined in librt only.
>
> Also with GLIBC Linux one only gets it via librt; on Linux and on HPUX it works
> via a weakref; seemingly it does not work on Tru64. Does it have weakrefs? Does
Tru64 UNIX doesn't support weak undefined symbols, which seems to be
what weakrefs are.
> the problem only occur for static or also for dynamic linkage?
I haven't yet tried static linking, but when using a dynamic
libgfortran.so, the breakage occurs as described.
Rainer