Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!samsung!sdd.hp.com!wuarchive!psuvax1!psuvm!cunyvm!uupsi!sunic!dkuug!daimi!pcn From: pcn@daimi.aau.dk (Peder Chr. N|rgaard) Newsgroups: comp.lang.perl Subject: Re: Sun-3 and pl44 Message-ID: <1991Jan18.193134.11718@daimi.aau.dk> Date: 18 Jan 91 19:31:34 GMT References: <585@sunny.ucdavis.edu> Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 22 aas@aase.nr.no (Gisle Aas) writes: >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? Yes, this is an error, or whatever you choose to call it, in gcc code generation for the Sparc architecture. The function call it generates is not compliant with the SPARC standards - something about not putting in the size of the result of a function call. Whatever the reason, a program compiled with gcc 1.37.1 cannot call a function from Sun's libc if that function returns more than four bytes. Which the dbm routines do. I had other problems with using gcc for compiling perl (some strange things happened with fork calls) and eventually gave it up as a bad job and stuck to Suns cc. -- Peder Chr. Norgaard **** pcnorgaard@daimi.aau.dk Computer Science Department, Aarhus University Ny Munkegade 116, DK-8000 Aarhus C, DENMARK phone: +45 86 12 71 88 / telefax: +45 86 13 57 25 / telex: 64767 aausci dk