Bug 102538 - clang build failure for 0.59.0 due to missing user-provided default constructor
Summary: clang build failure for 0.59.0 due to missing user-provided default constructor
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-04 15:59 UTC by ilovezfs
Modified: 2017-09-04 17:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch for building with clang (397 bytes, patch)
2017-09-04 15:59 UTC, ilovezfs
Details | Splinter Review

Description ilovezfs 2017-09-04 15:59:00 UTC
Created attachment 133962 [details] [review]
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:
https://gist.github.com/ilovezfs/84c900483ecb5633d1fad299c5f94c57

I am working around it with the following patch:
https://raw.githubusercontent.com/Homebrew/formula-patches/3b766b9/poppler/clang.diff

See https://github.com/Homebrew/homebrew-core/pull/17556
Comment 1 Albert Astals Cid 2017-09-04 17:43:35 UTC
that must be an old clang, my local clang 4.0 just builds fine, but i guess we can add that to make old clang happy.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.