Subject: | Compilation error with threaded perls |
Compiling util.cc fails with threaded perls:
...
c++ -c -Isrc -I/opt/perl-5.25.11t/lib/site_perl/5.25.11/x86_64-linux-thread-multi/Panda/Time.x/i -I/opt/perl-5.25.11t/lib/site_perl/5.25.11/x86_64-linux-thread-multi/Panda/XS.x/i -I/opt/perl-5.25.11t/lib/site_perl/5.25.11/x86_64-linux-thread-multi/Panda/Lib.x/i -I/opt/perl-5.25.11t/lib/site_perl/5.25.11/x86_64-linux-thread-multi/Panda/XS.x/i -I/opt/perl-5.25.11t/lib/site_perl/5.25.11/x86_64-linux-thread-multi/Panda/Lib.x/i -I/opt/perl-5.25.11t/lib/site_perl/5.25.11/x86_64-linux-thread-multi/Panda/XS.x/i -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -o util.o -std=c++11 -g0 -O2 -DVERSION=\"3.0.4\" -DXS_VERSION=\"3.0.4\" -fPIC "-I/opt/perl-5.25.11t/lib/5.25.11/x86_64-linux-thread-multi/CORE" util.cc
In file included from util.h:2:0,
from util.cc:1:
Date.h: In function âconst panda::time::Timezone* xs::date::tzget_required(PerlInterpreter*, SV*)â:
Date.h:27:66: error: cannot convert âSV* {aka sv*}â to âPerlInterpreter* {aka interpreter*}â for argument â1â to âstd::string_view xs::lib::sv2string_view(PerlInterpreter*, SV*)â
return tzget(zone != NULL && SvOK(zone) ? sv2string_view(zone) : string_view());
^
Date.h: In function âconst panda::time::Timezone* xs::date::tzget_optional(PerlInterpreter*, SV*)â:
Date.h:31:57: error: cannot convert âSV* {aka sv*}â to âPerlInterpreter* {aka interpreter*}â for argument â1â to âstd::string_view xs::lib::sv2string_view(PerlInterpreter*, SV*)â
return zone ? tzget(SvOK(zone) ? sv2string_view(zone) : string_view()) : NULL;
^
make: *** [util.o] Error 1
...