Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384081 - Migration problem from libpng14 to libpng15
Summary: Migration problem from libpng14 to libpng15
Status: RESOLVED DUPLICATE of bug 319101
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 13:05 UTC by Lancelot SIX
Modified: 2011-09-22 14:41 UTC (History)
1 user (show)

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


Attachments
Output of emerge --info (emerge.info,5.03 KB, text/plain)
2011-09-22 13:05 UTC, Lancelot SIX
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lancelot SIX 2011-09-22 13:05:40 UTC
Created attachment 287403 [details]
Output of emerge --info

Upgrading libpng to version 1.5.4 introduced some problems when trying to recompile applications built against libpng14.

As instructed, I tried to rebuild them using the following command :

# revdep-rebuild --library '/usr/lib64/libpng14.so.14'

but some of the applications failed to compile. The error I got if from the linker which tries to link against libpng14 (this example is pulled after trying to rebuild dia):

libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/diagramdata.o .libs/layer.o .libs/geometry.o .libs/color.o .libs/dia_xml.o .libs/attributes.o .libs/text.o .libs/textline.o .libs/font.o .libs/group.o .libs/utils.o .libs/arrows.o .libs/message.o .libs/focus.o .libs/sheet.o .libs/connectionpoint.o .libs/object.o .libs/object_defaults.o .libs/connection.o .libs/orth_conn.o .libs/neworth_conn.o .libs/poly_conn.o .libs/bezier_conn.o .libs/element.o .libs/polyshape.o .libs/beziershape.o .libs/objchange.o .libs/dialogs.o .libs/widgets.o .libs/units.o .libs/dia_image.o .libs/intl.o .libs/filter.o .libs/connpoint_line.o .libs/properties.o .libs/propdesc.o .libs/proplist.o .libs/propoffsets.o .libs/propobject.o .libs/prop_basic.o .libs/prop_dict.o .libs/prop_inttypes.o .libs/prop_geomtypes.o .libs/prop_attr.o .libs/prop_text.o .libs/prop_widgets.o .libs/prop_sdarray.o .libs/propdialogs.o .libs/propregistry.o .libs/dia_dirs.o .libs/plug-ins.o .libs/paper.o .libs/boundingbox.o .libs/dynamic_obj.o .libs/create.o .libs/diatransform.o .libs/diarenderer.o .libs/diainteractiverenderer.o .libs/diagdkrenderer.o .libs/diasvgrenderer.o .libs/dia_svg.o .libs/autoroute.o .libs/parent.o .libs/render_pixmap.o .libs/diaarrowchooser.o .libs/dialinechooser.o .libs/persistence.o .libs/diaerror.o .libs/diamarshal.o .libs/debug.o .libs/prefs.o .libs/newgroup.o .libs/dialib.o .libs/diacellrendererproperty.o   /usr/lib64/libgnomeui-2.so -L/usr/lib64 -L/usr/lib64/qt4 /usr/lib64/libgnome-keyring.so /usr/lib64/libSM.so -luuid /usr/lib64/libICE.so -lbonoboui-2 /usr/lib64/libgnutls.so /usr/lib64/libtasn1.so /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so /usr/lib64/libgnomecanvas-2.so -lgailutil -lXi -lXrandr -lXcursor -lXcomposite /usr/lib64/libXdamage.so -lXext /usr/lib64/libXfixes.so -lxcb-render-util -lpixman-1 -lpng14 /usr/lib64/libxcb-shm.so /usr/lib64/libxcb-render.so /usr/lib64/libXrender.so -lexpat -lX11 -lEGL -lQtGui -lQtCore /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -lGL /usr/lib64/libgnome-2.so /usr/lib64/libgnomevfs-2.so -lxml2 -licui18n -licuuc -licudata -ldbus-glib-1 -ldbus-1 -lssl -lcrypto -lutil -lresolv -lcanberra /usr/lib64/libltdl.so -lvorbisfile -lvorbis -logg -lpopt /usr/lib64/libbonobo-2.so /usr/lib64/libbonobo-activation.so /usr/lib64/libORBitCosNaming-2.so /usr/lib64/libart_lgpl_2.so -lgtk-x11-2.0 -lgdk-x11-2.0 /usr/lib64/libatk-1.0.so -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 /usr/lib64/libfreetype.so -lbz2 -lfontconfig /usr/lib64/libgconf-2.so -lgio-2.0 /usr/lib64/libORBit-2.so -ldl -lpthread -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lpng -lm -lz  -march=native -O2 -Wl,-O1 -Wl,--as-needed -pthread   -pthread -Wl,-soname -Wl,libdia.so -o .libs/libdia.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng14
collect2: ld returned 1 exit status
make[4]: *** [libdia.la] Erreur 1

All the .pc files (/usr/lib/pkgconfig/libpng.pc and /usr/lib64/pkgconfig/libpng.pc) are pointing to the 1.5 version, so I have no idea why this -lpng14 is used.

The applications I cannot rebuild are the following :
  - gnome-base/gnome-settings-daemon-2.32.1-r2
  - gnome-base/gnome-panel-2.32.1-r3
  - app-office/gnucash-2.4.7
  - media-sound/rhythmbox-0.13.3
  - app-office/dia-0.97.1

I can provide complete build logs if necessary.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-09-22 13:20:33 UTC
Yes, there are (probably) useless .la files on your system. In short, you need to remerge everything that references libpng-1.4 in /usr/lib. You should follow some guidance on bug 319101. (comment #41)

*** This bug has been marked as a duplicate of bug 319101 ***
Comment 2 Derk W te Bokkel 2011-09-22 14:41:08 UTC
I discovered that cairo and pango , pangomm often need  rebuilding as they embed references to libpng14