Tracker item #3580059, was opened at 2012-10-25 01:33
Message generated for change (Tracker Item Submitted) 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).

----------------------------------------------------------------------

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

Reply via email to