From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4461A73C.1020605@domain.hid> Date: Wed, 10 May 2006 10:41:32 +0200 From: Philippe Gerum MIME-Version: 1.0 Subject: Re: [Xenomai-help] Unknown symbol xnshadow_send_sig References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Klaas Gadeyne Cc: xenomai@xenomai.org Klaas Gadeyne wrote: > Hi, > > When using the xenomai-v2.1.x branch (tested with r1058, and a > snapshot from a couple of days ago, using the "Champagne" version of > the nucleus IIRC), I get the above error while trying to load the > xeno_native kernel module. Relevant data is below: > > [kgad@domain.hid /lib/modules/2.6.16adeos-ipipe-1.2-05]$ > lsmod | grep xeno_nucleus > xeno_nucleus 222112 0 > [kgad@domain.hid /lib/modules/2.6.16adeos-ipipe-1.2-05]$ > sudo modprobe xeno_native > FATAL: Error inserting xeno_native > (/lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/skins/native/xeno_native.ko): > > Unknown symbol in module, or unknown parameter (see dmesg) > [kgad@domain.hid /lib/modules/2.6.16adeos-ipipe-1.2-05]$ > dmesg | tail -n 5 > Xenomai: hal/x86 started. > I-pipe: Domain IShield registered. > Xenomai: real-time nucleus v2.1.1 (Trundrumbalind) loaded. > xeno_native: Unknown symbol xnshadow_send_sig > xeno_native: Unknown symbol xnshadow_send_sig > > [kgad@domain.hid /lib/modules/2.6.16adeos-ipipe-1.2-05]$ > nm --defined-only > /lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/nucleus/xeno_nucleus.ko > > | grep xnshadow_send_sig > 0000e050 T xnshadow_send_sig > [kgad@domain.hid /lib/modules/2.6.16adeos-ipipe-1.2-05]$ > nm > /lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/skins/native/xeno_native.ko > > | grep xnshadow_send_sig > U xnshadow_send_sig > > > The signatures of the function seem to match to and I don't get the > error when using xenomai-trunk with 2.6.16adeos-ipipe-1.3-01. > Missing export inthe v2.1 branch which has been fixed in the v2.2 one, the patch below fixes it. A work-around is to build the native interface statically into the kernel, and not as a module. --- ksrc/nucleus/shadow.c (revision 1000) +++ ksrc/nucleus/shadow.c (working copy) @@ -1898,4 +1898,5 @@ EXPORT_SYMBOL(xnshadow_unregister_interface); EXPORT_SYMBOL(xnshadow_wait_barrier); EXPORT_SYMBOL(xnshadow_suspend); +EXPORT_SYMBOL(xnshadow_send_sig); EXPORT_SYMBOL(nkgkptd); -- Philippe.