error when compiling ISC dhcp-4.2.3 for demo appilcation

ameen.shajahan at wipro.com ameen.shajahan at wipro.com
Thu Jan 12 06:40:56 UTC 2012


Hi,
                I am writing a demo application to simulate dhcp server and  using ISC dhcp-4.2.3 . I have cross compiled dhcp-4.2.3 to support my device ,
I have included dhcpd.h file in the demo application and compiled using this command

/opt/crosstool/armv5b-linux/bin/armv5b-linux-gcc  -I. -I/home/ameen/dhcp-4.2.3/includes -I/home/ameen/dhcp-4.2.3/bind/include -o server -L/home/ameen/dhcp-4.2.3/dhcpctl -llibdhcpctl.a

But this giving some error.
What are the changes I have to make to solve this error?
I will copy the some of them.

----- Compiling dhcp_server.cpp
In file included from /home/ameen/dhcp-4.2.3/includes/omapip/isclib.h:31,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:95,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/bind/bind-9.8.1/config.h:373:1: warning: "PACKAGE_BUGREPORT" redefined
In file included from /home/ameen/dhcp-4.2.3/includes/osdep.h:41,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:72,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/includes/config.h:111:1: warning: this is the location of the previous definition
In file included from /home/ameen/dhcp-4.2.3/includes/omapip/isclib.h:31,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:95,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/bind/bind-9.8.1/config.h:376:1: warning: "PACKAGE_NAME" redefined
In file included from /home/ameen/dhcp-4.2.3/includes/osdep.h:41,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:72,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/includes/config.h:114:1: warning: this is the location of the previous definition
In file included from /home/ameen/dhcp-4.2.3/includes/omapip/isclib.h:31,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:95,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/bind/bind-9.8.1/config.h:379:1: warning: "PACKAGE_STRING" redefined
In file included from /home/ameen/dhcp-4.2.3/includes/osdep.h:41,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:72,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/includes/config.h:117:1: warning: this is the location of the previous definition
In file included from /home/ameen/dhcp-4.2.3/includes/omapip/isclib.h:31,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:95,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/bind/bind-9.8.1/config.h:382:1: warning: "PACKAGE_TARNAME" redefined
In file included from /home/ameen/dhcp-4.2.3/includes/osdep.h:41,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:72,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/includes/config.h:120:1: warning: this is the location of the previous definition
In file included from /home/ameen/dhcp-4.2.3/includes/omapip/isclib.h:31,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:95,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/bind/bind-9.8.1/config.h:385:1: warning: "PACKAGE_VERSION" redefined
In file included from /home/ameen/dhcp-4.2.3/includes/osdep.h:41,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:72,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/includes/config.h:123:1: warning: this is the location of the previous definition
In file included from /home/ameen/dhcp-4.2.3/includes/omapip/isclib.h:64,
                 from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:95,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/bind/include/dns/client.h:204: error: parse
   error before `namespace'
/home/ameen/dhcp-4.2.3/bind/include/dns/client.h:232: error: parse
   error before `namespace'
In file included from /home/ameen/dhcp-4.2.3/includes/dhcpd.h:100,
                 from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/includes/statement.h:69: error: no
   body nor ';' separates two class, struct or union declarations
/home/ameen/dhcp-4.2.3/includes/statement.h:69: error: parse
   error before `add'

/home/ameen/dhcp-4.2.3/includes/tree.h:215: error: parse
   error before `&&' token
/home/ameen/dhcp-4.2.3/includes/tree.h:216: error: parse
   error before `||' token
/home/ameen/dhcp-4.2.3/includes/tree.h:217: error: parse
   error before `!' token
In file included from dhcp_server.h:5,
                 from dhcp_server.cpp:3:
/home/ameen/dhcp-4.2.3/includes/dhcpd.h:417: error: no
   body nor ';' separates two class, struct or union declarations
/home/ameen/dhcp-4.2.3/includes/dhcpd.h:417: error: parse
   error before `classes'
/home/ameen/dhcp-4.2.3/includes/dhcpd.h:507: error: no
   body nor ';' separates two class, struct or union declarations

<ERROR TRUNCATED>


Thanks,
Ameen S.

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. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120112/da5726f2/attachment.html>


More information about the dhcp-users mailing list