From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,56fafa30d6610151 X-Google-Attributes: gidfee84,public 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 Message-ID: <6kk24b$jau@ds2.acs.ucalgary.ca>#1/1 X-Deja-AN: 357342221 References: <6k8ksf$ub2$1@nntp6.u.washington.edu> <6kiisg$ih1@dogbert.cc.ndsu.NoDak.edu> Organization: The University of Calgary Newsgroups: comp.unix.osf.osf1 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//) 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" ; ----