Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!apple!mrspoc!itkin From: itkin@mrspoc.Transact.COM (Steven M. List) Newsgroups: comp.lang.perl Subject: HELP: PERL 4.0 on SCO Xenix 2.3.3 w/GCC Message-ID: <1991Apr12.234343.16473@mrspoc.Transact.COM> Date: 12 Apr 91 23:43:43 GMT Reply-To: steven@Transact.COM Organization: Transact Software Lines: 20 I've gotten the 4.0 sources, and am trying to build them. I read Ronald Khoo's commentary about ndir vs. dirent, and did as he suggested, removing the "!defined(M_XENIX)" to get past several compile errors. Now I'm having a problem with the "#ifdef __STDC__" stuff that either does or doesn't include the "extern char **environ;". Apparently, through the auspices of the compiler, __STDC__ is being defined. It doesn't seem to matter whether I use CC or GCC, unfortunately (I wrote a little test program to determine whether __STDC__ is defined). As a result, the extern declaration is NOT included and the compilation of doarg.c fails. As will other modules (like util.c). Please help me! I'm very frustrated. I tried the -traditional flag for GCC, but that caused all sorts of other errors. ARGH! Steven -- +----------------------------------------------------------------------------+ : Steven List @ Transact Software, Inc. :^>~ : : Chairman, Unify User Group of Northern California : : itkin@Transact.COM :