* [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
* Re: [uml-devel] openswan @ missing symbols strstr & memset
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
0 siblings, 1 reply; 3+ messages in thread
From: BlaisorBlade @ 2004-04-13 17:47 UTC (permalink / raw)
To: user-mode-linux-devel
Alle 19:03, martedì 13 aprile 2004, Nikola Ciprich ha scritto:
> 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
--
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_id\x1470&alloc_id638&opÌk
_______________________________________________
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
* Re: [uml-devel] openswan @ missing symbols strstr & memset
2004-04-13 17:47 ` BlaisorBlade
@ 2004-04-14 10:30 ` Nikola Ciprich
0 siblings, 0 replies; 3+ messages in thread
From: Nikola Ciprich @ 2004-04-14 10:30 UTC (permalink / raw)
To: UML devel list
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:
> Alle 19:03, martedì 13 aprile 2004, Nikola Ciprich ha scritto:
> > 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
-------------------------------------------------------
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\x1470&alloc_id638&op�k
_______________________________________________
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