[kea-dev] Logging in sample hook module - missing log/message_dictionary.h

Stephen Morris stephen at isc.org
Thu Sep 17 08:03:16 UTC 2015


On 16/09/2015 15:53, Raj raj wrote:
> Dear List,
> 
> I am following the Hooks developer guide, and am able to get the
> sample module up and running. Next I am trying to get logging working
> inside the hook. I have tried to follow the docs, but may have missed
> some thing, In any case when I compile the code, I get the following
> error:
> 
> # g++ -I /usr/local/include/kea/ -L /usr/local/lib/ -fpic -shared -o
> example.so load_unload.cc hook_packet_capture.cc pkt4_send.cc
> pkt_receive4.cc version.cc -lkea-dhcpsrv -lkea-dhcp++ -lkea-hooks
> -lkea-log -lkea-util -lkea-exceptions
> In file included from packet_capture_log.h:4:0,
>                  from load_unload.cc:6:
> /usr/local/include/kea/log/message_initializer.h:18:36: fatal error:
> log/message_dictionary.h: No such file or directory
>  #include <log/message_dictionary.h>
>                                     ^

It looks as if message_dictionary.h is not being copied across to the
installation directory.  This is an error and a ticket has been created
for it in our issue tracking system.

To overcome this, copy the file src/lib/log/message_dictionary.h
from the tarball you downloaded to the appropriate installation
directory (which, from your post, seems to be /usr/local/include/kea/log).

Stephen



More information about the kea-dev mailing list