Hi, I've made an attempt to fix this bug. There are changed header files of libprelude, as well as some type name changes. an incomplete patch attached.
I didn't succeed in fixing the build, however, it stops at: make[5]: Entering directory `/home/dam/work/debian/nm/prelude-nids-0.8.6/src' source='detect-plugins.c' object='detect-plugins.o' libtool=no \ depfile='.deps/detect-plugins.Po' tmpdepfile='.deps/detect-plugins.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -I../ -I./include/ -Ilibpcap/ -DDETECT_PLUGIN_DIR=\"/usr/lib/prelude-nids/detects/\" -DPROTOCOL_PLUGIN_DIR=\"/usr/lib/prelude-nids/protocols/\" -DCONFIG_DIR=\"/etc/prelude-nids\" -DLOCALSTATEDIR=\"/usr/var\" -I. -I. -I.. -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -Wcast-qual -Wcast-align -Wnested-externs -Wunused -c `test -f 'detect-plugins.c' || echo './'`detect-plugins.c detect-plugins.c:57: error: expected ‘)’ before ‘*’ token detect-plugins.c:77: error: expected ‘)’ before ‘*’ token detect-plugins.c:116: error: expected ‘)’ before ‘*’ token detect-plugins.c:151: error: expected ‘)’ before ‘*’ token detect-plugins.c: In function ‘detect_plugins_run’: detect-plugins.c:167: error: ‘plugin_container_t’ undeclared (first use in this function) detect-plugins.c:167: error: (Each undeclared identifier is reported only once detect-plugins.c:167: error: for each function it appears in.) detect-plugins.c:167: error: ‘pc’ undeclared (first use in this function) detect-plugins.c:169: warning: implicit declaration of function ‘list_for_each’ detect-plugins.c:169: warning: nested extern declaration of ‘list_for_each’ detect-plugins.c:169: error: expected ‘;’ before ‘{’ token detect-plugins.c: In function ‘detect_plugins_init’: detect-plugins.c:189: warning: implicit declaration of function ‘log’ detect-plugins.c:189: warning: incompatible implicit declaration of built-in function ‘log’ detect-plugins.c:189: error: ‘LOG_ERR’ undeclared (first use in this function) detect-plugins.c:189: error: too many arguments to function ‘log’ detect-plugins.c:193: warning: implicit declaration of function ‘plugin_load_from_dir’ detect-plugins.c:193: warning: nested extern declaration of ‘plugin_load_from_dir’ detect-plugins.c:193: error: ‘subscribe’ undeclared (first use in this function)detect-plugins.c:193: error: ‘unsubscribe’ undeclared (first use in this function) detect-plugins.c:195: warning: incompatible implicit declaration of built-in function ‘log’ detect-plugins.c:195: error: too many arguments to function ‘log’ make[5]: *** [detect-plugins.o] Error 1 This, IMHO, is caused by missing declaration of plugin_container_t, which most probably has changed its name. Unfortunately I couldn't figure out what the new name is. I post the patch and these thoughts here so somebody else may pick up from here. On a side note, upstream site of prelude says[1] that prelude-nids is deprecated and users should switch to snort. Given this, and the severe build failure, maybe it is not such a bad idea to remove prelude-nids from archive? Kind regards, dam [1] https://trac.prelude-ids.org/wiki/FrequentlyAskedQuestions -- Damyan Ivanov Modular Software Systems [EMAIL PROTECTED] phone +359(2)928-2611, 929-3993 fax +359(2)920-0994 mobile +359(88)856-6067 [EMAIL PROTECTED]/Gaim
prelude-nids.patch.gz
Description: GNU Zip compressed data
signature.asc
Description: OpenPGP digital signature