SV: Error when compiling DHCP 4.1.2

Nils.Magnusson at Nils.Magnusson at
Mon Jan 10 10:07:44 UTC 2011

I also had the same problem under Fedora 14. I only edited the file dhcpctl/Makefile and removed the option -Werror from the CFLAGS. It is only a warning but becomes an error due to the -Werror flag. The best thing would be to remove the warning in the first place. I have not had any problems due to this warning.


Från: at [ at] För arun.sasi1 at
Skickat: den 10 januari 2011 05:19
Till: dhcp-users at
Ämne: RE: Error when compiling DHCP 4.1.2


What is your OS.. Have you installed correct GCC and make, automake version.... Check DHCP Install manual and confirm the version compatibility

Check the installed path permission too


From: at [ at] On Behalf Of THOMAS
Sent: Monday, January 10, 2011 8:24 AM
To: dhcp-users
Subject: Error when compiling DHCP 4.1.2

When I was compiling DHCP 4.1.2, it printed the following errors and stopped:

gcc -DHAVE_CONFIG_H -I. -I../includes     -g -O2  -Wall -Werror -fno-strict-aliasing -MT omshell.o -MD -MP -MF .deps/omshell.Tpo -c -o omshell.o omshell.c
cc1: warnings being treated as errors
omshell.c: In function 'main':
omshell.c:193:5: error: case value '10' not in enumerated type 'enum dhcp_token'
omshell.c:197:5: error: case value '63' not in enumerated type 'enum dhcp_token'
make[1]: *** [omshell.o] Error 1

Could you do me a favor and help solve the problem?

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list