mkdep.c error under Mandrake8.1-2.4.8
Hi there,
I'm a newbie on Linux and just try to setup my Viking 56K PCI modem under Mandrake8.1(kernel-2.4.8-26mdk).
I downloaded kernel source files(linux-2.4.8.tar.gz) two days ago from www.kernel.org and installed it under '/usr/src' to construct the '/usr/src/linux ' directory.
I applied 'make menuconfig' under '/usr/src/linux ' since the kernel configuration file is under '/boot'
Then after 'make dep', I got following error msg,
"..scripts/mkdep.c In function 'add_path'
..scripts/mkdep.c:221 'PATH_MAX' undeclared(first use in this function)
..scripts/mkdep.c:221 size of array 'resolved_path' has non-interger type
.."
The mkdep.c is under /usr/src/linux/scripts, 13.2kb I think the problem might be, at the line 221, the program uses "PATH_MAX" without definition.
I know little about C++ and Linux, so could someone tell me how to resovle this problem?
Thanks,
alal
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
Quoted 10 lines · alal
Hi there,
I'm a newbie on Linux and just try to setup my Viking 56K PCI modem under Mandrake8.1(kernel-2.4.8-26mdk).
I downloaded kernel source files(linux-2.4.8.tar.gz) two days ago from www.kernel.org and installed it under '
/usr/src' to construct the '/usr/src/linux' directory.
It's better to just install the mandrake kernel
source package instead - that will match the
kernel you are running.
Joe
Hi Joe,
Thanks for your reply.
Which package I should look for then?
I already tried to search for kernel packages at the very beginning. Not sure whether I did that right-- I search for 'kernel', 'kernel headers', 'kernel source' under Mandrake package update.
I was told that an about 13 M kernel was already installed, including kernel headers under '/boot', and something like 'kernel-doc' under /lib.
I'm using ltmodem-6.00b15.tar.gz
(http://www.heby.de/ltmodem). It has a required-file list. I checked it and got all files installed, except a GNU C library, which doesn't exist in 2.4 version.
When I start ./build_module to build the driver, it looks for kernel headers under some non-exist directories like '/usr/src/linux'.
I made such a directory, linked or even copied the kernel header file from /boot to it; I also tried to put that header file under /usr/src/linux/kernel-headers/ or rename the header files or something.. No matter what it just told me can't find the kernel headers.
I almost gave up, then I saw some suggestion to get the kernel source from 'www.kernel.org'... After I installed that, I now have a /usr/src/linux directory and others. But.. well, then I come here :(
Anyway, now I just try to get that mkdep.c file from another kernel version and see whether it can replace my version.
Thanks again,
alal
Quoted 15 lines · --- J Sloan
Quoted 3 lines · alal
Hi there,
I'm a newbie on Linux and just try to setup my
Viking
Quoted 1 line
56K PCI modem under
Mandrake8.1(kernel-2.4.8-26mdk).
Quoted 2 lines
I downloaded kernel source
files(linux-2.4.8.tar.gz)
Quoted 4 lines
two days ago from www.kernel.org and installed it under '
/usr/src' to construct the '/usr/src/linux' directory.
Quoted 8 lines
It's better to just install the mandrake kernel
source package instead - that will match the
kernel you are running.Joe
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/