Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Segv while compiling ocaml-3.04
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Hars <florian@h...>
Subject: Re: [Caml-list] Segv while compiling ocaml-3.04
On Thu, Dec 20, 2001 at 02:49:17PM -0800, Ian Zimmerman wrote:
> Is it worth polluting the source for the sake of an out-and-out vendor
> bug?  I'd say no.

There is a clean solution to this problem, as implemented in the
configure-script of mplayer (severly edited, the full code is available
at http://mplayerhq.hu/cgi-bin/cvsweb.cgi/main/configure):

if test "$_skip_cc_check" != yes ; then
  echocheck "$_cc version"
  cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
  case $cc_version in
    2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9])
      cc_version="$cc_version, ok"
      ;;
    *)
      cc_version="$cc_version, bad"
      cc_verc_fail=yes
      ;;
  esac
  echores "$cc_version"
  if test "$cc_verc_fail" ; then
    cat <<EOF

*** Please downgrade/upgrade C compiler to gcc-2.95.x or gcc-3.x version! ***

        GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
EOF
    die "Bad gcc version"
  fi
else
cat <<EOF


Yours, Florian.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr