Created attachment 413688 [details] emerge --info On my hardened ~amd64 machine with gcc-5.2.0 I see the following a bit misterious error. Please advise on how to proceed. chmod 755 blib/arch/auto/Pango/Pango.so "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pango.bs blib/arch/auto/Pango/Pango.bs 644 Generating POD... Can't load 'blib/arch/auto/Pango/Pango.so' for module Pango: blib/arch/auto/Pango/Pango.so: undefined symbol: pango_cairo_update_layout at /usr/lib64/perl5/5.22.0/x86_64-linux/DynaLoader.pm line 193. at -e line 0. Compilation failed in require.
Created attachment 413690 [details] build log
*** Bug 562390 has been marked as a duplicate of this bug. ***
This is due to recent pkg-config no longer adding spaces around libs, and Makefile.PL just appending the new libraries, resulting in -lglib-2.0-lpangocairo-1.0 instead of -lglib-2.0 -lpangocairo-1.0 as argument. This patch should fix the issue: https://github.com/voidlinux/void-packages/blob/master/srcpkgs/perl-Pango/patches/fix-pangocairo_libs.patch
i add(In reply to Chí-Thanh Christopher Nguyễn from comment #3) > This is due to recent pkg-config no longer adding spaces around libs, and > Makefile.PL just appending the new libraries, resulting in > -lglib-2.0-lpangocairo-1.0 > instead of > -lglib-2.0 -lpangocairo-1.0 > as argument. > > This patch should fix the issue: > https://github.com/voidlinux/void-packages/blob/master/srcpkgs/perl-Pango/ > patches/fix-pangocairo_libs.patch i added this to: Pango # pwd /etc/portage/patches/dev-perl/Pango why does not patch?
(In reply to Chí-Thanh Christopher Nguyễn from comment #3) > This is due to recent pkg-config no longer adding spaces around libs, and > Makefile.PL just appending the new libraries, resulting in > -lglib-2.0-lpangocairo-1.0 > instead of > -lglib-2.0 -lpangocairo-1.0 > as argument. > > This patch should fix the issue: > https://github.com/voidlinux/void-packages/blob/master/srcpkgs/perl-Pango/ > patches/fix-pangocairo_libs.patch emerge -1 gtk2-perl * IMPORTANT: 22 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 2) dev-perl/Pango-1.224.0::gentoo * Pango-1.224.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking Pango-1.224.tar.gz to /var/tmp/portage/dev-perl/Pango-1.224.0/work >>> Source unpacked in /var/tmp/portage/dev-perl/Pango-1.224.0/work >>> Preparing source in /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224 ... * Applying user patches from /etc/portage/patches//dev-perl/Pango-1.224.0 ... * Done with patching >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224 ... * Using ExtUtils::MakeMaker * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/Pango-1.224.0/image/ Including generated API documentation... Checking if your kit is complete... Looks good Warning (mostly harmless): No library found for -lglib-2.0-lpangocairo-1.0 Generating a Unix-style Makefile Writing Makefile for Pango Writing MYMETA.yml and MYMETA.json >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224 ... * emake OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed make -j9 'OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed' Running Mkbootstrap for Pango () [ XS xs/PangoAttributes.xs ] [ XS xs/Pango.xs ] [ XS xs/PangoContext.xs ] [ XS xs/PangoFont.xs ] [ XS xs/PangoFontset.xs ] [ XS xs/PangoFontMap.xs ] [ XS xs/PangoLayout.xs ] chmod 644 "Pango.bs" [ XS xs/PangoRenderer.xs ] cp pango-perl.h blib/arch/Pango/Install/pango-perl.h cp /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224/pango.typemap blib/arch/Pango/Install/pango.typemap cp build/pango-perl-versions.h blib/arch/Pango/Install/pango-perl-versions.h cp /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224/build/pango-perl.typemap blib/arch/Pango/Install/pango-perl.typemap cp build/IFiles.pm blib/arch/Pango/Install/Files.pm cp doctypes blib/arch/Pango/Install/doctypes cp lib/Pango.pm blib/lib/Pango.pm cp build/pango-perl-autogen.h blib/arch/Pango/Install/pango-perl-autogen.h [ XS xs/PangoScript.xs ] [ XS xs/PangoTabs.xs ] [ XS xs/PangoTypes.xs ] [ XS xs/PangoCairo.xs ] [ XS xs/PangoGravity.xs ] [ XS xs/PangoMatrix.xs ] "/usr/bin/perl" -MExtUtils::Command -e mkpath blib/lib/Pango/ Parsing XS files... [ CC xs/PangoAttributes.c ] [ CC xs/Pango.c ] [ CC xs/PangoContext.c ] [ CC xs/PangoFont.c ] [ CC xs/PangoFontset.c ] [ CC xs/PangoFontMap.c ] [ CC xs/PangoLayout.c ] [ CC xs/PangoRenderer.c ] [ CC xs/PangoScript.c ] [ CC xs/PangoTabs.c ] [ CC xs/PangoTypes.c ] [ CC xs/PangoGravity.c ] [ CC xs/PangoMatrix.c ] [ CC xs/PangoCairo.c ] xs/PangoCairo.xs: In function ‘XS_Pango__Cairo__FontMap_create_context’: xs/PangoCairo.xs:73:2: warning: ‘pango_cairo_font_map_create_context’ is deprecated (declared at /usr/include/pango-1.0/pango/pangocairo.h:93): Use 'pango_font_map_create_context' instead [-Wdeprecated-declarations] context = pango_cairo_font_map_create_context (fontmap); ^ rm -f blib/arch/auto/Pango/Pango.so [ LD blib/arch/auto/Pango/Pango.so ] chmod 755 blib/arch/auto/Pango/Pango.so "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pango.bs blib/arch/auto/Pango/Pango.bs 644 Generating POD... /usr/bin/perl: symbol lookup error: blib/arch/auto/Pango/Pango.so: undefined symbol: pango_cairo_font_map_get_type Makefile:1385: recipe for target 'build/podindex' failed make: *** [build/podindex] Error 127 * ERROR: dev-perl/Pango-1.224.0::gentoo failed (compile phase): * emake failed *
Created attachment 415128 [details, diff] Pango-1.226-linking.patch This patch fixes the problem. AFAIK this is what upstream added to the code.
I can't reproduce that $!@# bug. I did install gcc 5.2.0 and switched it on and still, compilation+installation go through fine. :| Should I add the patch nonetheless?
(In reply to Patrice Clement from comment #7) > I can't reproduce that $!@# bug. I did install gcc 5.2.0 and switched it on > and still, compilation+installation go through fine. :| Should I add the > patch nonetheless? chithanh stated above (comment 3), that this is related to pkgconfig. The patch by polynomial-c solved the problem for me. I used dev-util/pkgconfig-0.29.
(In reply to Markus Oehme from comment #8) > > chithanh stated above (comment 3), that this is related to pkgconfig. The > patch by polynomial-c solved the problem for me. I used > dev-util/pkgconfig-0.29. same fix here, same version thanks
I have just hit this in stable... and patch from comment #6 works, could it be included please? Thanks
commit c0020a7 (HEAD, master) Author: Patrice Clement <monsieurp@gentoo.org> Date: Wed Oct 28 20:49:20 2015 +0000 dev-perl/Pango: Add patch preventing failure at compile time. Fixes bug 562216. Package-Manager: portage-2.2.20.1 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> create mode 100644 dev-perl/Pango/Pango-1.224.0-r1.ebuild create mode 100644 dev-perl/Pango/files/Pango-1.224.0-linking.patch As usual, give it a go and report back. Thank you.
It works but... why was it added with a revbump? It's only a build time fix, right? Well, if the revbump is kept, it should be fast stabilized Thanks
*** Bug 564536 has been marked as a duplicate of this bug. ***