[sudo-users] Execution permission denied

Bob Proulx bob at proulx.com
Tue Mar 1 11:03:06 EST 2005


> Bob Proulx wrote:
> > This is getting off-topic for the list, but...

And so discussion moved off.  But this part is back on topic...

> > It might be easiest to compile sudo on the machine.  It compiles
> > easily on hpux.

lars ebeling wrote:
> I have downloaded the source and got compilation errors.
> # make
>         gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" -D_PATH_SUDOERS_TMP
> =\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  getsp
> wuid.c
> In file included from getspwuid.c:50:
> /usr/include/shadow.h:42: error: conflicting types for 'getspnam'
> /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here
> /usr/include/shadow.h:42: error: conflicting types for 'getspnam'
> /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here
> *** Error exit code 1

I am not sure what is up with that.  On my installation I see:

  grep getspnam /usr/include/prot.h /usr/include/shadow.h
  /usr/include/prot.h:extern struct spwd *getspnam __((const char *));
  /usr/include/shadow.h:     extern struct spwd * getspnam(const char *);

I suspect a problem with your GCC installation.  It compiles for me
with gcc-3.3 fine.

Try using the native compiler.  At least as of 1.6.5 I know it still
compiles using the bundled HP-UX compiler because I just tried it.
And if you have the ANSI compiler installed so much the better.

  ./configure CC=cc

> Sorry only mistakes it's not a D370 it's D330. kernel is
> /stand/vmunix:  PA-RISC1.1 executable -not stripped .  The old sudo
> was for pa-risc 2.0

I think the D330 is the PA-7300 cpu (although not sure) which is a
PA-RISC-1.1 cpu.  PA-RISC-2.0 came in with the PA-8000 cpu.

Bob



More information about the sudo-users mailing list