Compiling DHCP 4.2.4-P1 On Mac OS X Mountain Lion Server

Richard Robbins rerobbins at
Tue Aug 28 10:22:12 UTC 2012

Here is the gcc call to compile socket.c

gcc -DHAVE_CONFIG_H -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g
-O2  -Wall -Werror -fno-strict-aliasing -I../bind/include -MT socket.o -MD
-MP -MF .deps/socket.Tpo -c -o socket.o socket.c

Which results in the following:

socket.c: In function ‘if_register_socket’:
socket.c:299: error: ‘IPV6_PKTINFO’ undeclared (first use in this function)
socket.c:299: error: (Each undeclared identifier is reported only once
socket.c:299: error: for each function it appears in.)
socket.c: In function ‘send_packet6’:
socket.c:746: error: ‘IPV6_PKTINFO’ undeclared (first use in this function)
socket.c: In function ‘receive_packet6’:
socket.c:957: error: ‘IPV6_PKTINFO’ undeclared (first use in this function)
make[2]: *** [socket.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

On Tue, Aug 28, 2012 at 4:41 AM, Cathy Almond <cathya at> wrote:

> On 28/08/12 04:40, Richard Robbins wrote:
> > Has anyone successfully compiled DHCP 4.2.4-P1 on Mac OS X Mountain Lion
> > Server?
> >
> > I get through the configuration phase without difficulty.
> >
> > During execution of the Make process the system errors out when
> attempting
> > to compile socket.c in the bind directory.
> >
> > Thanks in advance,
> >
> Hi Rich,
> What errors are you encountering?  (This sounds like something that
> should be reported as a bug, although the 'how/where' depends on the
> details.  I didn't find any prior reports of this in our tracking system).
> Cathy
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list