Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545334 - dev-libs/libindicator-12.10.1-r300 : dev-util/pkgconfig-0.29 outputs no trailing space on --libs, resulting in " -lglib-2.0-lm " to LD
Summary: dev-libs/libindicator-12.10.1-r300 : dev-util/pkgconfig-0.29 outputs no trail...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ayatana Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-02 14:25 UTC by Toralf Förster
Modified: 2015-10-14 19:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge log (dev-libs-libindicator-12.10.1-r300-20150402-130236.log,25.41 KB, text/plain)
2015-04-02 14:25 UTC, Toralf Förster
Details
libindicator-12.10.1-r301.build.log (build.log,30.00 KB, text/plain)
2015-10-02 20:58 UTC, Fernando (likewhoa)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2015-04-02 14:25:10 UTC
Created attachment 400398 [details]
emerge log

or-service.c' || echo './'`indicator-service.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DG_LOG_DOMAIN=\"libindicator\" -Wall -Werror -march=native -O2 -pipe -Wno-error -c indicator-service.c  -fPIC -DPIC -o .libs/libindicator3_la-indicator-service.o
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -DG_LOG_DOMAIN=\"libindicator\" -Wall -Werror -march=native -O2 -pipe -Wno-error -c -o libindicator3_la-indicator-service-manager.lo `test -f 'indicator-service-manager.c' || echo './'`indicator-service-manager.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DG_LOG_DOMAIN=\"libindicator\" -Wall -Werror -march=native -O2 -pipe -Wno-error -c indicator-service-manager.c  -fPIC -DPIC -o .libs/libindicator3_la-indicator-service-manager.o
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -DG_LOG_DOMAIN=\"libindicator\" -Wall -Werror -march=native -O2 -pipe -Wno-error  -version-info 7:0:0 -no-undefined -export-symbols-regex "^[^_].*" -Wl,-O1 -Wl,--as-needed -o libindicator3.la -rpath /usr/lib64  libindicator3_la-gen-indicator-service.xml.lo libindicator3_la-indicator-object.lo libindicator3_la-indicator-object-enum-types.lo libindicator3_la-indicator-desktop-shortcuts.lo libindicator3_la-indicator-image-helper.lo libindicator3_la-indicator-object-marshal.lo libindicator3_la-indicator-service.lo libindicator3_la-indicator-service-manager.lo -L/usr/lib64 -Wl,--export-dynamic -pthread -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgmodule-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0-lm 
libtool: link: /usr/bin/nm -B  .libs/libindicator3_la-gen-indicator-service.xml.o .libs/libindicator3_la-indicator-object.o .libs/libindicator3_la-indicator-object-enum-types.o .libs/libindicator3_la-indicator-desktop-shortcuts.o .libs/libindicator3_la-indicator-image-helper.o .libs/libindicator3_la-indicator-object-marshal.o .libs/libindicator3_la-indicator-service.o .libs/libindicator3_la-indicator-service-manager.o   | sed -n -e 's/^.*[	 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[	 ][	 ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libindicator3.exp
libtool: link: /bin/grep -E -e "^[^_].*" ".libs/libindicator3.exp" > ".libs/libindicator3.expT"
libtool: link: mv -f ".libs/libindicator3.expT" ".libs/libindicator3.exp"
libtool: link: echo "{ global:" > .libs/libindicator3.ver
libtool: link:  cat .libs/libindicator3.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libindicator3.ver
libtool: link:  echo "local: *; };" >> .libs/libindicator3.ver
libtool: link:  x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/libindicator3_la-gen-indicator-service.xml.o .libs/libindicator3_la-indicator-object.o .libs/libindicator3_la-indicator-object-enum-types.o .libs/libindicator3_la-indicator-desktop-shortcuts.o .libs/libindicator3_la-indicator-image-helper.o .libs/libindicator3_la-indicator-object-marshal.o .libs/libindicator3_la-indicator-service.o .libs/libindicator3_la-indicator-service-manager.o   -L/usr/lib64 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgmodule-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0-lm  -pthread -march=native -O2 -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -pthread   -pthread -Wl,-soname -Wl,libindicator3.so.7 -Wl,-version-script -Wl,.libs/libindicator3.ver -o .libs/libindicator3.so.7.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lglib-2.0-lm
collect2: error: ld returned 1 exit status
Makefile:491: recipe for target 'libindicator3.la' failed
make[3]: *** [libindicator3.la] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-libs/libindicator-12.10.1-r300/work/libindicator-12.10.1/libindicator'
Makefile:417: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libindicator-12.10.1-r300/work/libindicator-12.10.1/libindicator'
Makefile:358: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libindicator-12.10.1-r300/work/libindicator-12.10.1'
Makefile:288: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: dev-libs/libindicator-12.10.1-r300::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libindicator-12.10.1-r300::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libindicator-12.10.1-r300::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-libs:libindicator-12.10.1-r300:20150402-130236.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/libindicator-12.10.1-r300/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libindicator-12.10.1-r300/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libindicator-12.10.1-r300/work/libindicator-12.10.1'
 * S: '/var/tmp/portage/dev-libs/libindicator-12.10.1-r300/work/libindicator-12.10.1'

