Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!mcnc!duke!khera From: khera@thneed.cs.duke.edu (Vick Khera) Newsgroups: comp.lang.perl Subject: Re: Perl 4.0 refuses to compile using gcc 1.30 Message-ID: Date: 10 Apr 91 16:04:33 GMT References: <1553@sunc.osc.edu> Sender: news@duke.cs.duke.edu Organization: Duke University CS Dept., Durham, NC Lines: 28 Nntp-Posting-Host: thneed.cs.duke.edu In-reply-to: phil@cgrg.ohio-state.EDU's message of 10 Apr 91 13:41:22 GMT In article <1553@sunc.osc.edu> phil@cgrg.ohio-state.EDU (Phil Ritzenthaler) writes: Background: Sun 4/280 Sun OS 4.1.1 GNU gcc compiler version 1.39 Problem: Unfortunately, I don't read this news group as often as I probably should, but I cannot get perl 4.0 to compile using gcc. I run through the standard Configure just changing the line cc to gcc when it asks. Judging by what occurs after, Larry obviously has made provisions for gcc in the Configure. don't bother compiling Perl with gcc on a SPARC based machine. it just is not going to work. the problem is that gcc and Sun's cc pass structures differently, and the dbm routines take parameters that way. since the dbm library is compiled using cc, calling those functions from gcc will cause major league problems. what about using gcc's -fpcc-struct-return, you may ask? well, that works for structure *returns* not structure passing. 'tis a pity, though. i really like gcc. when gcc 2.0 finally comes out, this will be fixed. should there be a note to this effect in the perl distribution? or is there one and i missed it? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera, Gradual Student/Systems Guy Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528