<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Am 11/14/16 um 12:22 schrieb Akira
TAGOH:<br>
</div>
<blockquote
cite="mid:CACT-Cx0JM41eSN4e44zUnhhmB3ktD_CHjvK0E9N0gf0Q1Zdqrg@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">Dunno. there might be something changed in the
newer gcc but no idea so far it works and apparently no fault we
can see such errors. so just suggesting to see the outcome how
it looks like with the newer gcc.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 14, 2016 at 8:09 PM, Klaus
Dittrich <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:kladit@arcor.de" target="_blank">kladit@arcor.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote">
<div>
<p><br>
</p>
<br>
<div class="m_8459108554287461007moz-cite-prefix">Am
11/14/16 um 09:38 schrieb Akira TAGOH:<br>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">Oops, you're right. but it is defined
at <a moz-do-not-send="true"
href="https://cgit.freedesktop.org/fontconfig/tree/src/fcmatch.c#n266"
rel="noreferrer" target="_blank">https://cgit.freedesktop.or<wbr>g/fontconfig/tree/src/fcmatch.<wbr>c#n266</a>
<div>You can see how your gcc generate the
preprocessed source code with -E. I can build it
with:</div>
<div>$ gcc --version</div>
<div>gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2)</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 14, 2016 at
4:53 PM, Klaus Dittrich <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:kladit@arcor.de"
target="_blank">kladit@arcor.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote">
<div>
<p><br>
</p>
<br>
<div
class="m_8459108554287461007m_-3447768876495063924moz-cite-prefix">Am
11/14/16 um 03:31 schrieb Akira TAGOH:<br>
</div>
<div>
<div class="m_8459108554287461007h5">
<blockquote type="cite">
<div dir="ltr">That line isn't in
2.12.1. I guess you are applying a
patch and it has an error. please
check.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Nov
13, 2016 at 6:51 PM, Klaus
Dittrich <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:kladit@arcor.de"
target="_blank">kladit@arcor.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote">Building
fontconfig-2.12.1 I get these
errors ..<br>
<br>
CC fcmatch.lo<br>
fcmatch.c:324:63: error:
'PRI_CHAR_WIDTH_STRONG'
undeclared here (not in a
function)<br>
#define FC_OBJECT(NAME, Type,
Cmp) { FC_##NAME##_OBJECT, Cmp,
PRI_##NAME##_STRONG,
PRI_##NAME##_WEAK },<br>
^<br>
fcobjs.h:54:1: note: in
expansion of macro 'FC_OBJECT'<br>
FC_OBJECT (CHAR_WIDTH,
FcTypeInteger, NULL)<br>
^~~~~~~~~<br>
fcmatch.c:324:84: error:
'PRI_CHAR_WIDTH_WEAK' undeclared
here (not in a function)<br>
#define FC_OBJECT(NAME, Type,
Cmp) { FC_##NAME##_OBJECT, Cmp,
PRI_##NAME##_STRONG,
PRI_##NAME##_WEAK },<br>
^<br>
fcobjs.h:54:1: note: in
expansion of macro 'FC_OBJECT'<br>
FC_OBJECT (CHAR_WIDTH,
FcTypeInteger, NULL)<br>
^~~~~~~~~<br>
make[3]: *** [Makefile:633:
fcmatch.lo] Error 1<br>
make[3]: Leaving directory
'/mnt/md1/sources/fontconfig/f<wbr>ontconfig-2.12.1/src'<br>
<br>
<br>
Compiler used is gcc (64 Bit)
version 6.2.1 20161110 and
before.<span
class="m_8459108554287461007m_-3447768876495063924HOEnZb"><br>
<br>
-- <br>
<br>
Klaus<br>
<br>
______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a moz-do-not-send="true"
href="mailto:Fontconfig@lists.freedesktop.org"
target="_blank">Fontconfig@lists.freedesktop.o<wbr>rg</a><br>
<a moz-do-not-send="true"
href="https://lists.freedesktop.org/mailman/listinfo/fontconfig"
rel="noreferrer"
target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
</span></blockquote>
</div>
<br>
<br>
<div><br>
</div>
-- <br>
<div
class="m_8459108554287461007m_-3447768876495063924gmail_signature"
data-smartmail="gmail_signature">Akira
TAGOH</div>
</div>
</blockquote>
</div>
</div>
Akira,<br>
<br>
I re-checked that no patches were applied.<br>
I loaded a fresh tar package <a
moz-do-not-send="true"
class="m_8459108554287461007m_-3447768876495063924moz-txt-link-freetext"
href="http://fontconfig.org/release/fontconfig-2.12.1.tar.bz2"
target="_blank">http://fontconfig.org/release/<wbr>fontconfig-2.12.1.tar.bz2</a><br>
and untared it.<br>
<br>
find . -name fcmatch.c<br>
./fontconfig-2.12.1/src/fcmatc<wbr>h.c<br>
<br>
vim ./fontconfig-2.12.1/src/fcmatc<wbr>h.c<br>
: set number<br>
<br>
319 /*<br>
320 * Order is significant, it defines the
precedence of<br>
321 * each value, earlier values are more
significant than<br>
322 * later values<br>
323 */<br>
324 #define FC_OBJECT(NAME, Type, Cmp) {
FC_##NAME##_OBJECT, Cmp,
PRI_##NAME##_STRONG, PRI_##NAME##_WEAK },<br>
325 static const FcMatcher _FcMatchers [] =
{<br>
326 { FC_INVALID_OBJECT, NULL, -1, -1
},<br>
327 #include "fcobjs.h"<br>
328 };<br>
329 #undef FC_OBJECT<br>
330 <br>
<br>
Note the PRI_##NAME##_STRONG,
PRI_##NAME##_WEAK in line 324.<br>
<br>
Are you using a different source package?<span
class="m_8459108554287461007HOEnZb"><br>
<br>
<pre class="m_8459108554287461007m_-3447768876495063924moz-signature" cols="72">--
Klaus
</pre>
</span></div>
</blockquote>
</div>
<br>
<br>
<div><br>
</div>
-- <br>
<div class="m_8459108554287461007gmail_signature"
data-smartmail="gmail_signature">Akira TAGOH</div>
</div>
</blockquote>
<br>
</div>
</div>
So this is a preprocessor problem of my newer gcc?<br>
--<br>
Klaus<br>
</div>
</blockquote>
</div>
<br>
<br>
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">Akira
TAGOH</div>
</div>
</blockquote>
<br>
Akira,<br>
<br>
your patch "Avoid conflicts with integer width macros from TS
18661-1:2014" of today<br>
solved the problem.<br>
<br>
Fontconfig git now compiles without error.<br>
<pre class="moz-signature" cols="72">--
Klaus
</pre>
</body>
</html>