2002-03-07 07:24:06

by alal

[permalink] [raw]
Subject: 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 http://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/


2002-03-07 07:38:58

by Joe

[permalink] [raw]
Subject: Re: mkdep.c error under Mandrake8.1-2.4.8

alal wrote:

>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 http://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



2002-03-07 22:14:38

by alal

[permalink] [raw]
Subject: Re: mkdep.c error under Mandrake8.1-2.4.8

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 'http://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




--- J Sloan <[email protected]> wrote:
> alal wrote:
>
> >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 http://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
>
>
>




__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/