All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Klaas Gadeyne <klaas.gadeyne@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Unknown symbol xnshadow_send_sig
Date: Wed, 10 May 2006 10:41:32 +0200	[thread overview]
Message-ID: <4461A73C.1020605@domain.hid> (raw)
In-Reply-To: <Pine.LNX.4.63.0605101025370.11844@domain.hid>

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.


      reply	other threads:[~2006-05-10  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-10  8:35 [Xenomai-help] Unknown symbol xnshadow_send_sig Klaas Gadeyne
2006-05-10  8:41 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4461A73C.1020605@domain.hid \
    --to=rpm@xenomai.org \
    --cc=klaas.gadeyne@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.