Bug 122 - Warning messages while trying to run configure
Warning messages while trying to run configure
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Configure
1.6.7
Sun Solaris 2.x
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-09-25 14:38 MDT by Selso Nunez
Modified: 2004-01-09 05:37 MST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Selso Nunez 2003-09-25 14:38:20 MDT
I'm trying to setup Sudo v1.6.7 on a Solaris 2.8 server but when I run 
configure I get Warning messages stating that I should report this to bug-
autoconf@gnu.org.   I did send it to bug-autoconf@gnu.org but just in case I 
don't get a response I'm also posting it here.  So I still tried to run make 
and obviously received error messages.  Here is the output when I ran 
configure and make:
bash-2.03# ./configure
configure: Configuring Sudo version 1.6.7
checking whether to lecture users the first time they run sudo... yes
checking whether sudo should log via syslog or to a file by default... syslog
checking which syslog facility sudo should log with... local2
checking at which syslog priority to log commands... notice
checking at which syslog priority to log failures... alert
checking how long a line in the log file should be... 80
checking whether sudo should ignore '.' or '' in $PATH... no
checking whether to send mail when a user is not in sudoers... yes
checking whether to send mail when user listed but not for this host... no
checking whether to send mail when a user tries a disallowed command... no
checking who should get the mail that sudo sends... root
checking for bad password prompt... Password:
checking for bad password message... Sorry, try again.
checking whether to expect fully qualified hosts in sudoers... no
checking for umask programs should be run with... 0022
checking for default user to run commands as... root
checking for editor that visudo should use... vi
checking whether to obey EDITOR and VISUAL environment variables... no
checking number of tries a user gets to enter their password... 3
checking time in minutes after which sudo will ask for a password again... 5
checking time in minutes after the password prompt will time out... 5
checking whether to use per-tty ticket files... no
checking whether to include insults... no
checking whether to override the user's path... no
checking whether to get ip addresses from the network interfaces... yes
checking whether stow should be used... no
checking whether to do user authentication by default... yes
checking whether to disable running the mailer as root... no
checking whether to disable use of POSIX saved ids... no
checking whether to disable shadow password support... no
checking whether root should be allowed to use sudo... yes
checking whether to log the hostname in the log file... no
checking whether to invoke a shell if sudo is given no arguments... no
checking whether to set $HOME to target user in shell mode... no
checking whether to disable 'command not found' messages... no
checking for egrep... egrep
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... (cached) no
checking for gcc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for uname... uname
checking for tr... tr
checking for sed... sed
checking for nroff... nroff
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for getspnam... yes
checking for egrep... egrep
checking whether gcc needs -traditional... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for bison... no
checking for byacc... no
checking for mv... /usr/bin/mv
checking for bourne shell... /bin/sh
checking for sendmail... /usr/lib/sendmail
checking for vi... /usr/bin/vi
checking for ANSI C header files... no
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for library containing opendir... none required
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... no
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... no
checking malloc.h usability... no
checking malloc.h presence... yes
configure: WARNING: malloc.h: present but cannot be compiled
configure: WARNING: malloc.h: check for missing prerequisite headers?
configure: WARNING: malloc.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for malloc.h... yes
checking paths.h usability... no
checking paths.h presence... no
checking for paths.h... no
checking utime.h usability... no
checking utime.h presence... yes
configure: WARNING: utime.h: present but cannot be compiled
configure: WARNING: utime.h: check for missing prerequisite headers?
configure: WARNING: utime.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for utime.h... yes
checking netgroup.h usability... no
checking netgroup.h presence... no
checking for netgroup.h... no
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/bsdtypes.h usability... no
checking sys/bsdtypes.h presence... no
checking for sys/bsdtypes.h... no
checking sys/select.h usability... no
checking sys/select.h presence... yes
configure: WARNING: sys/select.h: present but cannot be compiled
configure: WARNING: sys/select.h: check for missing prerequisite headers?
configure: WARNING: sys/select.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/select.h... yes
checking POSIX termios... no
checking termio.h usability... no
checking termio.h presence... yes
configure: WARNING: termio.h: present but cannot be compiled
configure: WARNING: termio.h: check for missing prerequisite headers?
configure: WARNING: termio.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for termio.h... yes
checking for mode_t... no
checking for uid_t in sys/types.h... yes
checking for sig_atomic_t... no
checking for sigaction_t... no
checking for size_t... yes
checking for ssize_t... yes
checking for dev_t... yes
checking for ino_t... yes
checking for full void implementation... yes
checking max length of uid_t... 10
checking for long long support... yes
checking for sa_len field in struct sockaddr... no
checking return type of signal handlers... int
checking for strchr... yes
checking for strrchr... yes
checking for memchr... yes
checking for memcpy... yes
checking for memset... yes
checking for sysconf... yes
checking for tzset... yes
checking for strftime... yes
checking for setrlimit... yes
checking for initgroups... yes
checking for fstat... yes
checking for setresuid... no
checking for setreuid... yes
checking for getifaddrs... no
checking for getcwd... yes
checking for lockf... yes
checking for waitpid... yes
checking for innetgr... yes
checking for getdomainname... no
checking for lsearch... yes
checking for utime... yes
checking for POSIX utime... no
checking for working fnmatch with FNM_CASEFOLD... no
checking for isblank... no
checking for strerror... yes
checking for strcasecmp... yes
checking for sigaction... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for asprintf... no
checking for vasprintf... no
checking for crypt... yes
checking for socket... no
checking for socket in -lsocket... yes
checking for inet_addr... no
checking for __inet_addr... no
checking for inet_addr in -lnsl... yes
checking for syslog... yes
checking for log file location... /var/log/sudo.log
checking for timestamp file location... /var/run/sudo
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sudo.man
config.status: creating visudo.man
config.status: creating sudoers.man
config.status: creating config.h
config.status: creating pathnames.h

bash-2.03# make
gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" -
D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=
0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  check.c
In file included from /usr/include/sys/time.h:410,
                 from /usr/include/sys/select.h:17,
                 from /usr/local/lib/gcc-lib/sparc-sun-
solaris2.5.1/3.3/include/sys/types.h:291,
                 from check.c:41:
/usr/include/time.h:111: error: parse error before "pthread_attr_t"
/usr/include/time.h:113: error: parse error before '}' token
In file included from check.c:43:
/usr/include/sys/stat.h:258: error: parse error before "blksize_t"
/usr/include/sys/stat.h:262: error: parse error before '}' token
/usr/include/sys/stat.h:300: error: parse error before "ino64_t"
/usr/include/sys/stat.h:318: error: parse error before "st_blksize"
/usr/include/sys/stat.h:319: error: parse error before "st_blocks"
/usr/include/sys/stat.h:322: error: parse error before '}' token
In file included from check.c:66:
/usr/include/signal.h:103: error: parse error before "int"
check.c: In function `timestamp_status':
check.c:360: error: storage size of `sb' isn't known
*** Error code 1
make: Fatal error: Command failed for target `check.o'

Any ideas will be greatly appreciated.

Thank you,

Selso
Comment 1 Todd C. Miller 2003-09-25 14:52:08 MDT
Sounds like a busted compiler.  Perhaps there is a mismatch between gcc's internal copy of the headers and what lives in /usr/include.  This is a common problem when gcc was built for a different version of the OS.
Comment 2 Todd C. Miller 2004-01-09 01:37:56 MST
This is not a sudo problem.  If your compiler is still broken you might try 
grabbing a gcc package from www.sunfreeware.com.