[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g77
> Is there something wrong with g77? For a simple program I get some strange
> warnings for example:
>
> MushMouth:jackson {113} cat hw1.f
> Program test
> End
> MushMouth:jackson {114} g77 hw1.f
> endfile.o: warning: tmpnam() possibly used unsafely; consider using mkstemp()
> open.o: warning: tmpnam() possibly used unsafely; consider using mkstemp()
Obviously (if other people had looked even closely they would have
seen why) these warnings are coming out of the support libraries that
fortran uses. These libraries use mktemp, and hence are raceable in
two places. The linker is warning about this problem, and suddenly you
think your code is flawed. Well, it isn't your fault.
I just fixed the race in the open.c file; the one in endfile.c is a
bit harder and I will need to think carefully before I manage to get
it working.
Please file a PR (man sendbug) about the endfile.o problem, including
a test program. That way I can't forget to fix it. Thanks.
- References:
- g77
- From: Aaron Jackson <jackson@negril.msrce.howard.edu>