Bug 46

Summary: conflicting types for readlink
Product: Sudo Reporter: matt.sherwood
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: normal    
Version: 1.6.3   
Hardware: Other   
OS: Other   

Description matt.sherwood 2001-07-12 13:17:09 MDT
Hello. Given my experience level, this is probably not a bug, but I am at a
loss. I am trying the 'make' command to build sudo on HPUX 11.00, and the
following occurs:

# make
        /opt/gcc/bin/gcc -c -I. -I.  -D_HPUX_SOURCE -g -O2 -D_PATH_SUDOERS=\"/ec
In file included from /usr/include/sys/unistd.h:83,
                 from /usr/include/unistd.h:11,
                 from find_path.c:42:
/usr/include/utime.h:26: warning: `__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: n
find_path.c:61: conflicting types for `readlink'
/usr/include/sys/unistd.h:218: previous declaration of `readlink'
*** Error exit code 1

Stop.

I'm not sure what to do. I am searching through newsgroups for any possible
leads. Any insight you can provide would be greatly appreciated. Thank you.
Comment 1 Todd C. Miller 2001-07-16 20:04:59 MDT
It sounds like configure doesn't think your system has ANSI C headers.  If you edit config.h and change "#undef STDC_HEADERS" to "#define STDC_HEADERS 1" you should be able to compile sudo.  I'll probably just remove those troublesome declarations in the future as non-ANSI headers are much less common than they used to be.
Comment 2 matt.sherwood 2001-07-18 15:48:59 MDT
I tried your suggestions and it worked. Thank you.