[MacPorts] #54358: texlive-bin @2017 won't build on Snow Leopard, Mac OS X 10.6.8, because "A compiler with support for C++11 language features is required"

MacPorts noreply at macports.org
Sun Aug 27 23:05:31 UTC 2017


#54358: texlive-bin @2017 won't build on Snow Leopard, Mac OS X 10.6.8, because "A
compiler with support for C++11 language features is required"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:  drkp
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:  fixed       |   Keywords:  mountain lion snowleopard leopard
      Port:  texlive-    |  tiger
  bin                    |
-------------------------+-------------------------------------------------

Comment (by kencu):

 mmm. Indeed, on 10.7 with the default setting of libstdc++, build of
 texlive-bin now fails with this:
 {{{
 In file included from pdftexdir/pdftosrc.cc:52:
 /opt/local/include/poppler/PDFDoc.h:295:153: error: use of undeclared
 identifier 'nullptr'
   void markPageObjects(Dict *pageDict, XRef *xRef, XRef *countRef, Guint
 numOffset, int oldRefNum, int newRefNum, std::set<Dict*>
 *alreadyMarkedDicts = nullptr);
 }}}

 I don't remember seeing this particular error before. This looks like
 something might have changed in poppler, and indeed it seems poppler was
 updated to 0.57.0 two days ago.  We're looking at a new error here now.

 Now that error can be solved by adding `-std=c++11` to the cxx build
 flags, but in doing so you run into this error later:

 {{{
 ./luatexdir/image/pdftoepdf.w:74:34: error: invalid suffix on literal;
 C++11 requires a space between literal and identifier [-Wreserved-user-
 defined-literal]
 snprintf(ck,PDF_CHECKSUM_SIZE,"%"PRIu64"_%"PRIu64,(uint64_t)size,(uint64_t)mtime);
                                  ^
 }}}

 All moving targets, eh? The cxx11 PortGroup is needed, but other
 adjustments will now be needed as well given the changes in poppler.

 Will need to dig in a bit to see a way through.

--
Ticket URL: <https://trac.macports.org/ticket/54358#comment:26>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list