--disable-dhcpv6 not working
Nicholas F Miller
Nicholas.Miller at Colorado.EDU
Tue Feb 10 14:58:18 UTC 2009
I am running gcc version 4.0.2. I will give 4.3.2 a try.
I have one more question. If I want the PID, leases and conf to be in
PREFIX/etc can I set a configure flag or do I still need to edit the /
includes/site.h? When I configured using:
./configure --prefix=/usr/local/dhcp-4.1.0 --localstatedir=/usr/local/
I still wound up having to edit the /includes/site.h to locate the PID
and leases files.
Nicholas Miller, ITS, University of Colorado at Boulder
On Feb 10, 2009, at 2:35 AM, dhcp-users-request at lists.isc.org wrote:
> Out of curiosity, what version of gcc are you using? I've reproduced
> this behavior on an older version (3.4.6), but it doesn't occur on
> newer versions (e.g. 4.3.2).
> As to your question ("WHY?"), there's an 'else' section at line 418
> of that file, which is conditionalized on DHCPv6. Without that symbol
> defined, the 'else' block is not compiled, and it is theoretically
> possible (in the mind of the compiler) that those local variables
> (port_local et al) could be used without be initialized. In actual
> fact, this can't happen, and gcc 4.x can somehow figure it out, but
> gcc 3.x can't.
> The easiest workaround is to edit relay/Makefile, and remove "-Werror"
> from CFLAGS. (This will, of course, revert the next time you run
> configure, but I suspect you're not going to have to do that very
> For the longer term solution, I've logged this as a bug, and it will
> be addressed in the next release.
> Paul Selkirk
> Software Engineer
> Internet Systems Consortium, Inc.
More information about the dhcp-users