<div>Is there a reason to prefer RFC_5342 over RFC_2292 or the other way around?</div><div><br></div><div>-- Rich</div><div><br></div><div><br></div><div class="gmail_quote">On Tue, Aug 28, 2012 at 10:50 AM, Shawn Routhier <span dir="ltr"><<a href="mailto:sar@isc.org" target="_blank">sar@isc.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Aug 28, 2012, at 5:29 AM, Siegenthaler Tina wrote:<br>
<br>
><br>
> Am 28.08.2012 um 12:22 schrieb Richard Robbins:<br>
><br>
>> Here is the gcc call to compile socket.c<br>
>><br>
>> 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<br>

>><br>
>> Which results in the following:<br>
>><br>
>> socket.c: In function ‘if_register_socket’:<br>
>> socket.c:299: error: ‘IPV6_PKTINFO’ undeclared (first use in this function)<br>
>> socket.c:299: error: (Each undeclared identifier is reported only once<br>
>> socket.c:299: error: for each function it appears in.)<br>
>> socket.c: In function ‘send_packet6’:<br>
>> socket.c:746: error: ‘IPV6_PKTINFO’ undeclared (first use in this function)<br>
>> socket.c: In function ‘receive_packet6’:<br>
>> socket.c:957: error: ‘IPV6_PKTINFO’ undeclared (first use in this function)<br>
>> make[2]: *** [socket.o] Error 1<br>
>> make[1]: *** [all-recursive] Error 1<br>
>> make: *** [all-recursive] Error 1<br>
>><br>
>><br>
>><br>
><br>
><br>
> Hi Richard<br>
><br>
><br>
> I'm not entirely sure, but I think I got the same error when compiling on Lion. Adding "#define __APPLE_USE_RFC_2292" at the beginning of socket.c solved the problem. I don't have the time right now to test it on ML, but maybe you can give this a try? If not, I'll do it tomorrow and report back.<br>

><br>
><br>
> HTH, Tina<br>
<br>
</div>The easiest way to do this is to set the CFLAGS in the configure script.<br>
<br>
./configure CFLAGS=-D__APPLE_USE_RFC_3542<br>
or<br>
./configure CFLAGS=-D__APPLE_USE_RFC_2292<br>
<br>
Though I also haven't tried to compile it on Mountain Lion either.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> _______________________________________________<br>
> dhcp-users mailing list<br>
> <a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</div></div></blockquote></div><br>