VirtualBox

9 年 前 建立

9 年 前 結束

#14806 closed defect (worksforme)

Linux shared folders compilation failure

回報者: Jan Palus 負責人:
元件: other 版本: VirtualBox 5.0.10
關鍵字: 副本:
Guest type: other Host type: other

描述

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.

更動歷史 (3)

comment:1 9 年 前Frank Mehnert 編輯

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

comment:2 9 年 前Jan Palus 編輯

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

comment:3 9 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: worksforme

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
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette