Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 5286
Status: resolved
Priority: 0/
Queue: Imager

People
Owner: TONYC [...] cpan.org
Requestors: eamon [...] eamondaly.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.42
Fixed in: 0.41



Subject: "make test" fails on RedHat ES: "undefined symbol: FT_Get_Postscript_Name"
0.42 fails "make test" with repeated "undefined symbol: FT_Get_Postscript_Name" errors. 0.41 passes cleanly. [Imager-0.42]$ IM_VERBOSE=1 perl Makefile.PL Verbose mode pathcheck Include paths: /sw/include /usr/include/freetype2 /usr/local/include/freetype2 /usr/include /usr/local/include /usr/include/freetype /usr/local/include/freetype /sw/include doesnt exist or is unaccessible - removed. /usr/local/include/freetype2 doesnt exist or is unaccessible - removed. /usr/include/freetype doesnt exist or is unaccessible - removed. /usr/local/include/freetype doesnt exist or is unaccessible - removed. Library paths: /usr/include/freetype2 /usr/include /usr/local/include /sw/lib doesnt exist or is unaccessible - removed. done. freetype2: includes found - libraries found gif: includes found - libraries found png: includes found - libraries found jpeg: includes found - libraries found ungif: includes found - libraries found T1-fonts: includes not found - libraries not found w32: includes not found - libraries not found tiff: includes found - libraries found TT-fonts: includes not found - libraries found ungif and gif can not coexist - removing ungif support You have libgif or libungif installed. They are both known to have bugs. Imager can crash or display other strange behaviour after reading or writing gif images. Some of the gif tests can even fail since they stress some parts of the buggy code. Do you want to remove gif support? [Y/n] n $VAR1 = { 'VERSION_FROM' => 'Imager.pm', 'DEFINE' => '-DIM_GIFMAJOR=4 -DIM_GIFMINOR=0 -DHAVE_FT2 -DHAVE_LIBGIF -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DIMAGER_LOG -DOS_linux ', 'OBJECT' => 'Imager.o draw.o polygon.o image.o io.o iolayer.o log.o gaussian.o conv.o pnm.o raw.o feat.o font.o filters.o dynaload.o stackmach.o datatypes.o regmach.o trans2.o quant.o error.o convert.o map.o tags.o palimg.o maskimg.o img16.o rotate.o bmp.o tga.o rgb.o color.o fills.o imgdouble.o freetyp2.o gif.o png.o jpeg.o tiff.o', 'ABSTRACT' => 'Perl extension for Generating 24 bit Images', 'LIBS' => ' -lm -L/usr/local/lib -L/lib -L/usr/lib -lfreetype -lgif -lpng -lz -ljpeg -ltiff', 'clean' => { 'FILES' => 'testout' }, 'NAME' => 'Imager', 'INC' => ' -I/usr/include/freetype2 -I/usr/local/include', 'AUTHOR' => 'Arnar M. Hrafnkelsson, addi@umich.edu' }; MakeMaker (v6.17) Writing Makefile for Imager::plugins Writing Makefile for Imager [Imager-0.42]$ make test make[1]: Entering directory `/home/edaly/Imager-0.42/dynfilt' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/edaly/Imager-0.42/dynfilt' PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/t00basic........Can't load '/home/edaly/Imager-0.42/blib/arch/auto/Imager/Imager.so' for module Imager: /home/edaly/Imager-0.42/blib/arch/auto/Imager/Imager.so: undefined symbol: FT_Get_Postscript_Name at /usr/local/lib/perl5/5.8.1/i686-linux/DynaLoader.pm line 229. at /usr/local/lib/perl5/5.8.1/i686-linux/DynaLoader.pm line 153 BEGIN failed--compilation aborted at /home/edaly/Imager-0.42/blib/lib/Imager.pm line 153. Compilation failed in require at t/t00basic.t line 11. BEGIN failed--compilation aborted at t/t00basic.t line 11. t/t00basic........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-2 Failed 2/2 tests, 0.00% okay [Imager-0.41]$ IM_VERBOSE=1 perl Makefile.PL Verbose mode pathcheck Include paths: /usr/include/freetype2 /usr/local/include/freetype2 /usr/include /usr/local/include /usr/include/freetype /usr/local/include/freetype /usr/local/include/freetype2 doesnt exist or is unaccessible - removed. /usr/include/freetype doesnt exist or is unaccessible - removed. /usr/local/include/freetype doesnt exist or is unaccessible - removed. Library paths: /usr/include/freetype2 /usr/include /usr/local/include done. T1-fonts: includes not found - libraries not found TT-fonts: includes not found - libraries found png: includes found - libraries found freetype2: includes found - libraries found w32: includes not found - libraries not found ungif: includes found - libraries found tiff: includes found - libraries found jpeg: includes found - libraries found gif: includes found - libraries found ungif and gif can not coexist - removing ungif support You have libgif or libungif installed. They are both known to have bugs. Imager can crash or display other strange behaviour after reading or writing gif images. Some of the gif tests can even fail since they stress some parts of the buggy code. Do you want to remove gif support? [Y/n] n $VAR1 = { 'NAME' => 'Imager', 'AUTHOR' => 'Arnar M. Hrafnkelsson, addi@umich.edu', 'INC' => ' -I/usr/include/freetype2 -I/usr/local/include', 'LIBS' => ' -lm -L/usr/local/lib -L/lib -L/usr/lib -lpng -lz -lfreetype -ltiff -ljpeg -lgif', 'DEFINE' => '-DIM_GIFMAJOR=4 -DIM_GIFMINOR=0 -DHAVE_LIBPNG -DHAVE_FT2 -DHAVE_LIBTIFF -DHAVE_LIBJPEG -DHAVE_LIBGIF -DIMAGER_LOG -DOS_linux ', 'OBJECT' => 'Imager.o draw.o polygon.o image.o io.o iolayer.o log.o gaussian.o conv.o pnm.o raw.o feat.o font.o filters.o dynaload.o stackmach.o datatypes.o regmach.o trans2.o quant.o error.o convert.o map.o tags.o palimg.o maskimg.o img16.o rotate.o bmp.o tga.o rgb.o color.o fills.o imgdouble.o png.o freetyp2.o tiff.o jpeg.o gif.o', 'clean' => { 'FILES' => 'testout' }, 'ABSTRACT' => 'Perl extension for Generating 24 bit Images', 'VERSION_FROM' => 'Imager.pm' }; MakeMaker (v6.17) Writing Makefile for Imager::plugins Writing Makefile for Imager [Imager-0.41]$ make test make[1]: Entering directory `/home/edaly/.cpan/build/Imager-0.41/dynfilt' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/edaly/.cpan/build/Imager-0.41/dynfilt' PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/t00basic........ok t/t01introvert....ok t/t020masked......ok t/t021sixteen.....ok t/t022double......ok t/t05error........ok t/t07iolayer......ok t/t101jpeg........ok t/t102png.........ok t/t103raw.........ok t/t104ppm.........ok t/t105gif.........ok t/t106tiff........ok t/t107bmp.........ok t/t108tga.........ok t/t15color........ok t/t16matrix.......ok t/t20fill.........ok t/t21draw.........ok t/t30t1font.......ok 5/6 skipped: t1lib unavailable or disabled t/t35ttfont.......ok 2/3 skipped: t/t36oofont.......ok 6/7 skipped: t/t37w32font......ok 3/4 skipped: not MS Windows t/t38ft2font......ok t/t40scale........ok t/t50basicoo......ok t/t55trans........ok 4/5 skipped: t/t56postfix......ok t/t57infix........ok 6/7 skipped: - no Parse::RecDescent t/t58trans2.......ok t/t59assem........ok t/t60dyntest......ok t/t61filters......ok t/t64copyflip.....ok t/t65crop.........ok t/t66paste........ok t/t67convert......ok t/t68map..........ok t/t69rubthru......ok t/t70newgif.......ok t/t75polyaa.......ok t/t90cc...........ok All tests successful, 26 subtests skipped. Files=42, Tests=995, 14 wallclock secs (10.56 cusr + 3.11 csys = 13.67 CPU) make[1]: Entering directory `/home/edaly/.cpan/build/Imager-0.41/dynfilt' \/bin/sh -c true No tests defined for Imager::plugins extension. make[1]: Leaving directory `/home/edaly/.cpan/build/Imager-0.41/dynfilt' $ uname -a Linux www 2.4.9-e.37smp #1 SMP Mon Jan 26 10:53:54 EST 2004 i686 unknown $ perl -v This is perl, v5.8.1 built for i686-linux
[guest - Wed Feb 11 08:35:39 2004]: Show quoted text
> 0.42 fails "make test" with repeated "undefined symbol: > FT_Get_Postscript_Name" errors. 0.41 passes cleanly.
0.42 added a new method to retrieve the face name of a font. I've only managed to reproduce the above undefined symbol error by using an older version of freetype2 (2.0.4), which is only reasonable since FT_Get_Postscript_Name was introduced in 2.0.5. Are you using an older version of freetype2? I've made some changes to freetyp2.c to attempt to detect older versions and handle the missing function correctly, and changed the test code to handle that, but if you aren't using an older version of freetype2 then this problem will require more work. Tony Cook
I think RT treated my reply as a comment and didn't pass it on. Hi, This has been fixed in CVS, but hasn't been released in a new release yet. I've made the fixed freetyp2.c available at: http://www.develop-help.com/freetyp2.c for now. Tony [eamon@eamondaly.com - Thu Mar 18 12:11:07 2004]: Show quoted text
> FYI, Imager version 0.43 still fails with repeated > "undefined symbol: FT_Get_Postscript_Name" errors when using > freetype 2.0.3-7 under the RedHat Enterprise installation. >