[Asterisk-Users] Libpri and asterisk fail to install
Rhys Hopkins
rhysh at aerotech-eu.net
Wed Aug 6 04:22:45 MST 2003
Hi,
I am having trouble building and installing libpri and asterisk on my
system. Zaptel seemed to install OK.
I am running SuSE 8.2 ( Linux 2.4.20-4GB )
I have made sure I have the prerequisites ( rpm versions shown below )
rhys2:/usr/src/libpri # uname -a
Linux rhys2 2.4.20-4GB #1 Fri Jul 11 07:33:18 UTC 2003 i686 unknown
unknown GNU/Linux
rhys2:/opt/libpri-0.3.2 # rpm -q openssl-devel
openssl-devel-0.9.6i-12
rhys2:/opt/libpri-0.3.2 # rpm -q readline-devel
readline-devel-4.3-105
rhys2:/opt/libpri-0.3.2 # rpm -q readline
readline-4.3-105
rhys2:/opt/libpri-0.3.2 # rpm -q openssl
openssl-0.9.6i-12
rhys2:/opt/libpri-0.3.2 # rpm -q kernel-source
kernel-source-2.4.20.SuSE-62
rhys2:/opt/libpri-0.3.2 # rpm -q termcap
termcap-2.0.8-674
This is the output from make clean ; make install for libpri:
rhys2:/usr/src/libpri # make clean
rm -f *.o *.so *.lo
rm -f testpri libpri.a libpri.so.1.0
rm -f pritest pridump
rhys2:/usr/src/libpri # make install
cc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o
pri.o pri.c
cc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o
q921.o q921.c
cc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o
prisched.o prisched.c
cc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o
q931.o q931.c
q931.c: In function `ie2str':
q931.c:1210: warning: comparison between signed and unsigned
q931.c: In function `msg2str':
q931.c:1227: warning: comparison between signed and unsigned
q931.c: In function `q931_dumpie':
q931.c:1251: warning: comparison between signed and unsigned
q931.c: In function `add_ie':
q931.c:1334: warning: comparison between signed and unsigned
q931.c: In function `q931_handle_ie':
q931.c:1394: warning: comparison between signed and unsigned
make: *** [q931.o] Error 1
This is the end of the output from make install for asterisk ( full
output attached as "asterisk_errors" )
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking host system type... i686-pc-linux-gnu
checking for a BSD compatible install... install
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for tgetent in -lcurses... no
checking for tgetent in -lncurses... no
configure: error: termcap support not found
make: *** [editline/config.h] Error 1
As can be seen from the rpm queries above, I have termcap installed.
Any help would be much appreciated.
Regards,
Rhys Hopkins
Systems Administrator
Culver Technologies Limited.
-------------- next part --------------
rhys2:/usr/src/asterisk # make clean
for x in res channels pbx apps codecs formats agi cdr astman; do make -C $x clean || exit 1 ; done
make[1]: Entering directory `/usr/src/asterisk/res'
rm -f *.so *.o .depend
make[1]: Leaving directory `/usr/src/asterisk/res'
make[1]: Entering directory `/usr/src/asterisk/channels'
rm -f *.so *.o .depend
rm -f busy.h ringtone.h gentone gentone-ulaw
make[1]: Leaving directory `/usr/src/asterisk/channels'
make[1]: Entering directory `/usr/src/asterisk/pbx'
rm -f *.so *.o .depend
make[1]: Leaving directory `/usr/src/asterisk/pbx'
make[1]: Entering directory `/usr/src/asterisk/apps'
rm -f *.so *.o look .depend
make[1]: Leaving directory `/usr/src/asterisk/apps'
make[1]: Entering directory `/usr/src/asterisk/codecs'
rm -f *.so *.o .depend
! [ -d g723.1 ] || make -C g723.1 clean
! [ -d g723.1b ] || make -C g723.1b clean
make -C gsm clean
make[2]: Entering directory `/usr/src/asterisk/codecs/gsm'
rm -f */*.o \
./tst/lin2cod ./tst/lin2txt \
./tst/cod2lin ./tst/cod2txt \
./tst/gsm2cod \
./tst/*.*.*
find . \( -name core -o -name foo \) \
-print | xargs rm -f
rm -f ./lib/libgsm.a ./add-test/add \
./bin/toast ./bin/tcat ./bin/untoast \
./gsm-1.0.tar.Z
make[2]: Leaving directory `/usr/src/asterisk/codecs/gsm'
make -C mp3 clean
make[2]: Entering directory `/usr/src/asterisk/codecs/mp3'
rm -f src/cdct.o src/cupl3.o src/hwin.o src/iup.o src/l3init.o src/msis.o src/wavep.o src/csbt.o src/cwinm.o src/icdct.o src/mdct.o src/uph.o src/cup.o src/dec8.o src/isbt.o src/l3dq.o src/mhead.o src/upsf.o src/iwinm.o
rm -f libmp3.a
make[2]: Leaving directory `/usr/src/asterisk/codecs/mp3'
make -C lpc10 clean
make[2]: Entering directory `/usr/src/asterisk/codecs/lpc10'
rm -f *.o ./liblpc10.a
make[2]: Leaving directory `/usr/src/asterisk/codecs/lpc10'
make -C ilbc clean
make[2]: Entering directory `/usr/src/asterisk/codecs/ilbc'
rm -f libilbc.a *.o
make[2]: Leaving directory `/usr/src/asterisk/codecs/ilbc'
make[1]: Leaving directory `/usr/src/asterisk/codecs'
make[1]: Entering directory `/usr/src/asterisk/formats'
rm -f *.so *.o .depend
make[1]: Leaving directory `/usr/src/asterisk/formats'
make[1]: Entering directory `/usr/src/asterisk/agi'
rm -f *.so *.o look .depend
make[1]: Leaving directory `/usr/src/asterisk/agi'
make[1]: Entering directory `/usr/src/asterisk/cdr'
rm -f *.so *.o .depend
make[1]: Leaving directory `/usr/src/asterisk/cdr'
make[1]: Entering directory `/usr/src/asterisk/astman'
rm -f *.o astman .depend
make[1]: Leaving directory `/usr/src/asterisk/astman'
rm -f *.o *.so asterisk .depend
rm -f build.h
rm -f ast_expr.c
make -C db1-ast clean
make[1]: Entering directory `/usr/src/asterisk/db1-ast'
rm -f libdb1.a libdb.so.2 hash.o hash_bigkey.o hash_buf.o hash_func.o hash_log2.o hash_page.o ndbm.o bt_close.o bt_conv.o bt_debug.o bt_delete.o bt_get.o bt_open.o bt_overflow.o bt_page.o bt_put.o bt_search.o bt_seq.o bt_split.o bt_utils.o db.o mpool.o rec_close.o rec_delete.o rec_get.o rec_open.o rec_put.o rec_search.o rec_seq.o rec_utils.o hash.os hash_bigkey.os hash_buf.os hash_func.os hash_log2.os hash_page.os ndbm.os bt_close.os bt_conv.os bt_debug.os bt_delete.os bt_get.os bt_open.os bt_overflow.os bt_page.os bt_put.os bt_search.os bt_seq.os bt_split.os bt_utils.os db.os mpool.os rec_close.os rec_delete.os rec_get.os rec_open.os rec_put.os rec_search.os rec_seq.os rec_utils.os
make[1]: Leaving directory `/usr/src/asterisk/db1-ast'
rhys2:/usr/src/asterisk # make install
Makefile:174: .depend: No such file or directory
./mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP `ls *.c`
cli.c:31:19: build.h: No such file or directory
for x in res channels pbx apps codecs formats agi cdr astman; do make -C $x depend || exit 1 ; done
make[1]: Entering directory `/usr/src/asterisk/res'
Makefile:39: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP -DZAPATA_MOH -DOPENSSL_NO_KRB5 -fPIC `ls *.c`
make[1]: Leaving directory `/usr/src/asterisk/res'
make[1]: Entering directory `/usr/src/asterisk/res'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/res'
make[1]: Entering directory `/usr/src/asterisk/channels'
Makefile:67: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP -Wno-missing-prototypes -Wno-missing-declarations -DIAX_TRUNKING -DCRYPTO -fPIC `ls *.c`
chan_alsa.c:30:18: busy.h: No such file or directory
chan_alsa.c:31:22: ringtone.h: No such file or directory
chan_nbs.c:33:17: nbs.h: No such file or directory
chan_oss.c:41:18: busy.h: No such file or directory
chan_oss.c:42:22: ringtone.h: No such file or directory
chan_vpb.c:34:20: vpbapi.h: No such file or directory
chan_zap_old.c:45:17: zap.h: No such file or directory
make[1]: Leaving directory `/usr/src/asterisk/channels'
make[1]: Entering directory `/usr/src/asterisk/channels'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/channels'
make[1]: Entering directory `/usr/src/asterisk/pbx'
Makefile:60: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP -fPIC `ls *.c`
pbx_gtkconsole.c:38:21: gtk/gtk.h: No such file or directory
pbx_gtkconsole.c:39:18: glib.h: No such file or directory
make[1]: Leaving directory `/usr/src/asterisk/pbx'
make[1]: Entering directory `/usr/src/asterisk/pbx'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/pbx'
make[1]: Entering directory `/usr/src/asterisk/apps'
Makefile:78: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP -fPIC `ls *.c`
app_sql_postgres.c:30:22: libpq-fe.h: No such file or directory
make[1]: Leaving directory `/usr/src/asterisk/apps'
make[1]: Entering directory `/usr/src/asterisk/apps'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/apps'
make[1]: Entering directory `/usr/src/asterisk/codecs'
Makefile:95: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP -fPIC `ls *.c`
codec_g723_1.c:46:28: g723.1/typedef.h: No such file or directory
codec_g723_1.c:47:28: g723.1/cst_lbc.h: No such file or directory
codec_g723_1.c:48:26: g723.1/coder.h: No such file or directory
codec_g723_1.c:49:26: g723.1/decod.h: No such file or directory
codec_g723_1.c:50:28: g723.1/dec_cng.h: No such file or directory
codec_g723_1.c:51:28: g723.1/cod_cng.h: No such file or directory
codec_g723_1.c:52:24: g723.1/vad.h: No such file or directory
codec_speex.c:34:19: speex.h: No such file or directory
make[1]: Leaving directory `/usr/src/asterisk/codecs'
make[1]: Entering directory `/usr/src/asterisk/codecs'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/codecs'
make[1]: Entering directory `/usr/src/asterisk/formats'
Makefile:35: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP -fPIC `ls *.c`
make[1]: Leaving directory `/usr/src/asterisk/formats'
make[1]: Entering directory `/usr/src/asterisk/formats'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/formats'
make[1]: Entering directory `/usr/src/asterisk/agi'
Makefile:35: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP `ls *.c`
make[1]: Leaving directory `/usr/src/asterisk/agi'
make[1]: Entering directory `/usr/src/asterisk/agi'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/agi'
make[1]: Entering directory `/usr/src/asterisk/cdr'
Makefile:43: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP -fPIC `ls *.c`
cdr_mysql.c:29:19: mysql.h: No such file or directory
make[1]: Leaving directory `/usr/src/asterisk/cdr'
make[1]: Entering directory `/usr/src/asterisk/cdr'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/cdr'
make[1]: Entering directory `/usr/src/asterisk/astman'
Makefile:24: .depend: No such file or directory
../mkdep -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-08/06/03-11:59:22\" -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 -DNEW_PRI_HANGUP -DNO_AST_MM `ls *.c`
astman.c:8:18: newt.h: No such file or directory
make[1]: Leaving directory `/usr/src/asterisk/astman'
make[1]: Entering directory `/usr/src/asterisk/astman'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/astman'
if [ -d CVS ] && ! [ -f .version ]; then echo "CVS-`date +"%D-%T"`" > .version; fi
./make_build_h
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking host system type... i686-pc-linux-gnu
checking for a BSD compatible install... install
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for tgetent in -lcurses... no
checking for tgetent in -lncurses... no
configure: error: termcap support not found
make: *** [editline/config.h] Error 1
More information about the asterisk-users
mailing list