<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Compile fails with latest mingw-w64 compiler"
href="https://bugs.freedesktop.org/show_bug.cgi?id=63459">63459</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compile fails with latest mingw-w64 compiler
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hib@hiberis.nl
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr></table>
<p>
<div>
<pre>When compiling poppler with the latest mingw-w64 compiler it fails with:
[ 320s] CXX perf-test.o
[ 321s] perf-test.cc: In function 'void strcpy_s(char*, size_t, const char*)':
[ 321s] perf-test.cc:329:58: error: new declaration 'void strcpy_s(char*,
size_t, const char*)'
[ 321s] void strcpy_s(char* dst, size_t dst_size, const char* src)
[ 321s] ^
[ 321s] In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:13:0,
[ 321s] from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:9,
[ 321s] from perf-test.cc:24:
[ 321s] /usr/i686-w64-mingw32/sys-root/mingw/include/sec_api/string_s.h:28:3:
error: ambiguates old declaration 'errno_t strcpy_s(char*, size_t, const
char*)'
[ 321s]
__CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_0_2_(errno_t,strcpy_s,char,,_Dst,size_t,,_SizeInBytes,const
char *,,_Src)
[ 321s] ^
[ 321s] perf-test.cc: In function 'void strcat_s(char*, size_t, const char*)':
[ 321s] perf-test.cc:342:58: error: new declaration 'void strcat_s(char*,
size_t, const char*)'
[ 321s] void strcat_s(char *dst, size_t dst_size, const char* src)
[ 321s] ^
[ 321s] In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:13:0,
[ 321s] from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:9,
[ 321s] from perf-test.cc:24:
[ 321s] /usr/i686-w64-mingw32/sys-root/mingw/include/sec_api/string_s.h:33:3:
error: ambiguates old declaration 'errno_t strcat_s(char*, size_t, const
char*)'
[ 321s]
__CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_0_2_(errno_t,strcat_s,char,,strDestination,size_t,,numberOfElements,const
char *,,strSource)
[ 321s] ^
The reasons for this failure is that the mingw-w64 compiler has strcpy_s and
strcat_s build in, but poppler tries to redefine it anyway.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>