Skip to contentSkip to conversation

Missing exported symbols?

uml-devel James Roper 3 participants 7 messages Oct 9, 2004 – Oct 19, 2004 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

I'm still using the 2.6.8 uml patch release, and I'm getting heaps of errors complaining about unknown symbols. In particular:
WARNING: ../mnt/ lib/modules/2.6.8-1um/kernel/fs/cifs/cifs.ko needs unknown symbol memmove
Which I need as I'm doing cifs development. I saw an incremental 2.6.9-rc2 patch that said it added heaps of exported symbols, is there anything for 2.6.8? Or is there a simple way to export the memmove symbol?

I guess compiling cifs into the kernel would fix the problem altogether, though wouldn't it...

James

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 4 lines

I'm still using the 2.6.8 uml patch release, and I'm getting heaps of errors complaining about unknown symbols. In particular:
WARNING: ../mnt/ lib/modules/2.6.8-1um/kernel/fs/cifs/cifs.ko needs unknown symbol memmove

I'm seeing the same error (memmove undefined) while trying to build UML 2.6.8.1. In fact, I'm finding that most of the os_* functions appear to be undefined, as well, but it looks like I can make that error go away if I simply disable the hostfs support.

I understand that hostfs is in the middle of a rewrite...what's the last 2.6.x kernel with stable hostfs support?

Thanks,

-- Lars

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#2 lore raw
Quoted 2 lines

I'm seeing the same error (memmove undefined) while trying to build UML 2.6.8.1.

FWIW, after removing support for externfs/hostfs and friends, the only remaining error is the missing memmove. For example:

Quoted 2 lines

WARNING: /tmp/myroot/lib/modules/2.6.8.1-1um/kernel/net/sunrpc/sunrpc.ko needs unknown symbol memmove

-- Lars

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#3 lore raw
In reply to Lars Kellogg-Stedman
Quoted 5 lines · Lars Kellogg-Stedman
Quoted 4 lines

I'm still using the 2.6.8 uml patch release, and I'm getting heaps of errors complaining about unknown symbols. In particular:
WARNING: ../mnt/ lib/modules/2.6.8-1um/kernel/fs/cifs/cifs.ko needs unknown symbol memmove

Quoted 7 lines

I'm seeing the same error (memmove undefined) while trying to build UML 2.6.8.1. In fact, I'm finding that most of the os_* functions appear to be undefined, as well, but it looks like I can make that error go away if I simply disable the hostfs support.

I understand that hostfs is in the middle of a rewrite...what's the last 2.6.x kernel with stable hostfs support?

Either 2.6.7-1um or the upcoming 2.6.9 release... you can try 2.6.9-rc2; nor 2.6.9-rc3 (tested) nor 2.6.9-rc4 compile (I guess). However I'll fix the problem ASAP (I have just to send the patches).

Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#4 lore raw
In reply to James Roper
Quoted 4 lines

I'm still using the 2.6.8 uml patch release, and I'm getting heaps of errors complaining about unknown symbols. In particular:
WARNING: ../mnt/ lib/modules/2.6.8-1um/kernel/fs/cifs/cifs.ko needs unknown symbol memmove

Adding:

#undef __HAVE_ARCH_MEMMOVE

to include/asm-um/string.h (after the two #include statements) will force UML to use the memmove() defined in lib/string.c. I don't know if this is the right solution or not, but it appears to resolve the missing symbol problem.

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#5 lore raw
Quoted 5 lines · Lars Kellogg-Stedman
Quoted 4 lines

I'm still using the 2.6.8 uml patch release, and I'm getting heaps of errors complaining about unknown symbols. In particular:
WARNING: ../mnt/ lib/modules/2.6.8-1um/kernel/fs/cifs/cifs.ko needs unknown symbol memmove

Quoted 8 lines

Adding:

#undef __HAVE_ARCH_MEMMOVE

to include/asm-um/string.h (after the two #include statements) will force UML to use the memmove() defined in lib/string.c. I don't know if this is the right solution or not, but it appears to resolve the missing symbol problem.

It does not change anything. memmove *is* defined by glibc. However, lib/string.c adds the "EXPORT_SYMBOL(memmove);" line, which is the correct line to add to arch/um/os-Linux/user_syms.c, after putting in the correct prototype.

Bye

Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#6 lore raw
In reply to James Roper
Quoted 7 lines · James Roper

I'm still using the 2.6.8 uml patch release, and I'm getting heaps of errors complaining about unknown symbols. In particular:
WARNING: ../mnt/ lib/modules/2.6.8-1um/kernel/fs/cifs/cifs.ko needs unknown symbol memmove
Which I need as I'm doing cifs development. I saw an incremental 2.6.9-rc2 patch that said it added heaps of exported symbols, is there anything for 2.6.8? Or is there a simple way to export the memmove symbol?

This patch also contains (at this moment) the needed export:

http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.8.1-1um/patches/export

However, you could try the 2.6.9-rc2 kernel, or from 2.6.9-rc4-bk2 onwards. The patch, if needed, should apply as well, I guess (at least by hand). I think it was merged, however.

Bye

Signature · 14 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel