cannot make modules

Lara Adianto yellowdog-general@lists.terrasoftsolutions.com
Wed Jan 14 10:50:01 2004


This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C3DA42.987CAC70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I read the message posted by Charles Trois on Sept 1, 2003. I face =
exactly the same problem as him now and I have tried the solution =
suggested by Pat Plummer, but still can't solve the problem...

Do I have to do make dep clean bzImage again before trying make modules =
?

Where should I do the make modules, in the linux or linux-2.4 directory =
?

Below is the message posted by Charles Trois and the suggestion from Pat =
Plummer:

Thank you,
Lara

***** POSTED BY CHARLES TROIS ****
Hello,=20

Something strange happens to me.

On YDL 3.0, I am trying to recompile the 2.4.20-8d kernel (the one on =
the
disk) after reconfiguring. I have done it in the past, without trouble.

Now, I can go through make dep and make vmlinux, but make modules fails.
Below is the copy of the last lines of the log. I don't understand it at
all. I only observe that the same errors are found in different files.

Could someone interpret it and point out what is wrong?

All hints will be gratefully received.

Charles

*************************************************************************=
**

In file included from =
/usr/src/linux-2.4.20-8d/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.20-8d/include/linux/list.h:6,
                 from =
/usr/src/linux-2.4.20-8d/include/linux/module.h:12,
                 from i2c-core.c:25:
/usr/src/linux-2.4.20-8d/include/asm/processor.h:606: invalid suffix on
integer constant
/usr/src/linux-2.4.20-8d/include/asm/processor.h:606: parse error before
numeric constant
/usr/src/linux-2.4.20-8d/include/asm/processor.h:606: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-8d/include/asm/processor.h:609: warning: parameter
names (without types) in function declaration
/usr/src/linux-2.4.20-8d/include/asm/processor.h:615: invalid suffix on
integer constant
/usr/src/linux-2.4.20-8d/include/asm/processor.h:615: parse error before
numeric constant
/usr/src/linux-2.4.20-8d/include/asm/processor.h:615: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-8d/include/asm/processor.h:623: invalid suffix on
integer constant
/usr/src/linux-2.4.20-8d/include/asm/processor.h:623: parse error before
numeric constant
/usr/src/linux-2.4.20-8d/include/asm/processor.h:623:
`start_thread_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8d/include/asm/processor.h:623: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-8d/include/asm/processor.h:629: invalid suffix on
integer constant
/usr/src/linux-2.4.20-8d/include/asm/processor.h:629: parse error before
numeric constant
/usr/src/linux-2.4.20-8d/include/asm/processor.h:629:
`kernel_thread_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8d/include/asm/processor.h:629: warning: function
declaration isn't a prototype
In file included from =
/usr/src/linux-2.4.20-8d/include/linux/prefetch.h:14,
                 from /usr/src/linux-2.4.20-8d/include/linux/list.h:6,
                 from =
/usr/src/linux-2.4.20-8d/include/linux/module.h:12,
                 from i2c-core.c:25:
