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