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

tests fail with DynaLoader error #9

Open
jozef opened this issue Nov 10, 2019 · 0 comments
Open

tests fail with DynaLoader error #9

jozef opened this issue Nov 10, 2019 · 0 comments

Comments

@jozef
Copy link

jozef commented Nov 10, 2019

Hello,

trying to install Router::R3, but getting just DynaLoader error:

$ git clone https://github.com/CindyLinz/Perl-Router-R3.git
Cloning into 'Perl-Router-R3'...
remote: Enumerating objects: 186, done.
remote: Total 186 (delta 0), reused 0 (delta 0), pack-reused 186
Receiving objects: 100% (186/186), 130.17 KiB | 0 bytes/s, done.
Resolving deltas: 100% (88/88), done.
Checking connectivity... done.

$ cd Perl-Router-R3
Perl-Router-R3$ perl Makefile.PL 
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Router::R3
Writing MYMETA.yml and MYMETA.json

Perl-Router-R3$ make
cp fill_r3_source.pl blib/lib/Router/fill_r3_source.pl
cp lib/Router/R3.pm blib/lib/Router/R3.pm
AutoSplitting blib/lib/Router/R3.pm (blib/lib/auto/Router/R3)
cp try.pl blib/lib/Router/try.pl
Running Mkbootstrap for Router::R3 ()
chmod 644 R3.bs
/usr/bin/perl /usr/share/perl/5.20/ExtUtils/xsubpp  -typemap /usr/share/perl/5.20/ExtUtils/typemap  R3.xs > R3.xsc && mv R3.xsc R3.c
Please specify prototyping behavior for R3.xs (see perlxs manual)
cc -c  -I. -I/usr/local/include -O2 -std=c99 -O2 -g   -DVERSION=\"0.011001\" -DXS_VERSION=\"0.011001\" -fPIC "-I/usr/lib/i386-linux-gnu/perl/5.20/CORE"   R3.c
R3.xs: In function ‘r3_tree_insert_pathl_ex’:
R3.xs:1756:42: warning: passing argument 2 of ‘r3_node_find_common_prefix’ discards ‘const’ qualifier from pointer target type
     e = r3_node_find_common_prefix(tree, path, path_len, &prefix_len, &err);
                                          ^
R3.xs:1680:8: note: expected ‘char *’ but argument is of type ‘const char *’
 edge * r3_node_find_common_prefix(node *n, char *path, int path_len, int *prefix_len, char **errstr) {
        ^
rm -f blib/arch/auto/Router/R3/R3.so
cc  -shared -L/usr/local/lib -fstack-protector R3.o  -o blib/arch/auto/Router/R3/R3.so 	\
   -lpcre  	\
  
chmod 755 blib/arch/auto/Router/R3/R3.so
/usr/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- R3.bs blib/arch/auto/Router/R3/R3.bs 644
Manifying blib/man3/Router::R3.3pm

Perl-Router-R3$ make test
Running Mkbootstrap for Router::R3 ()
chmod 644 R3.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Router-R3.t .. 1/45 
#   Failed test 'use Router::R3;'
#   at t/Router-R3.t line 12.
#     Tried to use 'Router::R3'.
#     Error:  Can't use an undefined value as a subroutine reference at /usr/lib/i386-linux-gnu/perl/5.20/DynaLoader.pm line 210.
# END failed--call queue aborted at /home/jozef/prog/oss/Perl-Router-R3/blib/lib/Router/R3.pm line 210.
# Compilation failed in require at t/Router-R3.t line 12.
# BEGIN failed--compilation aborted at t/Router-R3.t line 12.
# Looks like you failed 1 test of 45.
t/Router-R3.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/45 subtests 

Test Summary Report
-------------------
t/Router-R3.t (Wstat: 256 Tests: 45 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=45,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.02 cusr  0.00 csys =  0.04 CPU)
Result: FAIL
Failed 1/1 test programs. 1/45 subtests failed.
Makefile:996: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 1

Can you please help?

Best regards
Jozef

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

No branches or pull requests

1 participant