Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bs --target loongarch64 --nodeps /builddir/build/SPECS/perl-Unicode-LineBreak.spec'], chrootPath='/var/lib/mock/dist-el8-loongarch64-build-59747-32706/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bs --target loongarch64 --nodeps /builddir/build/SPECS/perl-Unicode-LineBreak.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/perl-Unicode-LineBreak-2017.004-6.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/perl-Unicode-LineBreak.spec'], chrootPath='/var/lib/mock/dist-el8-loongarch64-build-59747-32706/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/perl-Unicode-LineBreak.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yUeDJn + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Unicode-LineBreak-2017.004 + /usr/bin/gzip -dc /builddir/build/SOURCES/Unicode-LineBreak-2017.004.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Unicode-LineBreak-2017.004 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf sombok + sed -i -e '/^sombok/d' MANIFEST + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.K1MsPA + umask 022 + cd /builddir/build/BUILD + cd Unicode-LineBreak-2017.004 + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g' Use libthai 0.1.27 Use sombok 2.4.0 which: no wget in (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin) W: Required test dependency not found: wget Unparsable version '1.006.2' for prerequisite MIME::Charset treated as 1.006 (CPAN::Meta::Requirements not available) at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm line 489. ExtUtils::MakeMaker::new("MM", MM=HASH(0xaaae0bff48)) called at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm line 77 ExtUtils::MakeMaker::WriteMakefile("NAME", "Unicode::LineBreak", "ABSTRACT_FROM", "lib/Unicode/LineBreak.pod", "VERSION_FROM", "lib/Unicode/LineBreak.pm", "AUTHOR", "Hatuka*nezumi - IKEDA Soji ", ...) called at Makefile.PL line 220 Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Unicode::LineBreak + make -j4 Running Mkbootstrap for LineBreak () "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/builddir/build/BUILD/Unicode-LineBreak-2017.004/typemap' LineBreak.xs > LineBreak.xsc chmod 644 "LineBreak.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- LineBreak.bs blib/arch/auto/Unicode/LineBreak/LineBreak.bs 644 cp lib/Text/LineFold.pm blib/lib/Text/LineFold.pm cp lib/Unicode/LineBreak.pod blib/lib/Unicode/LineBreak.pod cp lib/POD2/JA/Text/LineFold.pod blib/lib/POD2/JA/Text/LineFold.pod cp lib/Unicode/LineBreak/Defaults.pm.sample blib/lib/Unicode/LineBreak/Defaults.pm.sample cp lib/POD2/JA/Unicode/GCString.pod blib/lib/POD2/JA/Unicode/GCString.pod cp lib/Unicode/GCString.pm blib/lib/Unicode/GCString.pm cp lib/Unicode/LineBreak/Constants.pm blib/lib/Unicode/LineBreak/Constants.pm cp lib/POD2/JA/Unicode/LineBreak.pod blib/lib/POD2/JA/Unicode/LineBreak.pod cp lib/Unicode/GCString.pod blib/lib/Unicode/GCString.pod cp lib/Unicode/LineBreak.pm blib/lib/Unicode/LineBreak.pm mv LineBreak.xsc LineBreak.c loongarch64-redhat-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"2017.004\" -DXS_VERSION=\"2017.004\" -fPIC "-I/usr/lib64/perl5/CORE" LineBreak.c In file included from LineBreak.xs:22: /usr/include/sombok.h:40:2: error: #error "This sombok-devel package does not support your architecture." #error "This sombok-devel package does not support your architecture." ^~~~~ LineBreak.xs:34:9: error: unknown type name 'gcstring_t' typedef gcstring_t *generic_string; ^~~~~~~~~~ LineBreak.xs:44:1: error: unknown type name 'unistr_t' unistr_t *SVtounistr(unistr_t *buf, SV *str) ^~~~~~~~ LineBreak.xs:44:22: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t *SVtounistr(unistr_t *buf, SV *str) ^~~~~~~~ uintptr_t LineBreak.xs:106:1: error: unknown type name 'unistr_t' unistr_t *SVupgradetounistr(unistr_t *buf, SV *str) ^~~~~~~~ LineBreak.xs:106:29: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t *SVupgradetounistr(unistr_t *buf, SV *str) ^~~~~~~~ uintptr_t LineBreak.xs:138:16: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? SV *unistrtoSV(unistr_t *unistr, size_t uniidx, size_t unilen) ^~~~~~~~ uintptr_t LineBreak.xs:204:1: error: unknown type name 'gcstring_t' gcstring_t *SVtogcstring(SV *sv, linebreak_t *lbobj) ^~~~~~~~~~ LineBreak.xs:204:34: error: unknown type name 'linebreak_t'; did you mean 'line_t'? gcstring_t *SVtogcstring(SV *sv, linebreak_t *lbobj) ^~~~~~~~~~~ line_t LineBreak.xs:256:35: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? void do_pregexec_once(REGEXP *rx, unistr_t *str) ^~~~~~~~ uintptr_t LineBreak.xs:308:1: error: unknown type name 'gcstring_t' gcstring_t *prep_func(linebreak_t *lbobj, void *dataref, unistr_t *str, ^~~~~~~~~~ LineBreak.xs:308:23: error: unknown type name 'linebreak_t'; did you mean 'line_t'? gcstring_t *prep_func(linebreak_t *lbobj, void *dataref, unistr_t *str, ^~~~~~~~~~~ line_t LineBreak.xs:308:58: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? gcstring_t *prep_func(linebreak_t *lbobj, void *dataref, unistr_t *str, ^~~~~~~~ uintptr_t LineBreak.xs:309:9: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t *text) ^~~~~~~~ uintptr_t LineBreak.xs:415:1: error: unknown type name 'gcstring_t' gcstring_t *format_func(linebreak_t *lbobj, linebreak_state_t action, ^~~~~~~~~~ LineBreak.xs:415:25: error: unknown type name 'linebreak_t'; did you mean 'line_t'? gcstring_t *format_func(linebreak_t *lbobj, linebreak_state_t action, ^~~~~~~~~~~ line_t LineBreak.xs:415:45: error: unknown type name 'linebreak_state_t' gcstring_t *format_func(linebreak_t *lbobj, linebreak_state_t action, ^~~~~~~~~~~~~~~~~ LineBreak.xs:416:4: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *str) ^~~~~~~~~~ greg_t LineBreak.xs:465:20: error: unknown type name 'linebreak_t'; did you mean 'line_t'? double sizing_func(linebreak_t *lbobj, double len, ^~~~~~~~~~~ line_t LineBreak.xs:466:6: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *pre, gcstring_t *spc, gcstring_t *str) ^~~~~~~~~~ greg_t LineBreak.xs:466:23: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *pre, gcstring_t *spc, gcstring_t *str) ^~~~~~~~~~ greg_t LineBreak.xs:466:40: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *pre, gcstring_t *spc, gcstring_t *str) ^~~~~~~~~~ greg_t LineBreak.xs:506:1: error: unknown type name 'gcstring_t' gcstring_t *urgent_func(linebreak_t *lbobj, gcstring_t *str) ^~~~~~~~~~ LineBreak.xs:506:25: error: unknown type name 'linebreak_t'; did you mean 'line_t'? gcstring_t *urgent_func(linebreak_t *lbobj, gcstring_t *str) ^~~~~~~~~~~ line_t LineBreak.xs:506:45: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *urgent_func(linebreak_t *lbobj, gcstring_t *str) ^~~~~~~~~~ greg_t LineBreak.xs: In function 'XS_Unicode__LineBreak_EAWidths': LineBreak.xs:559:20: error: 'linebreak_propvals_EA' undeclared (first use in this function); did you mean 'linebreak_states'? for (p = (char **)linebreak_propvals_EA; *p != NULL; p++) ^~~~~~~~~~~~~~~~~~~~~ linebreak_states LineBreak.xs:559:20: note: each undeclared identifier is reported only once for each function it appears in LineBreak.xs: In function 'XS_Unicode__LineBreak_LBClasses': LineBreak.xs:567:20: error: 'linebreak_propvals_LB' undeclared (first use in this function); did you mean 'linebreak_states'? for (p = (char **)linebreak_propvals_LB; *p != NULL; p++) ^~~~~~~~~~~~~~~~~~~~~ linebreak_states LineBreak.c: In function 'XS_Unicode__LineBreak__new': LineBreak.c:760:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * RETVAL; ^~~~~~~~~~~ line_t LineBreak.xs:575:16: warning: implicit declaration of function 'linebreak_new' [-Wimplicit-function-declaration] if ((RETVAL = linebreak_new(ref_func)) == NULL) ^~~~~~~~~~~~~ LineBreak.xs:575:14: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] if ((RETVAL = linebreak_new(ref_func)) == NULL) ^ LineBreak.xs:577:2: warning: implicit declaration of function 'linebreak_set_stash' [-Wimplicit-function-declaration] linebreak_set_stash(RETVAL, newRV_noinc((SV *)newHV())); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/lib64/perl5/CORE/perl.h:2698, from LineBreak.xs:14: LineBreak.xs:578:21: error: request for member 'stash' in something not a structure or union SvREFCNT_dec(RETVAL->stash); /* fixup */ ^~ /usr/lib64/perl5/CORE/handy.h:64:41: note: in definition of macro 'MUTABLE_PTR' # define MUTABLE_PTR(p) ({ void *_p = (p); _p; }) ^ /usr/lib64/perl5/CORE/sv.h:349:47: note: in expansion of macro 'MUTABLE_SV' #define SvREFCNT_dec(sv) S_SvREFCNT_dec(aTHX_ MUTABLE_SV(sv)) ^~~~~~~~~~ LineBreak.xs:578:2: note: in expansion of macro 'SvREFCNT_dec' SvREFCNT_dec(RETVAL->stash); /* fixup */ ^~~~~~~~~~~~ LineBreak.c: In function 'XS_Unicode__LineBreak_copy': LineBreak.c:785:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t LineBreak.c:786:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * RETVAL; ^~~~~~~~~~~ line_t In file included from LineBreak.xs:14: LineBreak.c:791:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:791:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:791:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.xs:587:11: warning: implicit declaration of function 'linebreak_copy' [-Wimplicit-function-declaration] RETVAL = linebreak_copy(self); ^~~~~~~~~~~~~~ LineBreak.xs:587:9: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = linebreak_copy(self); ^ LineBreak.c: In function 'XS_Unicode__LineBreak_DESTROY': LineBreak.c:817:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t In file included from LineBreak.xs:14: LineBreak.c:822:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:822:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:822:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.xs:596:2: warning: implicit declaration of function 'linebreak_destroy' [-Wimplicit-function-declaration] linebreak_destroy(self); ^~~~~~~~~~~~~~~~~ LineBreak.c: In function 'XS_Unicode__LineBreak__config': LineBreak.c:842:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t In file included from LineBreak.xs:14: LineBreak.c:855:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:855:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:855:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ In file included from /usr/lib64/perl5/CORE/perl.h:5644, from LineBreak.xs:14: LineBreak.xs:615:24: error: request for member 'options' in something not a structure or union RETVAL = newSVuv(self->options & ^~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:616:6: error: 'LINEBREAK_OPTION_BREAK_INDENT' undeclared (first use in this function) LINEBREAK_OPTION_BREAK_INDENT); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:618:24: error: request for member 'charmax' in something not a structure or union RETVAL = newSVuv(self->charmax); ^~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:620:28: error: request for member 'colmax' in something not a structure or union RETVAL = newSVnv((NV)self->colmax); ^~ /usr/lib64/perl5/CORE/embed.h:414:40: note: in definition of macro 'newSVnv' #define newSVnv(a) Perl_newSVnv(aTHX_ a) ^ LineBreak.xs:622:28: error: request for member 'colmin' in something not a structure or union RETVAL = newSVnv((NV)self->colmin); ^~ /usr/lib64/perl5/CORE/embed.h:414:40: note: in definition of macro 'newSVnv' #define newSVnv(a) Perl_newSVnv(aTHX_ a) ^ LineBreak.xs:624:24: error: request for member 'options' in something not a structure or union RETVAL = newSVuv(self->options & ^~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:625:6: error: 'LINEBREAK_OPTION_COMPLEX_BREAKING' undeclared (first use in this function) LINEBREAK_OPTION_COMPLEX_BREAKING); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:627:11: error: request for member 'options' in something not a structure or union if (self->options & LINEBREAK_OPTION_EASTASIAN_CONTEXT) ^~ LineBreak.xs:627:23: error: 'LINEBREAK_OPTION_EASTASIAN_CONTEXT' undeclared (first use in this function) if (self->options & LINEBREAK_OPTION_EASTASIAN_CONTEXT) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LineBreak.xs:633:3: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t p = PROP_UNKNOWN; ^~~~~~~~~ sigval_t LineBreak.xs:633:17: error: 'PROP_UNKNOWN' undeclared (first use in this function); did you mean 'DT_UNKNOWN'? propval_t p = PROP_UNKNOWN; ^~~~~~~~~~~~ DT_UNKNOWN LineBreak.xs:634:3: error: unknown type name 'unichar_t'; did you mean 'wchar_t'? unichar_t c; ^~~~~~~~~ wchar_t LineBreak.xs:637:11: error: request for member 'map' in something not a structure or union if (self->map == NULL || self->mapsiz == 0) ^~ LineBreak.xs:637:32: error: request for member 'mapsiz' in something not a structure or union if (self->map == NULL || self->mapsiz == 0) ^~ LineBreak.xs:640:23: error: request for member 'mapsiz' in something not a structure or union for (i = 0; i < self->mapsiz; i++) ^~ LineBreak.xs:641:15: error: request for member 'map' in something not a structure or union if (self->map[i].eaw != PROP_UNKNOWN) { ^~ LineBreak.xs:642:17: error: request for member 'map' in something not a structure or union if (p != self->map[i].eaw){ ^~ LineBreak.xs:643:16: error: request for member 'map' in something not a structure or union p = self->map[i].eaw; ^~ LineBreak.xs:652:17: error: request for member 'map' in something not a structure or union for (c = self->map[i].beg; c <= self->map[i].end; c++) ^~ LineBreak.xs:652:40: error: request for member 'map' in something not a structure or union for (c = self->map[i].beg; c <= self->map[i].end; c++) ^~ LineBreak.xs:660:14: error: request for member 'format_func' in something not a structure or union func = self->format_func; ^~ LineBreak.xs:663:20: error: 'linebreak_format_NEWLINE' undeclared (first use in this function); did you mean 'linebreak_states'? else if (func == linebreak_format_NEWLINE) ^~~~~~~~~~~~~~~~~~~~~~~~ linebreak_states LineBreak.xs:665:20: error: 'linebreak_format_SIMPLE' undeclared (first use in this function); did you mean 'linebreak_states'? else if (func == linebreak_format_SIMPLE) ^~~~~~~~~~~~~~~~~~~~~~~ linebreak_states LineBreak.xs:667:20: error: 'linebreak_format_TRIM' undeclared (first use in this function); did you mean 'linebreak_states'? else if (func == linebreak_format_TRIM) ^~~~~~~~~~~~~~~~~~~~~ linebreak_states LineBreak.xs:669:20: error: 'format_func' undeclared (first use in this function); did you mean 'ref_func'? else if (func == format_func) { ^~~~~~~~~~~ ref_func LineBreak.xs:670:28: error: request for member 'format_data' in something not a structure or union if ((val = (SV *)self->format_data) == NULL) ^~ In file included from /usr/lib64/perl5/CORE/perl.h:5644, from LineBreak.xs:14: LineBreak.xs:677:24: error: request for member 'options' in something not a structure or union RETVAL = newSVuv(self->options & ^~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:678:6: error: 'LINEBREAK_OPTION_HANGUL_AS_AL' undeclared (first use in this function) LINEBREAK_OPTION_HANGUL_AS_AL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:681:3: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t p = PROP_UNKNOWN; ^~~~~~~~~ sigval_t LineBreak.xs:682:3: error: unknown type name 'unichar_t'; did you mean 'wchar_t'? unichar_t c; ^~~~~~~~~ wchar_t LineBreak.xs:685:11: error: request for member 'map' in something not a structure or union if (self->map == NULL || self->mapsiz == 0) ^~ LineBreak.xs:685:32: error: request for member 'mapsiz' in something not a structure or union if (self->map == NULL || self->mapsiz == 0) ^~ LineBreak.xs:688:23: error: request for member 'mapsiz' in something not a structure or union for (i = 0; i < self->mapsiz; i++) ^~ LineBreak.xs:689:15: error: request for member 'map' in something not a structure or union if (self->map[i].lbc != PROP_UNKNOWN) { ^~ LineBreak.xs:690:17: error: request for member 'map' in something not a structure or union if (p != self->map[i].lbc){ ^~ LineBreak.xs:691:16: error: request for member 'map' in something not a structure or union p = self->map[i].lbc; ^~ LineBreak.xs:700:17: error: request for member 'map' in something not a structure or union for (c = self->map[i].beg; c <= self->map[i].end; c++) ^~ LineBreak.xs:700:40: error: request for member 'map' in something not a structure or union for (c = self->map[i].beg; c <= self->map[i].end; c++) ^~ In file included from /usr/lib64/perl5/CORE/perl.h:5644, from LineBreak.xs:14: LineBreak.xs:708:24: error: request for member 'options' in something not a structure or union RETVAL = newSVuv(self->options & LINEBREAK_OPTION_LEGACY_CM); ^~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:708:36: error: 'LINEBREAK_OPTION_LEGACY_CM' undeclared (first use in this function) RETVAL = newSVuv(self->options & LINEBREAK_OPTION_LEGACY_CM); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:710:3: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = {self->newline.str, self->newline.len}; ^~~~~~~~ uintptr_t LineBreak.xs:710:26: error: request for member 'newline' in something not a structure or union unistr_t unistr = {self->newline.str, self->newline.len}; ^~ LineBreak.xs:710:45: error: request for member 'newline' in something not a structure or union unistr_t unistr = {self->newline.str, self->newline.len}; ^~ LineBreak.xs:710:41: warning: excess elements in scalar initializer unistr_t unistr = {self->newline.str, self->newline.len}; ^~~~ LineBreak.xs:710:41: note: (near initialization for 'unistr') LineBreak.xs:711:11: error: request for member 'newline' in something not a structure or union if (self->newline.str == NULL || self->newline.len == 0) ^~ LineBreak.xs:711:40: error: request for member 'newline' in something not a structure or union if (self->newline.str == NULL || self->newline.len == 0) ^~ LineBreak.xs:712:16: warning: implicit declaration of function 'unistrtoSV'; did you mean 'strtok'? [-Wimplicit-function-declaration] RETVAL = unistrtoSV(&unistr, 0, 0); ^~~~~~~~~~ strtok LineBreak.xs:712:14: warning: assignment to 'SV *' {aka 'struct sv *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = unistrtoSV(&unistr, 0, 0); ^ LineBreak.xs:714:43: error: request for member 'newline' in something not a structure or union RETVAL = unistrtoSV(&unistr, 0, self->newline.len); ^~ LineBreak.xs:717:11: error: request for member 'prep_func' in something not a structure or union if (self->prep_func == NULL || self->prep_func[0] == NULL) ^~ LineBreak.xs:717:38: error: request for member 'prep_func' in something not a structure or union if (self->prep_func == NULL || self->prep_func[0] == NULL) ^~ LineBreak.xs:720:27: error: request for member 'prep_func' in something not a structure or union for (i = 0; (func = self->prep_func[i]) != NULL; i++) ^~ LineBreak.xs:721:19: error: 'linebreak_prep_URIBREAK' undeclared (first use in this function) if (func == linebreak_prep_URIBREAK) { ^~~~~~~~~~~~~~~~~~~~~~~ LineBreak.xs:722:12: error: request for member 'prep_data' in something not a structure or union if (self->prep_data == NULL || ^~ LineBreak.xs:723:12: error: request for member 'prep_data' in something not a structure or union self->prep_data[i] == NULL) ^~ LineBreak.xs:727:26: error: 'prep_func' undeclared (first use in this function); did you mean 'ref_func'? } else if (func == prep_func) { ^~~~~~~~~ ref_func LineBreak.xs:728:12: error: request for member 'prep_data' in something not a structure or union if (self->prep_data == NULL || ^~ LineBreak.xs:729:12: error: request for member 'prep_data' in something not a structure or union self->prep_data[i] == NULL) ^~ In file included from /usr/lib64/perl5/CORE/perl.h:2698, from LineBreak.xs:14: LineBreak.xs:731:21: error: request for member 'prep_data' in something not a structure or union SvREFCNT_inc(self->prep_data[i]); /* avoid freed */ ^~ /usr/lib64/perl5/CORE/handy.h:64:41: note: in definition of macro 'MUTABLE_PTR' # define MUTABLE_PTR(p) ({ void *_p = (p); _p; }) ^ /usr/lib64/perl5/CORE/sv.h:338:42: note: in expansion of macro 'MUTABLE_SV' #define SvREFCNT_inc(sv) S_SvREFCNT_inc(MUTABLE_SV(sv)) ^~~~~~~~~~ LineBreak.xs:731:4: note: in expansion of macro 'SvREFCNT_inc' SvREFCNT_inc(self->prep_data[i]); /* avoid freed */ ^~~~~~~~~~~~ In file included from /usr/lib64/perl5/CORE/perl.h:5644, from LineBreak.xs:14: LineBreak.xs:732:20: error: request for member 'prep_data' in something not a structure or union av_push(av, self->prep_data[i]); ^~ /usr/lib64/perl5/CORE/embed.h:64:44: note: in definition of macro 'av_push' #define av_push(a,b) Perl_av_push(aTHX_ a,b) ^ LineBreak.xs:737:14: error: request for member 'sizing_func' in something not a structure or union func = self->sizing_func; ^~ LineBreak.xs:740:20: error: 'linebreak_sizing_UAX11' undeclared (first use in this function); did you mean 'linebreak_states'? else if (func == linebreak_sizing_UAX11) ^~~~~~~~~~~~~~~~~~~~~~ linebreak_states LineBreak.xs:742:20: error: 'sizing_func' undeclared (first use in this function); did you mean 'PL_no_func'? else if (func == sizing_func) { ^~~~~~~~~~~ PL_no_func LineBreak.xs:743:28: error: request for member 'sizing_data' in something not a structure or union if ((val = (SV *)self->sizing_data) == NULL) ^~ LineBreak.xs:750:14: error: request for member 'urgent_func' in something not a structure or union func = self->urgent_func; ^~ LineBreak.xs:753:20: error: 'linebreak_urgent_ABORT' undeclared (first use in this function); did you mean 'linebreak_states'? else if (func == linebreak_urgent_ABORT) ^~~~~~~~~~~~~~~~~~~~~~ linebreak_states LineBreak.xs:755:20: error: 'linebreak_urgent_FORCE' undeclared (first use in this function); did you mean 'linebreak_states'? else if (func == linebreak_urgent_FORCE) ^~~~~~~~~~~~~~~~~~~~~~ linebreak_states LineBreak.xs:757:20: error: 'urgent_func' undeclared (first use in this function); did you mean 'ref_func'? else if (func == urgent_func) { ^~~~~~~~~~~ ref_func LineBreak.xs:758:28: error: request for member 'urgent_data' in something not a structure or union if ((val = (SV *)self->urgent_data) == NULL) ^~ In file included from /usr/lib64/perl5/CORE/perl.h:5644, from LineBreak.xs:14: LineBreak.xs:765:24: error: request for member 'options' in something not a structure or union RETVAL = newSVuv(self->options & LINEBREAK_OPTION_VIRAMA_AS_JOINER); ^~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:765:36: error: 'LINEBREAK_OPTION_VIRAMA_AS_JOINER' undeclared (first use in this function) RETVAL = newSVuv(self->options & LINEBREAK_OPTION_VIRAMA_AS_JOINER); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/perl5/CORE/embed.h:425:40: note: in definition of macro 'newSVuv' #define newSVuv(a) Perl_newSVuv(aTHX_ a) ^ LineBreak.xs:784:7: warning: implicit declaration of function 'linebreak_add_prep'; did you mean 'inet_makeaddr'? [-Wimplicit-function-declaration] linebreak_add_prep(self, NULL, NULL); ^~~~~~~~~~~~~~~~~~ inet_makeaddr LineBreak.xs:855:7: warning: implicit declaration of function 'linebreak_set_format' [-Wimplicit-function-declaration] linebreak_set_format(self, NULL, NULL); ^~~~~~~~~~~~~~~~~~~~ LineBreak.xs:881:7: warning: implicit declaration of function 'linebreak_set_sizing' [-Wimplicit-function-declaration] linebreak_set_sizing(self, NULL, NULL); ^~~~~~~~~~~~~~~~~~~~ LineBreak.xs:901:7: warning: implicit declaration of function 'linebreak_set_urgent' [-Wimplicit-function-declaration] linebreak_set_urgent(self, NULL, NULL); ^~~~~~~~~~~~~~~~~~~~ LineBreak.xs:923:11: error: request for member 'options' in something not a structure or union self->options |= LINEBREAK_OPTION_BREAK_INDENT; ^~ LineBreak.xs:925:11: error: request for member 'options' in something not a structure or union self->options &= ~LINEBREAK_OPTION_BREAK_INDENT; ^~ LineBreak.xs:927:7: error: request for member 'charmax' in something not a structure or union self->charmax = SvUV(val); ^~ LineBreak.xs:929:7: error: request for member 'colmax' in something not a structure or union self->colmax = (double)SvNV(val); ^~ LineBreak.xs:931:7: error: request for member 'colmin' in something not a structure or union self->colmin = (double)SvNV(val); ^~ LineBreak.xs:934:11: error: request for member 'options' in something not a structure or union self->options |= LINEBREAK_OPTION_COMPLEX_BREAKING; ^~ LineBreak.xs:936:11: error: request for member 'options' in something not a structure or union self->options &= ~LINEBREAK_OPTION_COMPLEX_BREAKING; ^~ LineBreak.xs:943:11: error: request for member 'options' in something not a structure or union self->options |= LINEBREAK_OPTION_EASTASIAN_CONTEXT; ^~ LineBreak.xs:945:11: error: request for member 'options' in something not a structure or union self->options &= ~LINEBREAK_OPTION_EASTASIAN_CONTEXT; ^~ LineBreak.xs:949:3: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t p; ^~~~~~~~~ sigval_t LineBreak.xs:953:7: warning: implicit declaration of function 'linebreak_clear_eawidth' [-Wimplicit-function-declaration] linebreak_clear_eawidth(self); ^~~~~~~~~~~~~~~~~~~~~~~ LineBreak.xs:960:9: error: 'propval_t' undeclared (first use in this function); did you mean 'sigval_t'? p = (propval_t) SvIV(sv); ^~~~~~~~~ sigval_t LineBreak.xs:972:8: warning: implicit declaration of function 'linebreak_update_eawidth' [-Wimplicit-function-declaration] linebreak_update_eawidth(self, ^~~~~~~~~~~~~~~~~~~~~~~~ LineBreak.xs:973:13: error: 'unichar_t' undeclared (first use in this function); did you mean 'wchar_t'? (unichar_t) SvUV(sv), p); ^~~~~~~~~ wchar_t LineBreak.xs:984:11: error: request for member 'options' in something not a structure or union self->options |= LINEBREAK_OPTION_HANGUL_AS_AL; ^~ LineBreak.xs:986:11: error: request for member 'options' in something not a structure or union self->options &= ~LINEBREAK_OPTION_HANGUL_AS_AL; ^~ LineBreak.xs:990:12: error: expected ';' before 'p' propval_t p; ^~ ; LineBreak.xs:994:7: warning: implicit declaration of function 'linebreak_clear_lbclass' [-Wimplicit-function-declaration] linebreak_clear_lbclass(self); ^~~~~~~~~~~~~~~~~~~~~~~ LineBreak.xs:1001:4: error: 'p' undeclared (first use in this function) p = (propval_t) SvIV(sv); ^ LineBreak.xs:1013:8: warning: implicit declaration of function 'linebreak_update_lbclass' [-Wimplicit-function-declaration] linebreak_update_lbclass(self, ^~~~~~~~~~~~~~~~~~~~~~~~ LineBreak.xs:1025:11: error: request for member 'options' in something not a structure or union self->options |= LINEBREAK_OPTION_LEGACY_CM; ^~ LineBreak.xs:1027:11: error: request for member 'options' in something not a structure or union self->options &= ~LINEBREAK_OPTION_LEGACY_CM; ^~ LineBreak.xs:1030:7: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = {NULL, 0}; ^~~~~~~~ uintptr_t LineBreak.xs:1030:26: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] unistr_t unistr = {NULL, 0}; ^~~~ LineBreak.xs:1030:26: note: (near initialization for 'unistr') LineBreak.xs:1030:32: warning: excess elements in scalar initializer unistr_t unistr = {NULL, 0}; ^ LineBreak.xs:1030:32: note: (near initialization for 'unistr') LineBreak.xs:1031:7: warning: implicit declaration of function 'SVtounistr'; did you mean 'confstr'? [-Wimplicit-function-declaration] SVtounistr(&unistr, val); ^~~~~~~~~~ confstr LineBreak.xs:1032:7: warning: implicit declaration of function 'linebreak_set_newline' [-Wimplicit-function-declaration] linebreak_set_newline(self, &unistr); ^~~~~~~~~~~~~~~~~~~~~ LineBreak.xs:1033:18: error: request for member 'str' in something not a structure or union free(unistr.str); ^ LineBreak.xs:1036:9: error: 'unistr_t' undeclared (first use in this function); did you mean 'uintptr_t'? (unistr_t *)PerltoC(gcstring_t *, ^~~~~~~~ uintptr_t LineBreak.xs:1036:19: error: expected expression before ')' token (unistr_t *)PerltoC(gcstring_t *, ^ In file included from LineBreak.xs:14: LineBreak.xs:1036:28: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? (unistr_t *)PerltoC(gcstring_t *, ^~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.xs:1036:20: note: in expansion of macro 'PerltoC' (unistr_t *)PerltoC(gcstring_t *, ^~~~~~~ LineBreak.xs:1043:11: error: request for member 'options' in something not a structure or union self->options |= LINEBREAK_OPTION_VIRAMA_AS_JOINER; ^~ LineBreak.xs:1045:11: error: request for member 'options' in something not a structure or union self->options &= ~LINEBREAK_OPTION_VIRAMA_AS_JOINER; ^~ LineBreak.c: In function 'XS_Unicode__LineBreak_as_hashref': LineBreak.c:1317:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t In file included from LineBreak.xs:14: LineBreak.c:1322:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1322:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1322:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.xs:1056:10: error: request for member 'stash' in something not a structure or union if (self->stash == NULL) ^~ LineBreak.xs:1058:14: error: request for member 'stash' in something not a structure or union ST(0) = self->stash; /* should not be mortal */ ^~ LineBreak.c: In function 'XS_Unicode__LineBreak_as_scalarref': LineBreak.c:1345:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t In file included from LineBreak.xs:14: LineBreak.c:1354:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1354:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1354:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.c: In function 'XS_Unicode__LineBreak_as_string': LineBreak.c:1379:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t In file included from LineBreak.xs:14: LineBreak.c:1388:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1388:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1388:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.c: In function 'XS_Unicode__LineBreak_lbrule': LineBreak.c:1413:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t LineBreak.c:1414:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t b_idx = (unsigned char)SvUV(ST(1)) ^~~~~~~~~ sigval_t LineBreak.c:1416:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t a_idx = (unsigned char)SvUV(ST(2)) ^~~~~~~~~ sigval_t LineBreak.c:1418:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t RETVAL; ^~~~~~~~~ sigval_t In file included from LineBreak.xs:14: LineBreak.c:1424:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1424:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1424:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.xs:1099:11: warning: implicit declaration of function 'linebreak_get_lbrule' [-Wimplicit-function-declaration] RETVAL = linebreak_get_lbrule(self, b_idx, a_idx); ^~~~~~~~~~~~~~~~~~~~ LineBreak.xs:1100:16: error: 'PROP_UNKNOWN' undeclared (first use in this function); did you mean 'DT_UNKNOWN'? if (RETVAL == PROP_UNKNOWN) ^~~~~~~~~~~~ DT_UNKNOWN LineBreak.c: In function 'XS_Unicode__LineBreak_breakingRule': LineBreak.c:1452:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * lbobj; ^~~~~~~~~~~ line_t LineBreak.xs:1112:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t blbc, albc; ^~~~~~~~~ sigval_t LineBreak.c:1458:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t RETVAL; ^~~~~~~~~ sigval_t In file included from LineBreak.xs:14: LineBreak.c:1464:22: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? lbobj = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1464:14: note: in expansion of macro 'PerltoC' lbobj = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1464:14: note: in expansion of macro 'PerltoC' lbobj = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.c:1474:6: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = { NULL, 0 }; ^~~~~~~~ uintptr_t LineBreak.c:1474:26: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] unistr_t unistr = { NULL, 0 }; ^~~~ LineBreak.c:1474:26: note: (near initialization for 'unistr') LineBreak.c:1474:32: warning: excess elements in scalar initializer unistr_t unistr = { NULL, 0 }; ^ LineBreak.c:1474:32: note: (near initialization for 'unistr') LineBreak.c:1477:20: warning: implicit declaration of function 'gcstring_new'; did you mean 'vstringify'? [-Wimplicit-function-declaration] if ((bgcstr = gcstring_new(&unistr, lbobj)) == NULL) ^~~~~~~~~~~~ vstringify LineBreak.c:1477:18: warning: assignment to 'generic_string' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] if ((bgcstr = gcstring_new(&unistr, lbobj)) == NULL) ^ In file included from LineBreak.xs:14: LineBreak.c:1484:39: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? bgcstr = (generic_string)PerltoC(gcstring_t *, ST(1)); ^~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1484:31: note: in expansion of macro 'PerltoC' bgcstr = (generic_string)PerltoC(gcstring_t *, ST(1)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1484:31: note: in expansion of macro 'PerltoC' bgcstr = (generic_string)PerltoC(gcstring_t *, ST(1)); ^~~~~~~ LineBreak.c:1494:6: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = { NULL, 0 }; ^~~~~~~~ uintptr_t LineBreak.c:1494:26: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] unistr_t unistr = { NULL, 0 }; ^~~~ LineBreak.c:1494:26: note: (near initialization for 'unistr') LineBreak.c:1494:32: warning: excess elements in scalar initializer unistr_t unistr = { NULL, 0 }; ^ LineBreak.c:1494:32: note: (near initialization for 'unistr') LineBreak.c:1497:18: warning: assignment to 'generic_string' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] if ((agcstr = gcstring_new(&unistr, lbobj)) == NULL) ^ In file included from LineBreak.xs:14: /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1504:31: note: in expansion of macro 'PerltoC' agcstr = (generic_string)PerltoC(gcstring_t *, ST(2)); ^~~~~~~ LineBreak.xs:1118:14: warning: implicit declaration of function 'gcstring_lbclass_ext' [-Wimplicit-function-declaration] if ((blbc = gcstring_lbclass_ext(bgcstr, -1)) == PROP_UNKNOWN) ^~~~~~~~~~~~~~~~~~~~ LineBreak.xs:1118:51: error: 'PROP_UNKNOWN' undeclared (first use in this function); did you mean 'DT_UNKNOWN'? if ((blbc = gcstring_lbclass_ext(bgcstr, -1)) == PROP_UNKNOWN) ^~~~~~~~~~~~ DT_UNKNOWN LineBreak.xs:1120:14: warning: implicit declaration of function 'gcstring_lbclass' [-Wimplicit-function-declaration] if ((albc = gcstring_lbclass(agcstr, 0)) == PROP_UNKNOWN) ^~~~~~~~~~~~~~~~ LineBreak.c: In function 'XS_Unicode__LineBreak_reset': LineBreak.c:1535:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t In file included from LineBreak.xs:14: LineBreak.c:1540:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1540:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1540:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.xs:1133:2: warning: implicit declaration of function 'linebreak_reset' [-Wimplicit-function-declaration] linebreak_reset(self); ^~~~~~~~~~~~~~~ LineBreak.c: In function 'XS_Unicode__LineBreak_strsize': LineBreak.c:1560:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * lbobj; ^~~~~~~~~~~ line_t In file included from LineBreak.xs:14: LineBreak.c:1573:22: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? lbobj = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1573:14: note: in expansion of macro 'PerltoC' lbobj = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1573:14: note: in expansion of macro 'PerltoC' lbobj = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.c:1583:6: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = { NULL, 0 }; ^~~~~~~~ uintptr_t LineBreak.c:1583:26: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] unistr_t unistr = { NULL, 0 }; ^~~~ LineBreak.c:1583:26: note: (near initialization for 'unistr') LineBreak.c:1583:32: warning: excess elements in scalar initializer unistr_t unistr = { NULL, 0 }; ^ LineBreak.c:1583:32: note: (near initialization for 'unistr') LineBreak.c:1586:15: warning: assignment to 'generic_string' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] if ((spc = gcstring_new(&unistr, lbobj)) == NULL) ^ In file included from LineBreak.xs:14: LineBreak.c:1593:36: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? spc = (generic_string)PerltoC(gcstring_t *, ST(3)); ^~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1593:28: note: in expansion of macro 'PerltoC' spc = (generic_string)PerltoC(gcstring_t *, ST(3)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1593:28: note: in expansion of macro 'PerltoC' spc = (generic_string)PerltoC(gcstring_t *, ST(3)); ^~~~~~~ LineBreak.c:1603:6: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = { NULL, 0 }; ^~~~~~~~ uintptr_t LineBreak.c:1603:26: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] unistr_t unistr = { NULL, 0 }; ^~~~ LineBreak.c:1603:26: note: (near initialization for 'unistr') LineBreak.c:1603:32: warning: excess elements in scalar initializer unistr_t unistr = { NULL, 0 }; ^ LineBreak.c:1603:32: note: (near initialization for 'unistr') LineBreak.c:1606:15: warning: assignment to 'generic_string' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] if ((str = gcstring_new(&unistr, lbobj)) == NULL) ^ In file included from LineBreak.xs:14: /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1613:28: note: in expansion of macro 'PerltoC' str = (generic_string)PerltoC(gcstring_t *, ST(4)); ^~~~~~~ LineBreak.xs:1148:11: warning: implicit declaration of function 'linebreak_sizing_UAX11' [-Wimplicit-function-declaration] RETVAL = linebreak_sizing_UAX11(lbobj, len, NULL, spc, str); ^~~~~~~~~~~~~~~~~~~~~~ LineBreak.xs:1150:41: error: request for member 'errnum' in something not a structure or union croak("strsize: %s", strerror(lbobj->errnum)); ^~ LineBreak.c: In function 'XS_Unicode__LineBreak_break': LineBreak.c:1642:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t LineBreak.c:1643:2: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t * input; ^~~~~~~~ uintptr_t LineBreak.xs:1160:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t **ret, *r; ^~~~~~~~~~ greg_t In file included from LineBreak.xs:14: LineBreak.c:1652:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1652:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1652:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.c:1662:6: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *gcstr; /* container of buffer. */ ^~~~~~~~~~ greg_t LineBreak.c:1663:33: error: 'gcstring_t' undeclared (first use in this function); did you mean 'gcstr'? if ((gcstr = malloc(sizeof(gcstring_t))) == NULL) ^~~~~~~~~~ gcstr LineBreak.c:1668:3: warning: implicit declaration of function 'SVupgradetounistr' [-Wimplicit-function-declaration] SVupgradetounistr((unistr_t *)gcstr, ST(1)); ^~~~~~~~~~~~~~~~~ LineBreak.c:1668:22: error: 'unistr_t' undeclared (first use in this function); did you mean 'uintptr_t'? SVupgradetounistr((unistr_t *)gcstr, ST(1)); ^~~~~~~~ uintptr_t LineBreak.c:1668:32: error: expected expression before ')' token SVupgradetounistr((unistr_t *)gcstr, ST(1)); ^ LineBreak.c:1670:25: error: expected expression before ')' token SVtounistr((unistr_t *)gcstr, ST(1)); ^ LineBreak.c:1671:25: error: expected expression before ')' token input = (unistr_t *)gcstr; ^ LineBreak.c:1676:25: error: expected expression before ')' token input = (unistr_t *)PerltoC(gcstring_t *, ST(1)); ^ LineBreak.xs:1165:8: warning: implicit declaration of function 'linebreak_break' [-Wimplicit-function-declaration] ret = linebreak_break(self, input); ^~~~~~~~~~~~~~~ LineBreak.xs:1165:6: warning: assignment to 'int **' from 'int' makes pointer from integer without a cast [-Wint-conversion] ret = linebreak_break(self, input); ^ LineBreak.xs:1168:14: error: request for member 'errnum' in something not a structure or union if (self->errnum == LINEBREAK_EEXTN) ^~ LineBreak.xs:1168:26: error: 'LINEBREAK_EEXTN' undeclared (first use in this function) if (self->errnum == LINEBREAK_EEXTN) ^~~~~~~~~~~~~~~ LineBreak.xs:1170:19: error: request for member 'errnum' in something not a structure or union else if (self->errnum == LINEBREAK_ELONG) ^~ LineBreak.xs:1170:31: error: 'LINEBREAK_ELONG' undeclared (first use in this function) else if (self->errnum == LINEBREAK_ELONG) ^~~~~~~~~~~~~~~ LineBreak.xs:1172:19: error: request for member 'errnum' in something not a structure or union else if (self->errnum) ^~ LineBreak.xs:1173:28: error: request for member 'errnum' in something not a structure or union croak("%s", strerror(self->errnum)); ^~ LineBreak.xs:1180:8: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] r = gcstring_new(NULL, self); ^ LineBreak.xs:1182:3: warning: implicit declaration of function 'gcstring_append'; did you mean 'inet6_opt_append'? [-Wimplicit-function-declaration] gcstring_append(r, ret[i]); ^~~~~~~~~~~~~~~ inet6_opt_append LineBreak.xs:1183:6: warning: implicit declaration of function 'linebreak_free_result' [-Wimplicit-function-declaration] linebreak_free_result(ret, 1); ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/lib64/perl5/CORE/perl.h:5589, from LineBreak.xs:14: LineBreak.xs:1184:46: error: expected expression before ')' token XPUSHs(sv_2mortal(unistrtoSV((unistr_t *)r, 0, r->len))); ^ /usr/lib64/perl5/CORE/pp.h:428:55: note: in definition of macro 'XPUSHs' #define XPUSHs(s) STMT_START { EXTEND(sp,1); *++sp = (s); } STMT_END ^ LineBreak.xs:1184:13: note: in expansion of macro 'sv_2mortal' XPUSHs(sv_2mortal(unistrtoSV((unistr_t *)r, 0, r->len))); ^~~~~~~~~~ LineBreak.xs:1185:6: warning: implicit declaration of function 'gcstring_destroy' [-Wimplicit-function-declaration] gcstring_destroy(r); ^~~~~~~~~~~~~~~~ LineBreak.c: In function 'XS_Unicode__LineBreak_break_partial': LineBreak.c:1733:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * self; ^~~~~~~~~~~ line_t LineBreak.c:1734:2: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t * input; ^~~~~~~~ uintptr_t LineBreak.xs:1205:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t **ret, *r; ^~~~~~~~~~ greg_t In file included from LineBreak.xs:14: LineBreak.c:1743:21: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1743:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1743:13: note: in expansion of macro 'PerltoC' self = PerltoC(linebreak_t *, ST(0)); ^~~~~~~ LineBreak.c:1753:6: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *gcstr; /* container of buffer. */ ^~~~~~~~~~ greg_t LineBreak.c:1754:33: error: 'gcstring_t' undeclared (first use in this function); did you mean 'gcstr'? if ((gcstr = malloc(sizeof(gcstring_t))) == NULL) ^~~~~~~~~~ gcstr LineBreak.c:1759:22: error: 'unistr_t' undeclared (first use in this function); did you mean 'uintptr_t'? SVupgradetounistr((unistr_t *)gcstr, ST(1)); ^~~~~~~~ uintptr_t LineBreak.c:1759:32: error: expected expression before ')' token SVupgradetounistr((unistr_t *)gcstr, ST(1)); ^ LineBreak.c:1761:25: error: expected expression before ')' token SVtounistr((unistr_t *)gcstr, ST(1)); ^ LineBreak.c:1762:25: error: expected expression before ')' token input = (unistr_t *)gcstr; ^ LineBreak.c:1767:25: error: expected expression before ')' token input = (unistr_t *)PerltoC(gcstring_t *, ST(1)); ^ LineBreak.xs:1208:8: warning: implicit declaration of function 'linebreak_break_partial'; did you mean 'XS_Unicode__LineBreak_break_partial'? [-Wimplicit-function-declaration] ret = linebreak_break_partial(self, input); ^~~~~~~~~~~~~~~~~~~~~~~ XS_Unicode__LineBreak_break_partial LineBreak.xs:1208:6: warning: assignment to 'int **' from 'int' makes pointer from integer without a cast [-Wint-conversion] ret = linebreak_break_partial(self, input); ^ LineBreak.xs:1211:14: error: request for member 'errnum' in something not a structure or union if (self->errnum == LINEBREAK_EEXTN) ^~ LineBreak.xs:1211:26: error: 'LINEBREAK_EEXTN' undeclared (first use in this function) if (self->errnum == LINEBREAK_EEXTN) ^~~~~~~~~~~~~~~ LineBreak.xs:1213:19: error: request for member 'errnum' in something not a structure or union else if (self->errnum == LINEBREAK_ELONG) ^~ LineBreak.xs:1213:31: error: 'LINEBREAK_ELONG' undeclared (first use in this function) else if (self->errnum == LINEBREAK_ELONG) ^~~~~~~~~~~~~~~ LineBreak.xs:1215:19: error: request for member 'errnum' in something not a structure or union else if (self->errnum) ^~ LineBreak.xs:1216:28: error: request for member 'errnum' in something not a structure or union croak("%s", strerror(self->errnum)); ^~ LineBreak.xs:1223:8: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] r = gcstring_new(NULL, self); ^ In file included from /usr/lib64/perl5/CORE/perl.h:5589, from LineBreak.xs:14: LineBreak.xs:1227:46: error: expected expression before ')' token XPUSHs(sv_2mortal(unistrtoSV((unistr_t *)r, 0, r->len))); ^ /usr/lib64/perl5/CORE/pp.h:428:55: note: in definition of macro 'XPUSHs' #define XPUSHs(s) STMT_START { EXTEND(sp,1); *++sp = (s); } STMT_END ^ LineBreak.xs:1227:13: note: in expansion of macro 'sv_2mortal' XPUSHs(sv_2mortal(unistrtoSV((unistr_t *)r, 0, r->len))); ^~~~~~~~~~ LineBreak.xs: In function 'XS_Unicode__LineBreak_UNICODE_VERSION': LineBreak.xs:1245:11: error: 'linebreak_unicode_version' undeclared (first use in this function) RETVAL = linebreak_unicode_version; ^~~~~~~~~~~~~~~~~~~~~~~~~ LineBreak.xs: In function 'XS_Unicode__LineBreak_SOMBOK_VERSION': LineBreak.xs:1252:11: error: 'SOMBOK_VERSION' undeclared (first use in this function); did you mean 'XS_VERSION'? RETVAL = SOMBOK_VERSION; ^~~~~~~~~~~~~~ XS_VERSION LineBreak.xs: In function 'XS_Unicode__LineBreak__SouthEastAsian_supported': LineBreak.xs:1263:11: error: 'linebreak_southeastasian_supported' undeclared (first use in this function); did you mean 'XS_Unicode__LineBreak__SouthEastAsian_supported'? RETVAL = linebreak_southeastasian_supported; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XS_Unicode__LineBreak__SouthEastAsian_supported LineBreak.c: In function 'XS_Unicode__GCString__new': LineBreak.c:1878:2: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t * str; ^~~~~~~~ uintptr_t LineBreak.c:1879:2: error: unknown type name 'linebreak_t'; did you mean 'line_t'? linebreak_t * lbobj; ^~~~~~~~~~~ line_t LineBreak.c:1880:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * RETVAL; ^~~~~~~~~~ greg_t LineBreak.c:1886:6: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *gcstr; /* container of buffer. */ ^~~~~~~~~~ greg_t LineBreak.c:1887:33: error: 'gcstring_t' undeclared (first use in this function); did you mean 'gcstr'? if ((gcstr = malloc(sizeof(gcstring_t))) == NULL) ^~~~~~~~~~ gcstr LineBreak.c:1892:22: error: 'unistr_t' undeclared (first use in this function); did you mean 'uintptr_t'? SVupgradetounistr((unistr_t *)gcstr, ST(1)); ^~~~~~~~ uintptr_t LineBreak.c:1892:32: error: expected expression before ')' token SVupgradetounistr((unistr_t *)gcstr, ST(1)); ^ LineBreak.c:1894:25: error: expected expression before ')' token SVtounistr((unistr_t *)gcstr, ST(1)); ^ LineBreak.c:1895:23: error: expected expression before ')' token str = (unistr_t *)gcstr; ^ LineBreak.c:1900:23: error: expected expression before ')' token str = (unistr_t *)PerltoC(gcstring_t *, ST(1)); ^ In file included from LineBreak.xs:14: LineBreak.c:1912:19: error: 'linebreak_t' undeclared (first use in this function); did you mean 'linebreak_states'? lbobj = PerltoC(linebreak_t *, ST(2)); ^~~~~~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:27: note: in definition of macro 'INT2PTR' # define INT2PTR(any,d) (any)(d) ^~~ LineBreak.c:1912:11: note: in expansion of macro 'PerltoC' lbobj = PerltoC(linebreak_t *, ST(2)); ^~~~~~~ /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:1912:11: note: in expansion of macro 'PerltoC' lbobj = PerltoC(linebreak_t *, ST(2)); ^~~~~~~ LineBreak.xs:1281:16: warning: implicit declaration of function 'gcstring_newcopy' [-Wimplicit-function-declaration] if ((RETVAL = gcstring_newcopy(str, lbobj)) == NULL) ^~~~~~~~~~~~~~~~ LineBreak.xs:1281:14: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] if ((RETVAL = gcstring_newcopy(str, lbobj)) == NULL) ^ LineBreak.c: In function 'XS_Unicode__GCString_DESTROY': LineBreak.c:1943:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:1949:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:1949:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.c: In function 'XS_Unicode__GCString_as_array': LineBreak.c:1971:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:1980:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:1980:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1301:26: error: request for member 'gclen' in something not a structure or union for (i = 0; i < self->gclen; i++) ^~ In file included from /usr/lib64/perl5/CORE/perl.h:5589, from LineBreak.xs:14: LineBreak.xs:1304:8: warning: implicit declaration of function 'gcstring_substr' [-Wimplicit-function-declaration] gcstring_substr(self, i, 1)))); ^~~~~~~~~~~~~~~ /usr/lib64/perl5/CORE/pp.h:428:55: note: in definition of macro 'XPUSHs' #define XPUSHs(s) STMT_START { EXTEND(sp,1); *++sp = (s); } STMT_END ^ LineBreak.xs:1302:10: note: in expansion of macro 'sv_2mortal' XPUSHs(sv_2mortal( ^~~~~~~~~~ LineBreak.xs:1304:8: warning: passing argument 2 of 'CtoPerl' makes pointer from integer without a cast [-Wint-conversion] gcstring_substr(self, i, 1)))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/perl5/CORE/pp.h:428:55: note: in definition of macro 'XPUSHs' #define XPUSHs(s) STMT_START { EXTEND(sp,1); *++sp = (s); } STMT_END ^ LineBreak.xs:1302:10: note: in expansion of macro 'sv_2mortal' XPUSHs(sv_2mortal( ^~~~~~~~~~ LineBreak.xs:191:32: note: expected 'void *' but argument is of type 'int' SV *CtoPerl(char *klass, void *obj) ~~~~~~^~~ LineBreak.c: In function 'XS_Unicode__GCString_as_scalarref': LineBreak.c:2005:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2015:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2015:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.c: In function 'XS_Unicode__GCString_as_string': LineBreak.c:2040:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2047:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2047:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1324:23: error: 'unistr_t' undeclared (first use in this function); did you mean 'uintptr_t'? RETVAL = unistrtoSV((unistr_t *)self, 0, self->len); ^~~~~~~~ uintptr_t LineBreak.xs:1324:33: error: expected expression before ')' token RETVAL = unistrtoSV((unistr_t *)self, 0, self->len); ^ LineBreak.c: In function 'XS_Unicode__GCString_chars': LineBreak.c:2069:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2077:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2077:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1333:15: error: request for member 'len' in something not a structure or union RETVAL = self->len; ^~ LineBreak.c: In function 'XS_Unicode__GCString_cmp': LineBreak.c:2099:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2109:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2109:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.c:2119:6: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = { NULL, 0 }; ^~~~~~~~ uintptr_t LineBreak.c:2119:26: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] unistr_t unistr = { NULL, 0 }; ^~~~ LineBreak.c:2119:26: note: (near initialization for 'unistr') LineBreak.c:2119:32: warning: excess elements in scalar initializer unistr_t unistr = { NULL, 0 }; ^ LineBreak.c:2119:32: note: (near initialization for 'unistr') LineBreak.c:2090:19: error: request for member 'lbobj' in something not a structure or union #define lbobj self->lbobj ^~ LineBreak.c:2122:39: note: in expansion of macro 'lbobj' if ((str = gcstring_new(&unistr, lbobj)) == NULL) ^~~~~ In file included from LineBreak.xs:14: /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:2129:28: note: in expansion of macro 'PerltoC' str = (generic_string)PerltoC(gcstring_t *, ST(1)); ^~~~~~~ LineBreak.xs:1346:15: warning: implicit declaration of function 'gcstring_cmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration] RETVAL = gcstring_cmp(str, self); ^~~~~~~~~~~~ strncmp LineBreak.c: In function 'XS_Unicode__GCString_columns': LineBreak.c:2163:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2171:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2171:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1356:11: warning: implicit declaration of function 'gcstring_columns' [-Wimplicit-function-declaration] RETVAL = gcstring_columns(self); ^~~~~~~~~~~~~~~~ LineBreak.c: In function 'XS_Unicode__GCString_concat': LineBreak.c:2193:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2196:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * RETVAL; ^~~~~~~~~~ greg_t LineBreak.c:2202:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2202:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.c:2212:6: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = { NULL, 0 }; ^~~~~~~~ uintptr_t LineBreak.c:2212:26: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] unistr_t unistr = { NULL, 0 }; ^~~~ LineBreak.c:2212:26: note: (near initialization for 'unistr') LineBreak.c:2212:32: warning: excess elements in scalar initializer unistr_t unistr = { NULL, 0 }; ^ LineBreak.c:2212:32: note: (near initialization for 'unistr') LineBreak.c:2184:19: error: request for member 'lbobj' in something not a structure or union #define lbobj self->lbobj ^~ LineBreak.c:2215:39: note: in expansion of macro 'lbobj' if ((str = gcstring_new(&unistr, lbobj)) == NULL) ^~~~~ In file included from LineBreak.xs:14: /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:2222:28: note: in expansion of macro 'PerltoC' str = (generic_string)PerltoC(gcstring_t *, ST(1)); ^~~~~~~ LineBreak.xs:1369:15: warning: implicit declaration of function 'gcstring_concat' [-Wimplicit-function-declaration] RETVAL = gcstring_concat(str, self); ^~~~~~~~~~~~~~~ LineBreak.xs:1369:13: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = gcstring_concat(str, self); ^ LineBreak.xs:1374:13: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = gcstring_concat(self, str); ^ LineBreak.c: In function 'XS_Unicode__GCString_copy': LineBreak.c:2264:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2265:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * RETVAL; ^~~~~~~~~~ greg_t LineBreak.c:2271:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2271:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1383:11: warning: implicit declaration of function 'gcstring_copy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] RETVAL = gcstring_copy(self); ^~~~~~~~~~~~~ strncpy LineBreak.xs:1383:9: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = gcstring_copy(self); ^ LineBreak.c: In function 'XS_Unicode__GCString_eos': LineBreak.c:2297:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2305:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2305:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1391:11: warning: implicit declaration of function 'gcstring_eos'; did you mean 'vstringify'? [-Wimplicit-function-declaration] RETVAL = gcstring_eos(self); ^~~~~~~~~~~~ vstringify LineBreak.c: In function 'XS_Unicode__GCString_flag': LineBreak.c:2326:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2338:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2338:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1407:14: error: request for member 'pos' in something not a structure or union i = self->pos; ^~ LineBreak.xs:1408:35: error: request for member 'gclen' in something not a structure or union if (i < 0 || self == NULL || self->gclen <= i) ^~ LineBreak.xs:1413:7: error: request for member 'gcstr' in something not a structure or union self->gcstr[i].flag = (unsigned char)flag; ^~ LineBreak.xs:1417:29: error: request for member 'gcstr' in something not a structure or union RETVAL = (unsigned int)self->gcstr[i].flag; ^~ LineBreak.c: In function 'XS_Unicode__GCString_item': LineBreak.c:2373:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2377:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * RETVAL; ^~~~~~~~~~ greg_t LineBreak.c:2383:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2383:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1431:14: error: request for member 'pos' in something not a structure or union i = self->pos; ^~ LineBreak.xs:1432:35: error: request for member 'gclen' in something not a structure or union if (i < 0 || self == NULL || self->gclen <= i) ^~ LineBreak.xs:1435:9: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = gcstring_substr(self, i, 1); ^ LineBreak.c: In function 'XS_Unicode__GCString_join': LineBreak.c:2416:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.xs:1444:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t *str; ^~~~~~~~~~ greg_t LineBreak.c:2421:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * RETVAL; ^~~~~~~~~~ greg_t LineBreak.c:2427:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2427:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1450:38: error: request for member 'lbobj' in something not a structure or union RETVAL = gcstring_new(NULL, self->lbobj); ^~ LineBreak.xs:1453:15: warning: implicit declaration of function 'SVtogcstring'; did you mean 'scan_vstring'? [-Wimplicit-function-declaration] RETVAL = SVtogcstring(ST(1), self->lbobj); ^~~~~~~~~~~~ scan_vstring LineBreak.xs:1453:39: error: request for member 'lbobj' in something not a structure or union RETVAL = SVtogcstring(ST(1), self->lbobj); ^~ LineBreak.xs:1455:10: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = gcstring_copy(RETVAL); ^ LineBreak.xs:1458:39: error: request for member 'lbobj' in something not a structure or union RETVAL = SVtogcstring(ST(1), self->lbobj); ^~ LineBreak.xs:1460:10: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = gcstring_copy(RETVAL); ^ LineBreak.xs:1463:33: error: request for member 'lbobj' in something not a structure or union str = SVtogcstring(ST(i), self->lbobj); ^~ LineBreak.c: In function 'XS_Unicode__GCString_lbc': LineBreak.c:2476:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2477:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t RETVAL; ^~~~~~~~~ sigval_t LineBreak.c:2484:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2484:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1478:46: error: 'PROP_UNKNOWN' undeclared (first use in this function); did you mean 'DT_UNKNOWN'? if ((RETVAL = gcstring_lbclass(self, 0)) == PROP_UNKNOWN) ^~~~~~~~~~~~ DT_UNKNOWN LineBreak.c: In function 'XS_Unicode__GCString_lbcext': LineBreak.c:2506:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2507:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t RETVAL; ^~~~~~~~~ sigval_t LineBreak.c:2514:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2514:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1488:51: error: 'PROP_UNKNOWN' undeclared (first use in this function); did you mean 'DT_UNKNOWN'? if ((RETVAL = gcstring_lbclass_ext(self, -1)) == PROP_UNKNOWN) ^~~~~~~~~~~~ DT_UNKNOWN LineBreak.c: In function 'XS_Unicode__GCString_lbclass': LineBreak.c:2536:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2540:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t RETVAL; ^~~~~~~~~ sigval_t LineBreak.c:2547:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2547:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1504:14: error: request for member 'pos' in something not a structure or union i = self->pos; ^~ LineBreak.xs:1506:16: error: 'PROP_UNKNOWN' undeclared (first use in this function); did you mean 'DT_UNKNOWN'? if (RETVAL == PROP_UNKNOWN) ^~~~~~~~~~~~ DT_UNKNOWN LineBreak.c: In function 'XS_Unicode__GCString_lbclass_ext': LineBreak.c:2575:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2579:2: error: unknown type name 'propval_t'; did you mean 'sigval_t'? propval_t RETVAL; ^~~~~~~~~ sigval_t LineBreak.c:2586:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2586:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1522:14: error: request for member 'pos' in something not a structure or union i = self->pos; ^~ LineBreak.xs:1524:16: error: 'PROP_UNKNOWN' undeclared (first use in this function); did you mean 'DT_UNKNOWN'? if (RETVAL == PROP_UNKNOWN) ^~~~~~~~~~~~ DT_UNKNOWN LineBreak.c: In function 'XS_Unicode__GCString_length': LineBreak.c:2614:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2622:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2622:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1534:15: error: request for member 'gclen' in something not a structure or union RETVAL = self->gclen; ^~ LineBreak.c: In function 'XS_Unicode__GCString_next': LineBreak.c:2643:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.xs:1543:2: error: unknown type name 'gcchar_t'; did you mean 'wchar_t'? gcchar_t *gc; ^~~~~~~~ wchar_t LineBreak.c:2647:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * RETVAL; ^~~~~~~~~~ greg_t LineBreak.c:2653:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2653:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1547:7: warning: implicit declaration of function 'gcstring_next' [-Wimplicit-function-declaration] gc = gcstring_next(self); ^~~~~~~~~~~~~ LineBreak.xs:1547:5: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] gc = gcstring_next(self); ^ LineBreak.xs:1548:42: error: request for member 'gcstr' in something not a structure or union RETVAL = gcstring_substr(self, gc - self->gcstr, 1); ^~ LineBreak.c: In function 'XS_Unicode__GCString_pos': LineBreak.c:2682:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2690:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2690:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.xs:1558:6: warning: implicit declaration of function 'gcstring_setpos'; did you mean 'PerlIO_setpos'? [-Wimplicit-function-declaration] gcstring_setpos(self, SvIV(ST(1))); ^~~~~~~~~~~~~~~ PerlIO_setpos LineBreak.xs:1559:15: error: request for member 'pos' in something not a structure or union RETVAL = self->pos; ^~ LineBreak.c: In function 'XS_Unicode__GCString_substr': LineBreak.c:2714:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * self; ^~~~~~~~~~ greg_t LineBreak.c:2719:2: error: unknown type name 'gcstring_t'; did you mean 'greg_t'? gcstring_t * RETVAL; ^~~~~~~~~~ greg_t LineBreak.c:2725:14: error: 'gcstring_t' undeclared (first use in this function); did you mean 'string_amg'? self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^~~~~~~~~~ string_amg LineBreak.c:2725:26: error: expected expression before ')' token self = (gcstring_t *)PerltoC(gcstring_t *, ST(0)); ^ LineBreak.c:2732:19: error: request for member 'gclen' in something not a structure or union length = self->gclen; ^~ LineBreak.c:2745:3: error: unknown type name 'unistr_t'; did you mean 'uintptr_t'? unistr_t unistr = { NULL, 0 }; ^~~~~~~~ uintptr_t LineBreak.c:2745:23: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] unistr_t unistr = { NULL, 0 }; ^~~~ LineBreak.c:2745:23: note: (near initialization for 'unistr') LineBreak.c:2745:29: warning: excess elements in scalar initializer unistr_t unistr = { NULL, 0 }; ^ LineBreak.c:2745:29: note: (near initialization for 'unistr') LineBreak.c:2705:19: error: request for member 'lbobj' in something not a structure or union #define lbobj self->lbobj ^~ LineBreak.c:2748:44: note: in expansion of macro 'lbobj' if ((replacement = gcstring_new(&unistr, lbobj)) == NULL) ^~~~~ In file included from LineBreak.xs:14: /usr/lib64/perl5/CORE/perl.h:1734:30: error: expected expression before ')' token # define INT2PTR(any,d) (any)(d) ^ LineBreak.xs:180:6: note: in expansion of macro 'INT2PTR' (INT2PTR(type, SvIV((SV *)SvRV(arg)))) ^~~~~~~ LineBreak.c:2755:33: note: in expansion of macro 'PerltoC' replacement = (generic_string)PerltoC(gcstring_t *, ST(3)); ^~~~~~~ LineBreak.xs:1572:9: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] RETVAL = gcstring_substr(self, offset, length); ^ LineBreak.xs:1574:10: warning: implicit declaration of function 'gcstring_replace'; did you mean 'sv_replace'? [-Wimplicit-function-declaration] if (gcstring_replace(self, offset, length, replacement) == NULL) ^~~~~~~~~~~~~~~~ sv_replace LineBreak.xs:1574:62: warning: comparison between pointer and integer if (gcstring_replace(self, offset, length, replacement) == NULL) ^~ make: *** [Makefile:354: LineBreak.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.K1MsPA (%build) Bad exit status from /var/tmp/rpm-tmp.K1MsPA (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/perl-Unicode-LineBreak.spec