Good day! I cannot compile and install perl's module HTML::CTPP2 from Cpan in OS FREEBSD 11.1 . This very important module for my project. And it worked in version freebsd 11 made earlier succesfully . Please help us to solve this trouble. yours respectfully , Vladislav uname -a reeBSD svstroi-lk 11.1-RELEASE-p6 FreeBSD 11.1-RELEASE-p6 #0: Tue Feb 6 18:29:52 MSK 2018 sychev@svstroi-lk:/usr/obj/usr/src/sys/GENERIC amd64 cpan[1]> install HTML::CTPP2 Reading '/root/.cpan/Metadata' Database was generated on Thu, 15 Feb 2018 13:41:03 GMT Running install for module 'HTML::CTPP2' Checksum for /root/.cpan/sources/authors/id/S/ST/STELLAR/HTML-CTPP2-2.6.7.tar.gz ok Scanning cache /root/.cpan/build for sizes ............................................................................DONE Configuring S/ST/STELLAR/HTML-CTPP2-2.6.7.tar.gz with Makefile.PL perl thinks the current OS is 'freebsd' Checking if your kit is complete... Looks good Warning (mostly harmless): No library found for -lstdc++ Generating a Unix-style Makefile Writing Makefile for HTML::CTPP2 Writing MYMETA.yml and MYMETA.json STELLAR/HTML-CTPP2-2.6.7.tar.gz /usr/local/bin/perl Makefile.PL -- OK Running make for S/ST/STELLAR/HTML-CTPP2-2.6.7.tar.gz cp lib/HTML/CTPP2.pm blib/lib/HTML/CTPP2.pm AutoSplitting blib/lib/HTML/CTPP2.pm (blib/lib/auto/HTML/CTPP2) Running Mkbootstrap for HTML::CTPP2 () chmod 644 "CTPP2.bs" "/usr/local/bin/perl" "/usr/local/lib/perl5/5.24/ExtUtils/xsubpp" -C++ -typemap "/usr/local/lib/perl5/5.24/ExtUtils/typemap" -typ emap "perlobject.map" -typemap "typemap" CTPP2.xs > CTPP2.xsc && mv CTPP2.xsc CTPP2.c Please specify prototyping behavior for CTPP2.xs (see perlxs manual) g++ -c -I/usr/local/include/ctpp2 -I/usr/include -I/usr/local/include -I. -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-alia sing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector -fno-strict-aliasing - DVERSION=\"2.6.7\" -DXS_VERSION=\"2.6.7\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.24/mach/CORE" -fexceptions -O2 -Wno-deprecated C TPP2.c In file included from /usr/local/lib/perl5/5.24/mach/CORE/perl.h:3908:0, from CTPP2.xs:59: CTPP2.xs: In member function 'int CTPP2::param(SV*, CTPP::CDT*, CTPP::CDT*, const string&, int, int&)': /usr/local/lib/perl5/5.24/mach/CORE/pad.h:327:35: error: 'SV {aka struct sv}' has no member named 'xpadn_ourstash' #define PadnameOURSTASH(pn) (pn)->xpadn_ourstash ^ /usr/local/lib/perl5/5.24/mach/CORE/pad.h:350:27: note: in expansion of macro 'PadnameOURSTASH' #define SvPAD_OUR(pn) (!!PadnameOURSTASH(pn)) ^~~~~~~~~~~~~~~ CTPP2.xs:823:14: note: in expansion of macro 'SvPAD_OUR' else if (SvPAD_OUR(pParams)) ^~~~~~~~~ /usr/local/lib/perl5/5.24/mach/CORE/pad.h:327:35: error: 'SV {aka struct sv}' has no member named 'xpadn_ourstash' #define PadnameOURSTASH(pn) (pn)->xpadn_ourstash ^ /usr/local/lib/perl5/5.24/mach/CORE/pad.h:354:21: note: in expansion of macro 'PadnameOURSTASH' #define SvOURSTASH PadnameOURSTASH ^~~~~~~~~~~~~~~ CTPP2.xs:825:24: note: in expansion of macro 'SvOURSTASH' return param((SV*)SvOURSTASH(pParams), pCDT, pUplinkCDT, sKey, iPrevIsHash, iProcessed); ^~~~~~~~~~ *** Error code 1 Stop. make: stopped in /root/.cpan/build/HTML-CTPP2-2.6.7-14 STELLAR/HTML-CTPP2-2.6.7.tar.gz /usr/bin/make -- NOT OK Failed during this command: STELLAR/HTML-CTPP2-2.6.7.tar.gz : make NO
IF i trying to compile by source version higher I have getting following mistake. root@svstroi-lk:/opt/HTML-CTPP2-2.8.2 # perl Makefile.PL perl thinks the current OS is 'freebsd' Warning (mostly harmless): No library found for -lstdc++ Generating a Unix-style Makefile Writing Makefile for HTML::CTPP2 Writing MYMETA.yml and MYMETA.json root@svstroi-lk:/opt/HTML-CTPP2-2.8.2 #
The FreeBSD port corresponding to this CPAN module is textproc/p5-HTML-CTPP2 . Unfortunately it was marked broken nearly 3 years ago via r388857: "Mark those BROKEN, they don't build with Perl 5.22+." I will forward this report to the port maintainer. Note, however, that the FreeBSD Ports Collection generally only supports building via one of its ports, and not via CPAN directly.
Where do you find a higher version? CPAN only has 2.6.7 at most: https://metacpan.org/release/HTML-CTPP2
fwiw: textproc/p5-HTML-CTPP2 has recently been marked as BROKEN/DEPRECATED. It needs someone to volunteer to fix it up.
(In reply to Vladislav from comment #0) You can try to get CTPP2 && HTML::CTPP2 from this fork: https://github.com/waaeer/ctpp https://github.com/waaeer/ctpp-perl As far as I know nobody tried to build it on FreeBSD but under Linux it works fine and the problem with perl => 5.22 compatibility solved there.