[vbox-dev] Letter case problem in function name (kmod)

Mario Lobo mlobo at digiart.art.br
Mon Dec 21 14:06:24 GMT 2015


Hi;

This happened since version 5.0.10. It stops compilation of vbox kmod
(on FreeBSD, at least) with the following error:

use of undeclared identifier 'vboxdrvFreeBSDDtr'

The problem is that the source file is generated during compilation so
I have to wait for the compiling to stop to correct the file.

The functions is declared as VBoxDrvFreeBSDDtr but its body states
vboxdrvFreeBSDDtr.



Here is the diff:

--
out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c.ori
2015-12-21 10:50:39.598786000 -0300 +++
out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c
2015-12-21 10:52:02.194808000 -0300 
@@ -253,7 +253,7 @@ 
/** @todo get (r)uid and (r)gid. 
pSession->Uid = stuff; 
pSession->Gid = stuff; */
- rc = devfs_set_cdevpriv(pSession, vboxdrvFreeBSDDtr);Assert(rc == 0);
+ rc = devfs_set_cdevpriv(pSession, VBoxDrvFreeBSDDtr);Assert(rc == 0); 
Log(("VBoxDrvFreeBSDOpen: pSession=%p\n", pSession));
ASMAtomicIncU32(&g_cUsers);
return 0;

@@ -283,10 +283,10 @@
  * @returns 0 on success.
  * @param   pvData      The session being closed.
  */
- static void vboxdrvFreeBSDDtr(void *pvData)
+ static void VBoxDrvFreeBSDDtr(void *pvData)
 {
     PSUPDRVSESSION pSession = pvData;
-    Log(("vboxdrvFreeBSDDtr: pSession=%p\n", pSession));
+    Log(("VBoxDrvFreeBSDDtr: pSession=%p\n", pSession));
 
     /*
      * Close the session.


After correction, compilation proceeds successfully.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!]

"UNIX was not designed to stop you from doing stupid things, 
because that would also stop you from doing clever things."




More information about the vbox-dev mailing list