[Freeswitch-users] Mod_perl build error

Sheeju Alex sheeju.alex at gmail.com
Fri Aug 15 07:24:33 PDT 2008


Dear All,

       I get undermentioned error when I tried to build mod_perl,
could anyone please let me know the fix.

------------------- ERROR -------------------------
making all mod_native_file

making all mod_perl
Creating mod_perl.so...
/usr/bin/ld: cannot find -lgdbm
collect2: ld returned 1 exit status
gcc -w -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -Wdeclaration-after-statement -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -DEMBED_PERL
-I/usr/src/freeswitch-1.0.1/src/include
-I/usr/src/freeswitch-1.0.1/libs/libteletone/src -fPIC -Werror -g
-ggdb -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -o
.libs/mod_perl.so -shared -Wl,-x mod_perl.o -Wl,-E -Wl,-rpath
-Wl,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE
freeswitch_perl.o mod_perl_wrap.o perlxsi.o  -L/usr/local/lib
/usr/src/freeswitch-1.0.1/.libs/libfreeswitch.so
/usr/src/freeswitch-1.0.1/libs/apr/.libs/libapr-1.a -lrt
-L/usr/src/freeswitch-1.0.1/libs/srtp -lncurses
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
-L/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl
-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
-Wl,--rpath -Wl,/usr/local/freeswitch/lib
make[5]: *** [mod_perl.so] Error 1
make[4]: *** [all] Error 1
make[3]: *** [mod_perl-all] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
---------------------------------------------------------------

Also I have a question with mod_perl, As I am Asterisk user I am
figuring out the way to call perl script from dialplan.

exten => 88,1,Answer()
exten => 88,2,AGI(check.pl)
exten => 88,3,Goto(enter,s,4)

I guess after installing mod_perl I would be able to do above function
in freeswitch as well, is it something like this?

    <extension name="perl">
      <condition field="destination_number" expression="^88$">
        <action application="answer"/>
        <action application="perl" data="check.pl"/>
      </condition>
    </extension>

looking forward for your reply!

Thanks,
Sheeju




More information about the FreeSWITCH-users mailing list