[MPlayer-users] rant

Steve Stavropoulos steve at math.upatras.gr
Tue Oct 9 00:11:35 CEST 2001

On Mon, 8 Oct 2001, Arpi wrote:

> see my prev mail. i need the version of compiler being _used_, it may differ
> from that one was installed from rpm/deb.

The command
	gcc -v
	gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-94)
gcc3 gives:
	gcc version 3.0.1 20010710 (Red Hat Linux 7.1 3.0-3)

you could just do an extra check if you detect 2.96 version to see if it
is a recent enough version.

$version_tmp=`$CC -v`
$version=`echo $version_tmp | tail -1`
if [ -n `echo $version | grep 'version 2.96'` ]; then
  if [ -n `echo $version | grep 'Red Hat'` ]; then
    $build=`echo $version | sed -e 's/^.*-\(..\))/\1/'`
    if [ $build < '85' ]; then
      echo -e "You shall upgrade to gcc version >= 2.96-85\n The following URL has the original RedHat announcement:\n http://www.redhat.com/mailing-lists/redhat-watch-list/msg00223.html"
  elif [ -n `echo $version | grep 'Mandrake'` ]; then
    echo "Upgrade to RedHat Linux, http://www.redhat.com"

This a script I just wrote to demonstrate how easy it is to detect the
version (haven't tested it, but it shouldn't have any problem).
 I repeat that gcc-2.96-85 and later shouldn't have any problem with
mplayer. I haven't heard of such a problem at least.

More information about the MPlayer-users mailing list