[FUG-BR] FreeBSD no ESXi 5.1 (open-vm-tools x vmware tools oficial) - problemas com Clang

Welkson Renny de Medeiros welkson em gmail.com
Quinta Janeiro 10 12:01:58 BRST 2013


2013/1/10 Welinaldo Lopes Nascimento <welinaldo em bsd.com.br>

> Complementando o erro que ocorre ao compilar o vmblock do vmware-tools:
>
> Warning: Object directory not changed from original
> //vmware-tools-distrib/lib/modules/source/vmblock-only @ ->
> /usr/src/sys machine -> /usr/src/sys/amd64/includex86 ->
> /usr/src/sys/x86/include
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
> cc -O2 -pipe  -Wall -Werror -fno-strict-aliasing -Werror -D_KERNEL
> -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000
> --param inline-unit-growth=100 --param large-function-growth=1000
> -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx
> -mno-sse -msoft-float  -fno-asynchronous -unwind-tables -ffreestanding
> -fstack-protector -std=iso9899:1999 -fstack-protector -Wall
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes
>  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
> -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
> -fdiagnostics-show-option   -c block.c
> cc -O2 -pipe  -Wall -Werror -fno-strict-aliasing -Werror -D_KERNEL
> -DKLD_MODULE
> (.................)
> vfsops.c:387: error: 'VFS_STATFS' undeclared (first use in this function)
> vfsops.c: At top level:
> vfsops.c:427: error: conflicting types for 'VMBlockVFSSync'
> vfsops.c:70: error: previous declaration of 'VMBlockVFSSync' was here
> *** [vfsops.o] Error code 1
>


Wellinaldo,

Se puder, posta o erro que ocorre ao tentar compilar o kernel sem clang
(alteração feita no make.conf).

Provavelmente esse seu erro é porque esse código não compila com clang, só
com GCC.

Welkson


Mais detalhes sobre a lista de discussão freebsd