Tracker item #3580059, was opened at 2012-10-25 01:33 Message generated for change (Comment added) made by yaberauneya You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=3580059&group_id=204462
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: libraries Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Garrett Cooper (yaberauneya) Assigned to: Nobody/Anonymous (nobody) Summary: Fix compile failure with %z on FreeBSD with clang Initial Comment: I run into the following issue with FreeBSD + clang... foundryMsg.c:2165:15: error: invalid conversion specifier 'Z' [-Werror,-Wformat-invalid-specifier] "(%"FMTSZ"u is required).\n", ~~^ /nfs/bayonetta/scratch/git/open-vm-tools/open-vm-tools/lib/include/vm_basic_types.h:353:26: note: expanded from macro 'FMTSZ' #define FMTSZ "Z" ^ foundryMsg.c:2269:39: error: invalid conversion specifier 'Z' [-Werror,-Wformat-invalid-specifier] Log("%s(%u): Message has only %"FMTSZ"u bytes available when " ~~^ /nfs/bayonetta/scratch/git/open-vm-tools/open-vm-tools/lib/include/vm_basic_types.h:353:26: note: expanded from macro 'FMTSZ' #define FMTSZ "Z" ^ foundryMsg.c:2270:26: error: invalid conversion specifier 'Z' [-Werror,-Wformat-invalid-specifier] "looking for %"FMTSZ"u bytes od data.\n", ~~^ /nfs/bayonetta/scratch/git/open-vm-tools/open-vm-tools/lib/include/vm_basic_types.h:353:26: note: expanded from macro 'FMTSZ' #define FMTSZ "Z" ^ 3 errors generated. *** Error code 1 Stop. bmake: stopped in /nfs/bayonetta/scratch/git/open-vm-tools/open-vm-tools/lib/foundryMsg *** Error code 1 Stop. bmake: stopped in /nfs/bayonetta/scratch/git/open-vm-tools/open-vm-tools/lib *** Error code 1 Stop. bmake: stopped in /nfs/bayonetta/scratch/git/open-vm-tools/open-vm-tools The attached patch fixes this (although maybe not in the cleanest manner possible). ---------------------------------------------------------------------- >Comment By: Garrett Cooper (yaberauneya) Date: 2012-10-25 02:27 Message: Interesting. The port maintainer fixed it a bit differently (from svn://svn.freebsd.org/ports/head/emulators/open-vm-tools/files/patch-vm_basic_types.h ): --- ./lib/include/vm_basic_types.h.orig 2010-10-20 05:19:54.000000000 +0900 +++ ./lib/include/vm_basic_types.h 2010-10-29 20:11:03.000000000 +0900 @@ -333,6 +333,7 @@ #define FMTPD "" #endif #elif defined(__linux__) \ + || (defined(__clang__)) \ || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) \ || (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) \ || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=3580059&group_id=204462 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ open-vm-tools-devel mailing list open-vm-tools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel