Hi All,
At the suggestion of Tilghman I'm trying to compile the zaptel dummy driver
to
see if it fixes the stuttering mp3 problem.
I checked out zaptel from CVS but when I try to do a 'make' I get the
following output, which terminates with an error. (I'm using RedHat 9)
Can anyone suggest why it fails to compile?
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -c -o
gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
-I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes
-fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I
/usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include
/usr/src/linux-2.4/include/linux/modversions.h -DECHO_CAN_MARK2
-DCONFIG_ZAPATA_PPP -DCONFIG_ZAPTEL_WATCHDOG -DTORMENTA_BASE=0xd0000
-DDEFAULT_TONE_ZONE=0 -DSTANDALONE_ZAPATA -c zaptel.c
In file included from zaptel.c:33:
/usr/src/linux-2.4/include/linux/kernel.h:60: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:60: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:60: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:61: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:61: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:62: `panic_R_ver_str' declared as
function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:62: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:68: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:68: `simple_strtoul_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:68: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:69: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:69: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:69: `simple_strtol_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:69: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:70: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:70: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:70: `simple_strtoull_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:70: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:72: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:72: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:73: `sprintf_R_ver_str' declared
as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:73: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:74: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:74: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:74: `vsprintf_R_ver_str' declared
as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:74: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:75: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:75: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:76: `snprintf_R_ver_str' declared
as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:76: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:77: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:77: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:77: `vsnprintf_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:77: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:79: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:79: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:80: `sscanf_R_ver_str' declared
as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:80: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:81: `vsscanf_R_ver_str' declared
as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:81: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/linux/kernel.h:83: `get_option_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:83: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/linux/kernel.h:84: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:84: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:84: `get_options_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:84: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:85: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:85: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:85: `memparse_R_ver_str' declared
as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:85: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:91: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:91: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:92: `printk_R_ver_str' declared
as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:92: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:108: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:108: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:109: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/linux/kernel.h:114: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:114: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:114: `dump_stack_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:114: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:191: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:191: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:191:
`__out_of_line_bug_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:191: warning: function
declaration isn't a prototype
In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13,
from /usr/src/linux-2.4/include/linux/list.h:6,
from /usr/src/linux-2.4/include/linux/module.h:12,
from zaptel.c:35:
/usr/src/linux-2.4/include/asm/processor.h:60: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/asm/processor.h:60: field
`loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4/include/asm/processor.h:82: invalid suffix on integer
constant
/usr/src/linux-2.4/include/asm/processor.h:82: parse error before numeric
constant
/usr/src/linux-2.4/include/asm/processor.h:82: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/asm/processor.h:265: invalid suffix on integer
constant
/usr/src/linux-2.4/include/asm/processor.h:265: parse error before numeric
constant
/usr/src/linux-2.4/include/asm/processor.h:265: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/asm/processor.h:269: warning: parameter names
(without types) in function declaration
In file included from zaptel.c:35:
/usr/src/linux-2.4/include/linux/module.h:183: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/module.h:183: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/module.h:183:
`inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:183: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:184: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/module.h:184: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/module.h:184:
`inter_module_unregister_R_ver_str' declared as function returning a
function /usr/src/linux-2.4/include/linux/module.h:184: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:185: `inter_module_get_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:185: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:186:
`inter_module_get_request_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4/include/linux/module.h:186: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:187: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/module.h:187: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/module.h:187: `inter_module_put_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:187: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:196:
`try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:196: warning: parameter names
(without types) in function declaration
In file included from /usr/src/linux-2.4/include/linux/fs.h:19,
from /usr/src/linux-2.4/include/linux/capability.h:17,
from /usr/src/linux-2.4/include/linux/binfmts.h:4,
from /usr/src/linux-2.4/include/linux/sched.h:10,
from /usr/src/linux-2.4/include/linux/mm.h:22,
from /usr/src/linux-2.4/include/linux/slab.h:14,
from /usr/src/linux-2.4/include/linux/proc_fs.h:5,
from zaptel.c:36:
/usr/src/linux-2.4/include/linux/dcache.h: In function `dget':
/usr/src/linux-2.4/include/linux/dcache.h:254: warning: implicit
declaration of function `__out_of_line_bug_R8b0fd3c5'
zaptel.c: In function `zaptel_proc_read':
zaptel.c:412: warning: implicit declaration of function `sprintf_R1d26aa98'
zaptel.c: In function `zt_register_tone_zone':
zaptel.c:931: warning: implicit declaration of function `printk_R1b7d4074'
make: *** [zaptel.o] Error 1
Thank you,
Nathan.
have you got a standard redhat kernel? if so, go to the kernel source dir, do a make mrproper ; make menuconfig ; (exit from menu) ; make dep then recompile zaptel, all should work now. Matteo. Il gio, 2003-05-15 alle 19:59, nathan ha scritto:> Hi All, > > At the suggestion of Tilghman I'm trying to compile the zaptel dummy driver to > see if it fixes the stuttering mp3 problem. > > I checked out zaptel from CVS but when I try to do a 'make' I get the > following output, which terminates with an error. (I'm using RedHat 9) > > Can anyone suggest why it fails to compile? > > > cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -c -o > gendigits.o gendigits.c > cc -o gendigits gendigits.o -lm > ./gendigits > gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB > -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes > -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I > /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include > /usr/src/linux-2.4/include/linux/modversions.h -DECHO_CAN_MARK2 > -DCONFIG_ZAPATA_PPP -DCONFIG_ZAPTEL_WATCHDOG -DTORMENTA_BASE=0xd0000 > -DDEFAULT_TONE_ZONE=0 -DSTANDALONE_ZAPATA -c zaptel.c > In file included from zaptel.c:33: > /usr/src/linux-2.4/include/linux/kernel.h:60: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:60: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:60: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:61: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:61: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:62: `panic_R_ver_str' declared as > function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:62: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:68: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:68: `simple_strtoul_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:68: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:69: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:69: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:69: `simple_strtol_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:69: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:70: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:70: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:70: `simple_strtoull_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:70: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:72: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:72: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:73: `sprintf_R_ver_str' declared > as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:73: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:74: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:74: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:74: `vsprintf_R_ver_str' declared > as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:74: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:75: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:75: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:76: `snprintf_R_ver_str' declared > as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:76: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:77: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:77: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:77: `vsnprintf_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:77: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:79: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:79: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:80: `sscanf_R_ver_str' declared > as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:80: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:81: `vsscanf_R_ver_str' declared > as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:81: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/kernel.h:83: `get_option_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:83: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/kernel.h:84: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:84: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:84: `get_options_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:84: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:85: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:85: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:85: `memparse_R_ver_str' declared > as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:85: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:91: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:91: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:92: `printk_R_ver_str' declared > as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:92: warning: function declaration > isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:108: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:108: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:109: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/kernel.h:114: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:114: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:114: `dump_stack_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:114: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:191: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/kernel.h:191: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/kernel.h:191: > `__out_of_line_bug_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:191: warning: function > declaration isn't a prototype > In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13, > from /usr/src/linux-2.4/include/linux/list.h:6, > from /usr/src/linux-2.4/include/linux/module.h:12, > from zaptel.c:35: > /usr/src/linux-2.4/include/asm/processor.h:60: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/asm/processor.h:60: field > `loops_per_jiffy_R_ver_str' declared as a function > /usr/src/linux-2.4/include/asm/processor.h:82: invalid suffix on integer > constant > /usr/src/linux-2.4/include/asm/processor.h:82: parse error before numeric > constant > /usr/src/linux-2.4/include/asm/processor.h:82: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/asm/processor.h:265: invalid suffix on integer > constant > /usr/src/linux-2.4/include/asm/processor.h:265: parse error before numeric > constant > /usr/src/linux-2.4/include/asm/processor.h:265: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/asm/processor.h:269: warning: parameter names > (without types) in function declaration > In file included from zaptel.c:35: > /usr/src/linux-2.4/include/linux/module.h:183: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/module.h:183: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/module.h:183: > `inter_module_register_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/module.h:183: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/module.h:184: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/module.h:184: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/module.h:184: > `inter_module_unregister_R_ver_str' declared as function returning a > function /usr/src/linux-2.4/include/linux/module.h:184: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/module.h:185: `inter_module_get_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/module.h:185: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/module.h:186: > `inter_module_get_request_R_ver_str' declared as function returning a > function > /usr/src/linux-2.4/include/linux/module.h:186: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/module.h:187: invalid suffix on integer > constant > /usr/src/linux-2.4/include/linux/module.h:187: parse error before numeric > constant > /usr/src/linux-2.4/include/linux/module.h:187: `inter_module_put_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/module.h:187: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/module.h:196: > `try_inc_mod_count_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/module.h:196: warning: parameter names > (without types) in function declaration > In file included from /usr/src/linux-2.4/include/linux/fs.h:19, > from /usr/src/linux-2.4/include/linux/capability.h:17, > from /usr/src/linux-2.4/include/linux/binfmts.h:4, > from /usr/src/linux-2.4/include/linux/sched.h:10, > from /usr/src/linux-2.4/include/linux/mm.h:22, > from /usr/src/linux-2.4/include/linux/slab.h:14, > from /usr/src/linux-2.4/include/linux/proc_fs.h:5, > from zaptel.c:36: > /usr/src/linux-2.4/include/linux/dcache.h: In function `dget': > /usr/src/linux-2.4/include/linux/dcache.h:254: warning: implicit > declaration of function `__out_of_line_bug_R8b0fd3c5' > zaptel.c: In function `zaptel_proc_read': > zaptel.c:412: warning: implicit declaration of function `sprintf_R1d26aa98' > zaptel.c: In function `zt_register_tone_zone': > zaptel.c:931: warning: implicit declaration of function `printk_R1b7d4074' > make: *** [zaptel.o] Error 1 > > > Thank you, > Nathan. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
Hello,
This is my first message to the list..., I am new with asterisk, zaptel
and all this kind of things.
Well, the case is: I have four days trying to compile zaptel and it has
been very imposible, I have searched the web, the mailing list archive, I
have read dozen of documents without success.
I know that many of you recommend Red Hat as the linux distribution but I
would like to use Mandrake since all our servers are running it.
I have already installed openssl-devel, kernel source code, bison, sox,
readline and readline-devel.
I am running Mandrake 9.2 with kernel 2.4-22mdk10. I tried to compiled the
kernel using either kernel source from Mandrake and and I also tried with a
downloaded kernel from kernel.org. Both kernels gave me the same result.
This is what I have done so far:
- I downloaded kernel 2.4-22 file from kernel.org
- cd /usr/src
- tar -jxvf linux-2.4.22.tar.bz2
- ln -s linux-2.4.22 linux
- ln -s linux-2.4.22 linux-2.4
- cd /usr/src/linux
- make clean; make menuconfig
- saved without any change
- make mrproper
- make dep
- it finishes without any error
- cd /usr/src
- export CVSROOT=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot
- cvs login - the password is anoncvs.
- cvs checkout zaptel
- cd zaptel
- make clean; make install
Then, I receive the following:
--- cut here ---
[root@IPPBX zaptel]# make
gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
-I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes
-fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I
/usr/src/linux/include -I/usr/src/linux/include/net -DSTANDALONE_ZAPATA -c
zaptel.c
In file included from /usr/src/linux-2.4/include/linux/module.h:21,
from zaptel.c:44:
/usr/include/linux/modversions.h:1:2: #error
"======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the
compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header
files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc
internal
and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel.
They
should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system
header
files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not
directly
include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as
well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules
please
do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources
installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the
symbolic
link"
/usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname
-r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error " the matching kernel
source
directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname
-r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make
sure
to
use the following"
/usr/include/linux/modversions.h:25:2: #error " compiler option to use
the
correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error " instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error "
-I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error " Please adjust the
Makefile
accordingly."
/usr/include/linux/modversions.h:34:2: #error
"======================================================="
--- cut here ---
So, I tried to follow the suggestions given in the error message but none of
then worked.
I did:
- ln -s /usr/src/linux /lib/modules/2.4.22-10mdk/build
- make clean
- make -I/lib/modules/build/include
and I receive the same error.
Thank you very much!!!, any help will be really appreciated.
Alejandro,-
Alejandro Acosta wrote:> - make clean; make menuconfig > - saved without any change > - make mrproper > - make dep > - it finishes without any errormake mrproper possibly wipes out your config and screws things up... -- Best regards, Duane http://www.cacert.org - Free Security Certificates http://www.nodedb.com - Think globally, network locally http://www.sydneywireless.com - Telecommunications Freedom http://happysnapper.com.au - Sell your photos over the net!
Hi guys, I'm getting the following error when trying to compile zaptel on a debian machine running 2.4.27-3-386. gcc -g -c -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o zttool.o zttool.c gcc -lnewt zttool.o -o zttool gcc -shared -Wl,-soname,libtonezone.so.1.0 -lm -o libtonezone.so zonedata.lo tonezone.lo make[1]: Leaving directory `/usr/src/zaptel' mkdir -p /dev/zap rm -f /dev/zap/ctl rm -f /dev/zap/channel rm -f /dev/zap/pseudo rm -f /dev/zap/timer rm -f /dev/zap/253 rm -f /dev/zap/252 rm -f /dev/zap/251 rm -f /dev/zap/250 mknod /dev/zap/ctl c 196 0 mknod /dev/zap/transcode c 196 250 mknod: `/dev/zap/transcode': File exists make: *** [devices] Error 1 And when I try to modprobe the X100P card, I get the following. asterisk:/usr/src/zaptel# modprobe wcfxo /lib/modules/2.4.27-3-386/misc/zaptel.o: /lib/modules/2.4.27-3-386/misc/zaptel.o: unresolved symbol remove_wait_queue_R5dbd8645 /lib/modules/2.4.27-3-386/misc/zaptel.o: /lib/modules/2.4.27-3-386/misc/zaptel.o: unresolved symbol __pollwait_R43c77cc3 /lib/modules/2.4.27-3-386/misc/zaptel.o: /lib/modules/2.4.27-3-386/misc/zaptel.o: unresolved symbol create_proc_entry_Ra52db232 /lib/modules/2.4.27-3-386/misc/zaptel.o: /lib/modules/2.4.27-3-386/misc/zaptel.o: unresolved symbol proc_mkdir_Rba727c62 /lib/modules/2.4.27-3-386/misc/zaptel.o: /lib/modules/2.4.27-3-386/misc/zaptel.o: unresolved symbol add_wait_queue_Rf89d8ae0 /lib/modules/2.4.27-3-386/misc/zaptel.o: /lib/modules/2.4.27-3-386/misc/zaptel.o: unresolved symbol remove_proc_entry_Rf2afedc2 /lib/modules/2.4.27-3-386/misc/zaptel.o: insmod /lib/modules/2.4.27-3-386/misc/zaptel.o failed /lib/modules/2.4.27-3-386/misc/zaptel.o: insmod wcfxo failed Any help is much appreciated. Regards, Mark.