ANNOUNCEMENT: NSD 1.2.0 released

Erik Rozendaal erik at NLnetLabs.nl
Wed Jul 9 18:16:58 CEST 2003


Colm MacCarthaigh wrote:
> On Wed, Jul 09, 2003 at 03:38:07PM +0200, Erik Rozendaal wrote:
> 
>>        - Experimental plugin support.  This required a minor,
>>          incompatible change to the database format.  Make sure you
>>          recompile your database.  Use --enable-plugins to enable.
> 
> 
> Looks great! Needs a slight kick to work though ... :)
> 
> --- nsd-1.2.0/nsd-plugin.h      Wed Jul  9 14:40:11 2003
> +++ nsd-1.2.0/nsd-plugin.h      Wed Jul  9 14:40:53 2003
> @@ -41,7 +41,7 @@
>  #ifndef _NSD_PLUGIN_H_
>  #define _NSD_PLUGIN_H_
>  
> -#ifdef HAVE_CONFIG_H
> +#ifndef HAVE_CONFIG_H
>  #include <config.h>
>  #endif

Actually, you just need to make sure you compile with -I<nsd-source-dir> 
-DHAVE_CONFIG_H.  Try to use the same CPPFLAGS and CFLAGS for your 
plugin as you used to compile NSD.  Or adapt the "example-plugin" rules 
in Makefile.in for your own plugins.

Or maybe there should be a sample/reference Makefile for plugins...

Erik



More information about the nsd-users mailing list