VirtualBox

Opened 8 years ago

Closed 8 years ago

#14806 closed defect (worksforme)

Linux shared folders compilation failure

Reported by: Jan Palus Owned by:
Component: other Version: VirtualBox 5.0.10
Keywords: Cc:
Guest type: other Host type: other

Description

Previous CT_ASSERT macro in src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c was replaced with a common one by including iprt/assert.h:

-/* Compile-time assertion.  If a == 0, we get two identical switch cases, which is not
-   allowed. */
-#define CT_ASSERT(a) \
-    do { \
-        switch(0) { case 0: case (a): ; } \
-    } while (0)
+#include <iprt/assert.h>

But it looks like include dirs were not adjusted:

+ x86_64-pld-linux-gcc -O2 -fwrapv -pipe -Wformat '-Werror=format-security' '-Wp,-D_FORTIFY_SOURCE=2' -fstack-protector-strong '--param=ssp-buffer-size=4' -fPIC '-march=x86-64' -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc -Wall -Werror src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c src/VBox/Additions/linux/sharedfolders/vbsfmount.c -o mount.vboxsf
src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c:48:25: fatal error: iprt/assert.h: No such file or directory
compilation terminated.

Change History (3)

comment:1 by Frank Mehnert, 8 years ago

Cannot reproduce, the file is there. How did you compile the Guest Additions?

comment:2 by Jan Palus, 8 years ago

Sorry, after double checking it turned out to be our build system quirk. Feel free to reject.

comment:3 by Frank Mehnert, 8 years ago

Resolution: worksforme
Status: newclosed

No problem. Hint: Use the following scripts to export .tar.gz archives which contain all files required to build the modules:

  • src/VBox/HostDrivers/linux/export_modules host_modules.tar.gz
  • src/VBox/Additions/linux/export_modules guest_modules.tar.gz
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use