[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: back-monitor/init.c is missing init_module routine (ITS#2048)



peter.marschall@mayn.de writes: 

> Full_Name: Peter Marschall
> Version: 2.1.4
> OS: Linux 2.4.x
> URL: 
> Submission from: (NULL) (80.133.252.80) 
> 
> 
> back-monitor/init.c is missing a init_module() routine wchich does not allow it
> to create a dynamically loadable back_monitor.so 
> 
> Stealing and adapting a init_module routine from other backends does the trick: 
> 
> #ifdef SLAPD_MONITOR_DYNAMIC 
> 
> int back_monitor_LTX_init_module(int argc, char *argv[]) {
>     BackendInfo bi; 
> 
>     memset( &bi, '\0', sizeof(bi) );
>     bi.bi_type = "monitor";
>     bi.bi_init = monitor_back_initialize; 
> 
>     backend_add(&bi);
>     return 0;
> } 
> 
> #endif /* SLAPD_MONITOR_DYNAMIC */

I'll fix this ASAP (with other small problems :). 

Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 | mailto:pierangelo.masarati@polimi.it
via La Masa 34, 20156 Milano, Italy   | http://www.aero.polimi.it/~masarati