Opened 6 years ago

Closed 6 years ago

#56679 closed defect (fixed)

poppler @0.65.0: error: use of undeclared identifier 'nullptr'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: drkp (Dan Ports)
Port: poppler

Change History (4)

comment:1 Changed 6 years ago by kencu (Ken)

Adding this worked for me on 10.6.8, clang-3.9, libc++:

configure.cxxflags-append -std=c++11

Not quite sure why every system doesn't need this added.

comment:2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

One reason might be that clang 5 and earlier defaulted to -std=gnu++98 while clang 6 and later default to -std=gnu++14.

comment:3 Changed 6 years ago by kencu (Ken)

Interestingly, the build of poppler fails on 10.13 when building with macports-clang-5.0, but succeeds when building with /usr/bin/clang. Also, the build with /usr/bin/clang has this added -std=c++11 to the build line somewhere, somehow.

So clearly we'll just add that -std=c++11 to all builds, and fix this issue.

comment:4 Changed 6 years ago by Ken <21211439+kencu@…>

Resolution: fixed
Status: assignedclosed

In bf4d73a126ead4f916d0a7c8f6570de5dd511880/macports-ports (master):

poppler: add -std=c++11 to all builds

fixes builds with compilers that don't automatically default to this.
closes: #56679

Note: See TracTickets for help on using tickets.