From owner-freebsd-bugs Sun Jan 28 11:40:22 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 182DD37B6A2 for ; Sun, 28 Jan 2001 11:40:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0SJe4D21748; Sun, 28 Jan 2001 11:40:04 -0800 (PST) (envelope-from gnats) Date: Sun, 28 Jan 2001 11:40:04 -0800 (PST) Message-Id: <200101281940.f0SJe4D21748@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Thomas Moestl Subject: Re: i386/24701: tempnam() possibly used unsafely by libg2c.so during FORTRAN compilation Reply-To: Thomas Moestl Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/24701; it has been noted by GNATS. From: Thomas Moestl 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