[Asterisk-Users] res_perl - Compiling error

Brent August Torrenga brent.torrenga at torrenga.com
Sat Oct 15 15:19:06 MST 2005


Having trouble running make on res_perl:

[root at charlie res_perl]# make
perl -MExtUtils::Embed -e xsinit
gcc -Wall -fPIC -DHAVE_AST_CUST_CONFIG -I/usr/src/asterisk-1.0.9/
-I/usr/src/asterisk-1.0.9//include -I. -DAST_INSTALL_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\"
-DMULTIPLICITY  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-I/usr/local/lib/perl5/5.8.7/-linux-thread-multi/CORE   -c -o perlxsi.o
perlxsi.c
gcc -Wall -fPIC -DHAVE_AST_CUST_CONFIG -I/usr/src/asterisk-1.0.9/
-I/usr/src/asterisk-1.0.9//include -I. -DAST_INSTALL_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\"
-DMULTIPLICITY  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-I/usr/local/lib/perl5/5.8.7/-linux-thread-multi/CORE   -c -o res_perl.o
res_perl.c
gcc -Wall -fPIC -DHAVE_AST_CUST_CONFIG -I/usr/src/asterisk-1.0.9/
-I/usr/src/asterisk-1.0.9//include -I. -DAST_INSTALL_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\"
-DMULTIPLICITY  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-I/usr/local/lib/perl5/5.8.7/-linux-thread-multi/CORE   -c -o apihelp.o
apihelp.c
gcc -Wall -fPIC -DHAVE_AST_CUST_CONFIG -I/usr/src/asterisk-1.0.9/
-I/usr/src/asterisk-1.0.9//include -I. -DAST_INSTALL_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\"
-DMULTIPLICITY  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-I/usr/local/lib/perl5/5.8.7/-linux-thread-multi/CORE   -c -o
AstAPIBase.o AstAPIBase.c
gcc -Wall -fPIC -shared -Xlinker -x -o res_perl.so perlxsi.o res_perl.o
apihelp.o -Wl,-E
-L/usr/local/lib /usr/local/lib/perl5/5.8.7/-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.8.7/-linux-thread-multi/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lc  AstAPIBase.o
/usr/bin/ld: cannot find -lndbm
collect2: ld returned 1 exit status
make: *** [res_perl.so] Error 1
[root at charlie res_perl]#





More information about the asterisk-users mailing list