<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi,<br><br>I am trying to port some drivers from our previous product
line, based on 2.6.10 kernel to&nbsp; 2.6.24 kernel and is stuck
with&nbsp; a strange issue: <br>There are three kernel modules, A.ko, B,ko
and C.ko; both "B" and "C" are using some symbols exported from "A" and
these symbols are defined as "extern" in "B" and "C". <br>"A" and "B"
are compiled separately, but "C" needs to be compiled as part of kernel
build and is configured as "m" in kernel config.<br>After bulding vmlinux it fails while making the ko with following error; I tried building the module separately, but no luck:<br><br><span style="font-style: italic;">[root@localhost linux-2.6.24]# make O=../build-test modules</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;
 Using &lt;path&gt;/linux-2.6.24 as source for kernel</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CHK&nbsp;&nbsp;&nbsp;&nbsp; include/linux/version.h</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CHK&nbsp;&nbsp;&nbsp;&nbsp; include/linux/utsrelease.h</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CALL&nbsp;&nbsp;&nbsp; &lt;path&gt;/linux-2.6.24/scripts/checksyscalls.sh</span><br style="font-style: italic;"><span style="font-style: italic;">&lt;stdin&gt;:1345:2: warning: #warning syscall sync_file_range not implemented</span><br style="font-style: italic;"><span style="font-style: italic;">&lt;stdin&gt;:1385:2: warning: #warning syscall fallocate not implemented</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CC [M]&nbsp; drivers/mtd/devices/ctlm_sf.o</span><br style="font-style: italic;"><span style="font-style:
 italic;">&nbsp; Building modules, stage 2.</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; MODPOST 1 modules</span><br style="font-style: italic;"><span style="font-style: italic;">ERROR: "&lt;symbols from A&gt;" [&lt;path&gt;/C.ko] undefined!</span><br style="font-style: italic;"><span style="font-style: italic;">make[2]: *** [__modpost] Error 1</span><br style="font-style: italic;"><span style="font-style: italic;">make[1]: *** [modules] Error 2</span><br style="font-style: italic;"><span style="font-style: italic;">make: *** [sub-make] Error 2</span><br><br>In
2.6.10 kernel it prints only a WARNING and the module is getting built;
same is the case for other modules which are built separately in both
kernels.<br><br>Any help regarding this is higly appreciated.<br><br>Thanks in advance,<br>mfwbm</div></div><br>
      <!--6--><hr size=1></hr> Add more friends to your messenger and enjoy! <a href="http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/"> Invite them now.</a></body></html>