Re: Bug in Makefile.shlib - Mailing list pgsql-hackers

From Olivier PRENANT
Subject Re: Bug in Makefile.shlib
Date
Msg-id Pine.UW2.4.21.0209042241510.29908-100000@server
Whole thread Raw
In response to Re: Bug in Makefile.shlib  (Larry Rosenman <ler@lerctr.org>)
List pgsql-hackers
Me again!!

These are errors I get with orginal Makefile.shlib:

Warning: No bytecode->native mapping for a bytecode
Warning: JIT compiler failed for org/apache/crimson/parser/Parser2.maybeComment(Z)Z
UX:ld: INFO: text relocations referenced from files:
DynaLoader.a(DynaLoader.o)
UX:ld: ERROR: relocations remain against non-writeable, allocatable section .text
gmake[3]: *** [libplperl.so.0.0] Error 1
gmake[2]: *** [all] Error 2
gmake[1]: *** [all] Error 2
gmake: *** [all] Error 2
UX:make: ERROR: fatal error.

Regards,
On 4 Sep 2002, Larry Rosenman wrote:

> Date: 04 Sep 2002 12:37:35 -0500
> From: Larry Rosenman <ler@lerctr.org>
> To: Tom Lane <tgl@sss.pgh.pa.us>
> Cc: ohp@pyrenet.fr, pgsql-hackers list <pgsql-hackers@postgresql.org>
> Subject: Re: [HACKERS] Bug in Makefile.shlib
> 
> On Wed, 2002-09-04 at 12:28, Tom Lane wrote:
> > Olivier PRENANT <ohp@pyrenet.fr> writes:
> > > I think I figured why I can't buil plperl on unixware 711/OpenUnix 800.
> > 
> > > It seems Makefile.shlib has changed between 722 and 73 and -z text has
> > > been added.
> > 
> > Not hardly.  The "-z text" option has been in there since at least 6.4.
> > 6.4's Makefile.shlib has
> > 
> > ifeq ($(PORTNAME), unixware)
> >   ...
> >   LDFLAGS_SL            := -G -z text
> >   ...
> > endif
> > 
> > which was cribbed from even older shlib support in other files.  We used
> > that up through 7.0 without any revisions.  In 7.1 Makefile.shlib was
> > revised pretty heavily; 7.1 has a unixware section that is identical to
> > current sources, in particular
> > 
> >   LINK.shared        += -Wl,-z,text -Wl,-h,$(soname)
> > 
> > So I think this code is pretty well tested and removing the -z option
> > is more likely to break things than fix them.
> > 
> > What misbehavior are you seeing exactly?
> see my post from ~2 weeks ago on -hackers with a 7.2.[12] problem. 
> 
> It flat doesn't work. 
> 
> I can dig the post up if you want. 
> 
> 
> > 
> >             regards, tom lane
> > 
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> > 
> > http://www.postgresql.org/users-lounge/docs/faq.html
> > 
> 

-- 
Olivier PRENANT             Tel:    +33-5-61-50-97-00 (Work)
Quartier d'Harraud Turrou           +33-5-61-50-97-01 (Fax)
31190 AUTERIVE                      +33-6-07-63-80-64 (GSM)
FRANCE                      Email: ohp@pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)



pgsql-hackers by date:

Previous
From: Olivier PRENANT
Date:
Subject: Re: Bug in Makefile.shlib
Next
From: Tom Lane
Date:
Subject: Re: Bug in Makefile.shlib