[Kea-users] Hook failed to validate?

Razvan Becheriu razvan at isc.org
Mon Jun 26 08:48:48 UTC 2023


  
Hi, 
  
Do you have multi-threading enabled in kea (now defaul is yes)? 
  
If so, please add multi threading compatibility to your library: 
  
______________________________________________________ 
  
/// @brief This function is called to retrieve the multi-threading compatibility. 
/// 
/// @return 1 which means compatible with multi-threading. 
 
int multi_threading_compatible() { 
    return (1); 
} 
 ______________________________________________________ 
  
Regards, 
  
Razvan    
 
 
    
          
   

-----Original Message-----

From: DDFR <ronald.blaas at ddfr.nl>
To: kea-users <kea-users at lists.isc.org>
Date: Monday, 26 June 2023 10:56 AM EEST
Subject: [Kea-users] Hook failed to validate?

 hi all    I am trying to understand why my hook will not work.   I am reading the tutorial that is given on the development pages but still no luck.    So now I am trying to make a real small hook (which does not do anything)    Here is my test file    #include <config.h> #include <hooks/hooks.h> 
  extern "C" { 
  /// @brief returns Kea hooks version. int version() {     return (KEA_HOOKS_VERSION); } 
  }  I compiled this using: g++ -I /usr/include/kea -L /usr/lib -fpic -shared -lkea-dhcpsrv -lkea-dhcp++ -lkea-hooks -lkea-log -lkea-util -lkea-exceptions -o circuit_id.so version.cc   after loading this hook kea-dhcp does not start.  error:   kea-dhcp4[22322]: 2023-06-26 07:50:35.752 ERROR [kea-dhcp4.dhcp4/22322.140007709609600] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/etc/kea/kea-dhcp4.conf': hooks libraries failed to validate - library or libraries in error are: /usr/lib/x86_64-linux-gnu/kea/hooks/circuit_id.so (/etc/kea/kea-dhcp4.conf:25:5)
 My kea-dhcp4.conf:  "hooks-libraries": [         {             "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/circuit_id.so"         }     ],    Any insights are appreciated.   Regards   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230626/9c39af30/attachment-0001.htm>


More information about the Kea-users mailing list