quick search: https://bugs.gentoo.org/buglist.cgi?quicksearch=dev-libs%2Flibindicator
The log is stored in /var/log/portage/_emerge_20150402-150247.log.

This is an unstable amd64 chroot image (named amd64-hardened-unstable-libtool_20150329) at a hardened host acting as a tinderbox.

Portage 2.2.18 (python 2.7.9-final-0, hardened/linux/amd64, gcc-4.8.3, glibc-2.20-r2, 3.19.3-hardened x86_64)
=================================================================
System uname: Linux-3.19.3-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16164756 total,   5149200 free
KiB Swap:   16777212 total,  16487764 free
Timestamp of repository gentoo: Wed, 01 Apr 2015 14:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.1.0::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.3::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/torque /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --tree --quiet-build --jobs 1"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl aes-ni alsa amd64 apache2 avx avx2 berkdb bzip2 cairo cli corefonts cracklib crypt cups cxx dbus designer dnssec dot dri drmkms dvd ecc extraengine ffmpeg fontconfig fortran fpm gd gdbm gif gtk gudev gui hardened iconv icu isag jadetex jpeg justify kvm lapack libav libkms libvirtd logrotate mbox minizip mmx mmxext modules multilib mysql ncurses nls nptl ogg opengl openmp openssl pam pax_kernel pcre pcre16 plasma png policykit python qemu qt3support readline sdl session spice sqlite sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssl ssse3 svg tcpd theora thinkpad threads tk tls truetype uml unicode urandom usb usbredir uxa v4l v4l2 video vorbis xa xattr xkb xmp xscreensaver xslt xtpax xvfb xvmc zenmap zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presen ter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Fernando (likewhoa) 2015-10-02 20:58:20 UTC
Created attachment 413560 [details]
libindicator-12.10.1-r301.build.log

Updating build log
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2015-10-02 21:37:50 UTC
This failure has been introduced by a change in dev-util/pkgconfig-0.29:


On my system (mostly stable amd64), with dev-util/pkgconfig-0.28-r2 installed, the space between -lglib-2.0 and -lm is provided by pkg-config, since I can see it explicitly defined in pkg_cv_LIBINDICATOR_LIBS in config.log:

config.log:pkg_cv_LIBINDICATOR_LIBS='-lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 '


The results when running ./configure with dev-util/pkgconfig-0.29 however is:

config.log:pkg_cv_LIBINDICATOR_LIBS='-lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0'

As shown, the trailing space is missing.

I don't know if this is a pkgconfig bug or a bug in this build system, with the LIBINDICATOR_LIBS+="$LIBM" line in configure.ac not specifying any whitespace.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2015-10-04 12:15:22 UTC
@freedesktop, any idea about which package is at fault?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-04 12:26:17 UTC
(In reply to Michael Palimaka (kensington) from comment #3)
> @freedesktop, any idea about which package is at fault?

The configure script, of course. It must add space before additional libs.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-04 12:26:41 UTC
Also, before you waste your time checking, the upstream bzr still has this bug.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2015-10-04 14:33:48 UTC
Since it's a trivial fix i just did it.  Apologies for stepping on anybody's toes.

commit 66cb7efcecc1ab67f5b64528ba251805656bcec4
Author: Ian Stakenvicius <axs@gentoo.org>
Date:   Sun Oct 4 10:15:57 2015 -0400

    dev-libs/libindicator: add missing whitespace before -lm
    
    When dev-util/pkgconfig-0.29 is in use, the _LIBS output of a PKG_CHECK*
    does not have a trailing space assigned.  This causes the link flags
    to contain a "-lglib-2.0-lm" assignment as $LIBM was appended to
    $LIBINDICATOR_LIBS without any whitespace separation.  This commit
    adds the necessary whitespace.  Fixes bug 545334
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-04 14:59:05 UTC
But please report it upstream. We all love launchpad, don't we?
Comment 8 Ian Stakenvicius (RETIRED) gentoo-dev 2015-10-05 13:50:40 UTC
(In reply to Michał Górny from comment #7)
> But please report it upstream. We all love launchpad, don't we?

How're we supposed to do that exactly?  :)

Quote: https://bugs.launchpad.net/libindicator -- "libindicator must be configured in order for Launchpad to forward bugs to the project's developers. "
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-10-05 14:01:11 UTC
(In reply to Ian Stakenvicius from comment #8)
> (In reply to Michał Górny from comment #7)
> > But please report it upstream. We all love launchpad, don't we?
> 
> How're we supposed to do that exactly?  :)
> 
> Quote: https://bugs.launchpad.net/libindicator -- "libindicator must be
> configured in order for Launchpad to forward bugs to the project's
> developers. "

Maybe email Ted Gould (listed as the maintainer in http://bazaar.launchpad.net/~indicator-applet-developers/libindicator/trunk.15.10/view/head:/debian/copyright) and CC recent active contributors (e.g. Marco Trevisan and Lars Uebernickel).

And tell them to fix their bugs page :)
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2015-10-05 14:36:02 UTC
ok done.  https://bugs.launchpad.net/libindicator/+bug/1502925