<div class="gmail_quote">On Thu, Jan 20, 2011 at 10:09 PM, Bernhard Froehlich <span dir="ltr"><<a href="mailto:decke@bluelife.at">decke@bluelife.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Thu, 20 Jan 2011 21:08:02 +0800, Howard Su wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the problem is that strlen is included in C++ namespace instead of C.<br>
<br>
%svn diff include/<br>
Index: include/iprt/string.h<br>
===================================================================<br>
--- include/iprt/string.h       (revision 35623)<br>
+++ include/iprt/string.h       (working copy)<br>
@@ -38,6 +38,7 @@<br>
 # include "xf86_ansic.h"<br>
 RT_C_DECLS_END<br>
  #elif defined(RT_OS_FREEBSD) && defined(_KERNEL)<br>
+RT_C_DECLS_BEGIN<br>
 /** @todo<br>
  * XXX: Very ugly hack to get things build on recent FreeBSD<br>
builds. They have<br>
  * memchr now and we need to include param.h to get<br>
__FreeBSD_version and make<br>
@@ -65,6 +66,7 @@<br>
    * Defining a macro using bcopy here<br>
    */<br>
 # define memmove(dst, src, size) bcopy(src, dst, size)<br>
+RT_C_DECLS_END<br>
 #elif defined(RT_OS_SOLARIS) && defined(_KERNEL)<br>
   /*<br>
    * Same case as with FreeBSD kernel:<br>
</blockquote>
<br>
<br></div></div>
Which problem does that address? The only kernel module loading problem<br>
that i'm currently aware of is that loading them in the wrong order<br>
causes some problems.<br><font color="#888888">
<br>
-- <br>
Bernhard Fröhlich<br>
<a href="http://www.bluelife.at/" target="_blank">http://www.bluelife.at/</a><br>
</font></blockquote></div><br>when kldload vboxdrv.ko, i got:<div><br></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><pre><i>kernel: link_elf_obj: symbol _Z6strlenPKc undefined</i></pre>
</span><br>-- <br>-Howard<br>
</div>