[asterisk-users] Zaptel Compilation

Steve Totaro stotaro at mail.schoffstall.com
Sun Jun 24 19:49:18 CDT 2007


bilal ghayyad wrote:
> Hi List;
>
> Maybe I have to resummarize my problem with Zaptel
> Compilation:
>
> I am getting the error while I am compilaing Zaptel
> when I ran the command "make linux26", although I did
> the: software symbolic link, ./configure, and I
> checked my kernel is 2.6.20-1.2320.fc5 which typical
> for the output of cat cat/proc/version. What should I
> do more?
>
> Please find below all the results of the above steps,
> and I hope if any one can help me and advise me where
> is my mistake or what else I have to do?
>
> 1) I have a soft symbolic link and we can see it as
> following:
>
> [root at localhost /]# cd lib/modules/2.6.20-1.2320.fc5
> [root at localhost 2.6.20-1.2320.fc5]# ls -l
> total 1328
> lrwxrwxrwx 1 root root     47 Jun 24 23:47 build ->
> ../../../usr/src/kernels/2.6 .20-1.2320.fc5-i686
> drwxr-xr-x 2 root root   4096 Jun 13 02:28 extra
> drwxr-xr-x 9 root root   4096 Jun 24 23:47 kernel
> -rw-r--r-- 1 root root 280802 Jun 24 23:47
> modules.alias
> -rw-r--r-- 1 root root     69 Jun 24 23:47
> modules.ccwmap
> -rw-r--r-- 1 root root 277363 Jun 24 23:47 modules.dep
> -rw-r--r-- 1 root root    813 Jun 24 23:47
> modules.ieee1394map
> -rw-r--r-- 1 root root    206 Jun 24 23:47
> modules.inputmap
> -rw-r--r-- 1 root root  12236 Jun 24 23:47
> modules.isapnpmap
> -rw-r--r-- 1 root root 216224 Jun 24 23:47
> modules.pcimap
> -rw-r--r-- 1 root root    967 Jun 24 23:47
> modules.seriomap
> -rw-r--r-- 1 root root 121611 Jun 24 23:47
> modules.symbols
> -rw-r--r-- 1 root root 332324 Jun 24 23:47
> modules.usbmap
> lrwxrwxrwx 1 root root      5 Jun 24 23:47 source ->
> build
> drwxr-xr-x 2 root root   4096 Jun 13 02:28 updates
>
> 2) I did ./configure successfully as following:
>
> [root at localhost /]# cd
> usr/src/asterisk-1.4.4/zaptel-1.4.2.1
> [root at localhost zaptel-1.4.2.1]# ./configure
> checking for gcc... gcc
> checking for C compiler default output file name...
> a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler...
> yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none
> needed
> checking how to run the C preprocessor... gcc -E
> checking for a BSD-compatible install...
> /usr/bin/install -c
> checking whether ln -s works... yes
> checking for GNU make... make
> checking for grep... /bin/grep
> checking for sh... /bin/sh
> checking for ln... /bin/ln
> checking for wget... /usr/bin/wget
> checking for grep that handles long lines and -e...
> (cached) /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for initscr in -lcurses... yes
> checking curses.h usability... yes
> checking curses.h presence... yes
> checking for curses.h... yes
> checking for initscr in -lncurses... yes
> checking for curses.h... (cached) yes
> checking for newtBell in -lnewt... yes
> checking newt.h usability... yes
> checking newt.h presence... yes
> checking for newt.h... yes
> checking for usb_init in -lusb... yes
> checking usb.h usability... yes
> checking usb.h presence... yes
> checking for usb.h... yes
> configure: creating ./config.status
> config.status: creating build_tools/menuselect-deps
> config.status: creating makeopts
> configure: *** Zaptel build successfully configured
> ***
>
> 3) My kernel version is:
>
> Using `uname -r`:
>
> [root at localhost zaptel-1.4.2.1]# `uname -r`
> bash: 2.6.20-1.2320.fc5: command not found
>
> Using cat/proc/version:
>
> [root at localhost zaptel-1.4.2.1]# cat /proc/version
> Linux version 2.6.20-1.2320.fc5
> (brewbuilder at hs20-bc2-2.build.redhat.com) (gcc version
> 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 Tue Jun 12
> 18:50:38 EDT 2007
>
> 4) I got an error when I do make linux26 or make, as
> following, why??? I do not know!! Any help?
>
> [root at localhost zaptel-1.4.2.1]# make linux26
> make[1]: Entering directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect'
> make[2]: Entering directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect'
> make[3]: Entering directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect/mxml'
> autoconf
> autoconf: no input file
> make[3]: *** [config.h] Error 1
> make[3]: Leaving directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect/mxml'
> make[2]: *** [mxml/libmxml.a] Error 2
> make[2]: Leaving directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect'
> make: *** [menuselect/menuselect] Error 2
> [root at localhost zaptel-1.4.2.1]# make
> make[1]: Entering directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect'
> make[2]: Entering directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect'
> make[3]: Entering directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect/mxml'
> autoconf
> autoconf: no input file
> make[3]: *** [config.h] Error 1
> make[3]: Leaving directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect/mxml'
> make[2]: *** [mxml/libmxml.a] Error 2
> make[2]: Leaving directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/usr/src/asterisk-1.4.4/zaptel-1.4.2.1/menuselect'
> make: *** [menuselect/menuselect] Error 2
>
> Any thing else that I have to check it? Please advise
> me.
>
> Regards
> Bilal
>   
Remove the whole zaptel directory and its contents. Download via SVN or 
tar.gz and extract. (Start from scratch).

cd into the directory and ./configure then make && make install. Only 
issue these commands.

Do not do anything but what is above and let me know if it works.

Thanks,
Steve Totaro



More information about the asterisk-users mailing list