Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!ugle.unit.no!nuug!ulrik!ulrik!aas From: aas@aase.nr.no (Gisle Aas) Newsgroups: comp.lang.perl Subject: Re: Sun-3 and pl44 Message-ID: Date: 18 Jan 91 08:40:18 GMT References: <585@sunny.ucdavis.edu> Sender: news@ulrik.uio.no (USENET News System) Reply-To: Gisle.Aas@nr.no Organization: Norwegain Computing Centre, Oslo, Norway Lines: 24 In-Reply-To: mitch@hq.af.mil's message of 16 Jan 91 18:38:24 GMT In article mitch@hq.af.mil (Mitch Wright) writes: Tom> FYI, op.dbm has an infinite while loop when patch Tom> level 44 is compiled with gcc (1.37.1) on a Sun-3 (4.0.3). Tom> Apparently, reading from an empty ndbm file returns nulls Tom> (as opposed to undefs or EOF). I had the same problem, but subsequently canceled the article after receiving a blindingly fast reply from Larry. The problem is probably due to the fact the -fpcc-struct-return was not in your CFLAGS. That alone fixed the problem for me. I experience the same problem when compiling perl (3@44) using gcc on Sun Sparcstation (SunOS 4.1). The -fpcc-struct-return flag is _NOT_ missing. No problem when using the SunOS cc compiler. Any ideas? I have no problems using gcc on Sun-3 platforms. -- Gisle Aas | snail: Boks 114 Blindern, N-0314 Oslo, Norway Norsk Regnesentral | X.400: G=Gisle;S=Aas;O=nr;P=uninett;C=no voice: +47-2-453561 | inet: Gisle.Aas@nr.no