rurban / re-engine-PCRE2

use pcre-jit instead of slow perl regex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined symbol: pcre2_get_ovector_count_8

rurban opened this issue · comments

see eg. http://www.cpantesters.org/cpan/report/c9fc6522-5977-11e9-80df-ef171f24ea8f

see also #34 for the other changed symbol in the lib

I encountered a similar problem attempting to install this distribution on FreeBSD-11.2 using cpanm as the installer. Excerpt from build.log:

$ vi /home/jkeenan/.cpanm/work/1556120967.58263/build.log

cpanm (App::cpanminus) 1.7044 on perl 5.029010 built for amd64-freebsd-thread-multi
[snip]
Running Mkbootstrap for PCRE2 ()
chmod 644 "PCRE2.bs"
rm -f blib/arch/auto/re/engine/PCRE2/PCRE2.so
cc  -I/home/jkeenan/testing/blead/lib/perl5/site_perl/5.29.10/amd64-freebsd-thread-multi/auto/share/dist/Alien-PCRE2/lib -shared  -L/usr/local/lib -fstack-protector-strong  PCRE2.o  -o blib/arch/auto/re/engine/PCRE2/PCRE2.so
chmod 755 blib/arch/auto/re/engine/PCRE2/PCRE2.so
"/usr/home/jkeenan/testing/blead/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- PCRE2.bs blib/arch/auto/re/engine/PCRE2/PCRE2.bs 644
PERL_DL_NONLAZY=1 "/usr/home/jkeenan/testing/blead/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/perl/*.t

#   Failed test 'use re::engine::PCRE2;'
#   at t/00-compile.t line 4.
#     Tried to use 're::engine::PCRE2'.
#     Error:  Can't load '/usr/home/jkeenan/.cpanm/work/1556120967.58263/re-engine-PCRE2-0.15/blib/arch/auto/re/engine/PCRE2/PCRE2.so' for module re::engine::PCRE2: /usr/home/jkeenan/.cpanm/work/1556120967.58263/re-engine-PCRE2-0.15/blib/arch/auto/re/engine/PCRE2/PCRE2.so: Undefined symbol "pcre2_get_ovector_count_8" at /home/jkeenan/testing/blead/lib/perl5/5.29.10/amd64-freebsd-thread-multi/DynaLoader.pm line 193.
# ^@ at t/00-compile.t line 4.
# Compilation failed in require at t/00-compile.t line 4.
# BEGIN failed--compilation aborted at t/00-compile.t line 4.
# Looks like you failed 1 test of 2.
t/00-compile.t ............
                                                                                      2646,1        93%
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
t/split.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 10 tests but ran 0.
t/subexp.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 9 tests but ran 0.
t/unimport.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
t/variable_expansion.t  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
Files=23, Tests=2,  2 wallclock secs ( 0.05 usr  0.02 sys +  1.39 cusr  0.33 csys =  1.80 CPU)
Result: FAIL
Failed 17/23 test programs. 1/2 subtests failed.
*** Error code 255

Stop.
make: stopped in /usr/home/jkeenan/.cpanm/work/1556120967.58263/re-engine-PCRE2-0.15
-> FAIL Installing re::engine::PCRE2 failed. See /home/jkeenan/.cpanm/work/1556120967.58263/build.log for details. Retry with --force to force install it.
12 distributions installed

[blead] $ l /usr/home/jkeenan/.cpanm/work/1556120967.58263/re-engine-PCRE2-0.15/blib/arch/auto/re/engine/PCRE2/PCRE2.so
-rwxr-xr-x  1 jkeenan  jkeenan  40275 Apr 24 15:52 /usr/home/jkeenan/.cpanm/work/1556120967.58263/re-engine-PCRE2-0.15/blib/arch/auto/re/engine/PCRE2/PCRE2.so
[blead] $ ./bin/perl -Ilib -V:config_args
config_args='-des -Dusedevel -Uversiononly -Dprefix=/home/jkeenan/testing/blead -Dman1dir=none -Dman3dir=none -Duseithreads -Doptimize=-O2 -pipe -fstack-protector -fno-strict-aliasing';