[sudo-users] make error with sudo 1.8.3 on HPUX 11.23 itanium machine

Todd C. Miller Todd.Miller at courtesan.com
Mon Nov 21 11:29:59 EST 2011


On Fri, 18 Nov 2011 18:16:36 +0530, Rakesh Rajasekharan wrote:

> I am getting the below error with make
> 
> In file included from /usr/include/sys/mp.h:53,
>                  from /usr/include/sys/malloc.h:59,
>                  from /usr/include/net/netmp.h:51,
>                  from /usr/include/net/if.h:59,
>                  from ../../src/net_ifs.c:78:
> /usr/include/machine/sys/getppdp.h:65: error: array type has incomplete
> element type
> make[1]: *** [net_ifs.o] Error 1
> make[1]: Leaving directory `/compile/sudo-1.8.3p1/plugins/sudoers'
> make: *** [all] Error 2

I'm able to compile sudo 1.8.3p1 on HP-UX 11.23 with gcc 4.1.1
without issues.

As as workaround, you could edit /usr/include/machine/sys/getppdp.h
and change line 65 from:

extern union mpinfou spu_info[];

to:

#ifdef _KERNEL
extern union mpinfou spu_info[];
#endif

since union mpinfou is only declared by /usr/include/sys/mp.h when
_KERNEL is defined.  For some reason, it appears that gcc 4.4.1
doesn't care about this (or the headers on my machine are subtly
different).

Another workaround would be to run sudo's configure script with the
--without-interfaces option which will disable the code that is
including those headers.

 - todd



More information about the sudo-users mailing list