error while including header file(dhcp.h) of ISC dhcp-4.2.3 to a C file.

ameen.shajahan at ameen.shajahan at
Thu Jan 19 14:50:03 UTC 2012

                I have written one C file called test.c and I have included header file(dhcp.h) of  ISC dhcp-4.2.3

vi test.c
#include "dhcp.h"
 int main(int argc, char** argv)
      return 0;

I have written one makefile.

Vi Makefile

C_SRCS := $(wildcard *.c)
DHCP_ROOT := home/user/dhcp-4.2.3
CPPFLAGS +=  -I$(DHCP_ROOT)/includes \
                             -I$(DHCP_ROOT)/common \
                            -I$(DHCP_ROOT)/dhcpctl \
                            -I$(DHCP_ROOT)/omapip \
                           -I$(DHCP_ROOT)/includes/omapip \
                           -I$(DHCP_ROOT)/dhcp-output/include \
                            -I$(DHCP_ROOT)/bind \
                             -I$(DHCP_ROOT)/bind/include \

And I have compiled using make command.

[user at new dhcpd_test]$ make
----- Updating test.d
----- Compiling test.c
In file included from test.c:14:
/home/user/dhcp-4.2.3/includes/dhcp.h:52: error: expected specifier-qualifier-list before âu_int8_tâ

What would be the problem??
Please provide the solution.

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-workers mailing list