[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HP-UX patches
From: |
Mark . Burgess |
Subject: |
Re: HP-UX patches |
Date: |
Tue, 26 Feb 2002 11:04:28 +0100 (MET) |
On 25 Feb, Tim Auckland wrote:
> I've had some trouble compiling cfengine on HP-UX.
>
> I ended up having to make two changes:
>
> The first is because I don't have a libPW on this system. I'm not sure
> what it is supposed to do, but cfengine appears to run fine without it
> (to be a usable patch, this would need to be translated into a change to
> configure.in of course).
>
> --- cfengine-2.0.b2/configure.orig Tue Feb 19 04:24:00 2002
> +++ cfengine-2.0.b2/configure Fri Feb 22 18:46:18 2002
> @@ -6669,7 +6669,7 @@
> EOF
>
> fi
> - LIBS="$LIBS -lc -lPW"
> + LIBS="$LIBS -lc"
> ;;
> aix*)
> cat >>confdefs.h <<\EOF
I cannot remember why PW was needed. I shall comment it out and see
if someone complains.
>
> The second change, is to include HP in the list of OS's for which
> alloca.h is required. HP's professional C compiler needs this because
> alloca() is a macro. This wouldn't affect gcc users.
>
> --- cfengine-2.0.b2/src/cfparse.c~ Tue Feb 19 11:11:35 2002
> +++ cfengine-2.0.b2/src/cfparse.c Fri Feb 22 18:50:47 2002
> @@ -307,7 +307,7 @@
> #ifdef __GNUC__
> #define alloca __builtin_alloca
> #else /* not GNU C. */
> -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) ||
> defined (__sparc) || defined (__sgi)
> +#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) ||
> defined (__sparc) || defined (__sgi) || defined (__hpux)
> #include <alloca.h>
> #else /* not sparc */
> #if defined (MSDOS) && !defined (__TURBOC__)
>
It does not make sense to patch this file because it is generated
by bison/yacc. Perhaps you need to upgrade your version of that
software? Or is there another way the presence of this can be tested?
Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: address@hidden
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Re: HP-UX patches,
Mark . Burgess <=