LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can anyone please solve redhat kernel errors (https://www.linuxquestions.org/questions/linux-software-2/can-anyone-please-solve-redhat-kernel-errors-433086/)

kafnir 04-08-2006 01:02 PM

can anyone please solve redhat kernel errors
 
I try to instal zaptel on CENTOS4.3 and I get this error message when I type make and make install.

[root@server01 zaptel-1.2.5]# make
ZAPTELVERSION="1.2.5" 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-34.EL/build
make -C /lib/modules/2.6.9-34.EL/build SUBDIRS=/usr/src/zaptel-1.2.5 XPPMOD= modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-i686'
CC [M] /usr/src/zaptel-1.2.5/zaptel.o
/usr/src/zaptel-1.2.5/zaptel.c:384: error: syntax error before "zone_lock"
/usr/src/zaptel-1.2.5/zaptel.c:384: warning: type defaults to `int' in declaration of `zone_lock'
/usr/src/zaptel-1.2.5/zaptel.c:384: error: incompatible types in initialization
/usr/src/zaptel-1.2.5/zaptel.c:384: error: initializer element is not constant
/usr/src/zaptel-1.2.5/zaptel.c:384: warning: data definition has no type or storage class
/usr/src/zaptel-1.2.5/zaptel.c:385: error: syntax error before "chan_lock"
/usr/src/zaptel-1.2.5/zaptel.c:385: warning: type defaults to `int' in declaration of `chan_lock'
/usr/src/zaptel-1.2.5/zaptel.c:385: error: incompatible types in initialization
/usr/src/zaptel-1.2.5/zaptel.c:385: error: initializer element is not constant
/usr/src/zaptel-1.2.5/zaptel.c:385: warning: data definition has no type or storage class
/usr/src/zaptel-1.2.5/zaptel.c:188: warning: 'fcstab' defined but not used
make[2]: *** [/usr/src/zaptel-1.2.5/zaptel.o] Error 1
make[1]: *** [_module_/usr/src/zaptel-1.2.5] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-i686'
make: *** [linux26] Error 2
[root@server01 zaptel-1.2.5]#

thank you
sincerely, clint

Brian1 04-09-2006 09:40 AM

Kernel source is under /usr/src/linux or /usr/src/linux-2.6.*****. If neither exist and using precompiled rpm kernels then do the following commnad.
rpm -qa | kernel
If you have no kernel-devel-2.6.***** that matches current running kernel then you need to install the kernel-devel-2.6.****.rpm that matches your current running kernel version from where you got the kernel rpm you are running. If this is the orginal with no updates then it should be on the install cd's. Never run fc5 yet so not sure. If not goto fc site and look throught the rpm directory for it.

Brian1


All times are GMT -5. The time now is 09:24 PM.