Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jan 2001 11:02:12 -0800 (PST)
From:      c_sudan@email.msn.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/24701: tempnam() possibly used unsafely by libg2c.so during FORTRAN compilation
Message-ID:  <200101281902.f0SJ2C716142@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24701
>Category:       i386
>Synopsis:       tempnam() possibly used unsafely by libg2c.so during FORTRAN compilation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 28 11:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nick Sudan
>Release:        4.1 Release
>Organization:
>Environment:
FreeBSD  4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Jul 28 14:30:31 GMT 2000 jkh@ref.freebsd.org:/usr/src/sys/compile/GENERIC  i386
>Description:
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").

p.s. sorry if this is not the right forum for this problem (I'm a newbie)-- please point me in the right direction if it is the wrong forum.
>How-To-Repeat:
Start with a fresh PC, nothing on the hard drive (i.e. no partitions).  Install FreeBSD from the CD ROM using the X User distribution.  Reboot from the hardrive, login, create the simplest FORTRAN program you can think of with the .f extension (I tried other extensions, and they producted the same problem), use f77 to compile/execute the program, and before you get any output from the program, the above error message appears.  In short, the most vanilla version of FreeBSD will not let you use the Fortran compiler! (it is the single reason I purchased FreeBSD, for a Fortran compiler and UNIX based OS)

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.


>Fix:
I wish I knew!

>Release-Note:
>Audit-Trail:
>Unformatted:


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?200101281902.f0SJ2C716142>