This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DoOsChecks() in Xinstall.sh returns wrong LDSO{MIN,MID,MAJ} variable values !


Amarendra,

This is the mailing list for running X11 via cygwin, so I don't think it
would be the best place for binutils questions.  You should probably send
your query to binutils@sources.redhat.com, which is the list perused by
may people knowledgable in that area.  The list archives can be found at
http://sources.redhat.com/binutils/.  I hope that helps :).

Cheers,
Nicholas

P.S. - I can't believe Microsoft actually allows you to run RedHat on one
of their machines... =)

--- "Amarendra Godbole (Intl Vendor)" <v-amarg@microsoft.com> wrote:
> 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)


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]