*BSD News Article 7088


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!destroyer!ais.org!umeecs!quip.eecs.umich.edu!dmuntz
From: dmuntz@quip.eecs.umich.edu (Daniel A Muntz)
Subject: Re: mktemp - Bus Error.
Message-ID: <1992Oct26.233341.19917@zip.eecs.umich.edu>
Sender: news@zip.eecs.umich.edu (Mr. News)
Organization: University of Michigan EECS Dept., Ann Arbor
References: <6607@otc.otca.oz>
Date: Mon, 26 Oct 1992 23:33:41 GMT
Lines: 16

In article <6607@otc.otca.oz> alexk@otc.otca.oz.au (Alex Kowalenko) writes:
>I'm having problems with mktemp failing due to a Bus Error.  Even a simple program like the
>following will fail:
>
>#include<stdio.h>
> 
>main()
>{
>        printf("%s\n",mktemp("XXXX"));
>}
>Anyone else noticed this yet? Any fixes in mktemp?

Yes.  Compile with -traditional: 'cc -traditional foo.c'
I suppose someone could "fix" mktemp...

  -Dan