linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] openswan @ missing symbols strstr & memset
@ 2004-04-13 17:03 Nikola Ciprich
  2004-04-13 17:47 ` BlaisorBlade
  0 siblings, 1 reply; 3+ messages in thread
From: Nikola Ciprich @ 2004-04-13 17:03 UTC (permalink / raw)
  To: UML devel list

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-14 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-13 17:03 [uml-devel] openswan @ missing symbols strstr & memset Nikola Ciprich
2004-04-13 17:47 ` BlaisorBlade
2004-04-14 10:30   ` Nikola Ciprich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox