From: Ravindra K. <rav...@vm...> - 2014-12-03 23:54:06
|
Matt, including you in the CC list for now, but you need to subscribe to the mailing list to post/receive messages in future. From: Ravindra Kumar Sent: Wednesday, December 03, 2014 3:33 PM To: ope...@li... Subject: RE: XDRUTL fails to compile Could you try following options: 1. Try the patch below: --- lib/dynxdr/xdrutil.c.org 2014-12-03 15:30:32.000065000 -0800 +++ lib/dynxdr/xdrutil.c 2014-12-03 15:30:56.000323000 -0800 @@ -24,8 +24,8 @@ #include <stdlib.h> #include <string.h> -#include "vm_assert.h" #include "vmxrpc.h" +#include "vm_assert.h" #include "xdrutil.h" -OR- 2. Try removing #include "vm_basic_defs.h" from vm_assert.h and include it on need basis wherever you hit compilation issues. From: Matt Emma [mailto:mat...@ct...] Sent: Tuesday, December 02, 2014 6:38 AM To: ope...@li...<mailto:ope...@li...> Subject: XDRUTL fails to compile I am trying to Cross Compile open-vm-tools for OpenWRT, I believe I am including the correct libraries/include directories, but it fails with the following when I begin to make, attached is the fill output, any guidance or suggestions would be appreciated: Thanks again, Matt Network Engineer /bin/sh ../../libtool --tag=CC --mode=compile x86_64-openwrt-linux-gcc -DPACKAGE_NAME=\"open-vm-tools\" -DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"9.4.6\" -DPACKAGE_STRING=\"open-vm-tools\ 9.4.6\" -DPACKAGE_BUGREPORT=\"ope...@li...\<mailto:ope...@li...\>" -DPACKAGE_URL=\"\" -DPACKAGE=\"open-vm-tools\" -DVERSION=\"9.4.6\" -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 -DNO_PROCPS=1 -DNO_DNET=1 -DHAVE_CRYPT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_IO_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SYSINFO_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_UNWIND_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/home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include -I/home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS -I/usr/include -DUSE_ICU -DHAVE_ICU_38 -DVMX86_TOOLS -DHAVE_GLIB_REGEX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -I/home/maemma/OpenWRT/openwrt/toolchain/eglibc/include -I/home/maemma/OpenWRT/openwrt/staging_dir/target-x86_64_uClibc-0.9.33.2/usr/include -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -Wno-unused-but-set-variable -MT xdrutil.lo -MD -MP -MF .deps/xdrutil.Tpo -c -o xdrutil.lo xdrutil.c libtool: compile: x86_64-openwrt-linux-gcc -DPACKAGE_NAME=\"open-vm-tools\" -DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"9.4.6\" "-DPACKAGE_STRING=\"open-vm-tools 9.4.6\"" -DPACKAGE_BUGREPORT=\"ope...@li...\<mailto:ope...@li...\>" -DPACKAGE_URL=\"\" -DPACKAGE=\"open-vm-tools\" -DVERSION=\"9.4.6\" -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 -DNO_PROCPS=1 -DNO_DNET=1 -DHAVE_CRYPT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_IO_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SYSINFO_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_UNWIND_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/home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include -I/home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS -I/usr/include -DUSE_ICU -DHAVE_ICU_38 -DVMX86_TOOLS -DHAVE_GLIB_REGEX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -I/home/maemma/OpenWRT/openwrt/toolchain/eglibc/include -I/home/maemma/OpenWRT/openwrt/staging_dir/target-x86_64_uClibc-0.9.33.2/usr/include -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -Wno-unused-but-set-variable -MT xdrutil.lo -MD -MP -MF .deps/xdrutil.Tpo -c xdrutil.c -fPIC -DPIC -o .libs/xdrutil.o In file included from /usr/include/rpc/types.h:94:0, from /home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include/vmxrpc.h:29, from xdrutil.c:28: /usr/include/sys/param.h:99:0: error: "MIN" redefined [-Werror] #define MIN(a,b) (((a)<(b))?(a):(b)) ^ In file included from /home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include/vm_assert.h:87:0, from xdrutil.c:27: /home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include/vm_basic_defs.h:124:0: note: this is the location of the previous definition #define MIN(_a, _b) (((_a) < (_b)) ? (_a) : (_b)) ^ In file included from /usr/include/rpc/types.h:94:0, from /home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include/vmxrpc.h:29, from xdrutil.c:28: /usr/include/sys/param.h:100:0: error: "MAX" redefined [-Werror] #define MAX(a,b) (((a)>(b))?(a):(b)) ^ In file included from /home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include/vm_assert.h:87:0, from xdrutil.c:27: /home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/include/vm_basic_defs.h:137:0: note: this is the location of the previous definition #define MAX(_a, _b) (((_a) > (_b)) ? (_a) : (_b)) ^ cc1: all warnings being treated as errors Makefile:443: recipe for target 'xdrutil.lo' failed make[2]: *** [xdrutil.lo] Error 1 make[2]: Leaving directory '/home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib/dynxdr' Makefile:440: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/maemma/OpenWRT/open-vm-tools-9.4.6-1770165/lib' Makefile:482: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 |