Return-Path: Received: from web7903.mail.in.yahoo.com (web7903.mail.in.yahoo.com [202.86.4.79]) by ozlabs.org (Postfix) with SMTP id 49C99DDDE6 for ; Sat, 25 Oct 2008 01:02:28 +1100 (EST) Date: Fri, 24 Oct 2008 19:25:47 +0530 (IST) From: mfwbm Subject: problem with stacked module in 2.6.24 kernel build To: linuxppc-embedded@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1691016544-1224856547=:94177" Message-ID: <754909.94177.qm@web7903.mail.in.yahoo.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-1691016544-1224856547=:94177 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,=0A=0AI am trying to port some drivers from our previous product=0Aline,= based on 2.6.10 kernel to 2.6.24 kernel and is stuck=0Awith a strange is= sue: =0AThere are three kernel modules, A.ko, B,ko=0Aand C.ko; both "B" and= "C" are using some symbols exported from "A" and=0Athese symbols are defin= ed as "extern" in "B" and "C". =0A"A" and "B"=0Aare compiled separately, bu= t "C" needs to be compiled as part of kernel=0Abuild and is configured as "= m" in kernel config.=0AAfter bulding vmlinux it fails while making the ko w= ith following error; I tried building the module separately, but no luck:= =0A=0A[root@localhost linux-2.6.24]# make O=3D../build-test modules=0A Usi= ng /linux-2.6.24 as source for kernel=0A CHK include/linux/versi= on.h=0A CHK include/linux/utsrelease.h=0A CALL /linux-2.6.24= /scripts/checksyscalls.sh=0A:1345:2: warning: #warning syscall sync_= file_range not implemented=0A:1385:2: warning: #warning syscall fall= ocate not implemented=0A CC [M] drivers/mtd/devices/ctlm_sf.o=0A Buildin= g modules, stage 2.=0A MODPOST 1 modules=0AERROR: "" [/C.ko] undefined!=0Amake[2]: *** [__modpost] Error 1=0Amake[1]: *** [modu= les] Error 2=0Amake: *** [sub-make] Error 2=0A=0AIn=0A2.6.10 kernel it prin= ts only a WARNING and the module is getting built;=0Asame is the case for o= ther modules which are built separately in both=0Akernels.=0A=0AAny help re= garding this is higly appreciated.=0A=0AThanks in advance,=0Amfwbm=0A=0A=0A= Add more friends to your messenger and enjoy! Go to http://messenger.= yahoo.com/invite/ --0-1691016544-1224856547=:94177 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,

I am trying to port some drivers from our p= revious product=0Aline, based on 2.6.10 kernel to  2.6.24 kernel and i= s stuck=0Awith  a strange issue:
There are three kernel modules, A= .ko, B,ko=0Aand C.ko; both "B" and "C" are using some symbols exported from= "A" and=0Athese symbols are defined as "extern" in "B" and "C".
"A" an= d "B"=0Aare compiled separately, but "C" needs to be compiled as part of ke= rnel=0Abuild and is configured as "m" in kernel config.
After bulding vm= linux it fails while making the ko with following error; I tried building t= he module separately, but no luck:

[root@localhost linux-2.6.24]# make O=3D../build-test modules
 =0A= Using <path>/linux-2.6.24 as source for kernel
  CHK &nbs= p;   include/linux/version.h
  CHK     = include/linux/utsrelease.h
  CALL    <path>/linu= x-2.6.24/scripts/checksyscalls.sh
<= span style=3D"font-style: italic;"><stdin>:1345:2: warning: #warning = syscall sync_file_range not implemented
<stdin>:1385:2: warning: #wa= rning syscall fallocate not implemented
  CC [M]  drivers/mtd/de= vices/ctlm_sf.o
  Building modules, stage 2.
  MODPOST 1 modules
ERRO= R: "<symbols from A>" [<path>/C.ko] undefined!
make[2]: *** [= __modpost] Error 1
make[1]: *** [modules] Error 2
make: *** [sub-make] Er= ror 2

In=0A2.6.10 kernel it prints only a WARNING and the mod= ule is getting built;=0Asame is the case for other modules which are built = separately in both=0Akernels.

Any help regarding this is higly appre= ciated.

Thanks in advance,
mfwbm

=0A =
Add more friends to your messenger and enjoy! Invite them now. --0-1691016544-1224856547=:94177--