For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > December 2004 > GD make test problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author GD make test problem
rodneyr

2004-11-29, 3:59 pm

I´m trying to install GD-2.19 and I´m having problem during "make
teste".

My softwares are:

- Solaris 8
- gcc_small-3.3.2 and libiconv-1.8 (from Sunfreeware)
- perl-5.8.5 (from source)
- xpm-3.4k (from Sunfreeware)
- freetype-2.1.7 (from Sunfreeware)
- libpng-1.2.7 (from Sunfreeware)
- zlib-1.2.1 (from Sunfreeware)
- jpeg-6b (from Sunfreeware)
- gd-2.0.32 (from source)

The GD2.19 compiles, but when I run "make test", I have the following
errors:

========================================
========================================
machine
# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........Can't load './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.5/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
'/home/install/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.5/sun4-solaris/DynaLoader.pm line
230.
at /home/install/GD-2.19/blib/lib/GD/Polyline.pm line 45
Compilation failed in require at
/home/install/GD-2.19/blib/lib/GD/Polyline.pm line 45.
BEGIN failed--compilation aborted at
/home/install/GD-2.19/blib/lib/GD/Polyline.pm line 45.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/GD.t 255 65280 10 19 190.00% 1-10
t/Polyline.t 255 65280 1 2 200.00% 1
Failed 2/2 test scripts, 0.00% okay. 11/11 subtests failed, 0.00%
okay.
make: *** [test_dynamic] Error 2
========================================
========================================


What I have noticed is that whe I run "perl Makefile.PL" I receive the
message:

======
Unrecognized argument in LIBS ignored: '/usr/local/lib/libiconv.so'
======

It seems that the error message is related whith the message above.

Could anyone help me? I think that this problem is affecting many
Solaris users, like me.

Thanks in advance,

Rodney
Pavel Petrov

2004-12-22, 3:58 pm

Here I write how I handle this and successfuly work around this
problem:
1) The situation is the same. I also after executing "perl Makefile.PL"
get following:
Unrecognized argument in LIBS ignored: '/usr/local/lib/libiconv.so'
Unrecognized argument in LIBS ignored: '-Wl,-rpath'
Unrecognized argument in LIBS ignored: '-Wl,/usr/local/lib'

2) Then I decide to check what is in @LIBS:
I add in Makefile.PL after "@LIBS = qw(-lgd -lpng -lz) unless
@LIBS;" this:
print "|$_|\n" foreach @LIBS;

3) Run again "perl Makefile.PL" and the output was:
|-ljpeg|
|-lfontconfig|
|-lfreetype|
|-lpng12|
|-lz|
|-lm|
|/usr/local/lib/libiconv.so|
|-Wl,-rpath|
|-Wl,/usr/local/lib|
|-lgd|

4) So, I decide to remove the items "/usr/local/lib/libiconv.so",
"-Wl,-rpath" and "-Wl,/usr/local/lib" from the list and
following the Lincoln's advice add -liconv to the list of libraries:
I add in Makefile.PL after "@LIBS = qw(-lgd -lpng -lz) unless
@LIBS;" this:
@LIBS = qw(-liconv -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm
-lgd);
(and I don't forget to remove this: print "|$_|\n" foreach @LIBS;)

Now, when running again "perl Makefile.PL", make, make test there is no
any problems and GD.pm is working as well.

Pavel Petrov
ue-varna.bg

Pavel Petrov

2004-12-28, 8:59 am

of stuffing in the wrap, roll tightly -
corner nearest you first, fold 2 side corners in,
wrap till remaining corner is left.
Brush with egg, seal, and allow to sit on the seal for
a few minutes.
Fry the rolls:
325° if using egg roll wraps, 350° for spring roll wraps.
Deep fry in peanut oil till crispy golden brown, drain on paper towels.



Lemon Neonate

Turkey serves just as well, and in fact even looks a bit like a
well-dressed baby. By the time you turn the child?s breast into
cutlets, it will be indistinguishable. The taste of young human,
although similar to turkey (and chicken) often can be wildly
different depending upon what he or she has consumed during its
10 to 14 months of life...

4 well chosen cutlets (from the breasts of 2 healthy neonates)
2 large lemons (fresh lemons always, if possible)
Olive oil
Green onions
Salt
pepper
cornstarch
neonate stock (chicken, or turkey stock is fine)
garlic
parsley
fresh cracked black pepper

Season and sauté the cutlets in olive oil till g


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com