pk@solaris:~/VirtualBox-5.0.12$ kmk all packing VBOX_OSE= kBuild: Pass - Build Programs kBuild: Pass - Libraries kBuild: Pass - DLLs kBuild: Pass - Programs kBuild: Compiling vboxfs_s10 - /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c In file included from /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:48:0: /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs.h:70:1: error: unknown type name ‘fs_operation_def_t’ extern const fs_operation_def_t g_VBoxVFS_vnodeops_template[]; ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c: In function ‘sffs_init’: /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:160:2: error: unknown type name ‘fs_operation_def_t’ static const fs_operation_def_t sffs_vfsops_template[] = { ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:161:3: error: excess elements in struct initializer VFSNAME_MOUNT, sffs_mount, ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:161:3: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:162:3: error: excess elements in char array initializer VFSNAME_UNMOUNT, sffs_unmount, ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:162:3: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:162:3: error: excess elements in struct initializer /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:162:3: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:163:3: error: excess elements in char array initializer VFSNAME_ROOT, sffs_root, ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:163:3: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:163:3: error: excess elements in struct initializer /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:163:3: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:164:3: error: excess elements in char array initializer VFSNAME_STATVFS, sffs_statvfs, ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:164:3: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:164:3: error: excess elements in struct initializer /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:164:3: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:165:3: error: excess elements in struct initializer NULL, NULL ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:165:3: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:166:2: error: excess elements in struct initializer }; ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:166:2: error: (near initialization for ‘sffs_vfsops_template’) /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:166:2: error: wide character array initialized from non-wide string /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:200:2: error: implicit declaration of function ‘vfs_setfsops’ [-Werror=implicit-function-declaration] error = vfs_setfsops(fstype, sffs_vfsops_template, NULL); ^ /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c: At top level: /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c:243:1: warning: ‘sffs_print’ defined but not used [-Wunused-function] sffs_print(sffs_data_t *sffs) ^ cc1: some warnings being treated as errors kmk: *** [/export/home/pk/VirtualBox-5.0.12/out/solaris.amd64/release/obj/vboxfs_s10/vboxfs_vfs.o] Error 1 The failing command: @gcc -c -O2 -Wpointer-arith -Winline -Wno-pointer-sign -Wmissing-prototypes -Wstrict-prototypes -fdiagnostics-show-option -Wshadow -Wuninitialized -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wformat -Wimplicit-int -Wimplicit-function-declaration -Werror-implicit-function-declaration -Wparentheses -O2 -fno-omit-frame-pointer -ffreestanding -nodefaultlibs -fno-strict-aliasing -fno-common -std=c99 -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-red-zone -mcmodel=kernel -fno-reorder-blocks -fno-asynchronous-unwind-tables -funit-at-a-time -I/export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/solaris10 -I/usr/platform/i86pc/include -I/usr/include -I/export/home/pk/VirtualBox-5.0.12/out/solaris.amd64/release/obj/vboxfs_s10/dtrace -I/export/home/pk/VirtualBox-5.0.12/include -I/export/home/pk/VirtualBox-5.0.12/out/solaris.amd64/release -DVBOX -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_SOLARIS -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox/amd64\" -DRTPATH_APP_PRIVATE_ARCH_TOP=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox/amd64\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R0DRV -DVBOX_WITH_NATIVE_DTRACE -D_MACHDEP -D_KERNEL -D_STRICT_STDC -DIN_GUEST -DIN_GUEST_R0 -DVBOX_WITH_HGCM -DVBOX_VFS_SOLARIS_10U6 -DVBOX_SVN_REV=104815 -Wp,-MD,/export/home/pk/VirtualBox-5.0.12/out/solaris.amd64/release/obj/vboxfs_s10/vboxfs_vfs.o.dep -Wp,-MT,/export/home/pk/VirtualBox-5.0.12/out/solaris.amd64/release/obj/vboxfs_s10/vboxfs_vfs.o -Wp,-MP -o /export/home/pk/VirtualBox-5.0.12/out/solaris.amd64/release/obj/vboxfs_s10/vboxfs_vfs.o /export/home/pk/VirtualBox-5.0.12/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c