Date: Sun, 28 Jan 2001 11:40:04 -0800 (PST) From: Thomas Moestl <tmoestl@gmx.net> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/24701: tempnam() possibly used unsafely by libg2c.so during FORTRAN compilation Message-ID: <200101281940.f0SJe4D21748@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/24701; it has been noted by GNATS. From: Thomas Moestl <tmoestl@gmx.net> To: freebsd-gnats-submit@FreeBSD.org, c_sudan@email.msn.com Cc: Subject: Re: i386/24701: tempnam() possibly used unsafely by libg2c.so during FORTRAN compilation Date: Sun, 28 Jan 2001 21:22:40 +0100 > Compiling/executing a FORTRAN program fails, with the following > message displayed: "/usr/lib/libg2c.so: warning: tempnam() possibly > used unsafely; consider using mkstemp()". I'm pretty sure that it is > not a problem with my Fortran program (I started with one that is > ridiculously simple and tried others) or OS or library modifications > (see "how to repeat the problem"). As the message says, this is a warning, not an error. > For example, I created nick.f with the following contents: > PROGRAM NICK > PRINT *, 'HELLO' > END > Then, from the command line I typed "f77 nick.f". Bingo, error > message, and no "HELLO" on my screen. f77 compiles your program, but will not execute it. You should find the executable a.out in your working directory that was compiled from your program source code. "./a.out" in a shell should print the HELLO ;-) "man f77" should give further details. - thomas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101281940.f0SJe4D21748>