linux-um archives
 help / color / mirror / Atom feed
From: Nikola Ciprich <extmaillist@linuxbox.cz>
To: UML devel list <user-mode-linux-devel@lists.sourceforge.net>
Subject: [uml-devel] openswan @ missing symbols strstr & memset
Date: Tue, 13 Apr 2004 19:03:14 +0200	[thread overview]
Message-ID: <1081875793.19343.90.camel@develbox> (raw)

Hello, I was trying to get openswan working under UML, module compiles
fine, but trying to load it fails with complaint about unresolved symbol
memset and strstr
I've found that those symbols are exported in i386 ksyms, but not in uml
ksyms, so I've created little patch (enclosed), and everythink seems to
work well. I'd like to ask, if my solution is 'clean' and if yes,
wouldn;t it be usefull to add all such missing symbols (for work wish
strings etc). if yes, i'd gladly create patch for inclusion
thanks
nik
applied patch:

diff -Naur linux-2.4.25/arch/um/kernel/ksyms.c
linux-2.4.25-uml-fixmissingsymbols/arch/um/kernel/ksyms.c
--- linux-2.4.25/arch/um/kernel/ksyms.c Tue Apr 13 08:35:36 2004
+++ linux-2.4.25-uml-fixmissingsymbols/arch/um/kernel/ksyms.c   Tue Apr
13 08:32:55 2004
@@ -23,6 +23,7 @@

 EXPORT_SYMBOL(stop);
 EXPORT_SYMBOL(strtok);
+EXPORT_SYMBOL(strstr);
 EXPORT_SYMBOL(uml_physmem);
 EXPORT_SYMBOL(set_signals);
 EXPORT_SYMBOL(get_signals);
@@ -111,6 +112,14 @@
 EXPORT_SYMBOL(smp_num_cpus);

 #endif
+
+#undef memcpy
+#undef memset
+extern void * memset(void *,int,__kernel_size_t);
+extern void * memcpy(void *,const void *,__kernel_size_t);
+EXPORT_SYMBOL_NOVERS(memcpy);
+EXPORT_SYMBOL_NOVERS(memset);
+

 /*
  * Overrides for Emacs so that we follow Linus's tabbing style.





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

             reply	other threads:[~2004-04-13 17:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-13 17:03 Nikola Ciprich [this message]
2004-04-13 17:47 ` [uml-devel] openswan @ missing symbols strstr & memset BlaisorBlade
2004-04-14 10:30   ` Nikola Ciprich

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=1081875793.19343.90.camel@develbox \
    --to=extmaillist@linuxbox.cz \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox