[Spice-devel] [vdagent-win] mingw: Don't define OLDMSCVRT for mingw builds

Arnon Gilboa agilboa at redhat.com
Tue Nov 20 00:03:55 PST 2012


Christophe Fergeau wrote:
> On Mon, Nov 19, 2012 at 08:33:36AM -0500, Marc-André Lureau wrote:
>   
>> ----- Mensaje original -----
>>     
>>> When it's defined, this causes some fallback code to be used. In
>>> particular, this causes log messages to not get timestamps.
>>> Issue reported by Han Pilmeyer.
>>>       
>> You can also try to implement timing with old/default msvcrt, but I
>> wouldn't bother going in that direction.
>>     
>
> Depends on the amount of work, could be just a few lines of code.
>
>   
>> Ie, do we require a newer MSVCRT and keep doing logging the wrong way, or
>> do we use default MSVCRT and switch to a proper logging. I don't think
>> the timestamp are really wanted here anyway (why is it needed in the
>> first place?), and people who need it can compile the agent without
>> OLDMSVCRT or with MSVC.
>>     
>
> Depends how new is the newer MSVCRT. If it's present in winxp sp3 and
> newer, we should be good. 
agree
> I assume MSVCRT is always dynamically linked?
>   
statically linked with msvcrt.lib which uses msvcrX.dll at runtime
> mingw-vdagent uses -static when building, and built successfully with this
> change. 
nice
> How does this work with MSVC++ builds by the way? Do they
> statically link with the newer msvcrt version?
>
>   
using static RTL, libcmt.lib (/MT compiler flag)
> Regarding timestamps in logs, they are useful to know how recent a log is,
> ie can the issue I just got be related to this weird log line, or has this
> log been present in the file for days now?
>   
see rhbz #672828
> Christophe
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>   



More information about the Spice-devel mailing list