Hopefully, this helps someone get kea 3.2.0 installed on their machine.

First, make sure you have at least 8Gb of Memory (including swap - I have 4Gb 
with an 8Gb swap).
meson/cmake seems to use at least 6Gb during the compile (running what seems to 
be 6 threads).

It seems Kea does not compile with the default version of g++ (7.5.0) on 
openSUSE 15.6
(by default, cmake selects: CXX="c++" )

I get errors like this:

[220/687] Compiling C++ object 
src/lib/http/libkea-http.so.100.0.0.p/date_time.cc.o
../src/lib/http/date_time.cc:16:32: warning: unknown option after ‘#pragma GCC 
diagnostic’ kind [-Wpragmas]
 #pragma GCC diagnostic ignored "-Wdeprecated-copy"

AND:
../src/lib/config_backend/base_config_backend_pool.h:509:17: note:   template 
argument deduction/substitution failed:
../src/lib/dhcpsrv/config_backend_pool_dhcp6.cc:511:80: note:   could not resolve 
address from overloaded function ‘& 
isc::dhcp::ConfigBackendDHCPv6::deleteOption6’
              pd_pool_prefix, pd_pool_prefix_length, code, space, 
client_classes));

(note, if this is a bug, my suggested fix is to require a minimum version of 
g++).


THIS IS WHAT I SUGGEST YOU DO:

To get it to compile, set this BEFORE you run meson setup:
        export CXX="g++-13"

This will cause meson (which uses cmake) to use g++ version 13 (it should be 
available as a standard package from the standard repos, if you don't already 
have it installed.  NOTE; An older version might work).
You can find info on this here on an openSUSE machine: 
/usr/share/cmake/Help/envvar/CXX.rst
I suspect this may work on other OSes where the default g++ version is a bit 
old.


Note, I setup the build with commands like the below:

I set:
        
_src=/scratch/paulfm/BUILD/byuname/Linux/openSUSE/15.6/x86_64/6.4.0-150600.23.103-default/kea-3.2.0
        _install_dst=/usr/added/kea-dhcp.ver/kea-3.2.0
        (you can use other directories, I am just including this for clarity).
        
        cd ${_src}
        ${_src}/meson.sh setup --wipe --prefix ${_install_dst} ${_src}/my.build 
${_src}
Note: The --wipe is only needed if you want to restart the setup from scratch 
(for instance, you ran setup before with CXX unset).

Then to compile:
         ${_src}/meson.sh compile -C ${_src}/my.build

And install with:
        ${_src}/meson.sh install -C ${_src}/my.build






--
--------------------------------------------------------
The views and opinions expressed above are strictly
those of the author(s).  The content of this message has
not been reviewed nor approved by any entity whatsoever.
--------------------------------------------------------
Paul FM         Info: http://paulfm.com/~paulfm/
--------------------------------------------------------
--
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
[email protected]

Reply via email to