Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!gargoyle!igloo!ddsw1!proxima!undeed!barrett From: barrett@Daisy.EE.UND.AC.ZA (Alan P. Barrett) Newsgroups: comp.lang.perl Subject: Re: Perl for HP-UX 7.0 Message-ID: <1991Feb06.083909.8101@Daisy.EE.UND.AC.ZA> Date: 6 Feb 91 08:39:09 GMT References: <1991Jan31.161906.9083@convex.com> <4768@ruuinf.cs.ruu.nl> Organization: Univ. Natal, Durban, S. Africa Lines: 51 In article <4768@ruuinf.cs.ruu.nl>, piet@cs.ruu.nl (Piet van Oostrum) writes: > DM> Has anyone compiled perl 3.0PL44 to run under HP-UX 7.0? Are there any > DM> got-chas to be aware of? > > These are the things to watch: > > # config.sh > > optimize='+O1' > ccflags='-Wc,-Nw500' > libs='-lnet -lndir -lndbm -lmalloc -lm -lBSD' > > The others are taken care of by Configure. (I'm talking about the > 9000/300/400 series, not the 800's) Whoops, I forgot about that, and sent email to the original enquirer telling him that Configure took care of everything. Sorry. What I really do is this: 1. Run Configure, letting it figure everything out for itself. (I should probably add -lmalloc to the list of libs, but I don't do that and Configure doesn't find it for itself, so perl ends up using the standard malloc from libc.) 2. make depend. 3. Run this little 'Pre-make' script to make some of the objects using different CFLAGS. The standard set of CFLAGS (including '-O') works fine on all the other object files not mentioned in this script. I suspect that -O might also work on the objects mentioned here, if you have enough physical memory or enough time to wait; on our HP9000/370 with 8 Meg of memory, compiling these with '-O' makes the VM system thrash the disk for hours (yes, hours). #!/bin/sh # # Make some things with different CFLAGS. --apb # # Run this before running a normal make. # make "CFLAGS=+O1 +Nw500" eval.o teval.o make "CFLAGS=+O1" toke.o ttoke.o (cd x2p ; make "CFLAGS=+O1" walk.o) 4. Now run a make. --apb Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa Internet: barrett@ee.und.ac.za (or %ee.und.ac.za@saqqara.cis.ohio-state.edu) UUCP: m2xenix!quagga!undeed!barrett PSI-Mail: PSI%(6550)13601353::BARRETT