libredwg icon indicating copy to clipboard operation
libredwg copied to clipboard

Make test failing: "undefined symbol: dwg_setup_ENDBLK"

Open no-such-user opened this issue 4 years ago • 1 comments

I'm getting the following, in response to "make test"

make[3]: Leaving directory '/libredwg/bindings/python'
make[3]: Entering directory '/libredwg/bindings'
Making all for perl
Making check for perl
if grep "NOOP = rem" perl/Makefile; then false; else \
    LD_LIBRARY_PATH="/libredwg/src/.libs" make -C perl test \
      PERL="/usr/bin/perl" OPTIMIZE="-I/libredwg/include -I/libredwg/src" \
              OTHERLDFLAGS="-L/libredwg/src/.libs"; fi
make[4]: Entering directory '/libredwg/bindings/perl'
/usr/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- LibreDWG.bs blib/arch/auto/LibreDWG/LibreDWG.bs 644
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/0_basic.t .. 1/1 
#   Failed test 'use LibreDWG;'
#   at t/0_basic.t line 2.
#     Tried to use 'LibreDWG'.
#     Error:  Can't load '/libredwg/bindings/perl/blib/arch/auto/LibreDWG/LibreDWG.so' for module LibreDWG: /libredwg/bindings/perl/blib/arch/auto/LibreDWG/LibreDWG.so: undefined symbol: dwg_setup_ENDBLK at /usr/lib/x86_64-linux-gnu/perl/5.30/DynaLoader.pm line 193.
#  at /libredwg/bindings/perl/blib/lib/LibreDWG.pm line 11.
# Compilation failed in require at t/0_basic.t line 2.
# BEGIN failed--compilation aborted at t/0_basic.t line 2.
# Looks like you failed 1 test of 1.
t/0_basic.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Test Summary Report
-------------------
t/0_basic.t (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=1,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.16 cusr  0.02 csys =  0.20 CPU)
Result: FAIL
Failed 1/1 test programs. 1/1 subtests failed.
make[4]: *** [Makefile:1000: test_dynamic] Error 1
make[4]: Leaving directory '/libredwg/bindings/perl'
make[3]: [Makefile:789: check-am] Error 2 (ignored)
make[3]: Leaving directory '/libredwg/bindings'

This is running in a docker ubuntu container. Complete setup was:

    1 apt update
    2  apt install sudo # Just saves time when passing examples that use sudo
    3  sudo apt-get install git autoconf libtool swig python-dev texinfo build-essential gcc
    4  git clone git://git.sv.gnu.org/libredwg.git
    5  cd libredwg/
    6  sh autogen.sh
    7  sudo apt install python3.9
    8  apt-get install python3.9-dev
    9  make
   10 sudo make install 
   11  make check

no-such-user avatar Oct 08 '21 19:10 no-such-user

Cannot repro on fedora 34, will now try in your docker

rurban avatar Oct 10 '21 09:10 rurban

I believe that this issue was a development issue and it's gone. I am in favor of closing the issue.

michal-josef-spacek avatar Jan 06 '23 12:01 michal-josef-spacek