Control: tag -1 + patch On Sat, 19 Dec 2015 15:15:10 +0100, gregor herrmann wrote:
> make[5]: Entering directory '/«PKGBUILDDIR»/bindings' > /usr/bin/swig -c++ -I../bindings -I../bindings/c++/include -I../src/include > -I../src/libprelude-error -perl5 -o perl/PreludeEasy.cxx libpreludecpp.i > perl/libpreludecpp-perl.i:1: Error: Unknown SWIG preprocessor directive: > Exception (if this is a block of target language code, delimit it with %{ and > %}) > perl/libpreludecpp-perl.i:7: Error: Unknown SWIG preprocessor directive: > Conversion (if this is a block of target language code, delimit it with %{ > and %}) > Makefile:1530: recipe for target 'perl/PreludeEasy.cxx' failed > make[5]: *** [perl/PreludeEasy.cxx] Error 1 > make[5]: Leaving directory '/«PKGBUILDDIR»/bindings' The attached patch fixes these errors; now some warnings are left: make[5]: Entering directory '/build/libprelude-1.0.0/bindings' /usr/bin/swig -c++ -I../bindings -I../bindings/c++/include -I../src/include -I../src/libprelude-error -perl5 -o perl/PreludeEasy.cxx libpreludecpp.i ../bindings/c++/include/prelude-error.hxx:37: Warning 401: Nothing known about base class 'std::exception'. Ignored. ../bindings/c++/include/prelude-error.hxx:48: Warning 503: Can't wrap 'operator const char*' unless renamed to a valid identifier. ../bindings/c++/include/idmef.hxx:15: Warning 503: Can't wrap 'operator >>' unless renamed to a valid identifier. cd perl && LANG="" DESTDIR= LIBDIR=/usr/lib/x86_64-linux-gnu /usr/bin/perl Makefile.PL INSTALLDIRS=vendor CC="g++" Warning: -L../../src/.libs changed to -L/build/libprelude-1.0.0/bindings/perl/../../src/.libs Warning: -L../../bindings/c++/.libs changed to -L/build/libprelude-1.0.0/bindings/perl/../../bindings/c++/.libs Generating a Unix-style Makefile Writing Makefile for PreludeEasy Writing MYMETA.yml and MYMETA.json cd perl && make LD_RUN_PATH="" CC="g++" make[6]: Entering directory '/build/libprelude-1.0.0/bindings/perl' cp PreludeEasy.pm blib/lib/PreludeEasy.pm Running Mkbootstrap for PreludeEasy () chmod 644 "PreludeEasy.bs" g++ -c -I../.. -I../../src/include -I../../src/include -I../../src/libprelude-error -I../../bindings/c++/include -I../../libmissing -I../../libmissing -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_$ In file included from PreludeEasy.cxx:1637:0: ../../config.h:1564:0: warning: "VERSION" redefined #define VERSION "1.0.0" ^ <command-line>:0:0: note: this is the location of the previous definition Comments welcome if there is any reason to worry here. Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - https://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Beach Boys: Heroes And Villains
--- a/bindings/lua/libpreludecpp-lua.i +++ b/bindings/lua/libpreludecpp-lua.i @@ -1,9 +1,9 @@ -# Exception map +/* Exception map */ %typemap(throws) Prelude::PreludeError %{ SWIG_exception(SWIG_RuntimeError, $1.what()); %}; -# Lua overloading fixes +/* Lua overloading fixes */ %ignore IDMEFCriteria(std::string const &); %ignore IDMEFValue(int8_t); %ignore IDMEFValue(uint8_t); @@ -36,7 +36,7 @@ %ignore Set(char const *, float); %ignore Set(char const *, std::string); -# Conversion not allowed +/* Conversion not allowed */ %ignore *::operator =; %ignore *::operator int() const; --- a/bindings/perl/libpreludecpp-perl.i +++ b/bindings/perl/libpreludecpp-perl.i @@ -1,10 +1,10 @@ -# Exception map +/* Exception map */ %typemap(throws) Prelude::PreludeError %{ SWIG_exception(SWIG_RuntimeError, $1.what()); %}; -# Conversion not allowed +/* Conversion not allowed */ %ignore *::operator =; %ignore *::operator int() const; %ignore *::operator long() const;
signature.asc
Description: Digital Signature