From owner-freebsd-ports@FreeBSD.ORG Fri Feb 11 23:09:27 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50F9616A4CF for ; Fri, 11 Feb 2005 23:09:27 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 313C343D53 for ; Fri, 11 Feb 2005 23:09:26 +0000 (GMT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j1BN9FR7015869; Fri, 11 Feb 2005 18:09:15 -0500 (EST) To: Sven Willenberger In-reply-to: <1108158115.10863.40.camel@lanshark.dmv.com> References: <1108135462.10866.12.camel@lanshark.dmv.com> <510442EEF15A0237A0138D49@rambutan.pingpong.net> <1108138215.10866.20.camel@lanshark.dmv.com> <20050211203503.GA79170@heechee.tobez.org> <1108158115.10863.40.camel@lanshark.dmv.com> Comments: In-reply-to Sven Willenberger message dated "Fri, 11 Feb 2005 16:41:55 -0500" Date: Fri, 11 Feb 2005 18:09:14 -0500 Message-ID: <15868.1108163354@sss.pgh.pa.us> From: Tom Lane cc: Palle Girgensohn cc: pgsql-general@postgresql.org cc: freebsd-ports@freebsd.org cc: Anton Berezin Subject: Re: [GENERAL] databases/p5-postgresql-plperl links to wrong libperl.so X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 23:09:27 -0000 Sven Willenberger writes: >> 2. _Or_ plperl does not go all the way to be a conformant perl-embedding >> application. It looks at $Config{archlibexp}, but it does not follow >> directions described in perlembed(1). In this case it's linking >> should be fixed to respect that. You probably want to stick an rpath into the plperl.so library. PG 8.0 does that by default, but for 7.4 I recommend something like this: RCS file: /projects/cvsroot/pgsql-server/src/pl/plperl/GNUmakefile,v retrieving revision 1.10 diff -r1.10 GNUmakefile 18c18 < override CFLAGS := $(filter-out -Wall -Wmissing-declarations -Wmissing-prototypes, $(CFLAGS)) --- > override CFLAGS := $(filter-out -Wall -Wmissing-declarations -Wmissing-prototypes, $(CFLAGS), -Wl,-rpath,$(perl_archlibexp)/CORE) (The above is taken from the Red Hat RPMs and is known to work on Linux, but I can't swear that it works on any other platform.) regards, tom lane