Hello,
Not strictly a fedora devel question but I’m hoping all the experience and
knowledge will be able to help. I need a newer poppler in epel 7. I’ve managed
to bring it up to 0.68. However moving past that results in a compilation
error. It seems the compiler (?) needs to support the c++14 standard. I’m using
devtoolset-8 to get gcc 8.3.1 and from what I can find via google, this really
should support c++14 (in this case std::string_literals). However when it
compiles it sets the std to c++1y which was an alias for the draft of c++14
from what I can gather. If I go into a mock shell however and manually run it
with --std=c++14 it still fails. When I grep through the includes for each it
seems both have definitions for them but it still fails. Can anyone supplement
what I have wrong here? Should c++ 8.3.1 be able to handle
std::string_literals? It somewhat confuses me that people are talking about the
compiler and not some library supporting it. Any pointers/help would be
appreciated. Here’s a snippet of the build log.
/usr/bin/c++ -Dpoppler_EXPORTS -I/builddir/build/BUILD/poppler-0.73.0
-I/builddir/build/BUILD/poppler-0.73.0/fofi
-I/builddir/build/BUILD/poppler-0.73.0/goo
-I/builddir/build/BUILD/poppler-0.73.0/poppler
-I/builddir/build/BUILD/poppler-0.73.0/build
-I/builddir/build/BUILD/poppler-0.73.0/build/poppler -I/usr/include/freetype2
-I/usr/include/openjpeg-2.3 -Wall -Wextra -Wpedantic -Wno-unused-parameter
-Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op
-Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual
-Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -fno-exceptions
-fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -g -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-DQT_NO_DEBUG -fPIC -I/usr/include/nss3 -I/usr/include/nspr4 -pthread
-std=c++1y -o CMakeFiles/poppler.dir/fofi/FoFiType1.cc.o -c
/builddir/build/BUILD/poppler-0.73.0/fofi/FoFiType1.cc
/builddir/build/BUILD/poppler-0.73.0/goo/gfile.cc:70:22: error:
'string_literals' is not a namespace-name
using namespace std::string_literals;
^
/builddir/build/BUILD/poppler-0.73.0/goo/gfile.cc:70:37: error: expected
namespace-name before ';' token
using namespace std::string_literals;
^
/builddir/build/BUILD/poppler-0.73.0/goo/gfile.cc: In function 'FILE*
openFile(const char*, const char*)':
/builddir/build/BUILD/poppler-0.73.0/goo/gfile.cc:369:38: error: unable to find
string literal operator 'operator"" s'
const std::string modeStr = mode + "e”s;
Thanks in advance for anyone able to shed some light on this for me.
Sincerely,
—
Nathanael
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]