GNOME Bugzilla – Bug 609185
libpixbufloader-png.so not installed on parallel install with autotools
Last modified: 2017-08-10 17:55:04 UTC
Created attachment 153160 [details] install log This install failure of libpixbufloader-png.so seems to be the mixture of "make -j4 install" and bad luck/timing. It seems it is not ensured that libgdk_pixbuf-2.0.so is installed before any loaders get installed?
*** This bug has been marked as a duplicate of bug 607839 ***
(In reply to comment #1) > > *** This bug has been marked as a duplicate of bug 607839 *** It's not a duplicate of this bug 607839. Bug 607839 is about the BUILD_GDIPLUS_LOADERS case, and I've not enabled that. I've also verified that I dtill get this error occasionally with the fix for bug 607839 applied.
Also reported downstream at: http://bugs.gentoo.org/show_bug.cgi?id=368731
Does this still happen?
(In reply to Bastien Nocera from comment #4) > Does this still happen? Yes, this still happens. Seen with The relevant build log is available in Bug 711571, which is still NEW. Suggest reopen this bug and mark 711571 duplicate. Downstream bugs: https://bugs.gentoo.org/show_bug.cgi?id=481372 https://bugs.gentoo.org/show_bug.cgi?id=368731 My build+install log: https://481372.bugs.gentoo.org/attachment.cgi?id=356298 When building gdk-pixbuf on a Gentoo system *without gdk-pixbuf installed* the build can fail with parallel make. Some reports need -j7, others -j5. This happens with gdk-pixbuf 2.26, 2.28 and 2.36. Sorry that I haven't pushed this upstream for so long. This is what I've found in the logs: When linking libpixbufloader-png.la there's `libgdk_pixbuf-2.0.la` on the libtool link command line, which turns into `./.libs/libgdk_pixbuf-2.0.so` for gcc. That .so file was already built so this works. But when relinking libpixbufloader-png.la then the `libgdk_pixbuf-2.0.la` on the libtool command line turns into something like `-L$DESTDIR/usr/lib -lgdk_pixbuf-2.0` for gcc, and when running make -j$many_enough then there isn't yet a libgdk_pixbuf-2.0.so for gcc to pick up, resulting in: /usr/lib/gcc/i486-pc-linux-gnu/4.6.3/../../../../i486-pc-linux-gnu/bin/ld: cannot find -lgdk_pixbuf-2.0 Maybe you will say that this a libtool problem, but I guess it also depends on how gdk-pixbuf uses libtool, because the problem only ever happens with gdk-pixbuf. Thanks!
Still happens on 2.36.1 (in Gentoo)
*** Bug 711571 has been marked as a duplicate of this bug. ***
Somebody will have to figure it out, because there's nothing obvious in the Makefile.am, such as using "-lgdk_pixbuf..." directly instead of the ".la".
I don't think we're ever going to figure out what the problem is, or fix this in autotools, so I'll say, please use the meson build system in 2.36.8 and newer and file a new bug if you have problems with the installation.