Karim BELABAS on Tue, 18 Jun 2002 09:14:30 +0200 (MEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: failure of 2.2.3 build on HP-UX


On Mon, 17 Jun 2002, Ilya Zakharevich wrote:

> On Mon, Jun 17, 2002 at 08:34:50PM +0200, Karim BELABAS wrote:
> > >   a) USE_GETRUSAGE STACK_CHECK HAS_TIOCGWINSZ are falsely set to 1;
> >
> > This one should be easy to fix. What happens when you compile by hand, e.g
> > config/has_getrusage.c ? (using the same flags as for gp)
>
> /bin/cc -O -Aa +z config/has_getrusage.c
> cc: "config/has_getrusage.c", line 5: error 1574: Unknown size for "a".

Which is the expected result. From that Configure should have gathered that
getrusage is not available.

Check config/look and insert diagnostics messages in the main loop:

 if ($CC $CFLAGS has_$fun.c -o $exe $extra_flags > /dev/null 2>&1); then
    eval "has_$fun=yes"; echo ..."Found $fun."
    case "$_has_list" in
      *has_$fun*);;
      *) _has_list="$_has_list has_$fun";;
    esac
    break
  else
    eval "has_$fun=no"; echo ..."I did not find $fun."
  fi;

Perhaps /bin/cc does not return a useful exit code ?

    Karim.

P.S: I shall insert the relevant code to produce a Configure.log, instead
of redirecting everything to /dev/null. Will make debugging _a lot_ easier.
-- 
Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathematiques, Bat. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas
--
PARI/GP Home Page: http://www.parigp-home.de/