Bugzilla – Bug 46
conflicting types for readlink
Last modified: 2001-07-18 19:48:30 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.
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.
I tried your suggestions and it worked. Thank you.