configure warnings

Jason Mader jason at ncac.gwu.edu
Fri Apr 25 13:10:10 GMT 2008


On Fri, 25 Apr 2008, Volker Lendecke wrote:

> On Thu, Apr 24, 2008 at 01:01:39PM -0400, Jason Mader wrote:
>> These two warnings asked to be reported to the list.  Samba 3.2.0pre2 on
>> Irix 6.5.  Anything additional information I can provide, just ask.
>
> What does the config.log say about them? Do you see a chance
> to fix those / provide a patch?

>From config.log:

configure:14622: checking netinet/ip.h usability
configure:14634: c99 -c -O -D_SAMBA_BUILD_=3 -diag_error 1035 -woff 1209,1174,3201  -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -Ilib/tdb/include -I./libaddns -I./librpc -I./popt conftest.c >&5
cc-1070 c99: ERROR File = /usr/include/netinet/ip.h, Line = 58
   The indicated type is incomplete.

   	struct	in_addr ip_src,ip_dst;	/* source and dest address */
   	      	        ^

cc-1070 c99: ERROR File = /usr/include/netinet/ip.h, Line = 58
   The indicated type is incomplete.

   	struct	in_addr ip_src,ip_dst;	/* source and dest address */
   	      	               ^

cc-1020 c99: ERROR File = /usr/include/netinet/ip.h, Line = 130
   The identifier "n_long" is undefined.

   		n_long	ipt_time[1];
   		^

cc-1070 c99: ERROR File = /usr/include/netinet/ip.h, Line = 132
   The indicated type is incomplete.

   			struct in_addr ipt_addr;
   			               ^

cc-1020 c99: ERROR File = /usr/include/netinet/ip.h, Line = 133
   The identifier "n_long" is undefined.

   			n_long ipt_time;
   			^

