Send kea-dev mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/kea-dev
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of kea-dev digest..."


Today's Topics:

   1.  hooks libraries failed to validate (Raj raj)
   2. Re:  hooks libraries failed to validate (Raj raj)
   3. Re:  hooks libraries failed to validate (Marcin Siodelski)


----------------------------------------------------------------------

Message: 1
Date: Fri, 18 Sep 2015 15:59:33 +0530
From: Raj raj <[email protected]>
To: [email protected]
Subject: [kea-dev] hooks libraries failed to validate
Message-ID:
        <cae56t+vpm2ngszrt5meotm9ayuasqc62z-pcilrc_hr4wf7...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

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


------------------------------

Message: 2
Date: Fri, 18 Sep 2015 16:59:40 +0530
From: Raj raj <[email protected]>
To: [email protected]
Subject: Re: [kea-dev] hooks libraries failed to validate
Message-ID:
        <CAE56t+VKi2Gnzi_BJSm=xkukg9sdiwo-r5f9uomvha1qoqm...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

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 <[email protected]> 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


------------------------------

Message: 3
Date: Fri, 18 Sep 2015 13:46:40 +0200
From: Marcin Siodelski <[email protected]>
To: Raj raj <[email protected]>, [email protected]
Subject: Re: [kea-dev] hooks libraries failed to validate
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252

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 <[email protected]> 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
> [email protected]
> https://lists.isc.org/mailman/listinfo/kea-dev
> 


------------------------------

_______________________________________________
kea-dev mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-dev

End of kea-dev Digest, Vol 18, Issue 7
**************************************

Reply via email to