[bind10-dev] release bind10-devel-20120119 does not compile on OS X

João Damas joao at bondis.org
Wed Jan 25 14:12:45 UTC 2012


OK, something for configure.sh then

Joao

On Jan 25, 2012, at 3:06 PM, Mark Andrews wrote:

> 
> In message <9B6ABD74-1D8A-4DB3-9AB1-767A2698EC06 at bondis.org>, =?iso-8859-1?Q?Jo
> =E3o_Damas?= writes:
>> DHCP related code prevents compilation in Mac OS X 10.7.2
> 
> Mac OS requires some defines to be set to get the advanced socket
> api.
> 
> #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
> /*
> * RFC 3542 define the following socket options in a manner incompatible
> * with RFC 2292:
> *   IPV6_PKTINFO
> *   IPV6_HOPLIMIT
> *   IPV6_NEXTHOP
> *   IPV6_HOPOPTS
> *   IPV6_DSTOPTS
> *   IPV6_RTHDR
> *
> * To use the new IPv6 Sockets options introduced by RFC 3542
> * the constant __APPLE_USE_RFC_3542 must be defined before
> * including <netinet/in.h>
> *
> * To use the old IPv6 Sockets options from RFC 2292
> * the constant __APPLE_USE_RFC_2292 must be defined before
> * including <netinet/in.h>
> *
> * Note that eventually RFC 3542 is going to be the
> * default and RFC 2292 will be obsolete.
> */
> 
>> 
>> 
>> =85
>> iface_mgr.cc: In member function 'int isc::dhcp::IfaceMgr::openSocket6(isc:=
>> :dhcp::IfaceMgr::Iface&, const isc::asiolink::IOAddress&, int)':
>> iface_mgr.cc:463: error: 'IPV6_PKTINFO' was not declared in this scope
>> iface_mgr.cc: In member function 'bool isc::dhcp::IfaceMgr::send(boost::sha=
>> red_ptr<isc::dhcp::Pkt6>&)':
>> iface_mgr.cc:568: error: 'IPV6_PKTINFO' was not declared in this scope
>> iface_mgr.cc: In member function 'boost::shared_ptr<isc::dhcp::Pkt6> isc::d=
>> hcp::IfaceMgr::receive6()':
>> iface_mgr.cc:932: error: 'IPV6_PKTINFO' was not declared in this scope
>> make[5]: *** [libdhcp___la-iface_mgr.lo] Error 1
>> 
>> Joao
>> _______________________________________________
>> bind10-dev mailing list
>> bind10-dev at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/bind10-dev
> -- 
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org




More information about the bind10-dev mailing list