I tried compiling the latest open-vm-tools (9.10.0-2476743) under FreeBSD, and I was unable to compile them at all due to multiple compiler errors/warnings.
Is there an ETA for the code to be fixed, and if not should it be patches in the FreeBSD port or an upstream change?
I’ve attached a log of the compilation process with failures highlighted.
Thanks for the details. We will get this addressed in the next update of open-vm-tools.
Ravindra:
Let me know when that update is available.
Sent from my iPhone
Related
Tracker: #186
Could you please check this out with latest release of open-vm-tools http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools/stable-9.10.x/open-vm-tools-9.10.2-2822639.tar.gz ?
Ravindra:
I tried compiling 9.10.2-2822639 with the clang compiler and these options:
"./configure --prefix=$HOME/build --without-x --without-dnet --without-icu --without-xerces”
The configure script ran without incident, but the build failed with these messages:
————
libtool: compile: cc -DPACKAGE_NAME=\"open-vm-tools\" -DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"9.10.2\" "-DPACKAGE_STRING=\"open-vm-tools 9.10.2\"" -DPACKAGE_BUGREPORT=\"open-vm-tools-devel@lists.sourceforge.net\" -DPACKAGE=\"open-vm-tools\" -DVERSION=\"9.10.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DX_DISPLAY_MISSING=1 -DHAVE_DLOPEN=1 -DNO_PROCPS=1 -DNO_DNET=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 -DNO_XSM=1 -DNO_XCOMPOSITE=1 -DNO_MULTIMON=1 -I. -I/usr/local/include -I/usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/include -I/usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/include -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS -I/usr/local/include -DNO_ICU -DVMX86_TOOLS -g -O2 -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -Wno-deprecated-declarations -MT libSslDirect_la-sslDirect.lo -MD -MP -MF .deps/libSslDirect_la-sslDirect.Tpo -c sslDirect.c -o libSslDirect_la-sslDirect.o
sslDirect.c:408:40: error: invalid conversion specifier 'Z'
[-Werror,-Wformat-invalid-specifier]
SSL_LOG(("SSL: Read(%d, %p, %"FMTSZ"u): %d\n",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/include/vm_basic_types.h:349:26: note:
expanded from macro 'FMTSZ'
#define FMTSZ "Z"
^
sslDirect.c:55:26: note: expanded from macro 'SSL_LOG'
define SSL_LOG(x) Debug x
sslDirect.c:507:40: error: invalid conversion specifier 'Z'
[-Werror,-Wformat-invalid-specifier]
SSL_LOG(("SSL: Read(%d, %p, %"FMTSZ"u): %d\n",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/include/vm_basic_types.h:349:26: note:
expanded from macro 'FMTSZ'
#define FMTSZ "Z"
^
sslDirect.c:55:26: note: expanded from macro 'SSL_LOG'
define SSL_LOG(x) Debug x
2 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/sslDirect
*** Error code 1
Stop.
make[1]: stopped in /usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib
*** Error code 1
Stop.
make: stopped in /usr/home/dcarmich/open-vm-tools-9.10.2-2822639
——
This is with the default clang compiler:
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
—Douglas
Related
Tracker: #186
Hi Douglas,
we don't suport building with clang. You need to install gcc on FreeBSD.
Prerequisites: install gcc48 with the command
pkg install gcc
Install build dependencies: glib libdnet libXinerama libXrandr gtk2 gtkmm24
Instructions for building:
autoreconf -i --force
env CC=gcc48 CFLAGS=-Wl,-rpath=/usr/local/lib/gcc48 CPPFLAGS="-I/usr/local/include/" LIBS="-L/usr/local/lib" ./configure --without-kernel-modules --without-xmlsecurity --without-icu --disable-vgauth --disable-grabbitmqproxy --disable-deploypkg
make
Let us know if this works for you.
Oliver
From: Douglas Carmichael dcarmichael@users.sf.net
Sent: Thursday, July 9, 2015 12:24 AM
To: [open-vm-tools:tracker]
Subject: [open-vm-tools:tracker] Re: #186 open-vm-tools 9.10.0-2476743 will not build on FreeBSD 10.1-RELEASE
Ravindra:
I tried compiling 9.10.2-2822639 with the clang compiler and these options:
"./configure --prefix=$HOME/build --without-x --without-dnet --without-icu --without-xerces”
The configure script ran without incident, but the build failed with these messages:
————
libtool: compile: cc -DPACKAGE_NAME=\"open-vm-tools\" -DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"9.10.2\" "-DPACKAGE_STRING=\"open-vm-tools 9.10.2\"" -DPACKAGE_BUGREPORT=\"open-vm-tools-devel@lists.sourceforge.net\" -DPACKAGE=\"open-vm-tools\" -DVERSION=\"9.10.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DX_DISPLAY_MISSING=1 -DHAVE_DLOPEN=1 -DNO_PROCPS=1 -DNO_DNET=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 -DNO_XSM=1 -DNO_XCOMPOSITE=1 -DNO_MULTIMON=1 -I. -I/usr/local/include -I/usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/include -I/usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/include -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS -I/usr/local/include -DNO_ICU -DVMX86_TOOLS -g -O2 -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -Wno-deprecated-declarations -MT libSslDirect_la-sslDirect.lo -MD -MP -MF .deps/libSslDirect_la-sslDirect.Tpo -c sslDirect.c -o libSslDirect_la-sslDirect.o
sslDirect.c:408:40: error: invalid conversion specifier 'Z'
[-Werror,-Wformat-invalid-specifier]
SSL_LOG(("SSL: Read(%d, %p, %"FMTSZ"u): %d\n",
/usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/include/vm_basic_types.h:349:26: note:
expanded from macro 'FMTSZ'
define FMTSZ "Z"
^
sslDirect.c:55:26: note: expanded from macro 'SSL_LOG'
define SSL_LOG(x) Debug x
^
sslDirect.c:507:40: error: invalid conversion specifier 'Z'
[-Werror,-Wformat-invalid-specifier]
SSL_LOG(("SSL: Read(%d, %p, %"FMTSZ"u): %d\n",
/usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/include/vm_basic_types.h:349:26: note:
expanded from macro 'FMTSZ'
define FMTSZ "Z"
^
sslDirect.c:55:26: note: expanded from macro 'SSL_LOG'
define SSL_LOG(x) Debug x
^ 2 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib/sslDirect
*** Error code 1
Stop.
make[1]: stopped in /usr/home/dcarmich/open-vm-tools-9.10.2-2822639/lib
*** Error code 1
Stop.
make: stopped in /usr/home/dcarmich/open-vm-tools-9.10.2-2822639
——
This is with the default clang compiler:
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
—Douglas
On Jul 9, 2015, at 12:49 AM, Ravindra Kumar ravindravmw@users.sf.net wrote:
Could you please check this out with latest release of open-vm-tools http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools/stable-9.10.x/open-vm-tools-9.10.2-2822639.tar.gz http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools/stable-9.10.x/open-vm-tools-9.10.2-2822639.tar.gz ?
[tracker:#186] http://sourceforge.net/p/open-vm-tools/tracker/186 open-vm-tools 9.10.0-2476743 will not build on FreeBSD 10.1-RELEASE
Status: open
Group: v1.0 (example)
Created: Wed Apr 08, 2015 06:40 PM UTC by Douglas Carmichael
Last Updated: Wed Apr 08, 2015 07:33 PM UTC
Owner: nobody
I tried compiling the latest open-vm-tools (9.10.0-2476743) under FreeBSD, and I was unable to compile them at all due to multiple compiler errors/warnings.
Is there an ETA for the code to be fixed, and if not should it be patches in the FreeBSD port or an upstream change?
I’ve attached a log of the compilation process with failures highlighted.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/open-vm-tools/tracker/186/ https://sourceforge.net/p/open-vm-tools/tracker/186
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions
[tracker:#186] open-vm-tools 9.10.0-2476743 will not build on FreeBSD 10.1-RELEASE
Status: open-fixed
Group: v1.0 (example)
Created: Wed Apr 08, 2015 06:40 PM UTC by Douglas Carmichael
Last Updated: Thu Jul 09, 2015 05:51 AM UTC
Owner: nobody
I tried compiling the latest open-vm-tools (9.10.0-2476743) under FreeBSD, and I was unable to compile them at all due to multiple compiler errors/warnings.
Is there an ETA for the code to be fixed, and if not should it be patches in the FreeBSD port or an upstream change?
I’ve attached a log of the compilation process with failures highlighted.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/open-vm-tools/tracker/186/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tracker: #186
Oliver:
I tried building as you said, and configure failed with an “unknown architecture” warning with the ‘amd64-unknown-freebsd10.1’ architecture.
—Douglas
Related
Tracker: #186
I was able to get open-vm-tools 9.10.2-2822639 to build with clang 3.4.1 on FreeBSD 10.2-RELEASE using the attached source patches.
(Most of the patches were to stop clang from complaining about unused functions/declaration issues, but I also found that changing the definition of FMTSZ in lib/include/vm_basic_types.h to a lowercase 'z' got rid of that particular error, too.)
I also had to copy over kernelStubsSal.h from modules/linux/shared into modules/freebsd/shared.
Here is what I found that works:
1) Apply the attached patches.
2) Regenerate the configure scripts using 'autoreconf -i' and make the resulting ./configure script executable.
3) Configure the build as follows: 'env LDFLAGS=-Wl,-allow-multiple-definition ./configure --prefix=/usr/local --without-xmlsecurity --without-icu --disable-vgauth --disable-grabbitmqproxy --disable-deploypkg --without-x --without-dnet'
4) Do 'make / make install.'
Not having an ESXi installation myself, I was only able to test basic shutdown/restart functionality with Fusion Pro 8.0. But, it seems to be functional with no core dumps/panics.
Ravindra et al, what would it take to fix the configure scripts in the tarball itself so that it would be easier to incorporate open-vm-tools into FreeBSD's ports?
Thanks in advance!
--Douglas