[SP-pm] :engine::TRE

Stanislaw Pusep creaktive at gmail.com
Thu Jun 28 14:20:58 PDT 2012


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()
-------------- Pr�xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20120628/2c92a7ad/attachment.html>


More information about the SaoPaulo-pm mailing list