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: "dave at hiauly1 dot hia.nrc.ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 7 Mar 2011 17:59:52 +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 #27 from dave at hiauly1 dot hia.nrc.ca 2011-03-07 17:59:27 UTC ---
> >> 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
The function clock_gettime is available in both libc and librt on PA-RISC
HP-UX. I see a compilation warning on 32-bit HP-UX that `if (clock_gettime)'
will always evaluate to true. Since libc is always linked in, there isn't
a problem on PA HP-UX.
Dave