I got past this by changing spinlock.h in the /usr/src/kernels/2.6.9-34.EL-x86_64/include/linux/ folder. (I am using 64bit kernel)
I changed: #define DEFINE_RWLOCK(x) rw_lock_t x = RW_LOCK_UNLOCKED #define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED to: #define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED // guentis changes #define DEFINE_RWLOCK(x) rw_lock_t x = RW_LOCK_UNLOCKED #define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED -- -- Steven May you have the peace and freedom that come from abandoning all hope of having a better past. --- - --- - - - - - - - -- - - - --- - ------ - - --- - - -- - - - -- - - - "Mark Quitoriano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi Guys, Im having a problem compiling zaptel 1.2.4 on CentOS 4.3, anyone encountered this problem before? Here's the error i got: make -C /lib/modules/2.6.9-34.EL/build SUBDIRS=/usr/src/zaptel-1.2.4 XPPMOD= modules make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-i686' CC [M] /usr/src/zaptel-1.2.4/zaptel.o /usr/src/zaptel-1.2.4/zaptel.c:384: error: syntax error before "zone_lock" /usr/src/zaptel-1.2.4 /zaptel.c:384: warning: type defaults to `int' in declaration of `zone_lock' /usr/src/zaptel-1.2.4/zaptel.c:384: error: incompatible types in initialization /usr/src/zaptel-1.2.4/zaptel.c:384: error: initializer element is not constant /usr/src/zaptel-1.2.4/zaptel.c:384: warning: data definition has no type or storage class /usr/src/zaptel-1.2.4/zaptel.c:385: error: syntax error before "chan_lock" /usr/src/zaptel-1.2.4/zaptel.c:385: warning: type defaults to `int' in declaration of `chan_lock' /usr/src/zaptel-1.2.4/zaptel.c:385: error: incompatible types in initialization /usr/src/zaptel-1.2.4/zaptel.c:385: error: initializer element is not constant /usr/src/zaptel-1.2.4/zaptel.c:385: warning: data definition has no type or storage class /usr/src/zaptel-1.2.4/zaptel.c:188: warning: 'fcstab' defined but not used 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/kernels/2.6.9- 34.EL-i686' make: *** [linux26] Error 2 -- Regards, Mark Quitoriano, CCNA Fan the flame... http://www.spreadfirefox.com/?q=user/register&r=19441 _______________________________________________ CentOS mailing list [EMAIL PROTECTED] http://lists.centos.org/mailman/listinfo/centos _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
