Xref: utzoo comp.sys.hp:3420 comp.sources.d:4359 Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!hp4nl!esatst!iso!contrib From: contrib@iso.estec.nl (contrib (AM Davidson)) Newsgroups: comp.sys.hp,comp.sources.d Subject: Re: libc.a error when linking perl3.0 on HP-UX 3.10 Summary: Known problem: here's the fix Keywords: libc link perl conditional branch out-of-range Message-ID: <1322@iso.estec.nl> Date: 9 Nov 89 16:53:38 GMT References: <127@geysir.os.is> Organization: ISO Project, Estec, Noordwijk, The Netherlands Lines: 50 In article <127@geysir.os.is> eik@os.is (Einar Kjartansson) writes: >Whe I try to make perl version 3.0, patch level 1, I get the following >output. I tried this also telling perl to use its onw malloc, it made no >difference. This looks like an error in the hp-ux library. >The system is hp-ux 3.10 running on a HP 9000/825. > > cc array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o >eval.o form.o hash.o malloc.o perly.o regcomp.o regexec.o stab.o str.o >toke.o util.o perl.o -lm -ldbm -o perl >/bin/ld: Target of conditional branch is out of range > Reference from: /lib/libc.a(syscall.o)(0x3c) >/bin/ld: Invalid fixups exist >*** Error code 1 > >Stop. >-- > Einar Kjartansson | eik@os.is I had the same problem (on an 840) and called the local support centre - they were very helpful and acknowledged that it is a bug (fixed in HPUX 7.0). The good news is that there is a work around. Do the following: ar xv /lib/libc.a cerror.o syscall.o to extract the offending routines. Now patch them in with the rest of the .o files and link directly, viz: ld /lib/crt0.o array.o cmd.o cons.o consarg.o doarg.o doio.o \ dolist.o dump.o eval.o form.o hash.o perly.o regcomp.o \ regexec.o stab.o str.o toke.o util.o perl.o \ cerror.o syscall.o \ -lm -ldbm \ -lc \ -o perl You'll have to do the same trick with the link of taintperl. Oh BTW, don't use Perl's own malloc - it'll go crazy. Murray. -- =============================================================================== | A.M. Davidson Tel (0)1719-84025 Fax (0)1719-17401 Telex 39098ESTC NL | | mail : ISO Project, ESTEC, PO Box 227, 2200 AG Noordwijk, The Netherlands. | | e-mail: ..mcvax!hp4nl!estec!iso!contrib or contrib@iso.estec.nl | ===============================================================================