Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!ucsd!helios.ee.lbl.gov!me10.lbl.gov!milburn From: milburn@me10.lbl.gov (John Milburn) Newsgroups: comp.sys.hp Subject: Re: How to make gcc and g++ on HP-UX 7.0. (Summary) Message-ID: <6172@helios.ee.lbl.gov> Date: 13 Jul 90 00:40:18 GMT References: <15520008@hpdmd48.HP.COM> Sender: usenet@helios.ee.lbl.gov Reply-To: JEMilburn@lbl.gov (John Milburn) Organization: Lawrence Berkeley Laboratory, Berkeley, CA Lines: 26 X-Local-Date: 12 Jul 90 17:40:18 PDT >Compiling the binutils on a hp9k300 I get: > > >> cc -g -Ihp-include -DUSG -DNON_NATIVE -o nm nm.o \ >> getopt.o getopt1.o cplus-dem.o alloca.o gmalloc.o >> ld: Undefined external - >> _getpagesize >> ld: output file still contains undefined symbols >> ld: (Warning) did not generate an output file >> *** Error code 1 getpagesize is defined in ld.c, which is part of the gnu binutils package: getpagesize () { return (4096); } I don't know why you would get this error when trying to link nm with the hp link editor, but perhaps you are having some trouble with gnu ld. -jem -- JEMilburn@lbl.gov ...!ucbvax!lbl.gov!JEMilburn