Thread

Posted on Tue Feb 8 23:04:32 2005 by theoldman
make test errors
Solaris 9 system with lastest libgd install trying to install perl mod GD 2.19 on the make test I get an error bash-2.05# make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harne ss(0, 'blib/lib', 'blib/arch')" t/*.t t/GD..........Can't load './blib/arch/auto/GD/GD.so' for module GD: ld.so.1: /us r/local/bin/perl: fatal: relocation error: file /usr/local/lib/libgd.so.2: symbo l libiconv_open: referenced symbol not found at /usr/local/lib/perl5/5.8.6/sun4- solaris/DynaLoader.pm line 230. at t/GD.t line 13 Compilation failed in require at t/GD.t line 13. BEGIN failed--compilation aborted at t/GD.t line 13. t/GD..........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-10 Failed 10/10 tests, 0.00% okay t/Polyline....Can't load '/GD-2.19/blib/arch/auto/GD/GD.so' for module GD: ld.so .1: /usr/local/bin/perl: fatal: relocation error: file /usr/local/lib/libgd.so.2 : symbol libiconv_open: referenced symbol not found at /usr/local/lib/perl5/5.8. 6/sun4-solaris/DynaLoader.pm line 230. I am running gcc and perl was compiler on gcc and pointers of hints would be appreciated... -theoldman
Direct Responses: 74 | 76 | 834 | Write a response
Posted on Wed Feb 9 14:58:29 2005 by ivorw in response to 68
Re: make test errors

I think you might get a better response by raising an RT ticket than posting here. It also doesn't mangle the formatting for you :).

Either send mail to bug-GD@rt.cpan.org or visit rt.cpan.org

It's probably worthwhile checking some of the other tickets that are outstanding against this module.

Write a response
Posted on Wed Feb 9 16:47:42 2005 by gellyfish in response to 68
Re: make test errors
The problem is with the libgd not with the module - I would guess that you are using a precompiled GD library. You should download GD from http://www.boutell.com/gd/ and recompile it and then remake the GD module.
Direct Responses: 77 | Write a response
Posted on Wed Feb 9 23:45:52 2005 by theoldman in response to 76
Re: make test errors
I did and I still get the same errors. I just send an email to the bug report email address. Thanks to all for your replies. -theoldman
Direct Responses: 459 | Write a response
Posted on Mon May 16 13:36:07 2005 by edgewing in response to 77
Re: make test errors
Hi,

I know I'm a little late but better late etc. The bug you mention is actually in the build of gd. It creates an incorrect line in the gdlib-config script that is installed as part of the build.
You can fix this by modifying the appropriate line in the script (on my system it is in /usr/local/bin) thus :
--libs) echo -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm /usr/local/libiconv.so -L/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/lib
to :
--libs) echo -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm -liconv -L/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/lib

and also change the line for --all as this has the same problem.

This should fix it for anything that links gd and libiconv

Regards David

When in trouble, or in doubt
run in circles, scream and shout
Direct Responses: 785 | Write a response
Posted on Mon Jul 25 23:32:28 2005 by borland502 in response to 459
Re: make test errors
I believe this is the same error I'm experiencing in Cygwin, with the exception that it's GD.dll that's mia during the test. I see a test failure here: http://www.nntp.perl.org/group/perl.cpan.testers/189700 But I'm unsure how the solve the error. I saw the addition of -liconv for the mac environment as well, but if it's the solution for me it's not working. Anyone know a solution?
Write a response
Posted on Thu Aug 4 16:08:17 2005 by rabindra in response to 68
Re: make test errors
Hi there,

were you able to fix the above problem? I am having same problem in installing GD.pm. I am on Solaris 9 having Perl 5.6.1.

Please let me know if you found the solution.

Regards
Direct Responses: 2423 | Write a response
Posted on Wed Jun 7 10:49:03 2006 by zhangdj in response to 834
Re: make test errors
i have run into such problem before, now i have found how to avoid such things partly. This time I install GD mudule through the following orders: [root]#tar -xzvf GD-2.34.tar.gz [root]#cd GD-2.34 [root]#perl Makefile.PL [root]#make [root]#make test [root]#make install Pay attention, if you don't want to encounter the previous problem, you should NOT choose "Build support for animated GIFs" option, just as the following. [root]# perl Makefile.PL NOTICE: This module requires libgd 2.0.28 or higher. If you are using Math::Trig 1.01 or lower, it has a bug that causes a "prerequisite not found" warning to be issued. You may safely ignore this warning. Type perl Makefile.PL -h for command-line option summary Where is libgd installed? [/usr/lib] Please choose the features that match how libgd was built: Build JPEG support? [y]y Build PNG support? [y]y Build FreeType support? [y]y Build GIF support? [y]y Build support for animated GIFs? [y] n Build XPM support? [y]y If you experience compile problems, please check the @INC, @LIBPATH and @LIBS arrays defined in Makefile.PL and manually adjust, if necessary. Writing Makefile for GD [root]#
Write a response