openswan @ missing symbols strstr & memset
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Alle 19:03, martedì 13 aprile 2004, Nikola Ciprich ha scritto:
Quoted 8 lines
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,
Yes, it is clean (just it should go inside user_syms.c), but IIRC it has been applied to late 2.4 & 2.6 UML kernels (I could be wrong). Check against latest version and if it is not there (look inside user_syms.c) send the patch, after making the change in user_syms.c, to Jeff Dike.
Bye
Signature · 14 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- 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_id70&alloc_id638&opÌk _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
thanks for reply, I took a look to user_syms.c of version I'm using, and really both memset and strstr are exported, but with EXPORT_SYMBOL_PROTO. whats the difference between EXPORT_SYMBOL and EXPORT_SYMBOL_PROTO? and it did not work, so should I just remove _PROTO?
thanks in advance
V Út, 13. 04. 2004 v 19:47, BlaisorBlade píše:
Quoted 8 lines
Alle 19:03, martedì 13 aprile 2004, Nikola Ciprich ha scritto:
Quoted 6 lines
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.
Quoted 7 lines
Quoted 1 line
I'd like to ask, if my solution is 'clean' and if yes,
Yes, it is clean (just it should go inside
user_syms.c), but IIRC it has been applied to late 2.4 & 2.6 UML kernels (I could be wrong). Check against latest version and if it is not there (look insideuser_syms.c) send the patch, after making the change inuser_syms.c, to Jeff Dike.Bye
-------------------------------------------------------
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_id70&alloc_id638&op�k
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel