Giter VIP home page Giter VIP logo

perl-ctpp2's People

Contributors

azq2 avatar

Watchers

 avatar  avatar

perl-ctpp2's Issues

Не собирается

perl-ctpp2# make -j3
Running Mkbootstrap for HTML::CTPP2_8 ()
chmod 644 CTPP2_8.bs
/usr/bin/perl /usr/share/perl/5.20/ExtUtils/xsubpp  -C++ -typemap /usr/share/perl/5.20/ExtUtils/typemap -typemap perlobject.map -typemap typemap  CTPP2_8.xs > CTPP2_8.xsc && mv CTPP2_8.xsc CTPP2_8.c
g++ -c  -I/usr/local/include/ctpp2 -I/usr/include -I/usr/local/include -I.  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/i386-linux-gnu/perl/5.20/CORE"  -fexceptions -O2 -Wno-deprecated -Wall -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ctpp2.cpp
cp lib/HTML/CTPP2_8.pm blib/lib/HTML/CTPP2_8.pm
g++ -c  -I/usr/local/include/ctpp2 -I/usr/include -I/usr/local/include -I.  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/i386-linux-gnu/perl/5.20/CORE"  -fexceptions -O2 -Wno-deprecated -Wall -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ctpp2_functions.cpp
Please specify prototyping behavior for CTPP2_8.xs (see perlxs manual)
g++ -c  -I/usr/local/include/ctpp2 -I/usr/include -I/usr/local/include -I.  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/i386-linux-gnu/perl/5.20/CORE"  -fexceptions -O2 -Wno-deprecated -Wall -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 CTPP2_8.c
In file included from /usr/lib/i386-linux-gnu/perl/5.20/CORE/perl.h:5100:0,
                 from ctpp2.hpp:28,
                 from ctpp2.cpp:1:
ctpp2.cpp: In static member function ‘static void CTPP2::perl2cdt(SV*, CTPP::CDT*)’:
/usr/lib/i386-linux-gnu/perl/5.20/CORE/embed.h:218:51: error: invalid conversion from ‘int*’ to ‘I32* {aka long int*}’ [-fpermissive]
 #define hv_iterkey(a,b)  Perl_hv_iterkey(aTHX_ a,b)
                                                   ^
ctpp2.cpp:519:15: note: in expansion of macro ‘hv_iterkey’
     str_val = hv_iterkey(entry, &key_len);
               ^
In file included from /usr/lib/i386-linux-gnu/perl/5.20/CORE/perl.h:5059:0,
                 from ctpp2.hpp:28,
                 from ctpp2.cpp:1:
/usr/lib/i386-linux-gnu/perl/5.20/CORE/proto.h:1621:21: note: initializing argument 3 of ‘char* Perl_hv_iterkey(PerlInterpreter*, HE*, I32*)’
 PERL_CALLCONV char* Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen)
                     ^
Makefile:349: ошибка выполнения рецепта для цели «ctpp2.o»
make: *** [ctpp2.o] Ошибка 1
make: *** Ожидание завершения заданий…
CTPP2_8.c: In function ‘void XS_HTML__CTPP2_8_load_bytecode(PerlInterpreter*, CV*)’:
CTPP2_8.c:241:7: warning: unused variable ‘RETVAL’ [-Wunused-variable]
  SV * RETVAL;
       ^
CTPP2_8.c: In function ‘void XS_HTML__CTPP2_8_parse_template(PerlInterpreter*, CV*)’:
CTPP2_8.c:271:7: warning: unused variable ‘RETVAL’ [-Wunused-variable]
  SV * RETVAL;
       ^
CTPP2_8.c: In function ‘void XS_HTML__CTPP2_8_load_bytecode_string(PerlInterpreter*, CV*)’:
CTPP2_8.c:301:7: warning: unused variable ‘RETVAL’ [-Wunused-variable]
  SV * RETVAL;
       ^
CTPP2_8.c: In function ‘void XS_HTML__CTPP2_8_parse_text(PerlInterpreter*, CV*)’:
CTPP2_8.c:331:7: warning: unused variable ‘RETVAL’ [-Wunused-variable]
  SV * RETVAL;
       ^

Не собирается (/usr/include/c++/v1/utility:266:9: error: field has incomplete type 'CTPP::CDT')

$ uname -a
FreeBSD 10.4-RELEASE-p3 FreeBSD 10.4-RELEASE-p3 #0: Tue Nov 14 09:06:09 UTC 2017     [email protected]:/usr/obj/usr/src/sys/GENERIC  i386```
$ perl -v

This is perl 5, version 24, subversion 3 (v5.24.3) built for i386-freebsd-thread-multi-64int
...
$ cmake .
-- #### INFO: Using STL classes with STD namespace
-- #### System name is: FreeBSD
-- #### Building for FreeBSD...
-- #### INFO: MD5 (openssl) hash function support enabled
-- #### INFO: ICONV converter support enabled
-- #### INFO: Optimized build mode enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/ctpp2
$ make -j3
[  1%] Built target doc
[  2%] Building CXX object CMakeFiles/ctpp2.dir/src/CDT.cpp.o
[  2%] Building CXX object CMakeFiles/ctpp2-static.dir/src/CDTSortRoutines.cpp.o
[  3%] Building CXX object CMakeFiles/ctpp2-static.dir/src/CDT.cpp.o
In file included from /home/user/ctpp2/src/CDT.cpp:32:
In file included from /home/user/ctpp2/include/CDT.hpp:40:
In file included from /home/user/ctpp2/include/STLMap.hpp:39:
In file included from /usr/include/c++/v1/map:423:
In file included from /usr/include/c++/v1/__tree:16:
In file included from /usr/include/c++/v1/memory:602:
/usr/include/c++/v1/utility:266:9: error: field has incomplete type 'CTPP::CDT'
    _T2 second;
        ^
/usr/include/c++/v1/map:629:16: note: in instantiation of template class 'std::__1::pair<const std::__1::basic_string<char>, CTPP::CDT>' requested here
    value_type __cc;
               ^
/usr/include/c++/v1/__tree:603:16: note: in instantiation of template class 'std::__1::__value_type<std::__1::basic_string<char>, CTPP::CDT>' requested here
    value_type __value_;
               ^
/usr/include/c++/v1/__tree:625:22: note: in instantiation of template class 'std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char>, CTPP::CDT>, void *>' requested here
    typedef typename __node::base                                 __node_base;
                     ^
/usr/include/c++/v1/map:650:19: note: in instantiation of template class 'std::__1::__tree_iterator<std::__1::__value_type<std::__1::basic_string<char>, CTPP::CDT>, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char>, CTPP::CDT>, void *> *, int>' requested here
    _TreeIterator __i_;
                  ^
/home/user/ctpp2/include/CDT.hpp:1785:22: note: in instantiation of template class 'std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::basic_string<char>, CTPP::CDT>, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char>, CTPP::CDT>, void *> *, int> >' requested here
                CDT::Map::iterator itMap;
                                   ^
/home/user/ctpp2/include/CDT.hpp:55:17: note: definition of 'CTPP::CDT' is not complete until the closing '}'
class CTPP2DECL CDT
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.