Hello
I've been trying to compile zaptel 1.2.4 on Mandriva 10.2 , kernel
2.6.11-6mdk and i keep getting these errors:
#make linux26
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -Drw_lock_t="rwlock_t"
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o
gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -Drw_lock_t="rwlock_t"
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" makefw.c
-o makefw
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
./makefw pciradio.rbt radfw > radfw.h
Loaded 42096 bytes from file
ZAPTELVERSION="1.2.4" build_tools/make_version_h > version.h.tmp
if cmp -s version.h.tmp version.h ; then echo; else \
mv version.h.tmp version.h ; \
fi
rm -f version.h.tmp
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -Drw_lock_t="rwlock_t"
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o
ztcfg.o
ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE
-Drw_lock_t="rwlock_t" -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o
zonedata.lo
zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE
-Drw_lock_t="rwlock_t" -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o
tonezone.lo
tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o libtonezone.a -lm
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -Drw_lock_t="rwlock_t"
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o
torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -Drw_lock_t="rwlock_t"
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o
ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -o ztspeed.o -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -Drw_lock_t="rwlock_t"
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" zttest.c
-o zttest
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -Drw_lock_t="rwlock_t"
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o
fxotune.o fxotune.c
cc -o fxotune fxotune.o -lm
/lib/modules/2.6.11-6mdk/build
make -C /lib/modules/2.6.11-6mdk/build SUBDIRS=/usr/src/zaptel-1.2.4
XPPMOD= modules
make[1]: Entering directory `/lib/modules/2.6.11-6mdk/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.11-6mdk/build'
make: *** [linux26] Error 2
I've made all the modifications to the spinlock.h file
[ #define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED]
suggested on this list and also the changes to the Zaptel Makefile
[CFLAGS+=$(shell if uname -r | grep -q 2.6.11-6mdk ; then echo
"-Drw_lock_t=\"rwlock_t\""; fi) ] ,
but the problem persists .
Any ideas ?
--
Assaf Flatto
Atelis IT Manager
Cellular: +972-54-5679230
e-mail: assaf@atelis.net