Hi,

I am running a RHL 6.2 box, with kernel 2.2.14-5.0. Here is what I get
in the output of `ldconfig -v -n'

[root@telnetlin /root]# /sbin/ldconfig -v -n
/sbin/ldconfig: version 1999-02-21
[root@telnetlin /root]#

So, when DoOsChecks() parses the above output, we get the wrong version
number, as the output consists of the date and not the version. Possibly
it is a bug in RHL 6.2 itself, but could not find it in the archives.

Cheers,
--amarendra


DoOsChecks()
{
        # Do some OS-specific checks

        case "$OsName" in
        Linux)
                case "$OsObjFormat" in
                ELF)
                        # Check ldconfig
                        LDSO=`/sbin/ldconfig -v -n | awk '{ print $3 }'`


[amarendra] LDSO now contains 1999-02-21, instead of the version number.


                        # if LDSO is empty ldconfig may be Version 2
                        if [ X"$LDSO" = X ]; then
                                LDSO=`/sbin/ldconfig -V | awk 'NR == 1 {
print $4 }'`
                        fi
                        LDSOMIN=`echo $LDSO | awk -F[.-] '{ print $3 }'`
                        LDSOMID=`echo $LDSO | awk -F[.-] '{ print $2 }'`
                        LDSOMAJ=`echo $LDSO | awk -F[.-] '{ print $1 }'`


[amarendra] The parse goes wrong here due to the wrong value in LDSO.


                        if [ "$LDSOMAJ" -gt 1 ]; then
                                : OK
                        else
                                if [ "$LDSOMID" -gt 7 ]; then
                                        : OK
                                else
                                        if [ "$LDSOMIN" -ge 14 ]; then
                                                : OK

[...snipped...]


--
Amarendra A. Godbole / Microsoft ``Services For UNIX'' / These opinions
are _MINE_.
If anything can go wrong, _FIX_ it. (To hell with MURPHY)

Reply via email to