[kea-dev] hooks libraries failed to validate

Raj raj rajlistuser at gmail.com
Fri Sep 18 11:29:40 UTC 2015


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


More information about the kea-dev mailing list