<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - clang build failure for 0.59.0 due to missing user-provided default constructor"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102538">102538</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang build failure for 0.59.0 due to missing user-provided default constructor
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ilovezfs@icloud.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=133962" name="attach_133962" title="patch for building with clang">attachment 133962</a> <a href="attachment.cgi?id=133962&action=edit" title="patch for building with clang">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=102538&attachment=133962'>[review]</a>
patch for building with clang
This affects 0.59.0 (and 0.58.0) but does not affect 0.57.0.
The build failure with clang is
```
CXX libpoppler_la-StructElement.lo
StructElement.cc:264:32: error: default initialization of an object of const
type 'const AttributeDefaults' without a user-provided default constructor
static const AttributeDefaults attributeDefaults;
^
{}
1 error generated.
make[1]: *** [libpoppler_la-StructElement.lo] Error 1
make: *** [install-recursive] Error 1
```
A full build log is here:
<a href="https://gist.github.com/ilovezfs/84c900483ecb5633d1fad299c5f94c57">https://gist.github.com/ilovezfs/84c900483ecb5633d1fad299c5f94c57</a>
I am working around it with the following patch:
<a href="https://raw.githubusercontent.com/Homebrew/formula-patches/3b766b9/poppler/clang.diff">https://raw.githubusercontent.com/Homebrew/formula-patches/3b766b9/poppler/clang.diff</a>
See <a href="https://github.com/Homebrew/homebrew-core/pull/17556">https://github.com/Homebrew/homebrew-core/pull/17556</a></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>