Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642810 - app-text/poppler-0.61.1 failed compile: /usr/include/string.h:345:14: error: from previous declaration 'char* strtok_r(char*, const char*, char**) throw ()' extern char *strtok_r (char *__restrict __s, const char *__restrict __delim
Summary: app-text/poppler-0.61.1 failed compile: /usr/include/string.h:345:14: error: ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-31 08:30 UTC by Oschtan
Modified: 2017-12-31 20:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,37.53 KB, text/x-log)
2017-12-31 08:30 UTC, Oschtan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oschtan 2017-12-31 08:30:44 UTC
Created attachment 512146 [details]
build.log

[  9%] Building CXX object CMakeFiles/poppler.dir/fofi/FoFiTrueType.cc.o
/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -Dpoppler_EXPORTS -I/var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1 -I/var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1/fofi -I/var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1/goo -I/var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1/poppler -I/var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1_build -I/var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1_build/poppler -I/usr/include/freetype2   -DNDEBUG -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wsuggest-override -O2 -march=amdfam10 -pipe -Wnon-virtual-dtor -Woverloaded-virtual -fPIC   -pthread -std=c++11 -o CMakeFiles/poppler.dir/fofi/FoFiTrueType.cc.o -c /var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1/fofi/FoFiTrueType.cc
/var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1/goo/glibc_strtok_r.cc: In function 'char* strtok_r(char*, const char*, char**)':
/var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1/goo/glibc_strtok_r.cc:65:61: error: declaration of 'char* strtok_r(char*, const char*, char**)' has a different exception specifier
 char * strtok_r (char *s, const char *delim, char **save_ptr)
                                                             ^
In file included from /var/tmp/portage/app-text/poppler-0.61.1/work/poppler-0.61.1/goo/glibc_strtok_r.cc:61:0:
/usr/include/string.h:345:14: error: from previous declaration 'char* strtok_r(char*, const char*, char**) throw ()'
 extern char *strtok_r (char *__restrict __s, const char *__restrict __delim,
              ^
make[2]: *** [CMakeFiles/poppler.dir/build.make:447: CMakeFiles/poppler.dir/goo/glibc_strtok_r.cc.o] Error 1

Hmmm. /usr/include/string.h from sys-libs/glibc-2.26-r3... Downgrade glibc?
app-text/poppler-0.57.0-r1 with sys-libs/glibc-2.26-r3 compiled success
Comment 1 Andreas Sturmlechner gentoo-dev 2017-12-31 09:18:13 UTC
emerge --info missing.
Comment 2 Andreas Sturmlechner gentoo-dev 2017-12-31 09:21:18 UTC
>Compiler flags:
>C               -Wall -O2 -march=amdfam10 -pipe -std=c99
-std=c99
^ why are you doing that...