Version 4.0.0a3 does not compile with default '-Werror' flag

Marcus Goller mgoller at gmail.com
Mon Oct 1 10:33:14 UTC 2007


Hi,

I had to remove the default '-Werror' flag from the Makefiles because
otherwise I could not get it to compile here. The OS is Solaris 10 and I
tried it on both, Sparc and x86 architecture. GCC version is 3.4.3 and I
used configure with its default values and no custom compiler flags.
I included the warnings I get with '-Wall' (GCC seems to be fine with the
rest) and also 'config.h', because at least 'discover.c' depends on the
defined variables to decide which prototype to include (I haven't looked
into the other files).

Regards,

Marcus


if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I..
-DLOCALSTATEDIR='"/usr/local/var"'    -g -O2 -Wall -fno-strict-aliasing
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__ -MT
discover.o-MD -MP -MF ".deps/discover.Tpo" -c -o
discover.o discover.c; \
then mv -f ".deps/discover.Tpo" ".deps/discover.Po"; else rm -f
".deps/discover.Tpo"; exit 1; fi
discover.c: In function `discover_interfaces':
discover.c:1125: warning: implicit declaration of function
`supports_multiple_interfaces'
discover.c:1244: warning: implicit declaration of function
`maybe_setup_fallback'

if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I..
-DLOCALSTATEDIR='"/usr/local/var"'    -g -O2 -Wall -fno-strict-aliasing
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__ -MT dlpi.o -MD
-MP -MF ".deps/dlpi.Tpo" -c -o dlpi.o dlpi.c; \
then mv -f ".deps/dlpi.Tpo" ".deps/dlpi.Po"; else rm -f ".deps/dlpi.Tpo";
exit 1; fi
dlpi.c: In function `send_packet':
dlpi.c:517: warning: unused variable `hbufp'
dlpi.c:518: warning: unused variable `hh'
dlpi.c: In function `receive_packet':
dlpi.c:618: warning: unused variable `flags'
dlpi.c:621: warning: unused variable `rslt'
dlpi.c: In function `dlpiunit':
dlpi.c:731: warning: unused variable `fd'
dlpi.c:732: warning: unused variable `dp'
dlpi.c:732: warning: unused variable `ep'
dlpi.c: At top level:
dlpi.c:300: warning: 'strioctl' defined but not used
dlpi.c:920: warning: 'dlpidetachreq' defined but not used
dlpi.c:898: warning: 'dlpiunbindreq' defined but not used

if gcc -DHAVE_CONFIG_H -I. -I. -I../includes      -g -O2 -Wall
-fno-strict-aliasing -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
-D__EXTENSIONS__ -MT clparse.o -MD -MP -MF ".deps/clparse.Tpo" -c -o
clparse.o clparse.c; \
then mv -f ".deps/clparse.Tpo" ".deps/clparse.Po"; else rm -f
".deps/clparse.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../includes      -g -O2 -Wall
-fno-strict-aliasing -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
-D__EXTENSIONS__ -DCLIENT_PATH='"/usr/local/sbin"' \
           -DLOCALSTATEDIR='"/usr/local/var"' -c dhclient.c
dhclient.c: In function `make_discover':
dhclient.c:2103: warning: implicit declaration of function
`can_receive_unicast_unconfigured'

if gcc -DHAVE_CONFIG_H -I. -I. -I../includes
-DLOCALSTATEDIR='"/usr/local/var"'    -g -O2 -Wall -fno-strict-aliasing
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__ -MT
dhcrelay.o-MD -MP -MF ".deps/dhcrelay.Tpo" -c -o
dhcrelay.o dhcrelay.c; \
then mv -f ".deps/dhcrelay.Tpo" ".deps/dhcrelay.Po"; else rm -f
".deps/dhcrelay.Tpo"; exit 1; fi
dhcrelay.c: In function `relay':
dhcrelay.c:362: warning: implicit declaration of function
`can_unicast_without_arp'

if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I..
-DLOCALSTATEDIR='"/usr/local/var"'    -g -O2 -Wall -fno-strict-aliasing
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__ -MT dhcp.o -MD
-MP -MF ".deps/dhcp.Tpo" -c -o dhcp.o dhcp.c; \
then mv -f ".deps/dhcp.Tpo" ".deps/dhcp.Po"; else rm -f ".deps/dhcp.Tpo";
exit 1; fi
dhcp.c: In function `dhcp_reply':
dhcp.c:2944: warning: implicit declaration of function
`can_unicast_without_arp'

if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I..
-DLOCALSTATEDIR='"/usr/local/var"'    -g -O2 -Wall -fno-strict-aliasing
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__ -MT bootp.o -MD
-MP -MF ".deps/bootp.Tpo" -c -o bootp.o bootp.c; \
then mv -f ".deps/bootp.Tpo" ".deps/bootp.Po"; else rm -f ".deps/bootp.Tpo";
exit 1; fi
bootp.c: In function `bootp':
bootp.c:365: warning: implicit declaration of function
`can_unicast_without_arp'

config.h:

/* includes/config.h.  Generated by configure.  */
/* includes/config.h.in.  Generated from configure.ac by autoheader.  */

/* Define to BIG_ENDIAN for MSB (Motorola or SPARC CPUs) or LITTLE_ENDIAN
for
   LSB (Intel CPUs). */
#define DHCP_BYTE_ORDER BIG_ENDIAN

/* Define to 1 to include DHCPv6 support. */
#define DHCPv6 1

/* Define to 1 if you have the /dev/random file. */
#define HAVE_DEV_RANDOM 1

/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1

/* Define to 1 if you have the <linux/types.h> header file. */
/* #undef HAVE_LINUX_TYPES_H */

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the <net/if6.h> header file. */
/* #undef HAVE_NET_IF6_H */

/* Define to 1 if you have the <net/if_dl.h> header file. */
#define HAVE_NET_IF_DL_H 1

/* Define to 1 if you have the <regex.h> header file. */
#define HAVE_REGEX_H 1

/* Define to 1 if the sockaddr structure has a length field. */
/* #undef HAVE_SA_LEN */

/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

/* Define to 1 if the system has 'struct if_laddrconf'. */
/* #undef ISC_PLATFORM_HAVEIF_LADDRCONF */

/* Define to 1 if the system has 'struct if_laddrreq'. */
/* #undef ISC_PLATFORM_HAVEIF_LADDRREQ */

/* Define to 1 if the system has 'struct lifnum'. */
#define ISC_PLATFORM_HAVELIFNUM 1

/* Define to 1 if the inet_aton() function is missing. */
#define NEED_INET_ATON 1

/* Name of package */
#define PACKAGE "dhcp"

/* Define to the address where bug reports for this package should be sent.
*/
#define PACKAGE_BUGREPORT "dhcp-users at isc.org"

/* Define to the full name of this package. */
#define PACKAGE_NAME "DHCP"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "DHCP 4.0.0a3"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "dhcp"

/* Define to the version of this package. */
#define PACKAGE_VERSION "4.0.0a3"

/* The size of a `struct iaddr *', as computed by sizeof. */
#define SIZEOF_STRUCT_IADDR_P 4

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Define to 1 to use the Berkeley Packet Filter interface code. */
/* #undef USE_BPF */

/* Define to 1 to use DLPI interface code. */
#define USE_DLPI 1

/* Define to 1 to use the Linux Packet Filter interface code. */
/* #undef USE_LPF */

/* Version number of package */
#define VERSION "4.0.0a3"

/* File for dhclient process information. */
/* #undef _PATH_DHCLIENT */

/* File for dhclient leases. */
/* #undef _PATH_DHCLIENT_DB */

/* File for dhcpd leases. */
/* #undef _PATH_DHCPD_DB */

/* File for dhcpd process information. */
/* #undef _PATH_DHCPD_PID */

/* File for dhcrelay process information. */
/* #undef _PATH_DHCRELAY_PID */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20071001/5693cd17/attachment.html>


More information about the dhcp-users mailing list