Error message during compilation of 1.6.3p7

Bob Proulx bob at proulx.com
Tue Aug 14 17:43:01 EDT 2001


> I am attempting to compile sudo 1.6.3p7 on HP-UX 11.00

Builds fine for me using the HP native ANSI compiler.

> using gcc and get the following error:
> 
>         gcc -c -I. -I.  -D_HPUX_SOURCE -g -O2 -D_PATH_SUDOERS=\"/usr/local/etc/sudoers\" -D_PATH_SUDOERS_TMP=\"/usr/local/etc/sudoers.tmp\" -DSUDOERS_UID=2 -DSUDOERS_GID=2 -DSUDOERS_MODE=0600 find_path.c
> In file included from find_path.c:45:
>         gcc -c -I. -I.  -D_HPUX_SOURCE -g -O2 -D_PATH_SUDOERS=\"/usr/local/etc/sudoers\" -D_PATH_SUDOERS_TMP=\"/usr/local/etc/sudoers.tmp\" -DSUDOERS_UID=2 -DSUDOERS_GID=2 -DSUDOERS_MODE=0600  find_path.c
> In file included from find_path.c:45:
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:26: warning: `__va__list' redefined
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is the location of the previous definition
> find_path.c:61: conflicting types for `readlink'
> /usr/include/sys/unistd.h:217: previous declaration of `readlink'
> *** Error exit code 1

It looks like your GCC is not configured well for HP-UX 11.0.  Which
does not surprise me since GCC does not support HP-UX 11.0 very well
at all.  Officially you need to use the GCC 3.0 compiler to get 11.0
support.  But that has it's own set of issues that may prevent people
from wanting to use it at this date.

> Any suggestions?

Try building using the native HP ANSI compiler.  It works fine for
me on my HP-UX 11.0 platforms.

If you have a HP-UX 10.20 machine handy you can use GCC there to
compile the program, and then run the 10.20 program on both 10.20 and
11.0.  HP-UX 11.0 is backward compatible to HP-UX 10.20 programs and
will run them just fine.

  CC=cc CFLAGS='-O' ./configure --prefix=/usr

Bob



More information about the sudo-workers mailing list