Zaptel compile problem

I have just installed SuSE10.2.

Before compilng Asterisk 1.4.0, I want to compile zaptel first, using:
astrecipes.net/index.php?fro … k+1.4+beta

tar zxvf zaptel-1.4.0.tar.gz
./configure
make menuselect

[i]make[3]: Leaving directory /usr/src/zaptel-1.4.0/menuselect/mxml' gcc -Wall -o menuselect.o -g -c -D_GNU_SOURCE menuselect.c gcc -Wall -o strcompat.o -g -c -D_GNU_SOURCE strcompat.c gcc -Wall -o menuselect_stub.o -g -c -D_GNU_SOURCE menuselect_stub.c gcc -g -Wall -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a make[2]: Leaving directory/usr/src/zaptel-1.4.0/menuselect’
make[1]: Leaving directory `/usr/src/zaptel-1.4.0/menuselect’


*** [color=red]Install ncurses [/color] :unamused: to use the menu interface! ***
**************************************************[/i]
menuselect changes NOT saved!
asterisk:/usr/src/zaptel-1.4.0 #

However, I HAVE ncurses installed
When I try make menuselect in directory asterisk-1.4.0, I don’t get this error and the menu appears…

I have also tried without make menuselect

./configure goes fine

but make gives error:

Loaded 42096 bytes from file
make -C /lib/modules/2.6.18.2-34-default/build SUBDIRS=/usr/src/zaptel-1.4.0 modules
make[2]: Entering directory /usr/src/linux-2.6.18.2-34-obj/i386/default' make[2]: *** [color=darkred][b]No rule to make target [/b]modules’. Stop.[/color]
make[2]: Leaving directory /usr/src/linux-2.6.18.2-34-obj/i386/default' make[1]: *** [linux26] Error 2 make[1]: Leaving directory/usr/src/zaptel-1.4.0’
make: *** [all] Error 2
asterisk:/usr/src/zaptel-1.4.0 #

[quote=“henkoegema”]I have just installed SuSE10.2.

Before compilng Asterisk 1.4.0, I want to compile zaptel first, using:
astrecipes.net/index.php?fro … k+1.4+beta

tar zxvf zaptel-1.4.0.tar.gz
./configure
make menuselect

[i]make[3]: Leaving directory /usr/src/zaptel-1.4.0/menuselect/mxml' gcc -Wall -o menuselect.o -g -c -D_GNU_SOURCE menuselect.c gcc -Wall -o strcompat.o -g -c -D_GNU_SOURCE strcompat.c gcc -Wall -o menuselect_stub.o -g -c -D_GNU_SOURCE menuselect_stub.c gcc -g -Wall -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a make[2]: Leaving directory/usr/src/zaptel-1.4.0/menuselect’
make[1]: Leaving directory `/usr/src/zaptel-1.4.0/menuselect’


*** [color=red]Install ncurses [/color] :unamused: to use the menu interface! ***
**************************************************[/i]
menuselect changes NOT saved!
asterisk:/usr/src/zaptel-1.4.0 #

However, I HAVE ncurses installed
When I try make menuselect in directory asterisk-1.4.0, I don’t get this error and the menu appears…[/quote]

I finally solved the problem by [size=150]re-installing[/size] Linux (SuSE10.2) :smiley:

[quote=“henkoegema”][quote=“henkoegema”]I have just installed SuSE10.2.

Before compilng Asterisk 1.4.0, I want to compile zaptel first, using:
astrecipes.net/index.php?fro … k+1.4+beta

tar zxvf zaptel-1.4.0.tar.gz
./configure
make menuselect

