[Buildroot] [PATCH 2/4] perl-gd: new package

François Perrad francois.perrad at gadz.org
Sun Jul 20 06:00:34 UTC 2014


2014-07-20 1:16 GMT+02:00 Yann E. MORIN <yann.morin.1998 at free.fr>:
> François, All,
>
> On 2014-07-19 21:58 +0200, Yann E. MORIN spake thusly:
>> On 2014-07-18 15:43 +0200, Francois Perrad spake thusly:
>> [--SNIP--]
>> > diff --git a/package/perl-gd/Config.in b/package/perl-gd/Config.in
>> > new file mode 100644
>> > index 0000000..7c85cfc
>> > --- /dev/null
>> > +++ b/package/perl-gd/Config.in
>> > @@ -0,0 +1,14 @@
>> > +config BR2_PACKAGE_PERL_GD
>> > +   bool "perl-gd"
>> > +   depends on !BR2_PREFER_STATIC_LIB
>> > +   select BR2_PACKAGE_ZLIB
>> > +   select BR2_PACKAGE_LIBPNG
>> > +   select BR2_PACKAGE_FREETYPE
>> > +   select BR2_PACKAGE_GD
>>
>> It looks like there are still issues with search paths, which include
>> path to the host system libraries:
>>     http://autobuild.buildroot.org/results/336/33633a683227ebce620cb4b4561cfe7d7cbf4ba8/build-end.log
>>
>> Extract of a failed build log:
>>
>>     LD_RUN_PATH="/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib"
>>     /scratch/peko/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
>>     -shared  GD.o  -o blib/arch/auto/GD/GD.so       \
>>     -L/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
>>     -L/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
>>     -L/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
>>     -L/usr/lib -L/usr/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12
>>     -lz -lm -lgd
>>
>>     /usr/lib/libXpm.so: file not recognized: File format not recognized
>>
>> Notice how it is looking for libs in -L/usr/lib -L/usr/lib.
>
> I was not able to reproduce this buildfailure. The only occurences are
> on Peter's machine, so maybe there is a peculirity with his setup.
>
> Which only reinforces my stance on having our own host-perl.
>
> Anyway, care to have a look at this issue, please? If not for a fix, at
> least for an explanation. Thanks! :-)
>

here, my analysis

perl-gd.mk contains :
    PERL_GD_CONF_OPT = \
    -options=FT,PNG \
    -lib_gd_path=$(STAGING_DIR)/usr \
    -lib_ft_path=$(STAGING_DIR)/usr \
    -lib_png_path=$(STAGING_DIR)/usr \
    -lib_zlib_path=$(STAGING_DIR)/usr \
    -ignore_missing_gd

when all these options are honored, the output of the configure step
looks like :

    Included Features:          FT,PNG
    GD library used from:
/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr
    FreeType library used from:
/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr
    PNG library used from:
/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr
    Zlib library used from:
/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr

here, we have

    Included Features:          GD_XPM GD_JPEG GD_FONTCONFIG
GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY
GD_ANIMGIF GD_FTCIRCLE VERSION_33
    GD library used from:       /usr
    FreeType library used from:
/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr
    PNG library used from:
/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr
    Zlib library used from:
/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr

so, at link time, we have problem with native libraries for GD, Gif,
Jpeg and Xpm.

François


> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


More information about the buildroot mailing list