Zaptel v1.2.4 compilation failure

When I try to compile Zaptel v1.2.4 on Linux Kernel v2.6.13-15.8 I get the error below:

[quote]Makefile:494: .config: No such file or directory

WARNING: Symbol version dump /usr/src/linux-2.6.13-15.8/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /usr/src/zaptel-1.2.4/zaptel.o
/usr/src/zaptel-1.2.4/zaptel.c:188: warning: ‘fcstab’ defined but not used
/bin/sh: scripts/basic/fixdep: No such file or directory
make[2]: *** [/usr/src/zaptel-1.2.4/zaptel.o] Error 1
make[1]: *** [module/usr/src/zaptel-1.2.4] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.13-15.8’
make: *** [linux26] Error 2
waldorf:/usr/src/zaptel-1.2.4 # [/quote]

Asterisk v1.2.5 compiles fine. Any ideas?

[quote]
WARNING: Symbol version dump /usr/src/linux-2.6.13-15.8/Module.symvers
is missing; modules will have no dependencies and modversions. [/quote]

This says there is a file missing. Do you have the kernel sources installed?

Also, after you install the kernel source, fix the spinlock.h file. There is an error in it.

bugzilla.redhat.com/bugzilla/sh … ?id=180568

Hmmmm…yes the kernel sources are installed. Also, I am using OpenSuSE and it does not appear to have that same type…hmmmmm.

[code]typedef struct {
volatile unsigned int lock;
#ifdef CONFIG_DEBUG_SPINLOCK
unsigned magic;
#endif
#ifdef CONFIG_PREEMPT
unsigned int break_lock;
#endif
} rwlock_t;

#define RWLOCK_MAGIC 0xdeaf1eed

#ifdef CONFIG_DEBUG_SPINLOCK
#define RWLOCK_MAGIC_INIT , RWLOCK_MAGIC
#else
#define RWLOCK_MAGIC_INIT /* */
#endif

#define RW_LOCK_UNLOCKED (rwlock_t) { RW_LOCK_BIAS RWLOCK_MAGIC_INIT }

#define rwlock_init(x) do { *(x) = RW_LOCK_UNLOCKED; } while(0)[/code]