Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!malgudi!sunc.osc.edu!cgrg.ohio-state.EDU!phil From: phil@cgrg.ohio-state.EDU (Phil Ritzenthaler) Newsgroups: comp.lang.perl Subject: Perl 4.0 refuses to compile using gcc 1.30 Message-ID: <1553@sunc.osc.edu> Date: 10 Apr 91 13:41:22 GMT Sender: news@osc.edu Reply-To: phil@cgrg.ohio-state.edu Organization: Advanced Computing Center for Arts & Design Lines: 38 Nntp-Posting-Host: fac1.cgrg.ohio-state.edu 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. From the compilation: gcc -c -fpcc-struct-return -I/usr/include/sun -O -g perly.c gcc -c -fpcc-struct-return -I/usr/include/sun -O -g array.c gcc -c -fpcc-struct-return -I/usr/include/sun -O -g cmd.c gcc -c -fpcc-struct-return -I/usr/include/sun -O -g cons.c gcc -c -fpcc-struct-return -I/usr/include/sun -O -g consarg.c gcc -c -fpcc-struct-return -I/usr/include/sun -O -g doarg.c doarg.c: In function do_assign: doarg.c:1067: `environ' undeclared (first use this function) doarg.c:1067: (Each undeclared identifier is reported only once doarg.c:1067: for each function it appears in.) doarg.c: In function do_undef: doarg.c:1297: `environ' undeclared (first use this function) *** Error code 1 make: Fatal error: Command failed for target `doarg.o' ======================================================== It compiles fine using cc . . . anyone have a work around for this? Thanks . . . Phil Ritzenthaler The Advanced Computing Center for the Arts & Design (ACCAD) Systems Manager The Ohio State University UUCP: ...!{pyramid,killer}!grumpy.cgrg.ohio-state.edu!phil (614) 292-3416 ARPA: phil@grumpy.cgrg.ohio-state.edu