From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sat, 19 Jul 2014 21:58:16 +0200 Subject: [Buildroot] [PATCH 2/4] perl-gd: new package In-Reply-To: <1405691019-10397-2-git-send-email-francois.perrad@gadz.org> References: <1405691019-10397-1-git-send-email-francois.perrad@gadz.org> <1405691019-10397-2-git-send-email-francois.perrad@gadz.org> Message-ID: <20140719195816.GK3593@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Fran?ois, All, 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. Since xlib_libXpm and xlib_libX11, as well as fontconfig and jpeg are not enabled in this build, and that we do not package libpng-1.2, it will try to link with all these libs: -lXpm -lX11 -ljpeg -lfontconfig -lpng12 using the host ones. Maybe we should explicitly idsable those deps if the corresponding packages are not enabled, no? I'll be looking at it, but if I can't find anything obvious, I'll let you, Fran?ois, look into that. Well, I already found that Makefile.PL has hardcoded paths to the host system, but they all seem conditional to something; I'll see if we can trigger (or not trigger) those conditions. 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. | '------------------------------^-------^------------------^--------------------'