dk / PDL-Drawing-Prima

Low-level PDL-threaded interface to the Prima drawing commands.
5 stars 4 forks source link

undefined symbol: apc_gp_fill_poly #28

Closed chorny closed 10 years ago

chorny commented 10 years ago
#   Failed test 'use PDL::Drawing::Prima;'
#   at t/00-load-main.t line 6.
#     Tried to use 'PDL::Drawing::Prima'.
#     Error:  Can't load '/home/c/.cpan/build/PDL-Drawing-Prima-0.10-vJhDHS/blib/arch/auto/PDL/Drawing/Prima/Prima.so' for module PDL::Drawing::Prima: /home/c/.cpan/build/PDL-Drawing-Prima-0.10-vJhDHS/blib/arch/auto/PDL/Drawing/Prima/Prima.so: undefined symbol: apc_gp_fill_poly at /home/c/perl5/perlbrew/perls/18.1i/lib/5.18.1/i686-linux-thread-multi/DynaLoader.pm line 190.
#  at t/00-load-main.t line 6.
# Compilation failed in require at t/00-load-main.t line 6.
# BEGIN failed--compilation aborted at t/00-load-main.t line 6.

Prima-1.38

run4flat commented 10 years ago

Sorry for the delay.

Clearly this is a failure on Cygwin. Perlbrew on Cygwin, no less. What version of Windows do you have?

I remember encountering a lot of trouble with Windows. In particular if a dll was loaded and a dependent dll had not already been loaded, Windows would die with this sort of error. The solution was for me to put "use Prima" at the top of PDL::Drawing::Prima: https://github.com/run4flat/PDL-Drawing-Prima/blob/master/lib/PDL/Drawing/Prima.pm.PL#L3587. Are you working with the latest version from the git repo? If not, does your version at least have that insertion?

chorny commented 10 years ago

Error appeared on Linux with latest version from CPAN.. It appears only when Prima is not installed, but only built (doing "test PDL::Drawing::Prima" with CPAN client). So I can't test version from git.

run4flat commented 10 years ago

Linux. Perfect. I mistook the "c" in your path to be the cygwin c path, but I guess that's just your username on that machine. :-)

Just to clarify, when you say "Prima is not installed," do you mean

1) Prima (the GUI toolkit) was not installed, just included into @INC? 2) PDL::Drawing::Prima was not installed (so couldn't rely on something pre-built)?

chorny commented 10 years ago

first

dk commented 10 years ago

I think I nailed the issue in https://github.com/dk/Prima, can you possibly confirm that the latest github snapshot works?

run4flat commented 10 years ago

It's been a little while since I last heard about this. I'm going to assume that Dmitry solved this issue with his fix to Prima back in late May. Feel free to reopen this if the issue is still around. (Note that this fix to Prima has not yet been released to CPAN, so you'll need to install the latest Prima from Dmitry's git repo given above to test this.)