Bug 21426 - Strange warning in g77
Strange warning in g77
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i686 Linux
medium Severity low
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
: 21898 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2000-11-28 09:48 EST by Need Real Name
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-12-08 16:18:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2000-11-28 09:48:45 EST
After installing the new glibc (RHBA-2000:079-08) , fortran programs give a
strange warning at compile time.
Any program like 

      program main
      print*,'Helo world'

Will compile saying

>g77 main.f
>/usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a(open.o): In function
>open.o(.text+0x4e6): the use of `tempnam' is dangerous, better use
>Compilation finished at Tue Nov 28 15:31:37

Best regards
Thomas A. Poulsen
Dpt. of Solid Mech.
Tech. Univ. of Denmark
Comment 1 Jakub Jelinek 2000-11-28 11:24:37 EST
libf2c uses tempnam internally and glibc warns about uses of this function
during link time.
gcc-g77-2.96-65 will include Toon Moene's fix for this.
Comment 2 matthew jull 2000-12-08 16:18:30 EST
*** Bug 21898 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.