[vbox-dev] Mac OS X: Undefined symbol in kernel extension in SVN r16822: _ml_get_max_cpus

Robin Green greenrd at gmail.com
Tue Feb 17 07:56:27 PST 2009


This bug was introduced in r16804. Here is a patch, which seems to work:
Index: src/VBox/HostDrivers/Support/darwin/Info.plist
===================================================================
--- src/VBox/HostDrivers/Support/darwin/Info.plist      (revision 16804)
+++ src/VBox/HostDrivers/Support/darwin/Info.plist      (working copy)
@@ -32,6 +32,8 @@
         <key>com.apple.kpi.libkern</key>        <string>9.0.0</string>
         <key>com.apple.kpi.unsupported</key>    <string>9.0.0</string>
         <key>com.apple.kpi.iokit</key>          <string>9.0.0</string>
+        <key>com.apple.kernel.bsd</key>
 <string>7.9.9</string>
+        <key>com.apple.kernel.mach</key>       <string>7.9.9</string>
     </dict>
     <key>OSBundleLibraries_x86_64</key>
     <dict>

2009/2/17 Robin Green <greenrd at gmail.com>

> SVN r16822 builds but the kextload fails:
> $ ./load.sh
> load.sh: Unloading org.virtualbox.kext.VBoxDrv...
> Password:
> kextunload: calculating version relationships
> kextunload: unload id org.virtualbox.kext.VBoxDrv succeeded (any
> personalities also unloaded)
> load.sh: Successfully unloaded org.virtualbox.kext.VBoxDrv
> load.sh: loading
> /Users/greenrd/svn/vbox/out/darwin.x86/release/dist/VBoxDrv.kext...
> kextload: extension
> /Users/greenrd/svn/vbox/out/darwin.x86/release/dist/VBoxDrv.kext appears to
> be loadable
> kld(): Undefined symbols:
> _ml_get_max_cpus
> kextload: kld_load_from_memory() failed for module
> /Users/greenrd/svn/vbox/out/darwin.x86/release/dist/VBoxDrv.kext/Contents/MacOS/VBoxDrv
> kextload: a link/load error occured for kernel extension
> /Users/greenrd/svn/vbox/out/darwin.x86/release/dist/VBoxDrv.kext
> link/load failed for extension
> /Users/greenrd/svn/vbox/out/darwin.x86/release/dist/VBoxDrv.kext
>  (run kextload with -t for diagnostic output)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090217/0a4dec77/attachment-0001.html 


More information about the vbox-dev mailing list