[vlc-devel] Cannot compile master for Windows

David R. Robison david.robison at openroadsconsulting.com
Thu Mar 19 23:52:48 CET 2015


The prolem seems to be that in the time_s.h file the check for

#if defined(MINGW_HAS_SECURE_API)

is false so the secured API's do not get compiled in. However, 
localtime_r requires the localtime_s function.
David

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

David R Robison

*Principal Systems Engineer*

+1 757 546 3401 (o)

+1 757 286 0022 (m)

david.robison at openroadsconsulting.com 
<mailto:david.robison at openroadsconsulting.com>

www.openroadsconsulting.com

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

Open Roads Consulting

A Q-Free Company

103 Watson Rd. Chesapeake VA 23320

On 3/19/2015 11:42 AM, David R. Robison wrote:
> Unfortunately, that didn't help. It still gives the same error. David
>
> ----------------------------------------------------------------------------
>
> David R Robison
>
> *Principal Systems Engineer*
>
> +1 757 546 3401 (o)
>
> +1 757 286 0022 (m)
>
> david.robison at openroadsconsulting.com 
> <mailto:david.robison at openroadsconsulting.com>
>
> www.openroadsconsulting.com
>
> ----------------------------------------------------------------------------
>
> Open Roads Consulting
>
> A Q-Free Company
>
> 103 Watson Rd. Chesapeake VA 23320
>
> On 3/19/2015 10:38 AM, Steve Lhomme wrote:
>> For some reason mingw doesn't inline the code properly. I had to 
>> modify C:\msys64\mingw32\i686-w64-mingw32\include\sec_api\time_s.h 
>> the following way:
>>
>> #define localtime_s(tm, time) _localtime32_s(tm, time)
>> //__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const 
>> time_t *_Time) { return _localtime32_s(_Tm,_Time); }
>>
>>
>> #define localtime_s(tm, time) _localtime64_s(tm, time)
>> //__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const 
>> time_t *_Time) { return _localtime64_s(_Tm,_Time); }
>>
>>
>> On Thu, Mar 19, 2015 at 3:19 PM, David R. Robison 
>> <david.robison at openroadsconsulting.com 
>> <mailto:david.robison at openroadsconsulting.com>> wrote:
>>
>>     I just cloned the VLC master and tried to compile it for windows.
>>     I am getting the following error:
>>
>>     make  all-recursive
>>     make[1]: Entering directory `/home/david/vlc/win32'
>>     Making all in compat
>>     make[2]: Entering directory `/home/david/vlc/win32/compat'
>>     make  all-am
>>     make[3]: Entering directory `/home/david/vlc/win32/compat'
>>       CC       localtime_r.lo
>>     ../../extras/package/win32/../../../compat/localtime_r.c: In
>>     function ‘localtime_r’:
>>     ../../extras/package/win32/../../../compat/localtime_r.c:38:5:
>>     error: implicit declaration of function ‘localtime_s’
>>     [-Werror=implicit-function-declaration]
>>          return ((errno = localtime_s(result, timep)) == 0) ? result
>>     : NULL;
>>          ^
>>     cc1: some warnings being treated as errors
>>     make[3]: *** [localtime_r.lo] Error 1
>>     make[3]: Leaving directory `/home/david/vlc/win32/compat'
>>     make[2]: *** [all] Error 2
>>     make[2]: Leaving directory `/home/david/vlc/win32/compat'
>>     make[1]: *** [all-recursive] Error 1
>>     make[1]: Leaving directory `/home/david/vlc/win32'
>>     make: *** [all] Error 2
>>
>>     Any idea what may be wrong?
>>     David
>>     -- 
>>
>>     ----------------------------------------------------------------------------
>>
>>     David R Robison
>>
>>     *Principal Systems Engineer*
>>
>>     +1 757 546 3401 <tel:%2B1%20757%20546%203401> (o)
>>
>>     +1 757 286 0022 <tel:%2B1%20757%20286%200022> (m)
>>
>>     david.robison at openroadsconsulting.com
>>     <mailto:david.robison at openroadsconsulting.com>
>>
>>     www.openroadsconsulting.com <http://www.openroadsconsulting.com>
>>
>>     ----------------------------------------------------------------------------
>>
>>     Open Roads Consulting
>>
>>     A Q-Free Company
>>
>>     103 Watson Rd. Chesapeake VA 23320
>>
>>
>>
>>     ------------------------------------------------------------------------
>>     This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
>>     If you are not the intended recipient, please delete this email immediately.
>>
>>     _______________________________________________
>>     vlc-devel mailing list
>>     To unsubscribe or modify your subscription options:
>>     https://mailman.videolan.org/listinfo/vlc-devel
>>
>>
>>
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>
>
>
> ------------------------------------------------------------------------
> This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
> If you are not the intended recipient, please delete this email immediately.
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150319/c85364aa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: orci-qfree.png
Type: image/png
Size: 8284 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150319/c85364aa/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8284 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150319/c85364aa/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8284 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150319/c85364aa/attachment-0002.png>


More information about the vlc-devel mailing list