[asterisk-dev] Asterisk won't compile with 64 bit termcap ?

John Lange john at johnlange.ca
Thu Jun 5 13:17:01 CDT 2008


Just recently I've been trying to compile Asterisk 1.4.20.1 and a couple
of SVN branches on my 64 bit Linux OpenSUSE 10.3 laptop but configure
fails at the termcap stage

config.log shows:

configure:31616: result: no
configure:31993: checking for tgetent in -ltermcap
configure:32028: gcc -o conftest -g -O2   conftest.c -ltermcap    >&5
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status

termcap is installed and ldconfig -v shows:

/usr/lib64:
        libtermcap.so.2 -> libtermcap.so.2.0.8

Suse appears to only have one termcap package and I assume it includes
the lib and -devel stuff. I've never had a problem compiling Asterisk on
Suse before so that's why I suspect its a 64 bit problem.

Here is the listing of the files from the termcap package:

/usr/include/curses
/usr/include/curses/curses.h
/usr/include/termcap
/usr/include/termcap/termcap.h
/usr/lib64/curses
/usr/lib64/curses/libcurses.a
/usr/lib64/curses/libcurses.so
/usr/lib64/libcurses.so.1
/usr/lib64/libcurses.so.1.0.0
/usr/lib64/libtermcap.so.2
/usr/lib64/libtermcap.so.2.0.8
/usr/lib64/termcap
/usr/lib64/termcap/libtermcap.a
/usr/lib64/termcap/libtermcap.so


There is also a 32 bit termcap so I removed the default one and tried
it. It contains these files:

/usr/lib/curses
/usr/lib/curses/libcurses.a
/usr/lib/curses/libcurses.so
/usr/lib/libcurses.so.1
/usr/lib/libcurses.so.1.0.0
/usr/lib/libtermcap.so.2
/usr/lib/libtermcap.so.2.0.8
/usr/lib/termcap
/usr/lib/termcap/libtermcap.a
/usr/lib/termcap/libtermcap.so

Still the same result.

Any ideas?

-- 
John Lange
www.johnlange.ca





More information about the asterisk-dev mailing list