🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #24818

Re: Size of INN binaries with perl?

#24818
From: rjk
Date: Sat, 03 Jan 1998 00:00
36 lines
2108 bytes
Russ Allbery <rra@stanford.edu> writes:

> As for stability, the problem is that upgrading Perl will blow away your
> libperl.so and anything linked against it probably won't work with the new
> version of Perl until you recompile it, unless you include the Perl
> version number in libperl.so (which is a bit tricky to do in the build
> process).  Not a major problem; just be careful when upgrading Perl and
> recompile INN too.

The solution to this problem suggested in the Perl docs is that the
path to libperl.so have the perl version number in it, and use -rpath
to make sure ld can see it.  Then when you upgrade Perl you have a
libperl.so for each version, and binaries linked against it still
work.

: sfere; cat /etc/ld.so.conf 
/usr/local/lib
/usr/X11R5/lib
/usr/lib/libc5-compat
/lib/libc5-compat
/usr/X11R6/lib
/usr/lib/i486-linuxaout
: sfere; echo $LD_LIBRARY_PATH   

: sfere; ldd /usr/local/sbin/innd
        libperl.so => /usr/local/lib/perl5/i586-linux/5.00404/CORE/libperl.so (0x4000b000)
        libm.so.5 => /lib/libm.so.5 (0x400a1000)
        libc.so.5 => /lib/libc.so.5 (0x400aa000)
: sfere; grep \^PERL config.data.1.7.2     
PERL_SUPPORT            DO
PERL_LIB        -L/usr/local/lib/perl5/i586-linux/5.00404/CORE -Wl,-rpath,/usr/local/lib/perl5/i586-linux/5.00404/CORE -lperl -lm
PERL_INC                -I/usr/local/lib/perl5/i586-linux/5.00404/CORE
: sfere; 

Technical Details
Message-ID: <wwvzpldvh6l.fsf@sfere.greenend.org.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <68ivvu$bg5$1@krell.snafu.de> <m37m8igag9.fsf@windlord.Stanford.EDU> <68j5qa$e5e$1@krell.snafu.de> <m37m8ida8b.fsf@windlord.Stanford.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <wwvzpldvh6l.fsf@sfere.greenend.org.uk>
Subject: Re: Size of INN binaries with perl?
Date: Sat, 03 Jan 1998 00:00:00 +0000
From: rjk@greenend.org.uk
References: <68ivvu$bg5$1@krell.snafu.de> <m37m8igag9.fsf@windlord.Stanford.EDU> <68j5qa$e5e$1@krell.snafu.de> <m37m8ida8b.fsf@windlord.Stanford.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 312398447
Supersedes: <wwv3ej5ww1c.fsf@sfere.greenend.org.uk>
Organization: Blackbox
Newsgroups: news.software.nntp