﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
21043	kea-dhcp FTBFS with boost1.87	thomas	blfs-book	"When compiling kea-dhcp on a system with boost-1.87, it breaks with

{{{
  ...
  CXX      libkea_asiolink_la-common_tls.lo
  CXX      libkea_asiolink_la-interval_timer.lo
  CXX      libkea_asiolink_la-io_address.lo
io_address.cc: In constructor 'isc::asiolink::IOAddress::IOAddress(const std::string&)':
io_address.cc:40:34: error: 'from_string' is not a member of 'boost::asio::ip::address'
   40 |     asio_address_ = ip::address::from_string(address_str, err);
      |                                  ^~~~~~~~~~~
io_address.cc: In member function 'uint32_t isc::asiolink::IOAddress::toUint32() const':
io_address.cc:119:39: error: 'class boost::asio::ip::address_v4' has no member named 'to_ulong'
  119 |         return (asio_address_.to_v4().to_ulong());
      |                                       ^~~~~~~~
  CXX      libkea_asiolink_la-io_endpoint.lo
make[5]: *** [Makefile:766: libkea_asiolink_la-io_address.lo] Fehler 1
make[5]: *** Es wird auf noch nicht beendete Prozesse gewartet …
In file included from io_endpoint.cc:12:
../../../src/lib/asiolink/tcp_endpoint.h: In constructor 'isc::asiolink::TCPEndpoint::TCPEndpoint(const isc::asiolink::IOAddress&, short unsigned int)':
../../../src/lib/asiolink/tcp_endpoint.h:45:74: error: 'from_string' is not a member of 'boost::asio::ip::address'
   45 |             new boost::asio::ip::tcp::endpoint(boost::asio::ip::address::from_string(address.toText()),
      |                                                                          ^~~~~~~~~~~
In file included from io_endpoint.cc:13:
../../../src/lib/asiolink/udp_endpoint.h: In constructor 'isc::asiolink::UDPEndpoint::UDPEndpoint(const isc::asiolink::IOAddress&, short unsigned int)':
../../../src/lib/asiolink/udp_endpoint.h:45:74: error: 'from_string' is not a member of 'boost::asio::ip::address'
   45 |             new boost::asio::ip::udp::endpoint(boost::asio::ip::address::from_string(address.toText()),
      |                                                                          ^~~~~~~~~~~
make[5]: *** [Makefile:773: libkea_asiolink_la-io_endpoint.lo] Fehler 1
make[5]: Verzeichnis „/mnt/tmp/kea/source/kea-2.6.1/src/lib/asiolink“ wird verlassen
make[4]: *** [Makefile:883: all-recursive] Fehler 1
make[4]: Verzeichnis „/mnt/tmp/kea/source/kea-2.6.1/src/lib/asiolink“ wird verlassen
make[3]: *** [Makefile:475: all-recursive] Fehler 1
make[3]: Verzeichnis „/mnt/tmp/kea/source/kea-2.6.1/src/lib“ wird verlassen
make[2]: *** [Makefile:468: all-recursive] Fehler 1
make[2]: Verzeichnis „/mnt/tmp/kea/source/kea-2.6.1/src“ wird verlassen
make[1]: *** [Makefile:655: all-recursive] Fehler 1
make[1]: Verzeichnis „/mnt/tmp/kea/source/kea-2.6.1“ wird verlassen
make: *** [Makefile:543: all] Fehler 2
}}}

Running same instructions on a system with boost-1.85 has shown no issues. (not tested with boost-1.86)

There is a patch at Gentoo (https://bugs.gentoo.org/946488) available as https://946488.bugs.gentoo.org/attachment.cgi?id=914160. This patch applies against kea-2.4.1 as Gentoo has not upgraded to kea-2.6.1 for whatever reason. Unfortunately, the patch does not fully apply to 2.6.1.

"	defect	closed	normal	12.3	BOOK	git	medium	fixed		
