Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii)
Subject: Re: less has version "osf.1" not match libcurses.so version "xpg4"
Date: 1998/05/28	[thread overview]
Message-ID: <6kk24b$jau@ds2.acs.ucalgary.ca> (raw)
In-Reply-To: 6kiisg$ih1@dogbert.cc.ndsu.NoDak.edu


Tim Mooney (mooney@dogbert.cc.ndsu.NoDak.edu) wrote:
: less apparently was compiled under 3.x.  Under 4.0 - 4.0c, the default curses
: library is the (supposedly!) X/Open Portability Guide 4 (xpg4) compliant
: curses library *but* the previous version of the curses library (which had
: an `osf.1' version) was kept around where the loader could find it (
: /usr/shlib/<version>/<soname>)

Actually, you may also try to replace the required shared lib version in
the executable itself - personally, I find it more convenient than having
several copies of the lib floating around (especially since I have to go
to a differemt building to put the O/S CD in the drive, and I hate being
soaked by rain ;-). Last time I did this, I simply used a dumb perl script. 
If your executable has 'osf.1' in other places apart from the library list, 
or if it has more than one library in the list you'll have to tinker with 
the script a bit.

Cheese,

/Serge.P

----
#!/freeware/bin/perl5

$file    = `cat $ARGV[0]` ;
$matches = 0 ;
while( $file =~ /osf\.1/g ){ $matches++ }
$file =~ s/osf\.1/xpg4\0/g ;
print $file ;
printf STDERR "Len = ", length($file), " items = ", $matches, "\n" ;
----



      reply	other threads:[~1998-05-28  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-24  4:00 less has version "osf.1" not match libcurses.so version "xpg4" Jim Belonis
1998-05-25  4:00 ` Gerald A. Feldman
1998-05-25  4:00 ` Gerald A. Feldman
1998-05-26  4:00   ` Nikola Milutinovic
1998-05-27  4:00 ` Tim Mooney
1998-05-28  4:00   ` Serguei Patchkovskii [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox