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

Siegenthaler Tina tina at ieu.uzh.ch
Tue Aug 28 12:29:41 UTC 2012


Am 28.08.2012 um 12:22 schrieb Richard Robbins:

> 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
> 
> 
> 


Hi Richard


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.


HTH, Tina




More information about the dhcp-users mailing list