Mark Quitoriano
2006-Mar-25 14:39 UTC
[Asterisk-Users] compiling Zaptel-1.2.4 on CentOS 4.3
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 XPPMODmodules 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060325/2684c56a/attachment.htm
http://bugs.digium.com/view.php?id=6696 []'s MM -----Original Message----- From: "Mark Quitoriano" <markquitoriano@gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com>, "CentOS mailing list" <centos@centos.org> Cc: Sent: Sun, 26 Mar 2006 05:39:44 +0800 Delivered: Sat, 25 Mar 2006 18:42:19 Subject:[Asterisk-Users] compiling Zaptel-1.2.4 on CentOS 4.3 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 XPPMODmodules 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 E-mail classificado pelo Identificador de Spam Inteligente Terra. Para alterar a categoria classificada, visite http://mail.terra.com.br/protected_email/imail/imail.cgi?+_u=levelz&_l=1,1143322940.469615.25439.morondava.terra.com.br,7737,Des15,Des15 --Original Message Ends-- -- Melcon Moraes <melcon.moraes@terra.com.br>
Yes, There are issues witht he latest kernal release. Search the list archives. Dovid Mark Quitoriano <markquitoriano@gmail.com> wrote: 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 _______________________________________________ --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 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060325/9862a6bc/attachment.htm
Seems there is bug in the kernel-devel package that can cause some compile problems also on Centos is seems to work better if u symlink /usr/src/linux to /usr/src/kernels/`uname -r`. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180568. There is also a Digium bug about spinlock too. http://bugs.digium.com/view.php?id=6425 The fix is just to fix a small typo in spinlock.h -- Wlliam
got it! tnx! On 3/26/06, William Suffill <william.suffill@gmail.com> wrote:> > Seems there is bug in the kernel-devel package that can cause some > compile problems also on Centos is seems to work better if u symlink > /usr/src/linux to /usr/src/kernels/`uname -r`. > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180568. There is > also a Digium bug about spinlock too. > > http://bugs.digium.com/view.php?id=6425 > > The fix is just to fix a small typo in spinlock.h > > -- Wlliam > _______________________________________________ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos >-- Regards, Mark Quitoriano, CCNA Fan the flame... http://www.spreadfirefox.com/?q=user/register&r=19441 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.centos.org/pipermail/centos/attachments/20060326/2bb6f829/attachment.htm
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" <markquitoriano@gmail.com> wrote in message news:6b542ec90603251339uc2b1169pfcccc40b0acae68@mail.gmail.com... 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 CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos