Xref: utzoo comp.sys.hp:7569 gnu.gcc.help:387 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!cedman From: cedman@golem.ps.uci.edu (Carl Edman) Newsgroups: comp.sys.hp,gnu.gcc.help Subject: Re: Problems building gcc on HP-UX 7.0 (9k3XX) Message-ID: Date: 2 Feb 91 01:18:11 GMT References: <1991Feb01.193535.15868@sat.uucp> Organization: University of California, Irvine, USA. Lines: 38 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: lmb@sat.uucp's message of 1 Feb 91 19:35:35 GMT In article <1991Feb01.193535.15868@sat.uucp> lmb@sat.uucp (Larry Blair) writes: I have spent far too much time trying to get gcc up on my HP-UX 7.0 system. The first problem, which has nothing to do with gcc, is that I can't build ranlib. I'm getting an undefined for _psignal. Where is this supposed to come from? Sorry. I have compiled gcc quite a few times on this system, and after properly setting up the makefile all the rest is just a matter of typeing 'make' and waiting an hour or two. Maybe you should check your makefile. My current stumbling block is that gnu-ld doesn't like /lib/crt0.o. I had been told that HP-UX used the BSD a.out format, but this would seem to indicate otherwise. I tried to apply the robotussin program, on the chance that it is in COFF, but I can't get robotussin.c to compile. This problem is very common. OK, here is the explanation again. You probably configured your gcc to output gnu format object/library files. Then you have to use the gnu linker, stripper, assembler, nm, a.s.o. To be able to use old libary files you have to convert them and store them somewhere else (e.g. /usr/local/lib/gnu). To do this you use either 'hpxt' on each file or the 'mkhplib' script to convert all library files. What next? And what else do I need to look out for? I think that should fix most of your problems. If not, mail me. Carl Edman Theoretical Physicist,N.: A physicist whose | Send mail existence is postulated, to make the numbers | to balance but who is never actually observed | cedman@golem.ps.uci.edu in the laboratory. | edmanc@uciph0.ps.uci.edu * Did you know that you can have a typo in your signature, send 100s of * * mails and 100s of world-wide posts, and nobody will ever tell you ? *