openswan-2/linux/net/ipsec addrtot.c, 1.16, 1.17
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Michael Richardson
CaT> In
include/asm-i386/string.hfor example. Not all arches have CaT> it defined but a few do.CaT> With the change btw, the kernel compiled.
Quoted 7 lines
Using
__HAVE_ARCH_STRSTRdoesn't work on UML.
It appears that thestrstr.cfromarch/i386/lib/strstr.cdoesn't get
compiled. I tried to get it compiled, but I seem to be missing some symbol table magic. (AddingEXPORT_SYMTAB(strstr)to the file didn't help).Any ideas on this?
I'm not expert (seriously - this isn't just modesty :) but it looks like that uml is undefining strstr but not __HAVE_ARCH_STRSTR so that when it's compiled on an arch that defines __HAVE_ARCH_STRSTR because it has strstr it's only half undefined. If I'm right it appears to be a bug in the part of uml.
Check linux/arch/um/os-Linux/user_syms.c. It includes string.h which includes asm/string.h which includes asm/arch/string.h which points to asm-i386/string.h which would define the above.
I've CCed the happy-fun folks at UML to be sure because my feeling that I'm talking sheer bollocks is about as strong as my feeling that I am not. :)
Signature · 12 lines
Red herrings strewn hither and yon. ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 14 lines · CaT
Quoted 5 lines · Michael Richardson
CaT> In
include/asm-i386/string.hfor example. Not all arches have CaT> it defined but a few do.CaT> With the change btw, the kernel compiled.
Quoted 7 lines
Using
__HAVE_ARCH_STRSTRdoesn't work on UML.
It appears that thestrstr.cfromarch/i386/lib/strstr.cdoesn't get
compiled. I tried to get it compiled, but I seem to be missing some symbol table magic. (AddingEXPORT_SYMTAB(strstr)to the file didn't help).Any ideas on this?
Quoted 7 lines
I'm not expert (seriously - this isn't just modesty :) but it looks like that uml is undefining strstr but not
__HAVE_ARCH_STRSTRso that when it's compiled on an arch that defines__HAVE_ARCH_STRSTRbecause it has strstr it's only half undefined.If I'm right it appears to
be a bug in the part of uml.
Ok, that's not a bug, but one UML choice: it will use the host libc version of strstr.
Quoted 1 line
Check
linux/arch/um/os-Linux/user_syms.c.
The problem is just the fact that "EXPORT_SYMBOL(strstr)" is commented out in THAT file. If you compile the code which uses that statically, it will work, so you're not on the right road.
Quoted 7 lines
It includes
string.h
which includesasm/string.hwhich includesasm/arch/string.hwhich points toasm-i386/string.hwhich would define the above.I've CCed the happy-fun folks at UML to be sure because my feeling that I'm talking sheer bollocks is about as strong as my feeling that I am not. :)
I don't know what "sheer bollocks" means, but I guess this is the case...
Bye
Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
-----BEGIN PGP SIGNED MESSAGE-----
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"BlaisorBlade" == BlaisorBlade <[email protected]> writes:
BlaisorBlade> The problem is just the fact that BlaisorBlade> "EXPORT_SYMBOL(strstr)" is commented out in THAT BlaisorBlade> file. If you compile the code which uses that BlaisorBlade> statically, it will work, so you're not on the right BlaisorBlade> road.
Okay, can it be commented back in for 2.6.9?
It certainly explains why it only failed when I compile my code as a
module. (We both both static links and module builds are part of a nightly regression test)
- --
] "Elmo went to the wrong fundraiser" - The Simpson | firewalls [ ] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[ ] [email protected] http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [ -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys
iQCVAwUBQVcPm4qHRg3pndX9AQHAygP/fOxvYS4PJ9u6ncw3leJMbvO3wnDZh0oN /47BVYvX9eWYyzJQNynqflIlpT3B3x7rWZxEPW6EDNlTz2MEVp+uXviQT6PaeBCL bylJQbseHlE8GVy3re3ZpklnDY18fYncml7sL1DQtBto3SdrPYWkpxe7E0asxqjP n+VMxnq1BM4=
=gRZS
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 9 lines · Michael Richardson
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"BlaisorBlade" == BlaisorBlade <[email protected]> writes:
BlaisorBlade> The problem is just the fact that BlaisorBlade> "
EXPORT_SYMBOL(strstr)" is commented out in THAT BlaisorBlade> file. If you compile the code which uses that BlaisorBlade> statically, it will work, so you're not on the right BlaisorBlade> road.Okay, can it be commented back in for 2.6.9?
It is already fixed in 2.6.9-rc2; I refer to the actual vanilla kernel, since the UML patch has been merged (actually from my own tree, so some things, as this one, have been fixed there before than in the Jeff's tree; however I *do* send the patches him, it's just sometimes they get lost).
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