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

Denis Laventure Denis_Laventure at
Fri Jan 4 17:18:42 UTC 2008


I could not get version 4.0.0 to compile under Solaris 9 Sparc.
GCC version is 3.4.6.

when I run make I always get this error:

gcc -DHAVE_CONFIG_H -I. -I../includes     -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT inet_addr.o -MD -MP -MF .deps/inet_addr.Tpo -c -o inet_addr.o inet_addr.c
inet_addr.c: In function `inet_aton':
inet_addr.c:81: warning: subscript has type `char'
inet_addr.c:86: warning: subscript has type `char'
inet_addr.c:88: warning: subscript has type `char'
inet_addr.c:110: warning: subscript has type `char'
make[1]: *** [inet_addr.o] Error 1
make[1]: Leaving directory `/usr/local/install/dhcp-4.0.0/omapip'
make: *** [all-recursive] Error 1

I had to remove the default '-Werror' flag from the Makefiles because
otherwise I could not get it to compile but I don't know if this warning
will cause problem.  I used configure with --disable-dhcpv6 values and
no custom compiler flags. Of course I patched server/dhcpd.c and
client/dhclient.c with "#ifdev DHCPv6" as seen on another post.

Will I have problem running the compiled version with this warning?

Denis Laventure
Technicien en informatique
Service des Technologies de l'Information
Université du Québec à Chicoutimi

More information about the dhcp-users mailing list