A quem interessar, duas notícias. A boa é que o re::engine::TRE foi desenterrado e ressuscitado: https://metacpan.org/module/re::engine::TRE A ruim é que o coveiro e o Dr. Frankenstein na mesma pessoa "soy jo".
ABS() On Thu, Jun 28, 2012 at 6:20 PM, Stanislaw Pusep <[email protected]>wrote: > Perlssoal, esses dias me deparei com a biblioteca TRE ( > http://laurikari.net/tre/about/): > > TRE is a lightweight, robust, and efficient POSIX compliant regexp >> matching library with some exciting features such as approximate (fuzzy) >> matching. > > > Um dos exemplos de aplicação prática dela é o utilitário 'agrep' > (approximate grep). > Obviamente, tentei compilar a interface para Perl ( > https://github.com/avar/re-engine-tre). Porém esse módulo não está no > CPAN, e me parece bastante desatualizado. > De fato, não compila. retorna erros como: > > cc -c -Itre -fno-strict-aliasing -pipe -fstack-protector > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 > -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC > "-I/home/stas/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux/CORE" > TRE.c > In file included from TRE.xs:7:0: > TRE.h:22:5: warning: initialization from incompatible pointer type > [enabled by default] > TRE.h:22:5: warning: (near initialization for ‘engine_tre.comp’) [enabled > by default] > TRE.xs: In function ‘TRE_comp’: > TRE.xs:42:7: error: ‘REGEXP’ has no member named ‘refcnt’ > TRE.xs:43:7: error: ‘REGEXP’ has no member named ‘extflags’ > TRE.xs:44:7: error: ‘REGEXP’ has no member named ‘engine’ > TRE.xs:47:7: error: ‘REGEXP’ has no member named ‘prelen’ > ... > > Analisando outros módulos do namespace re::engine::* (RE2, PCRE, Plan9), > percebi que a struct REGEXP em questão é recorrente. Aliás, > re::engine::Plan9 não compila por causa do mesmo erro. > E, infelizmente, o nome REGEXP é ambíguo demais para googlar :( > Alguém faz alguma ideia do que esteja acontecendo? > > ABS() > >
_______________________________________________ Rio-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/rio-pm
