unable to compile on SLES 10
Glenn Satchell
Glenn.Satchell at uniq.com.au
Mon Jul 17 13:54:02 UTC 2006
Hi Kalyan,
Have you tried dhcp-3.0.4? There's a bunch of changes in the 3.0.4 tr.c
regarding definitions of various types. Looks like this might be all
fixed in the newer version.
% diff dhcp-3.0.3/common/tr.c dhcp-3.0.4/common/tr.c
7c7
< * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
---
> * Copyright (c) 2004-2005 by Internet Systems Consortium, Inc. ("ISC")
31c31
< "$Id: tr.c,v 1.7.2.2 2004/06/10 17:59:21 dhankins Exp $ Copyright (c) 2004
Internet Systems Consortium. All rights reserved.\n";
---
> "$Id: tr.c,v 1.7.2.3 2005/09/08 21:19:21 dhankins Exp $ Copyright (c)
2004-2005 Internet Systems Consortium. All rights reserved.\n";
62,63c62,63
< __u16 rcf; /* route control field */
< __u16 rseg[8]; /* routing registers */
---
> u_int16_t rcf; /* route control field */
> u_int16_t rseg[8]; /* routing registers */
220c220
< __u16 rcf = rover->rcf;
---
> u_int16_t rcf = rover->rcf;
257c257
< __u16 rcf = 0;
---
> u_int16_t rcf = 0;
regards,
-glenn
>X-Original-To: dhcp-users at webster.isc.org
>Date: Sun, 16 Jul 2006 22:46:46 -0800
>From: kalyanasundaram S <s.kalyanasundaram at inbox.com>
>Subject: unable to compile on SLES 10
>To: dhcp-users at isc.org
>
>Hi everybody i have a basic question here.
>I am getting trouble in compiling the dhcp3.0.3 in SLES 10
>It is giving the following error
>
>cc -g -I/home/dhcp-3.0.3 -I/home/dhcp-3.0.3/includes -DLINUX_MAJOR=2
-DLINUX_MINOR=6 -c -o tr.o tr.c
>tr.c:62: error: expected specifier-qualifier-list before â__u16â
>tr.c: In function âinsert_source_routingâ:
>tr.c:219: error: âstruct routing_entryâ has no member named ârcfâ
>tr.c:220: error: â__u16â undeclared (first use in this function)
>tr.c:220: error: (Each undeclared identifier is reported only once
>tr.c:220: error: for each function it appears in.)
>tr.c:220: error: expected â;â before ârcfâ
>tr.c:221: error: âstruct routing_entryâ has no member named ârsegâ
>tr.c:222: error: ârcfâ undeclared (first use in this function)
>tr.c:227: error: âstruct routing_entryâ has no member named
âaccess_timeâ
>tr.c: In function âsave_source_routingâ:
>tr.c:257: error: â__u16â undeclared (first use in this function)
>tr.c:257: error: expected â;â before ârcfâ
>tr.c:274: error: ârcfâ undeclared (first use in this function)
>tr.c:276: error: âstruct routing_entryâ has no member named ârsegâ
>tr.c:276: error: âstruct routing_entryâ has no member named ârsegâ
>tr.c:278: error: âstruct routing_entryâ has no member named ârcfâ
>tr.c:279: error: âstruct routing_entryâ has no member named
âaccess_timeâ
>tr.c:294: error: âstruct routing_entryâ has no member named
âaccess_timeâ
>tr.c:299: error: âstruct routing_entryâ has no member named ârsegâ
>tr.c:299: error: âstruct routing_entryâ has no member named ârsegâ
>tr.c:301: error: âstruct routing_entryâ has no member named ârcfâ
>tr.c: In function âexpire_routesâ:
>tr.c:323: error: âstruct routing_entryâ has no member named
âaccess_timeâ
>make[2]: *** [tr.o] Error 1
>make[2]: Leaving directory `/home/dhcp-3.0.3/work.linux-2.2/common'
>make[1]: *** [all] Error 1
>make[1]: Leaving directory `/home/dhcp-3.0.3/work.linux-2.2'
>make: *** [all] Error 2
>
>i was able to compile successfully on SLES 9.
>Does anybody else also having the same problem? or i am missing out of
something.
>plz somebody help me to solve this problem,
>
> thanks,
> -kalyan
>
More information about the dhcp-users
mailing list