[kea-dev] hooks libraries failed to validate

Raj raj rajlistuser at gmail.com
Fri Sep 18 12:49:53 UTC 2015


Hi,

Tried that, still getting the same error:

2015-09-18 18:16:28.225 ERROR [kea-dhcp4.dhcp4/16233] DHCP4_INIT_FAIL
failed to initialize Kea server: configuration error using file
'/usr/local/etc/kea/kea.conf': hooks libraries failed to validate -
library or libraries in error are:
/usr/local/src/kea-0.9.2/src/hooks/dhcp/user_chk/libdhcp_user_chk.so
(/usr/local/etc/kea/kea.conf:25:21)

Please note that as I mentioned in previous mail libdhcp_user_chk.so
does not exist and make does not create that file.

root at mars:~# ls
/usr/local/src/kea-0.9.2/src/hooks/dhcp/user_chk/libdhcp_user_chk.so
ls: cannot access
/usr/local/src/kea-0.9.2/src/hooks/dhcp/user_chk/libdhcp_user_chk.so:
No such file or directory


Thanks and Regards,

Raj


On Fri, Sep 18, 2015 at 5:16 PM, Marcin Siodelski <marcin at isc.org> wrote:
> Raj,
>
> Please load the .so file, instead of .la file in your config.
>
> Marcin Siodelski
> DHCP Software Engineer
>
> On 18.09.2015 13:29, Raj raj wrote:
>> One more update on this:
>>
>> I tried to compile the user_chk sample hook that came with the source.
>> It did not produce an .so file as I had expected, instead it produced
>> libdhcp_user_chk.la
>>
>> make[3]: Entering directory `/usr/local/src/kea-0.9.2/src/hooks/dhcp/user_chk'
>>   CXX      libduc_la-load_unload.lo
>>   CXX      libduc_la-pkt_receive_co.lo
>>   CXX      libduc_la-pkt_send_co.lo
>>   CXX      libduc_la-subnet_select_co.lo
>>   CXX      libduc_la-user.lo
>>   CXX      libduc_la-user_chk_log.lo
>>   CXX      libduc_la-user_file.lo
>>   CXX      libduc_la-user_registry.lo
>>   CXX      libduc_la-version.lo
>>   CXX      libduc_la-user_chk_messages.lo
>>   CXXLD    libduc.la
>>   CCLD     libdhcp_user_chk.la
>> make[3]: Leaving directory `/usr/local/src/kea-0.9.2/src/hooks/dhcp/user_chk'
>>
>> I tried loading the libdhcp_user_chk.la file and it also gave me similar error:
>>
>> 2015-09-18 16:51:42.333 ERROR [kea-dhcp4.dhcp4/15637] DHCP4_INIT_FAIL
>> failed to initialize Kea server: configuration error using file
>> '/usr/local/etc/kea/kea.conf': hooks libraries failed to validate -
>> library or libraries in error are:
>> /usr/local/src/kea-0.9.2/src/hooks/dhcp/user_chk/libdhcp_user_chk.la
>> (/usr/local/etc/kea/kea.conf:25:21)
>>
>> Thanks and Regards,
>>
>> Raj
>>
>>
>> On Fri, Sep 18, 2015 at 3:59 PM, Raj raj <rajlistuser at gmail.com> wrote:
>>> Dear List,
>>>
>>> My example module is now compiling without errors. But when I restart
>>> Kea daemon to load the module it exits with following error:
>>>
>>> 2015-09-18 15:30:29.202 ERROR [kea-dhcp4.dhcp4/14052] DHCP4_INIT_FAIL
>>> failed to initialize Kea server: configuration error using file
>>> '/usr/local/etc/kea/kea.conf': hooks libraries failed to validate -
>>> library or libraries in error are:
>>> /usr/local/src/dhcp-alert/example.so
>>> (/usr/local/etc/kea/kea.conf:24:21)
>>>
>>> I get this error when I enable the logging line:
>>>
>>> LOG_ERROR(packet_capture_logger, HOOK_TEST_MSG);
>>>
>>> in load_unload.cc. If this line is commented out Kea starts with out error.
>>>
>>> There is no further information in logs as  to what could be the error
>>> here. Is there a way to increase debug level of module loading? How to
>>> figure out what could be wrong in the module?
>>>
>>> Thanks and Regards,
>>>
>>> Raj
>> _______________________________________________
>> kea-dev mailing list
>> kea-dev at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/kea-dev
>>


More information about the kea-dev mailing list