From owner-freebsd-ports@FreeBSD.ORG Fri Feb 11 16:09:30 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 CCD7816A4CE; Fri, 11 Feb 2005 16:09:30 +0000 (GMT) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E44343D1F; Fri, 11 Feb 2005 16:09:30 +0000 (GMT) (envelope-from sven@dmv.com) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) j1BGMlWa031233; Fri, 11 Feb 2005 11:22:47 -0500 (EST) (envelope-from sven@dmv.com) From: Sven Willenberger To: Palle Girgensohn In-Reply-To: <510442EEF15A0237A0138D49@rambutan.pingpong.net> References: <1108135462.10866.12.camel@lanshark.dmv.com> <510442EEF15A0237A0138D49@rambutan.pingpong.net> Content-Type: text/plain Date: Fri, 11 Feb 2005 11:10:15 -0500 Message-Id: <1108138215.10866.20.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.48 on 216.240.97.42 cc: tobez@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: 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 16:09:30 -0000 On Fri, 2005-02-11 at 16:46 +0100, Palle Girgensohn wrote: > --On fredag, februari 11, 2005 10.24.22 -0500 Sven Willenberger > wrote: > > > FreeBSD 4.10 > > Postgresql 7.4.7 > > Perl 5.8.6_2 (from ports) > > > > relevant /etc/make.conf lines: > ># added by use.perl 2005-02-07 18:32:47 > > PERL_VER=5.8.6 > > PERL_VERSION=5.8.6 > > NOPERL=yes > > > > > > When building databases/p5-postgresql-plperl the resultant plperl.so > > (/usr/local/lib/postgresql/plperl.so) links to the libperl.so > > in /usr/lib instead of /usr/local/lib/perl5/5.8.6/mach/CORE/. > > > > ldd /usr/local/lib/postgresql/plperl.so > > /usr/local/lib/postgresql/plperl.so: > > libperl.so => /usr/lib/libperl.so (0x2810b000) > > libm.so.2 => /usr/lib/libm.so.2 (0x281a3000) > > libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x281be000) > > libutil.so.3 => /usr/lib/libutil.so.3 (0x281d7000) > > > > the configure script used by postgresql itself tests for the lib > > directory via: > >|> perl -MConfig -e 'print $Config{archlibexp}' > > /usr/local/lib/perl5/5.8.6/mach > > > > so it appears to find it ... is something in ports overriding this > > location or is there something I can -Define to have it use the correct > > libperl.so? > > > >|> ls -al /usr/lib/libperl.so > > lrwxr-xr-x 1 root wheel 12 Oct 26 10:57 /usr/lib/libperl.so -> > > libperl.so.3 > >|> ls -al /usr/lib/libperl.so.3 > > -r--r--r-- 1 root wheel 614824 Oct 26 10:57 /usr/lib/libperl.so.3 > >|> ls -al /usr/local/lib/perl5/5.8.6/mach/CORE/libperl.so > > -r-xr-xr-x 1 root wheel 1094925 Feb 7 > > 18:31 /usr/local/lib/perl5/5.8.6/mach/CORE/libperl.so > > > > or should this be filed as a bug/PR ?? > > > > Sven Willenberger > > > Hi! > > I'd say this is a bug in the perl port. Just like it relinks the perl > binary, it should ultimately relink the libperl.so file. > > /Palle > > manually linking /usr/lib/libperl.so to the correct one did solve my createlang plperl issue so yes, it would seem that use.perl may need to symlink libperl.so in addition to the other links it creates. This one is a bit unique in that it resides in /usr/lib rather than /usr/bin where all the other symlinks reside. Sven