[HELP] compiling with res_perl AND chan_misdn


I am trying since days to compile asterisk with res_perl, but i’m only able to do this with CVS-Head 2005-07-13 - if i use an other version, i just get bugs.
This the one on 1.2.0-rc2 (the last i tried):

/usr/src/asterisk/contrib/scripts/astxs -nolink -append=CFLAGS:"-DRES_PERL_BASE="’"/usr/local/res_perl"’" -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -I/usr/src/asterisk -I/usr/src/asterisk/include -I." res_perl.c
gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I…/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=“CVS-Nv1-0-9-11/14/05-21:28:17” -DINSTALL_PREFIX="" -DASTETCDIR="/etc/asterisk" -DASTLIBDIR="/usr/lib/asterisk" -DASTVARLIBDIR="/var/lib/asterisk" -DASTVARRUNDIR="/var/run" -DASTSPOOLDIR="/var/spool/asterisk" -DASTLOGDIR="/var/log/asterisk" -DASTCONFPATH="/etc/asterisk/asterisk.conf" -DASTMODDIR="/usr/lib/asterisk/modules" -DASTAGIDIR="/var/lib/asterisk/agi-bin" -DBUSYDETECT_MARTIN -fPIC -DRES_PERL_BASE="/usr/local/res_perl" -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -I/usr/src/asterisk -I/usr/src/asterisk/include -I. -c res_perl.c -o res_perl.o
res_perl.c:21: error: Syntaxfehler before string constant
res_perl.c:28: Warnung: return type defaults to int' res_perl.c:28: Warnung: function declaration isn't a prototype res_perl.c: In Funktion »ASTERISK_FILE_VERSION«: res_perl.c:28: error: storage class specified for parameterperl_lock’
res_perl.c:28: error: parameter perl_lock' is initialized res_perl.c:29: error: storage class specified for parameterperl_config_lock’
res_perl.c:29: error: parameter `perl_config_lock’ is initialized

I would use the old version (CVS-Head 2005-07-13), but on this version chan_misdn is not compiling - i need both.

Anyone a hint, how to get it work? Or should i rewrite my perl programms and use a different language because perhaps res_perl is not updated anymore (or only for OpenPBX)?

I am anyway wondering if it’s a good idea to use modules and functions wich are not included in asterisk - often these programms are not running with newer versions.