Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 1997 22:01:06 -0400 (EDT)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Michael Smith <msmith@atrad.adelaide.edu.au>
Cc:        ports@freebsd.org
Subject:   Re: detecting shared lib versions
Message-ID:  <Pine.OSF.3.95q.970410215310.4676D-100000@skipper.eng.umd.edu>
In-Reply-To: <199704110132.LAA07928@genesis.atrad.adelaide.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 11 Apr 1997, Michael Smith wrote:

> Chuck Robey stands accused of saying:
> > Back when I did the first kaffe port, it depended on a specific version of
> > the jdk being at a specific spot.  I think that's congruent to your
> > problem, since the linux libs are restricted to a specific name/spot also. 
> > I just had a short script that did an md5 on the jdk and compared the
> > return with a stored value (I think in ${FILESDIR}/classes.zip.1.02.md5}. 
> > If it failed the check, it printed an error message and quit.  Would this
> > work for you? 
> 
> No; maybe I wasn't clear about what I want - I have a port that
> requires "at least version 5.4.4" of the Linux libc.  The 2.3
> linux_lib port contains libc.so.5.3.12, which is symlinked by the
> linux 'ldconfig' as 'libc.so.5'.  The most current libc erich could
> find was libc.so.5.4.23, which works fine.
> 
> In some future time, another linux_lib distribution is likely to contain
> yet another libc version; it would be nice not to have to 'fix' the
> StarOffice port at that point to require the new library, ie. it should be
> happy with "anything" later then 5.4.4.

I did a hexdump of my most recent Linux lib (libc.so.5.3.12) and found
that a grep like:

grep "The Linux C library" libc.so.5.3.12

yields:

        ,/@(#) The Linux C library 5.3.12Uknown uid_t size and sign

Unfortunately, when I tried this neat thing on various other libc versions
I have littering around, the response wasn't reliable, so I'm sorry, I
haven't any reliable way to tell this.  I know some folks who know Linux
fairly well; I'll ask and see what kind of response I get.  I'll look for
something that would not need the linux toolset to accomplish.

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@eng.umd.edu          | communications topic, C programming, and Unix.
9120 Edmonston Ct #302      |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95q.970410215310.4676D-100000>