Thank you for all your suggestions. Since I don't plan to use the DHCP server portion of the code, hard coding a size seemed the simplest solution. <br><br>Now it failed in a few new places, and figured I would document them here for future reference.<br>
<div class="gmail_quote"><div><br>
dnsmasq.c: In function `main':<br>
dnsmasq.c:252: parse error before `int'<br>
dnsmasq.c:263: `capsize' undeclared (first use in this function)<br>
dnsmasq.c:263: (Each undeclared identifier is reported only once<br>
dnsmasq.c:263: for each function it appears in.)<br>
dnsmasq.c:267: warning: unreachable code at beginning of switch statement<br>
dnsmasq.c:388: `PR_SET_KEEPCAPS' undeclared (first use in this function)<br>
dnsmasq.c:447: `PR_SET_DUMPABLE' undeclared (first use in this function)<br>
make[1]: *** [dnsmasq.o] Error 1<br>
make[1]: Leaving directory `/tmp/dnsmasq-2.43/src'<br>
make: *** [dnsmasq] Error 2<br> </div></div>For some reason, it was just being a pain and I had to swap lines 252 and 253 so that the "capsize" declaration was the first thing within the if block. <br><br>To fix the PR_SET macros, I had to manually include on the cc command line -I/usr/src/linux-`uname -r`/include for dnsmasq.c - this is likely because this machine is very screwed up with both RPM and hand-built kernels all over the place.<br>
<br>I had the similar array size problems in tftp.c on lines 487, 515, 538, but again I don't use DHCP server so by disabling TFTP in config.h, they were ignored.<br><br>Thanks again for the help, I now have 2.43 running on my ancient machine.<br>
<br> - RR<br><br><br><br>