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. Re:  hooks libraries failed to validate (Raj raj)
   2. Re:  hooks libraries failed to validate (Marcin Siodelski)
   3. Re:  hooks libraries failed to validate (Raj raj)


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

Message: 1
Date: Fri, 18 Sep 2015 18:19:53 +0530
From: Raj raj <[email protected]>
Cc: [email protected]
Subject: Re: [kea-dev] hooks libraries failed to validate
Message-ID:
        <CAE56t+W+A=pbyvhxn-wwxpatwghze2iiw8i9xqs4n9478+k...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

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


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

Message: 2
Date: Fri, 18 Sep 2015 14:56:55 +0200
From: Marcin Siodelski <[email protected]>
To: Raj raj <[email protected]>
Cc: [email protected]
Subject: Re: [kea-dev] hooks libraries failed to validate
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

You may want to check in this location:

/usr/local/src/kea-0.9.2/src/hooks/dhcp/user_chk/.libs/libdhcp_user_chk.so

Marcin

On 18.09.2015 14:49, Raj raj wrote:
> 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@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 <[email protected]> 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 <[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
>



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

Message: 3
Date: Fri, 18 Sep 2015 19:36:24 +0530
From: Raj raj <[email protected]>
To: [email protected]
Subject: Re: [kea-dev] hooks libraries failed to validate
Message-ID:
        <cae56t+unzbght9jca1en8biazf8zk8t6na4v6i3d0mw6lx5...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Thanks! it's now loaded successfully.


Thanks and Regards,

Raj


On Fri, Sep 18, 2015 at 6:26 PM, Marcin Siodelski <[email protected]> wrote:
> You may want to check in this location:
>
> /usr/local/src/kea-0.9.2/src/hooks/dhcp/user_chk/.libs/libdhcp_user_chk.so
>
> Marcin
>
> On 18.09.2015 14:49, Raj raj wrote:
>> 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@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 <[email protected]> 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 <[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
>>
>


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

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

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

Reply via email to