Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2013 15:00:58 +0700 (ICT)
From:      Olivier Nicole <Olivier.Nicole@cs.ait.ac.th>
To:        freebsd-questions@freebsd.org
Subject:   Cannot make open-vm-tools on 9.1
Message-ID:  <201306110800.r5B80wsG018613@banyan.cs.ait.ac.th>

next in thread | raw e-mail | index | archive | help
Hi,

I have a strange thin happening to me. I upgraded two machines from
8.3 to 9.1:

FreeBSD sysl2.cs.ait.ac.th 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #3: Fri May 31
14:59:20 ICT 2013     root@fbsd63:/usr/obj/usr/src/sys/GENERIC  i386

I did both upgrade in parallel.

On the first machine, I managed to intall open-vm-tools-nox11:

open-vm-tools-nox11-425873_3,1 Open VMware tools for FreeBSD VMware guests

but when I try to install it on the second machine, I have a compile
error (see below).

Now I try to rebuild open-vm-tools on the first machine and I get the
same compile error.

I am at lost at what is happening and what I should try.

On a side note, I noticed that /usr/include/sys/types.h and
/usr/src/sys/sys/include/types.h are different; the first one
appearing to be quite older (older version number). I did the system
upgrade in a very standard way (cvsup, make buildworld, make kernel,
make installworld, mergemaster, etc.). Why the discrepancies?

Help is needed...

TIA,

Olivier

---- The failling compile of open-vm-tools

Making all in modules
make VM_UNAME=9.1-RELEASE-p3 MV=mv RM=rm       OVT_SOURCE_DIR=/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873                  MODULEBUILDDIR=/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/modules/freebsd          -C "/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/modules/freebsd/vmmemctl"
cc1: warnings being treated as errors
In file included from @/sys/types.h:44,
                 from @/sys/param.h:86,
                 from /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib/include/vm_basic_types.h:225,
                 from os.c:36:
./machine/endian.h: In function '__bswap64':
./machine/endian.h:123: warning: right shift count >= width of type
./machine/endian.h:123: warning: right shift count >= width of type
./machine/endian.h:123: warning: left shift count >= width of type
./machine/endian.h:123: warning: left shift count >= width of type
./machine/endian.h:123: warning: left shift count >= width of type
./machine/endian.h:123: warning: left shift count >= width of type
./machine/endian.h:123: warning: left shift count >= width of type
In file included from @/sys/param.h:86,
                 from /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib/include/vm_basic_types.h:225,
                 from os.c:36:
@/sys/types.h: At top level:
@/sys/types.h:92: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cap_rights_t'
In file included from @/sys/param.h:114,
                 from /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib/include/vm_basic_types.h:225,
                 from os.c:36:
@/sys/time.h: In function 'bintime2timespec':
@/sys/time.h:112: warning: right shift count >= width of type
@/sys/time.h:112: warning: right shift count >= width of type
@/sys/time.h: In function 'bintime2timeval':
@/sys/time.h:129: warning: right shift count >= width of type
@/sys/time.h:129: warning: right shift count >= width of type
In file included from @/sys/systm.h:42,
                 from os.c:38:
./machine/cpufunc.h: In function 'rdmsr':
./machine/cpufunc.h:311: warning: left shift count >= width of type
./machine/cpufunc.h: In function 'rdpmc':
./machine/cpufunc.h:320: warning: left shift count >= width of type
./machine/cpufunc.h: In function 'rdtsc':
./machine/cpufunc.h:329: warning: left shift count >= width of type
./machine/cpufunc.h: In function 'wrmsr':
./machine/cpufunc.h:350: warning: right shift count >= width of type
In file included from @/sys/mutex.h:41,
                 from @/sys/eventhandler.h:34,
                 from @/sys/conf.h:44,
                 from os.c:42:
@/sys/pcpu.h: At top level:
@/sys/pcpu.h:156: error: expected specifier-qualifier-list before 'cpumask_t'
In file included from @/vm/pmap.h:89,
                 from os.c:48:
./machine/pmap.h:247: error: expected specifier-qualifier-list before 'cpumask_t'
os.c: In function 'os_balloonobject_create':
os.c:416: warning: left shift count >= width of type
os.c:416: warning: left shift count >= width of type
os.c:416: warning: left shift count >= width of type
os.c:416: warning: left shift count >= width of type
*** [os.o] Error code 1

Stop in /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/modules/freebsd/vmmemctl.
*** [vmmemctl] Error code 1




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306110800.r5B80wsG018613>