Hi, On my Suse90-out of box I had downloaded from CVS asterisk. I'm running kernel 2.4.21-99-smp4g with 4cpu's, and the kernelsource is in /usr/src/linux Asterisk compiles with no problem. But when compiling zaptel I got this error .......... ........ ........ zaptel.c: In function `zt_ec_chunk': zaptel.c:4981: error: parse error before "unsigned" zaptel.c: In function `process_timers': zaptel.c:5500: error: parse error before "unsigned" zaptel.c: In function `zt_timer_poll': zaptel.c:5513: error: parse error before "unsigned" zaptel.c: In function `zt_chan_poll': zaptel.c:5545: error: parse error before "unsigned" zaptel.c: In function `zt_transmit': zaptel.c:5728: error: parse error before "unsigned" zaptel.c: In function `zt_receive': zaptel.c:5820: error: parse error before "unsigned" zaptel.c:5842: error: parse error before "unsigned" zaptel.c:5852: error: parse error before "unsigned" zaptel.c:5878: error: parse error before "unsigned" zaptel.c:5889: error: parse error before "unsigned" zaptel.c:5892: error: parse error before "unsigned" make: *** [zaptel.o] Error 1 Any help on this ?
Hi, On Thu, 4 Mar 2004 at 11:29, Hans-Henrik Andresen wrote:> But when compiling zaptel I got this error > [...] > zaptel.c:5892: error: parse error before "unsigned" > make: *** [zaptel.o] Error 1 > > Any help on this ?you left out the important part of the error log. I guess the compiler complains about a header file it doesn't find before throwing all those parse errors. cu Reinhard
Hi, I just finished downloading asterisk and when trying to compile the zaptel drivers, get the following errors. I dont have a clue whats going on... can someone help. In file included from /usr/include/linux/module.h:20, from zaptel.c:44: /usr/include/linux/modversions.h:1:2:#error Modules should never use kernel-headers system headers, /usr/include/linux/modversions.h:2:2: error but rather headers from an appropriate kernel-source package. /usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to /usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include /usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel. make: *** [zaptel.o] Error 1 Thanks San -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040511/31eb7314/attachment.htm
On Tue, 2004-05-11 at 10:16, San Singhania wrote:> Hi, > > I just finished downloading asterisk and when trying to compile the > zaptel drivers, get the following errors. I dont have a clue whats > going on... > can someone help. >> /usr/include/linux/modversions.h:1:2:#error Modules should never use > kernel-headers system headers, > /usr/include/linux/modversions.h:2:2: error but rather headers from an > appropriate kernel-source package.> /usr/include/linux/modversions.h:5:2: #error to build against the > currently-running kernel. > make: *** [zaptel.o] Error 1Lets draw your attention to these excerpts of the errors you sent. Once you read those error messages, you should formulate the opinion that having the kernel source for your running kernel is IMPORTANT. Then you will also need to make sure you have the proper modversions.h built by the kernel source too. -- Steven Critchfield <critch@basesys.com>
Ok, how do I go about doing that? I am not exactly a linux expert, infact this is the 2nd time I am installing it. I would really appreciate some direction on this. Thanks San> Lets draw your attention to these excerpts of the errors you sent. >Once you read those error messages, you should formulate the opinion >that having the kernel source for your running kernel is IMPORTANT. Then >you will also need to make sure you have the proper modversions.h built >by the kernel source too. >-- >Steven Critchfield <critch@basesys.com>-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040511/8f157996/attachment.htm
Do you have a symlink in /usr/src as follows? lrwxrwxrwx 1 root src 20 May 7 11:01 linux -> kernel-source-2.4.18 (note that it may differ depending on the kernel source you have?) If you've installed via an apt style package manager, and havn't recompiled your kernel, then visit www.kernel.org <http://www.kernel.org/> , download a stable kernel (I recommended 2.4.26). Extract it to /usr/src/linux-<kernelnumber> Then create a symlink ln -s /usr/src/<kernel source> /usr/src/linux This should resolve the issues you're having there, else I've missed the point and just waffled for 5 minutes ;) Hope that helps, Ben Merrills Griffin Internet ________________________________ From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of San Singhania Sent: 11 May 2004 16:17 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Error compiling Zaptel Hi, I just finished downloading asterisk and when trying to compile the zaptel drivers, get the following errors. I dont have a clue whats going on... can someone help. In file included from /usr/include/linux/module.h:20, from zaptel.c:44: /usr/include/linux/modversions.h:1:2:#error Modules should never use kernel-headers system headers, /usr/include/linux/modversions.h:2:2: error but rather headers from an appropriate kernel-source package. /usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to /usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include /usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel. make: *** [zaptel.o] Error 1 Thanks San -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040511/58d891dd/attachment.htm
It's been about 2 months since I have updated my asterisk box. I was running CVS HEAD and I notice a whole lot has changed since my last update! I'm running Debian Sarge up to date on a 2.4 Kernel. I was updating about every 2 or 3 weeks and never had any problems compiling zaptel/libpri/asterisk I now am coming out of a deep sleep and want to get back into it again, but zaptel will not compile. Is this a bug that I just need to wait for to be fixed? Or am I totally missing something that I need to make it compile? Followed the intructions on the site... Also noticed that everything now uses svn instead of CVS. Here's what I get when I try to compile zaptel: make install cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -lm gendigits.c -o gendigits ./gendigits gcc -I/lib/modules/2.4.27-2-386/build/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/lib/modules/2.4.27-2-386/build/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/lib/modules/2.4.27-2-386/build/drivers/net/wan -I/lib/modules/2.4.27-2-386/build/include/net -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DSTANDALONE_ZAPATA -o zaptel.o -c zaptel.c zaptel.c:41:21: version.h: No such file or directory In file included from /lib/modules/2.4.27-2-386/build/include/linux/spinlock.h:6, from /lib/modules/2.4.27-2-386/build/include/linux/module.h:12, from zaptel.c:45: /lib/modules/2.4.27-2-386/build/include/asm/system.h: In function `__set_64bit_var': /lib/modules/2.4.27-2-386/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules /lib/modules/2.4.27-2-386/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules zaptel.c: In function `zt_ctl_ioctl': zaptel.c:3476: error: `ZAPTEL_VERSION' undeclared (first use in this function) zaptel.c:3476: error: (Each undeclared identifier is reported only once zaptel.c:3476: error: for each function it appears in.) zaptel.c: In function `zt_init': zaptel.c:6838: error: `ZAPTEL_VERSION' undeclared (first use in this function) make: *** [zaptel.o] Error 1 Any ideas what I should try next? Thanks! Steve