SUMMARY: GCC/DHCP Pkg Q

From: Michael Cook (mcook@uswest.com)
Date: Fri Jun 26 1998 - 09:57:16 CDT


Hello all,

    Thanks to: Juan Calderon, Lisa Weihl, Ian Wallace, Marcos Assis Silva,
Sebastian Benoit, Tony Lawson, and Stuart Kendrick, whose solution provided
the fix I needed.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    The original question was:

Hello all,
    I've downloaded the dhcp package from www.isc.org/dchp.html to use at
our facility, and I'm having trouble compiling it. The instructions say
"Type 'configure' and the package will produce a makefile for you. Then type
'make' and after a while you should have a dhcp server." Well, it's not that
easy. These are my system specs and the errors I'm getting:

SunOS nms 5.5.1 Generic_103640-19 sun4u sparc SUNW,Ultra-2
FSFgcc 2.8.1
FSFlibst 2.8.1

# configure
System Type: sunos5-gcc
# make
gcc -g -Wall -Wstrict-prototypes -Wno-unused -Wno-implicit -Wno-comment -
Wno-
uninitialized -Werror -c dhcpd.c
cc1: warnings being treated as errors
dhcpd.c: In function `main':
dhcpd.c:115: warning: subscript has type `char'
*** Error code 1
make: Fatal error: Command failed for target `dhcpd.o'

    I've read for hours the gcc docs (I'm no gcc guru, that's for sure),
played with my PATH (to try to use different versions of "make" i.e.
/usr/ccs/bin/make and /usr/xpg4/make), and am stumped. Any help would be
very appreciated, and I will summarize,
        Michael Cook

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Most of the replies I received stated that they, too were having many
problems with GCC 2.8.1. Some stated that they had returned to using GCC
2.7.x. If I continue having difficulties with 2.8.1, I will do the same.
    One of the replies said he was having the same problem compiling the
same package on the same platform. He had written to the DHCP user group and
forwarded me the reply. I added "Wno-char-subscript" to the Makefile in the
COPTS section for my platform (the CFLAGS option uses the COPTS as a
variable) and everything compiled fine.
    Thanks to all who replied, and especially to Stuart,
        Michael Cook



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:42 CDT