Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: pcre2_get_ovector_count_8 #33

Open
rurban opened this issue Apr 8, 2019 · 1 comment
Open

undefined symbol: pcre2_get_ovector_count_8 #33

rurban opened this issue Apr 8, 2019 · 1 comment
Labels

Comments

@rurban
Copy link
Owner

rurban commented Apr 8, 2019

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

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

@rurban rurban added the bug label Apr 12, 2019
@jkeenan
Copy link

jkeenan commented Apr 24, 2019

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';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants