Skip Menu |

This queue is for tickets about the Lingua-Identify-CLD2 CPAN distribution.

Report information
The Basics
Id: 121549
Status: open
Priority: 0/
Queue: Lingua-Identify-CLD2

People
Owner: Nobody in particular
Requestors: ZDM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: build errors under strawberry perl 5.24 x64
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields -xc++ -Isrc/cld2/internal -Isrc/cld2/public -Icld2/internal -Icld2/public -Isrc -Ibuildtmp -s -O2 -I"D:\devel\perl\perl\lib\CORE" -I"D:\devel\perl\c\include" -o "src\myconversions.o" "src\myconversions.cc" In file included from D:\devel\perl\perl\lib\CORE/perl.h:2684:0, from src\myconversions.h:6, from src\myconversions.cc:2: src\myconversions.cc: In function 'HV* language_to_hash(CLD2::Language, int, double)': D:\devel\perl\perl\lib\CORE/perl.h:166:16: error: 'my_perl' was not declared in this scope # define aTHX my_perl ^ D:\devel\perl\perl\lib\CORE/handy.h:64:41: note: in definition of macro 'MUTABLE_PTR' # define MUTABLE_PTR(p) ({ void *_p = (p); _p; }) ^ D:\devel\perl\perl\lib\CORE/hv.h:629:17: note: in expansion of macro 'MUTABLE_HV' #define newHV() MUTABLE_HV(newSV_type(SVt_PVHV)) ^ D:\devel\perl\perl\lib\CORE/perl.h:179:18: note: in expansion of macro 'aTHX' # define aTHX_ aTHX, ^ D:\devel\perl\perl\lib\CORE/embed.h:398:40: note: in expansion of macro 'aTHX_' #define newSV_type(a) Perl_newSV_type(aTHX_ a) ^ D:\devel\perl\perl\lib\CORE/hv.h:629:28: note: in expansion of macro 'newSV_type' #define newHV() MUTABLE_HV(newSV_type(SVt_PVHV)) ^ src\myconversions.cc:39:14: note: in expansion of macro 'newHV' HV *hv = newHV(); ^ In file included from src\myconversions.h:6:0, from src\myconversions.cc:2: D:\devel\perl\perl\lib\CORE/perl.h:166:16: error: 'my_perl' was not declared in this scope # define aTHX my_perl ^ D:\devel\perl\perl\lib\CORE/perl.h:179:18: note: in expansion of macro 'aTHX' # define aTHX_ aTHX, ^ D:\devel\perl\perl\lib\CORE/handy.h:417:26: note: in expansion of macro 'aTHX_' ((SV **)Perl_hv_common(aTHX_ (hv), NULL, STR_WITH_LEN(key), 0, \ ^ src\myconversions.cc:40:5: note: in expansion of macro 'hv_stores' hv_stores(hv, "language_code", newSVpv(CLD2::LanguageCode(language), 0)); ^ In file included from D:\devel\perl\perl\lib\CORE/perl.h:2684:0, from src\myconversions.h:6, from src\myconversions.cc:2: src\myconversions.cc: In function 'AV* languages_to_array(CLD2::Language*, int*, double*)': D:\devel\perl\perl\lib\CORE/perl.h:166:16: error: 'my_perl' was not declared in this scope # define aTHX my_perl ^ D:\devel\perl\perl\lib\CORE/handy.h:64:41: note: in definition of macro 'MUTABLE_PTR' # define MUTABLE_PTR(p) ({ void *_p = (p); _p; }) ^ D:\devel\perl\perl\lib\CORE/av.h:105:17: note: in expansion of macro 'MUTABLE_AV' #define newAV() MUTABLE_AV(newSV_type(SVt_PVAV)) ^ D:\devel\perl\perl\lib\CORE/perl.h:179:18: note: in expansion of macro 'aTHX' # define aTHX_ aTHX, ^ D:\devel\perl\perl\lib\CORE/embed.h:398:40: note: in expansion of macro 'aTHX_' #define newSV_type(a) Perl_newSV_type(aTHX_ a) ^ D:\devel\perl\perl\lib\CORE/av.h:105:28: note: in expansion of macro 'newSV_type' #define newAV() MUTABLE_AV(newSV_type(SVt_PVAV)) ^ src\myconversions.cc:48:14: note: in expansion of macro 'newAV' AV* av = newAV(); ^ In file included from src\myconversions.h:6:0, from src\myconversions.cc:2: D:\devel\perl\perl\lib\CORE/perl.h:166:16: error: 'my_perl' was not declared in this scope # define aTHX my_perl ^ D:\devel\perl\perl\lib\CORE/perl.h:179:18: note: in expansion of macro 'aTHX' # define aTHX_ aTHX, ^ D:\devel\perl\perl\lib\CORE/embed.h:61:36: note: in expansion of macro 'aTHX_' #define av_push(a,b) Perl_av_push(aTHX_ a,b) ^ src\myconversions.cc:53:9: note: in expansion of macro 'av_push' av_push(av, newRV_noinc((SV *)language_to_hash(languages[i], percent[i], score[i]))); ^ src\myconversions.cc: In function 'CLD2::Language scalar_to_language(SV*)': D:\devel\perl\perl\lib\CORE/perl.h:166:16: error: 'my_perl' was not declared in this scope # define aTHX my_perl ^ D:\devel\perl\perl\lib\CORE/perl.h:179:18: note: in expansion of macro 'aTHX' # define aTHX_ aTHX, ^ D:\devel\perl\perl\lib\CORE/embed.h:583:47: note: in expansion of macro 'aTHX_' #define sv_2pv_flags(a,b,c) Perl_sv_2pv_flags(aTHX_ a,b,c) ^ D:\devel\perl\perl\lib\CORE/sv.h:1695:20: note: in expansion of macro 'sv_2pv_flags' ? SvPVX(sv) : sv_2pv_flags(sv, 0, SV_GMAGIC)) ^ src\myconversions.cc:60:39: note: in expansion of macro 'SvPV_nolen' char* lang_string = SvPOK(lang) ? SvPV_nolen(lang) : NULL; ^ error building xs.dll file from 'src\myconversions.cc' at d:/devel/perl/perl/lib/ExtUtils/CBuilder/Platform/Windows.pm line 129. FAIL ! Installing Lingua::Identify::CLD2 failed. See C:\Users\zdm\AppData\Local\Temp\.cpanm\work\1494139122.9860\build.log for details. Retry with --force to force install it.
Try https://github.com/kni/p5-Lingua-Identify-CLD2 I test on FreeBSD and Debian. You need install libcld2 package and then build perl package.