When building with gcc6, qpdf fails with the following error: /bin/sh ./libtool --quiet --mode=compile g++6 -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc6 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc6 -Wold-style-cast -Wall -MD -MF libqpdf/build/QUtil.tdep -MP -Iinclude -Ilibqpdf -I/usr/local/include -c libqpdf/QUtil.cc -o libqpdf/build/QUtil.o; sed -e 's/\.o:/.lo:/' < libqpdf/build/QUtil.tdep > libqpdf/build/QUtil.dep libqpdf/QUtil.cc: In function 'void QUtil::setLineBuf(FILE*)': libqpdf/QUtil.cc:233:45: error: invalid cast from type 'std::nullptr_t' to type 'char*' setvbuf(f, reinterpret_cast<char *>(NULL), _IOLBF, 0); ^ It builds fine with lang/gcc5
Confirmed for 7.1.0 and USE_GCC=6. However, it builds fine with USE_GCC=5. Is this an important problem given that clang is a default compiler?
Clang is default for amd64/i386 and arm/arm64, but not for most tier2 platforms, which I run powerpc.
This is a general C++ error on both gcc6 and latest clang on 12-CURRENT: https://github.com/qpdf/qpdf/issues/177 It is not a port-specific problem.
I'm going to label this report as duplicate of bug#225226 because the pending update to qpdf-7.1.0 there will resolve this problem through the temporary port patch. *** This bug has been marked as a duplicate of bug 225226 ***