Problem Building Zaptel 1.4.2.1 on openSuse

Let me start by saying I have many year of IT under my belt but most with Windows. I have about 15 linux servers running small appliance apps.

I consider my self new to Linux so when replying don’t assume I already know what you are talking about… Thanks

Here is the problem. I have openSuse 10.2 on a box. I am trying to get Asterisk up and running. I do not have an special hardware card right now as I am IP trunking with a third party provider. When I try to build the zaptel 1.4.2.1 source It ends with errors.If I try to rebuild I get different errors. I am using the build instructions from the. Asterisk O’Reilly PDF book.

I have been going at this for almost 10 hours now and I have run out of ideas. Please help

Here is the build outputs. I placed the :question: icon at the lines the errors keep occuring.

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.2.1/menuselect' checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu 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 for GNU make... make checking for asprintf... yes checking for getloadavg... yes checking for setenv... yes checking for strcasestr... yes checking for strndup... yes checking for strnlen... yes checking for strsep... yes checking for strtoq... yes checking for unsetenv... yes checking for vasprintf... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/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... no checking for initscr in -lncurses... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes configure: creating ./config.status config.status: creating makeopts config.status: creating autoconfig.h === configuring in mxml (/usr/src/zaptel-1.4.2.1/menuselect/mxml) configure: running /bin/sh ./configure --prefix=/usr/local 'CC=gcc' 'CFLAGS=' --cache-file=/dev/null --srcdir=. 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 ANSI C... none needed checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for ar... /usr/bin/ar checking for cp... /bin/cp checking for ln... /bin/ln checking for mkdir... /bin/mkdir checking for nroff... /usr/bin/nroff checking for rm... /bin/rm checking for strdup... yes checking for vsnprintf... yes configure: creating ./config.status config.status: creating Makefile config.status: creating mxml.list config.status: creating mxml.pc config.status: creating config.h configure: Menuselect build configuration successfully completed make[2]: Entering directory/usr/src/zaptel-1.4.2.1/menuselect’
make[3]: Entering directory /usr/src/zaptel-1.4.2.1/menuselect/mxml' gcc -O -Wall -c mxml-attr.c gcc -O -Wall -c mxml-entity.c gcc -O -Wall -c mxml-file.c gcc -O -Wall -c mxml-index.c gcc -O -Wall -c mxml-node.c gcc -O -Wall -c mxml-search.c gcc -O -Wall -c mxml-set.c gcc -O -Wall -c mxml-private.c gcc -O -Wall -c mxml-string.c /bin/rm -f libmxml.a /usr/bin/ar crvs libmxml.a mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o a - mxml-attr.o a - mxml-entity.o a - mxml-file.o a - mxml-index.o a - mxml-node.o a - mxml-search.o a - mxml-set.o a - mxml-private.o a - mxml-string.o ranlib libmxml.a make[3]: Leaving directory/usr/src/zaptel-1.4.2.1/menuselect/mxml’
gcc -Wall -o menuselect.o -g -c -D_GNU_SOURCE menuselect.c
gcc -Wall -o menuselect_curses.o -g -c -D_GNU_SOURCE menuselect_curses.c
gcc -Wall -o strcompat.o -g -c -D_GNU_SOURCE strcompat.c
gcc -g -Wall -o menuselect menuselect.o menuselect_curses.o strcompat.o mxml/libmxml.a -lncurses
make[2]: Leaving directory /usr/src/zaptel-1.4.2.1/menuselect' make[1]: Leaving directory/usr/src/zaptel-1.4.2.1/menuselect’
Generating input for menuselect …
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.2.1' 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.2.1 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.:question: make[2]: Leaving directory/usr/src/linux-2.6.18.2-34-obj/i386/default’
make[1]: *** [modules] Error 2:?:
make[1]: Leaving directory `/usr/src/zaptel-1.4.2.1’
make: *** [all] Error 2
linux-test:/usr/src/zaptel-1.4.2.1 #

[quote]modules
make[2]: Entering directory /usr/src/linux-2.6.18.2-34-obj/i386/default' make[2]: *** No rule to make targetmodules’. Stop.Question
make[2]: Leaving directory /usr/src/linux-2.6.18.2-34-obj/i386/default' make[1]: *** [modules] Error 2Question make[1]: Leaving directory/usr/src/zaptel-1.4.2.1’
make: *** [all] Error 2[/quote]

This error comes from not having the kernel-source for the running kernel installed. The make scripts are going to the directory ‘/usr/src/linux-2.6.18.2-34-obj/i386/default’, which should contain the source or headers for your kernel.

I haven’t used Suse in a while, but I think you should be able to install them via YaST. The last time I used Suse, the module was called ‘kernel-source’. If you already have it installed, try doing an update.

I used to have problems with Suse when it would upgrade the kernel, it wouldn’t upgrade the kernel source. The solution was to force an update on that package, or to uninstall it and reinstall it.

Dan

Thanks

My running kernel was older than the source version that Yast installed. I had to force an update to bring the kernel up to the source version. This is very werid I thought that when I installed the kernel-source from Yast it would automatically update the running kernel as well. I guess not.

Thanks for your help.

zktech