[asterisk-bugs] [Asterisk 0011434]: asterisk 1.4.14, both autoconf and configure on Ubuntu are broken

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Dec 2 21:54:01 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11434 
====================================================================== 
Reported By:                ecsd
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11434
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:            1.4.14  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-01-2007 20:32 CST
Last Modified:              12-02-2007 21:54 CST
====================================================================== 
Summary:                    asterisk 1.4.14, both autoconf and configure on
Ubuntu are broken
Description: 
This is the latest fully-upgraded "Gutsy" version of Ubuntu, whose uname -a
-p -i output is

Linux subterranean 2.6.22-14-generic http://bugs.digium.com/view.php?id=1 SMP
Sun Oct 14 23:05:12 GMT 2007
i686 GNU/Linux

(1) Unpack asterisk-1.4.14 and run "./configure" with no arguments,
fails:
root at subterranean:/usr/local/asterisk/asterisk-1.4.14# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
...
checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... yes
configure: error: *** termcap support not found

(2) Run "autoconf" with no arguments, produces an invalid "configure"
file:
root at subterranean:/usr/local/asterisk/asterisk-1.4.14# autoconf
root at subterranean:/usr/local/asterisk/asterisk-1.4.14# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
...
checking for wget... /usr/bin/wget
./configure: line 6695: ACX_PTHREAD: command not found
./configure: line 6720: syntax error near unexpected token `ALSA,'
./configure: line 6720: `AST_EXT_LIB_SETUP(ALSA, Advanced Linux Sound
Architecture, asound)'

(3) The only way I can get "configure" to complete, to produce Makefiles
which will also not fail, is by bodily hacking the tests for TINFO,
TERMCAP, CURSES and NCURSES out of the configure script (can't operate at
the autoconf level due to the error above - that I don't know how to get
past.) Then hack main/Makefile to make the label "EDITLINE_LIB" equal the
string '/lib/libncurses.so.5.6', instead of ending up containing "-L /lib
-lncurses". After insuring that the string "-lncurses" will NOT appear in
the final gcc load for asterisk (in the end of main/Makefile), only then
will the Make succeed.

It seems the configure-generated Makefile CANNOT FIND ncurses EVEN WHEN
told where to get it from - ldconfig reports the libraries are to be
found:

root at subterranean:/usr/local/asterisk/asterisk-1.4.14# ldconfig -p | grep
urse
        libncursesw.so.5 (libc6) => /lib/libncursesw.so.5
        libncurses.so.5 (libc6) => /lib/libncurses.so.5

root at subterranean:/usr/local/asterisk/asterisk-1.4.14# ls -l /lib/libnc*
lrwxrwxrwx 1 root root     17 2007-11-05 01:08 /lib/libncurses.so.5 ->
libncurses.so.5.6
-rw-r--r-- 1 root root 273124 2007-10-08 03:07 /lib/libncurses.so.5.6
lrwxrwxrwx 1 root root     18 2007-11-05 01:07 /lib/libncursesw.so.5 ->
libncursesw.so.5.6
-rw-r--r-- 1 root root 318692 2007-10-08 03:07 /lib/libncursesw.so.5.6

I am hoping this is not a matter of not knowing the correct
arguments/flags to pass to autoconf or configure, although I have not seen
a description of flags to be given to compile specifically on Ubuntu.
Assuming that the intended invocation of both "configure" and "autoconf" as
used by Asterisk is without arguments, then something about the 1.4.14
system versus Ubuntu is BROKEN.
(if "ld" can't find the ncurses lib based on "-L /lib -lncurses" on the
gcc line, then either the "-L" string is out of place, or there is a
problem with Ubuntu finding libraries, which seems unlikely.)

I have seen other posts (General forum) refer to GTK2 - ncurses5 and gtk2
are both installed on my system but the vanilla configure script simply
doesn't ask or allow for gtk2 nor can it find ncurses, even though the
ncurses library is plainly available. (The script "fails to find" ncurses
because it looks for a function "initscr()" to be provided by the library
it thinks it can use - possibly "initscr()" is not provided by the latest
ncurses5, but that seems unlikely. If so, then the configure.ac has to
allow for testing for a different routine to say the library is or is not
there.)
====================================================================== 

---------------------------------------------------------------------- 
 ecsd - 12-02-07 21:54  
---------------------------------------------------------------------- 
I used the GUI "adept" to add "libncurses-dev" and that solved the problem
of configure crapping out - thank you.

I don't know what you're referring to as the second problem, but assuming
that is that autoconf fails, even after adding the libncurses-dev, autoconf
still fails (by producing a configure that fails):

root at subterranean:/usr/local/asterisk/asterisk-1.4.14# cp configure{,.0}
root at subterranean:/usr/local/asterisk/asterisk-1.4.14# autoconf
(note no errors)
root at subterranean:/usr/local/asterisk/asterisk-1.4.14# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
...
checking how to run the C++ preprocessor... g++ -E
./configure: line 5794: AST_PROG_LD: command not found
checking for gawk... gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
./configure: line 6024: AST_CHECK_GNU_MAKE: command not found
checking for strip... /usr/bin/strip
...
checking for wget... /usr/bin/wget
./configure: line 6695: ACX_PTHREAD: command not found
./configure: line 6720: syntax error near unexpected token `ALSA,'
./configure: line 6720: `AST_EXT_LIB_SETUP(ALSA, Advanced Linux Sound
Architecture, asound)'
root at subterranean:/usr/local/asterisk/asterisk-1.4.14#                    
                         

It seems a similar apt-get is needed to supply some low-level threading
definitions (macros) for autoconf ... not being an autoconf user I can't
say.

To be a good doobie I should report the requirement for libncurses-dev to
an FAQ on Asterisk's or Ubuntu's site or both. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-02-07 21:54  ecsd           Note Added: 0074661                          
======================================================================




More information about the asterisk-bugs mailing list