[i]make[3]: Leaving directory /usr/src/zaptel-1.4.0/menuselect/mxml' gcc -Wall -o menuselect.o -g -c -D_GNU_SOURCE menuselect.c gcc -Wall -o strcompat.o -g -c -D_GNU_SOURCE strcompat.c gcc -Wall -o menuselect_stub.o -g -c -D_GNU_SOURCE menuselect_stub.c gcc -g -Wall -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a make[2]: Leaving directory/usr/src/zaptel-1.4.0/menuselect’
make[1]: Leaving directory `/usr/src/zaptel-1.4.0/menuselect’


*** [color=red]Install ncurses [/color] :unamused: to use the menu interface! ***
**************************************************[/i]
menuselect changes NOT saved!
asterisk:/usr/src/zaptel-1.4.0 #

However, I HAVE ncurses installed
When I try make menuselect in directory asterisk-1.4.0, I don’t get this error and the menu appears…[/quote]

I finally solved the problem by [size=150]re-installing[/size] Linux (SuSE10.2) :smiley:[/quote]

Which of the 17 Zaptel models must I load (during “make menuselect”) when I have a TDM11B ?

“make menuselect” doesn’t load them, it just sets which are compiled. but anyway, you only need wctdm.

You are correct.
Thanks for your answer.

Evenso menuselect works now :smile: , I still get error during “make” :angry:

asterisk:/usr/src/zaptel-1.4.0 # make
grep: /lib/modules/2.6.18.2-34-default/build/include/linux/autoconf.h: No such file or directory
grep: /lib/modules/2.6.18.2-34-default/build/include/linux/autoconf.h: No such file or directory
make[1]: Entering directory /usr/src/zaptel-1.4.0' gcc gendigits.c -lm -o gendigits ./gendigits > tones.h gcc -o makefw makefw.c ./makefw tormenta2.rbt tor2fw > tor2fw.h Loaded 69900 bytes from file ./makefw pciradio.rbt radfw > radfw.h Loaded 42096 bytes from file make -C /lib/modules/2.6.18.2-34-default/build SUBDIRS=/usr/src/zaptel-1.4.0 modules make[2]: Entering directory/usr/src/linux-2.6.18.2-34-obj/i386/default’
make[2]: *** No rule to make target modules'. Stop. make[2]: Leaving directory/usr/src/linux-2.6.18.2-34-obj/i386/default’
make[1]: *** [linux26] Error 2
make[1]: Leaving directory `/usr/src/zaptel-1.4.0’
make: *** [all] Error 2

What is still missing here?

You need kernel sources to compile zaptel. It cant seem to find it. Do you have kernel-devel installed? Maybe it just needs a simlink from /usr/src/linux-2.6.18.2-34-obj to the kernel sources?

I was thinking in the same direction, but don’t know exactly how to do it.

I have done:

asterisk:/usr/src/zaptel-1.4.0 # uname -a
Linux asterisk 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 i686 i386 GNU/Linux

asterisk:/usr/src # ls
asterisk-1.4.0 linux-2.6.18.2-34-obj packages zaptel-1.4.0
asterisk:/usr/src #

Is this correct :
asterisk:/usr/src/zaptel-1.4.0 # ln -s /usr/src/linux-2.6.18.2-34-default /usr/src/linux-2.6 .18.2-34-obj :unamused:

[quote]

Is this correct :
asterisk:/usr/src/zaptel-1.4.0 # ln -s /usr/src/linux-2.6.18.2-34-default /usr/src/linux-2.6 .18.2-34-obj :unamused:[/quote]

or is it
asterisk:/usr/src/zaptel-1.4.0 # ln -s /usr/src/linux-2.6.18.2-34-default /usr/src/zaptel-1.4.0
:unamused:

or
asterisk:/usr/src/zaptel-1.4.0 # ln -s /usr/src/linux-2.6 .18.2-34-obj /usr/src/zaptel-1.4.0
:unamused:

you shouldn’t need to symlink anything to zaptel … should be something like ln -s /usr/src/kernel-version/ /usr/src/linux-2.6

asterisk:/usr/src # ls -l
total 16
drwxr-xr-x 24 henkoegema 1000 4096 2006-12-23 15:47 asterisk-1.4.0
drwxr-xr-x 3 root root 4096 2007-02-19 12:36 linux-2.6.18.2-34-obj
drwxr-xr-x 7 root root 4096 2007-02-19 12:36 packages
drwxr-xr-x 9 henkoegema 1000 4096 2007-02-20 22:46 zaptel-1.4.0
asterisk:/usr/src #

I tried:
asterisk:/usr/src #ln -s /usr/src/linux-2.6.18.2-34 /usr/src/linux2.6 :confused:

but that gives the same error during make.

I had the same problem. ncurses installed… but no ncurses-devel.

After I installed ncurses-devel, I tried again:
./configure
make
make menuselect

and it finally worked.

Maybe it’s a little late, but I couldn’t find the right answer anywhere.

Good luck!

Pedro.

Had the same issue.

I had to manually edit menuselect/makeopts and set NCURSES_INCLUDE and NCURSES_LIB. After that, everything seemed to go.

Hope that helps.

If make still gives errors about ncurses after installing it, follow these steps.

  • make distclean
  • ./configure
  • make menuselect

Basically , doing make clean doesnt complete clean the previous make info. make distclean does tht trick.

Chow.