5 errors detected in the compilation of "conftest.c".
configure:14640: $? = 2
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "Samba"
| #define PACKAGE_TARNAME "samba"
| #define PACKAGE_VERSION "3"
| #define PACKAGE_STRING "Samba 3"
| #define PACKAGE_BUGREPORT "samba-technical at samba.org"
| #define CONFIG_H_IS_FROM_SAMBA 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define WORDS_BIGENDIAN 1
| #ifndef _XOPEN_SOURCE_EXTENDED
| #define _XOPEN_SOURCE_EXTENDED 1
| #endif
| #include <standards.h>
| #define HAVE_STANDARDS_H 1
| #define HAVE_LONG_LONG 1
| #define SIZEOF_INT 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_OFF_T 8
| #define SIZEOF_SIZE_T 4
| #define SIZEOF_SSIZE_T 4
| #define SIZEOF_SIZE_T 4
| #define SIZEOF_VOID_P 4
| #define HAVE_VOLATILE 1
| #define SYSV 1
| #define RETSIGTYPE void
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_ST_RDEV 1
| #define loff_t off_t
| #define offset_t loff_t
| #define HAVE_PIPE 1
| #define HAVE_STRFTIME 1
| #define HAVE_SRANDOM 1
| #define HAVE_RANDOM 1
| #define HAVE_SRAND 1
| #define HAVE_RAND 1
| #define HAVE_USLEEP 1
| #define HAVE_SETBUFFER 1
| #define HAVE_LSTAT 1
| #define HAVE_GETPGRP 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SETJMP_H 1
| #define HAVE_BOOL 1
| #define HAVE__Bool 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_SYSLOG_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_ARPA_INET_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <netinet/ip.h>
configure:14663: result: no
configure:14667: checking netinet/ip.h presence
configure:14677: c99 -E  -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -Ilib/tdb/include -I./libaddns -I./librpc -I./popt conftest.c
configure:14683: $? = 0
configure:14703: result: yes
configure:14716: WARNING: netinet/ip.h: present but cannot be compiled
configure:14718: WARNING: netinet/ip.h:     check for missing prerequisite headers?
configure:14720: WARNING: netinet/ip.h: see the Autoconf documentation
configure:14722: WARNING: netinet/ip.h:     section "Present But Cannot Be Compiled"
configure:14724: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure:14726: WARNING: netinet/ip.h: in the future, the compiler will take precedence
configure:14738: checking for netinet/ip.h
configure:14745: result: yes
................
configure:19247: checking sys/mode.h usability
configure:19259: c99 -c -O -D_SAMBA_BUILD_=3 -diag_error 1035 -woff 1209,1174,3201  -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -Ilib/tdb/include -I./libaddns -I./librpc -I./popt conftest.c >&5
cc-1204 c99: WARNING File = /usr/include/sys/vnode.h, Line = 332
   The indicated declaration is not visible outside of the function.

   typedef	int	(*vop_read_t)(bhv_desc_t *, struct uio *, int, struct cred *,
          	   	                                   ^

cc-1204 c99: WARNING File = /usr/include/sys/vnode.h, Line = 334
   The indicated declaration is not visible outside of the function.

   typedef	int	(*vop_write_t)(bhv_desc_t *, struct uio *, int, struct cred *,
          	   	                                    ^

cc-1204 c99: WARNING File = /usr/include/sys/vnode.h, Line = 356
   The indicated declaration is not visible outside of the function.

   typedef	int	(*vop_readdir_t)(bhv_desc_t *, struct uio *, struct cred *,
          	   	                                      ^

cc-1204 c99: WARNING File = /usr/include/sys/vnode.h, Line = 360
   The indicated declaration is not visible outside of the function.

   typedef	int	(*vop_readlink_t)(bhv_desc_t *, struct uio *, struct cred *);
          	   	                                       ^

cc-1020 c99: ERROR File = /usr/include/sys/vnode.h, Line = 375
   The identifier "mprot_t" is undefined.

   typedef	int	(*vop_map_t)(bhv_desc_t *, off_t, size_t, mprot_t, u_int,
          	   	                                          ^

cc-1020 c99: ERROR File = /usr/include/sys/vnode.h, Line = 378
   The identifier "mprot_t" is undefined.

   				pgno_t *, off_t, size_t, mprot_t,
   				                         ^

2 errors detected in the compilation of "conftest.c".
configure:19265: $? = 2
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "Samba"
| #define PACKAGE_TARNAME "samba"
| #define PACKAGE_VERSION "3"
| #define PACKAGE_STRING "Samba 3"
| #define PACKAGE_BUGREPORT "samba-technical at samba.org"
| #define CONFIG_H_IS_FROM_SAMBA 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define WORDS_BIGENDIAN 1
| #ifndef _XOPEN_SOURCE_EXTENDED
| #define _XOPEN_SOURCE_EXTENDED 1
| #endif
| #include <standards.h>
| #define HAVE_STANDARDS_H 1
| #define HAVE_LONG_LONG 1
| #define SIZEOF_INT 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_OFF_T 8
| #define SIZEOF_SIZE_T 4
| #define SIZEOF_SSIZE_T 4
| #define SIZEOF_SIZE_T 4
| #define SIZEOF_VOID_P 4
| #define HAVE_VOLATILE 1
| #define SYSV 1
| #define RETSIGTYPE void
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_ST_RDEV 1
| #define loff_t off_t
| #define offset_t loff_t
| #define HAVE_PIPE 1
| #define HAVE_STRFTIME 1
| #define HAVE_SRANDOM 1
| #define HAVE_RANDOM 1
| #define HAVE_SRAND 1
| #define HAVE_RAND 1
| #define HAVE_USLEEP 1
| #define HAVE_SETBUFFER 1
| #define HAVE_LSTAT 1
| #define HAVE_GETPGRP 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SETJMP_H 1
| #define HAVE_BOOL 1
| #define HAVE__Bool 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_SYSLOG_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IP_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_SYS_SOCKIO_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_MNTENT_H 1
| #define HAVE_STROPTS_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_SA_FAMILY_T 1
| #define HAVE_STRUCT_ADDRINFO 1
| #define HAVE_STRUCT_SOCKADDR 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE 1
| #define HAVE_STRUCT_SOCKADDR_IN6 1
| #define HAVE_SS_FAMILY 1
| #define HAVE_SETEUID 1
| #define HAVE_SETEGID 1
| #define HAVE_CHROOT 1
| #define HAVE_BZERO 1
| #define HAVE_STRERROR 1
| #define HAVE_VSYSLOG 1
| #define HAVE_SETLINEBUF 1
| #define HAVE_MKTIME 1
| #define HAVE_FTRUNCATE 1
| #define HAVE_RENAME 1
| #define HAVE_WAITPID 1
| #define HAVE_STRLCPY 1
| #define HAVE_STRLCAT 1
| #define HAVE_INITGROUPS 1
| #define HAVE_MEMMOVE 1
| #define HAVE_STRDUP 1
| #define HAVE_PREAD 1
| #define HAVE_PWRITE 1
| #define HAVE_STRTOK_R 1
| #define HAVE_SOCKETPAIR 1
| #define HAVE_ISATTY 1
| #define HAVE_ERRNO_DECL 1
| #define HAVE_SECURE_MKSTEMP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_DECL_SNPRINTF 1
| #define HAVE_DECL_VSNPRINTF 1
| #define HAVE_DECL_ASPRINTF 0
| #define HAVE_DECL_VASPRINTF 0
| #define HAVE_SNPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_VA_COPY 1
| #define HAVE_func_MACRO 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_STRTOULL 1
| #define HAVE_STRTOLL 1
| #define HAVE_SIG_ATOMIC_T_TYPE 1
| #define HAVE_VOLATILE 1
| #define HAVE_DIRENT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_FCNTL_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_IOCTL_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/mode.h>
configure:19288: result: no
configure:19292: checking sys/mode.h presence
configure:19302: c99 -E  -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -Ilib/tdb/include -I./libaddns -I./librpc -I./popt conftest.c
configure:19308: $? = 0
configure:19328: result: yes
configure:19341: WARNING: sys/mode.h: present but cannot be compiled
configure:19343: WARNING: sys/mode.h:     check for missing prerequisite headers?
configure:19345: WARNING: sys/mode.h: see the Autoconf documentation
configure:19347: WARNING: sys/mode.h:     section "Present But Cannot Be Compiled"
configure:19349: WARNING: sys/mode.h: proceeding with the preprocessor's result
configure:19351: WARNING: sys/mode.h: in the future, the compiler will take precedence
configure:19363: checking for sys/mode.h
configure:19370: result: yes


---Jason Mader, FHWA/NHTSA National Crash Analysis Center,
The George Washington University, VA Campus


More information about the samba-technical mailing list