/usr/src/linux-2.4.20-8d/include/asm/cache.h:44:
`flush_dcache_range_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8d/include/asm/cache.h:44: warning: parameter =
names
(without types) in function declaration
In file included from =
/usr/src/linux-2.4.20-8d/include/linux/module.h:25,
                 from i2c-core.c:25:
/usr/src/linux-2.4.20-8d/include/asm/atomic.h:20: invalid suffix on =
integer
constant
/usr/src/linux-2.4.20-8d/include/asm/atomic.h:20: parse error before =
numeric
constant
/usr/src/linux-2.4.20-8d/include/asm/atomic.h:20:
`atomic_clear_mask_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8d/include/asm/atomic.h:20: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-8d/include/asm/atomic.h:21:
`atomic_set_mask_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8d/include/asm/atomic.h:21: warning: parameter =
names
(without types) in function declaration
In file included from i2c-core.c:25:
/usr/src/linux-2.4.20-8d/include/linux/module.h:183: invalid suffix on
integer constant
/usr/src/linux-2.4.20-8d/include/linux/module.h:183: parse error before
numeric constant
/usr/src/linux-2.4.20-8d/include/linux/module.h:183:
`inter_module_register_R_ver_str' declared as function returning a =
function
/usr/src/linux-2.4.20-8d/include/linux/module.h:183: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-8d/include/linux/module.h:184: invalid suffix on
integer constant
/usr/src/linux-2.4.20-8d/include/linux/module.h:184: parse error before
numeric constant
/usr/src/linux-2.4.20-8d/include/linux/module.h:184:
`inter_module_unregister_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-8d/include/linux/module.h:184: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-8d/include/linux/module.h:185:
`inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8d/include/linux/module.h:185: warning: parameter
names (without types) in function declaration
/usr/src/linux-2.4.20-8d/include/linux/module.h:186:
`inter_module_get_request_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-8d/include/linux/module.h:186: warning: parameter
names (without types) in function declaration
/usr/src/linux-2.4.20-8d/include/linux/module.h:187: invalid suffix on
integer constant
/usr/src/linux-2.4.20-8d/include/linux/module.h:187: parse error before
numeric constant
/usr/src/linux-2.4.20-8d/include/linux/module.h:187:
`inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8d/include/linux/module.h:187: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-8d/include/linux/module.h:196:
`try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8d/include/linux/module.h:196: warning: parameter
names (without types) in function declaration
make[2]: *** [i2c-core.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-8d/drivers/i2c'
make[1]: *** [_modsubdir_i2c] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8d/drivers'
make: *** [_mod_drivers] Error 2

*************************************************************************=
**

***** SUGGESTION FROM PAT PLUMMER ****

Charles:

Try this --

In your /usr/src directory, make sure you have two symlinks that point=20
to the /usr/src/linux-2.4.20-8d directory -- one named linux and one=20
named linux-2.4.

I found that on my ANS700 (thanks to eddie b) that the compiler could=20
not find its files correctly unless the extra symlink was in place.

Bet that works for you.

Pat
~~~~~~<<<>>>~~~~~~
Pat.Plummer.MD
ppat@ida.net
blacksun@ix.gotdns.org
~~~~~~<<<>>>~~~~~~



------=_NextPart_000_000D_01C3DA42.987CAC70
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I read the message posted by Charles =
Trois on Sept=20
1, 2003. I face exactly the same problem as him now and I have tried the =

solution suggested by Pat Plummer, but still can't solve the=20
problem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Do I have to do make dep clean bzImage =
again before=20
trying make modules ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Where should I do the make modules, in =
the linux or=20
linux-2.4 directory ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Below&nbsp;is the message posted by =
Charles Trois=20
and the suggestion from Pat Plummer:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Lara</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>***** POSTED BY CHARLES TROIS =
****</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hello, <BR><BR>Something strange =
happens to=20
me.<BR><BR>On YDL 3.0, I am trying to recompile the 2.4.20-8d kernel =
(the one on=20
the<BR>disk) after reconfiguring. I have done it in the past, without=20
trouble.<BR><BR>Now, I can go through make dep and make vmlinux, but =
make=20
modules fails.<BR>Below is the copy of the last lines of the log. I =
don't=20
understand it at<BR>all. I only observe that the same errors are found =
in=20
different files.<BR><BR>Could someone interpret it and point out what is =

wrong?<BR><BR>All hints will be gratefully=20
received.<BR><BR>Charles<BR><BR>*****************************************=
**********************************<BR><BR>In=20
file included from=20
/usr/src/linux-2.4.20-8d/include/linux/prefetch.h:13,<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
from=20
/usr/src/linux-2.4.20-8d/include/linux/list.h:6,<BR>&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
from=20
/usr/src/linux-2.4.20-8d/include/linux/module.h:12,<BR>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
from =
i2c-core.c:25:<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:606:=20
invalid suffix on<BR>integer=20
constant<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:606: parse =
error=20
before<BR>numeric=20
constant<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:606: =
warning:=20
function<BR>declaration isn't a=20
prototype<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:609: =
warning:=20
parameter<BR>names (without types) in function=20
declaration<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:615: =
invalid=20
suffix on<BR>integer=20
constant<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:615: parse =
error=20
before<BR>numeric=20
constant<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:615: =
warning:=20
function<BR>declaration isn't a=20
prototype<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:623: =
invalid=20
suffix on<BR>integer=20
constant<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:623: parse =
error=20
before<BR>numeric=20
constant<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:623:<BR>`sta=
rt_thread_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:623: =
warning:=20
function<BR>declaration isn't a=20
prototype<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:629: =
invalid=20
suffix on<BR>integer=20
constant<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:629: parse =
error=20
before<BR>numeric=20
constant<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:629:<BR>`ker=
nel_thread_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/asm/processor.h:629: =
warning:=20
function<BR>declaration isn't a prototype<BR>In file included from=20
/usr/src/linux-2.4.20-8d/include/linux/prefetch.h:14,<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
from=20
/usr/src/linux-2.4.20-8d/include/linux/list.h:6,<BR>&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
from=20
/usr/src/linux-2.4.20-8d/include/linux/module.h:12,<BR>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
from=20
i2c-core.c:25:<BR>/usr/src/linux-2.4.20-8d/include/asm/cache.h:44:<BR>`fl=
ush_dcache_range_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/asm/cache.h:44: warning: =
parameter=20
names<BR>(without types) in function declaration<BR>In file included =
from=20
/usr/src/linux-2.4.20-8d/include/linux/module.h:25,<BR>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
from i2c-core.c:25:<BR>/usr/src/linux-2.4.20-8d/include/asm/atomic.h:20: =
invalid=20
suffix on=20
integer<BR>constant<BR>/usr/src/linux-2.4.20-8d/include/asm/atomic.h:20: =
parse=20
error before=20
numeric<BR>constant<BR>/usr/src/linux-2.4.20-8d/include/asm/atomic.h:20:<=
BR>`atomic_clear_mask_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/asm/atomic.h:20: warning:=20
function<BR>declaration isn't a=20
prototype<BR>/usr/src/linux-2.4.20-8d/include/asm/atomic.h:21:<BR>`atomic=
_set_mask_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/asm/atomic.h:21: warning: =
parameter=20
names<BR>(without types) in function declaration<BR>In file included =
from=20
i2c-core.c:25:<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:183: =
invalid=20
suffix on<BR>integer=20
constant<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:183: parse =
error=20
before<BR>numeric=20
constant<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:183:<BR>`inte=
r_module_register_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:183: =
warning:=20
function<BR>declaration isn't a=20
prototype<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:184: =
invalid suffix=20
on<BR>integer =
constant<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:184:=20
parse error before<BR>numeric=20
constant<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:184:<BR>`inte=
r_module_unregister_R_ver_str'=20
declared as function returning=20
a<BR>function<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:184: =
warning:=20
function<BR>declaration isn't a=20
prototype<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:185:<BR>`int=
er_module_get_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:185: =
warning:=20
parameter<BR>names (without types) in function=20
declaration<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:186:<BR>`i=
nter_module_get_request_R_ver_str'=20
declared as function returning=20
a<BR>function<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:186: =
warning:=20
parameter<BR>names (without types) in function=20
declaration<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:187: =
invalid=20
suffix on<BR>integer=20
constant<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:187: parse =
error=20
before<BR>numeric=20
constant<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:187:<BR>`inte=
r_module_put_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:187: =
warning:=20
function<BR>declaration isn't a=20
prototype<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:196:<BR>`try=
_inc_mod_count_R_ver_str'=20
declared as function returning a=20
function<BR>/usr/src/linux-2.4.20-8d/include/linux/module.h:196: =
warning:=20
parameter<BR>names (without types) in function declaration<BR>make[2]: =
***=20
[i2c-core.o] Error 1<BR>make[2]: Leaving directory=20
`/usr/src/linux-2.4.20-8d/drivers/i2c'<BR>make[1]: *** [_modsubdir_i2c] =
Error=20
2<BR>make[1]: Leaving directory =
`/usr/src/linux-2.4.20-8d/drivers'<BR>make: ***=20
[_mod_drivers] Error=20
2<BR><BR>****************************************************************=
***********<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>***** SUGGESTION FROM PAT PLUMMER =
****</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>Charles:<BR><BR>Try this =
--<BR><BR>In your=20
/usr/src directory, make sure you have two symlinks that point <BR>to =
the=20
/usr/src/linux-2.4.20-8d directory -- one named linux and one <BR>named=20
linux-2.4.<BR><BR>I found that on my ANS700 (thanks to eddie b) that the =

compiler could <BR>not find its files correctly unless the extra symlink =
was in=20
place.<BR><BR>Bet that works for=20
you.<BR><BR>Pat<BR>~~~~~~&lt;&lt;&lt;&gt;&gt;&gt;~~~~~~<BR>Pat.Plummer.MD=
<BR></FONT><A=20
href=3D"mailto:ppat@ida.net"><FONT face=3DArial =
size=3D2>ppat@ida.net</FONT></A><BR><A=20
href=3D"mailto:blacksun@ix.gotdns.org"><FONT face=3DArial=20
size=3D2>blacksun@ix.gotdns.org</FONT></A><BR><FONT face=3DArial=20
size=3D2>~~~~~~&lt;&lt;&lt;&gt;&gt;&gt;~~~~~~</FONT><BR><BR></DIV>
<DIV><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_000D_01C3DA42.987CAC70--