[8u] jdk8\hotspot\src\os\windows\vm\version.rc(57) : warning RC4003: not enough actual parameters for macro 'STR'

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Mon Mar 17 11:14:15 UTC 2014


Picking up an old mail that was cross-posted to build-dev some time ago...

It never seems anyone on the hotspot list replied to this. Since it's 
pure hotspot code it's out of scope for the build-dev list.

While this is a minor fix, we do want to get rid of warnings, and I 
think we should acknowledge all attributions from the community, and at 
the very least reply to them.

If the fix is not working or not needed, a reply stating that would be good.

/Magnus

On 2013-12-24 16:11, Francis ANDRE wrote:
> Hi
>
>
> On windows, the jdk8\hotspot\src\os\windows\vm\version.rc at line 57 
> is missing the HS_COMPANY:
>
>     BEGIN
>         BLOCK "000004b0"
>         BEGIN
>             VALUE "CompanyName",      XSTR(HS_COMPANY)       "\0"
>             VALUE "FileDescription",  XSTR(HS_FILEDESC)      "\0"
>             VALUE "FileVersion",      XSTR(HS_DOTVER)        "\0"
>             VALUE "Full Version",     XSTR(HS_BUILD_ID)      "\0"
>         VALUE "InternalName",     XSTR(HS_INTERNAL_NAME) "\0"
>             VALUE "LegalCopyright",   XSTR(HS_COPYRIGHT)     "\0"
>             VALUE "OriginalFilename", XSTR(HS_FNAME)         "\0"
>             VALUE "ProductName",      XSTR(HS_NAME)          "\0"
>             VALUE "ProductVersion",   XSTR(JDK_DOTVER)       "\0"
>         END
>
>
> That is why the resource compiler is producing this warning
>
> Z:\JDK\jdk8\hotspot\src\os\windows\vm\version.rc(57) : warning RC4003: 
> not enough actual parameters for macro 'STR'
>
>
>
> Here the fix to avoid this warning by setting up the HS_COMPANY to the 
> COMPANY_NAME variable in make/windows/build.make
>
> Francis
>
> --- a/make/windows/build.make
> +++ b/make/windows/build.make
> @@ -147,6 +147,8 @@
>  !endif
>  !endif
>
> +HS_COMPANY=$(COMPANY_NAME)
> +
>  # Following the Web Start / Plugin model here....
>  # We can have update versions like "01a", but Windows requires
>  # we use only integers in the file version field.  So:
>
>
>



More information about the hotspot-runtime-dev mailing list