Hello,
I compiled successfully a week ago. My harddrive gave up and I had to reload from scratch (OS to tools). Before compiling I updated everything via up2date.
Compiling this time results in the errors protocolled below.
The code itself looks totally clean to me:
zaptel.c:
...
382
383 #ifdef DEFINE_RWLOCK
384 static DEFINE_RWLOCK(zone_lock);
385 static DEFINE_RWLOCK(chan_lock);
386 #else
387 static rwlock_t zone_lock = RW_LOCK_UNLOCKED;
388 static rwlock_t chan_lock = RW_LOCK_UNLOCKED;
389 #endif
...
protocol of the make:
[root@guentis zaptel-1.2.2]# make
ZAPTELVERSION="" 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
/lib/modules/2.6.9-27.EL/build
make -C /lib/modules/2.6.9-27.EL/build SUBDIRS=/usr/src/zaptel-1.2.2 modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-27.EL-i686'
CC [M] /usr/src/zaptel-1.2.2/zaptel.o
/usr/src/zaptel-1.2.2/zaptel.c:384: error: syntax error before "zone_lock"
/usr/src/zaptel-1.2.2/zaptel.c:384: warning: type defaults to `int' in declaration of `zone_lock'
/usr/src/zaptel-1.2.2/zaptel.c:384: error: incompatible types in initialization
/usr/src/zaptel-1.2.2/zaptel.c:384: error: initializer element is not constant
/usr/src/zaptel-1.2.2/zaptel.c:384: warning: data definition has no type or storage class
/usr/src/zaptel-1.2.2/zaptel.c:385: error: syntax error before "chan_lock"
/usr/src/zaptel-1.2.2/zaptel.c:385: warning: type defaults to `int' in declaration of `chan_lock'
/usr/src/zaptel-1.2.2/zaptel.c:385: error: incompatible types in initialization
/usr/src/zaptel-1.2.2/zaptel.c:385: error: initializer element is not constant
/usr/src/zaptel-1.2.2/zaptel.c:385: warning: data definition has no type or storage class
/usr/src/zaptel-1.2.2/zaptel.c:188: warning: 'fcstab' defined but not used
make[2]: *** [/usr/src/zaptel-1.2.2/zaptel.o] Error 1
make[1]: *** [_module_/usr/src/zaptel-1.2.2] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-27.EL-i686'
make: *** [linux26] Error 2
I don’t want to reinstall and compile using older kernel sources before updating. Also, others may not have the chance to go back to an older version.
Thank you in advance for your help
guenter strubinsky