Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!ucsd!ucbvax!hplabs!hpcc01!hpdmd48!brown From: brown@hpdmd48boi.hp.com (Kevin Brown) Newsgroups: comp.sys.hp Subject: Re: How to make gcc and g++ on HP-UX 7.0. (Summary) Message-ID: <15520009@hpdmd48boi.hp.com> Date: 13 Jul 90 15:18:47 GMT References: <1583@kuling.UUCP> Organization: Hewlett Packard - Boise, ID Lines: 34 >> 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 have looked into it further: it is gmalloc that calls getpagesize but never defines it. It is true that the 'ld' code defines it for itself. I am further confused 'cuz the source for gmalloc has ominous warnings about editing the file 'cuz it was automatically generated. I've also had trouble compiling ranlib 'cuz it can't find xmalloc. It looks like the alloca.o that I got out of the gcc directory wants to call xmalloc. This wasn't a problem for: ar,gprof,ld, nm objdump, size, and strip 'cuz they all define their own xmalloc. Any one got any hints? Did I leave something important out or not set a flag properly? Thanks Kevin Brown brown@hpbsm15.boi.hp.com