* less has version "osf.1" not match libcurses.so version "xpg4"
@ 1998-05-24 4:00 Jim Belonis
1998-05-25 4:00 ` Gerald A. Feldman
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Jim Belonis @ 1998-05-24 4:00 UTC (permalink / raw)
We have a directory /pub/bin where we keep locally compiled stuff including
'less' which has worked for various versions of Digital Unix through 4.0B.
But we just received a DEC Alpha PC with Digital Unix 4.0D pre-installed.
It gives an error message when we run several (all ?) of these old executables.
ben 9# less .cshrc
5790:/pub/bin/less: /sbin/loader: Fatal Error: object libcurses.so from liblist
in /pub/bin/less has version "osf.1", which does not match the found object:
/usr/shlib/libcurses.so (with version "xpg4")
ben 10#
Can we work-around this without recompiling everything ?
If we have to recompile, will we need to keep a 4.0B version of all the
programs plus new 4.0D versions ?
And, of course, more generally, what is this about ?
--
J.James(Jim)Belonis II, U of Washington Physics Computer Cost Center Manager
belonis@phys.washington.edu Internet University of Washington Physics Dept.
http://www.phys.washington.edu/~belonis r. B234 Physics Astronomy Building
1pm to midnite 7 days (206) 685-8695 Box 351560 Seattle, WA 98195-1560
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: less has version "osf.1" not match libcurses.so version "xpg4"
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-26 4:00 ` Nikola Milutinovic
1998-05-25 4:00 ` Gerald A. Feldman
1998-05-27 4:00 ` Tim Mooney
2 siblings, 1 reply; 6+ messages in thread
From: Gerald A. Feldman @ 1998-05-25 4:00 UTC (permalink / raw)
To: belonis
Jim Belonis wrote:
>
> We have a directory /pub/bin where we keep locally compiled stuff including
> 'less' which has worked for various versions of Digital Unix through 4.0B.
> But we just received a DEC Alpha PC with Digital Unix 4.0D pre-installed.
> It gives an error message when we run several (all ?) of these old executables.
>
> ben 9# less .cshrc
> 5790:/pub/bin/less: /sbin/loader: Fatal Error: object libcurses.so from liblist
> in /pub/bin/less has version "osf.1", which does not match the found object:
> /usr/shlib/libcurses.so (with version "xpg4")
The curses library was changed. You will need to load the old version
of curses. I don't remember the exact subset name, but it has the word
OBSOLETE in it.
--
Jerry Feldman <gaf@mediaone.net>
Boston Computer Solutions and Consulting
http://gaf.ne.mediaone.net/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: less has version "osf.1" not match libcurses.so version "xpg4"
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-27 4:00 ` Tim Mooney
2 siblings, 0 replies; 6+ messages in thread
From: Gerald A. Feldman @ 1998-05-25 4:00 UTC (permalink / raw)
Jim Belonis wrote:
>
> We have a directory /pub/bin where we keep locally compiled stuff including
> 'less' which has worked for various versions of Digital Unix through 4.0B.
> But we just received a DEC Alpha PC with Digital Unix 4.0D pre-installed.
> It gives an error message when we run several (all ?) of these old executables.
>
> ben 9# less .cshrc
> 5790:/pub/bin/less: /sbin/loader: Fatal Error: object libcurses.so from liblist
> in /pub/bin/less has version "osf.1", which does not match the found object:
> /usr/shlib/libcurses.so (with version "xpg4")
The curses library was changed. You will need to load the old version
of curses. I don't remember the exact subset name, but it has the word
OBSOLETE in it.
--
Jerry Feldman <gaf@mediaone.net>
Boston Computer Solutions and Consulting
http://gaf.ne.mediaone.net/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: less has version "osf.1" not match libcurses.so version "xpg4"
1998-05-25 4:00 ` Gerald A. Feldman
@ 1998-05-26 4:00 ` Nikola Milutinovic
0 siblings, 0 replies; 6+ messages in thread
From: Nikola Milutinovic @ 1998-05-26 4:00 UTC (permalink / raw)
Gerald A. Feldman wrote:
>
> The curses library was changed. You will need to load the old version
> of curses. I don't remember the exact subset name, but it has the word
> OBSOLETE in it.
Obsolete command and utilities (?)
Obsolete locale database (?)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: less has version "osf.1" not match libcurses.so version "xpg4"
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-27 4:00 ` Tim Mooney
1998-05-28 4:00 ` Serguei Patchkovskii
2 siblings, 1 reply; 6+ messages in thread
From: Tim Mooney @ 1998-05-27 4:00 UTC (permalink / raw)
In article <6k8ksf$ub2$1@nntp6.u.washington.edu>,
Jim Belonis <belonis@dirac.phys.washington.edu> wrote:
> We have a directory /pub/bin where we keep locally compiled stuff including
> 'less' which has worked for various versions of Digital Unix through 4.0B.
> But we just received a DEC Alpha PC with Digital Unix 4.0D pre-installed.
> It gives an error message when we run several (all ?) of these old executables.
>
> ben 9# less .cshrc
> 5790:/pub/bin/less: /sbin/loader: Fatal Error: object libcurses.so from liblist
> in /pub/bin/less has version "osf.1", which does not match the found object:
> /usr/shlib/libcurses.so (with version "xpg4")
> ben 10#
>
> Can we work-around this without recompiling everything ?
>
> If we have to recompile, will we need to keep a 4.0B version of all the
> programs plus new 4.0D versions ?
>
> And, of course, more generally, what is this about ?
You could work around this by loading the appropriate OBSOLETE fileset(s), to
get the pre-4.x curses library, which had an internal version of `osf.1' (use
`odump -D' to see the internal library version, or `odump -Dl' to see what
libraries a program depends on).
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>)
Note that if you had recompiled your curses based applications at any of
4.0 through 4.0c, they would have linked with the newer version of curses and
then upgrading to 4.0d wouldn't have caused the problem.
At 4.0d, the old curses library is no longer available by default, so you would
need to load the OBSOLETE fileset to get it.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: less has version "osf.1" not match libcurses.so version "xpg4"
1998-05-27 4:00 ` Tim Mooney
@ 1998-05-28 4:00 ` Serguei Patchkovskii
0 siblings, 0 replies; 6+ messages in thread
From: Serguei Patchkovskii @ 1998-05-28 4:00 UTC (permalink / raw)
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" ;
----
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-05-28 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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-26 4:00 ` Nikola Milutinovic
1998-05-25 4:00 ` Gerald A. Feldman
1998-05-27 4:00 ` Tim Mooney
1998-05-28 4:00 ` Serguei Patchkovskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox