Opened 13 years ago

Closed 12 years ago

#28991 closed defect (worksforme)

libgnomecanvas @2.30.2 build fails due to missing libpng12

Reported by: rjdave Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: libgnomecanvas libpng Cc: ryandesign (Ryan Carsten Schmidt)
Port: libgnomecanvas

Description

When I try to install libgnomecanvas I get the following error (line breaks added for readability):

:info:build /bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -pipe -O2
-arch x86_64  -version-info 3000:2:3000  -L/opt/local/lib -arch x86_64 -o
libgnomecanvas-2.la -rpath /opt/local/lib gnome-canvas-shape.lo
gnome-canvas-bpath.lo gnome-canvas-path-def.lo
gnome-canvas-clipgroup.lo gnome-canvas-line.lo gnome-canvas-pixbuf.lo
gnome-canvas-polygon.lo gnome-canvas-rect-ellipse.lo gnome-canvas-text.lo
gnome-canvas-rich-text.lo gnome-canvas-util.lo gnome-canvas-widget.lo
gnome-canvas.lo libgnomecanvastypes.lo gailcanvas.lo gailcanvasitem.lo
gailcanvasgroup.lo gailcanvaswidget.lo gailcanvastext.lo gailcanvasitemfactory.lo
gailcanvasgroupfactory.lo gailcanvaswidgetfactory.lo gailcanvastextfactory.lo 
-L/opt/local/lib -lgailutil -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0
-lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage
-lgdk_pixbuf-2.0 -lgio-2.0 -lXfixes -lcairo -lX11 -lpng14 -lart_lgpl_2 -lpangoft2-1.0
-lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0
-lglib-2.0 -lintl   -lm 
:info:build grep: /opt/local/lib/libpng12.la: No such file or directory
:info:build /opt/local/bin/gsed: can't read /opt/local/lib/libpng12.la: No such file or directory
:info:build libtool: link: `/opt/local/lib/libpng12.la' is not a valid libtool archive
:info:build make[3]: *** [libgnomecanvas-2.la] Error 1
:info:build make[2]: *** [all] Error 2
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2

This is a bit perplexing since you'll notice that the command is asking for libpng14 which does exist. Perhaps there's a problem with libtool. By creating "png12" symlinks to the libpng14.* files I was able to work around this error.

Dave

Change History (4)

comment:1 Changed 13 years ago by rjdave

Cc: robertson@… added

Cc Me!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; robertson@… removed

Remove the symlinks you created, please.

libpng14 should exist. libpng12 should not anymore. Something on your system is still linked with libpng12. You need to locate and rebuild it.

comment:3 in reply to:  2 Changed 13 years ago by rjdave

Remove the symlinks you created, please.

done!

libpng14 should exist. libpng12 should not anymore. Something on your system is still linked with libpng12. You need to locate and rebuild it.

The end result I was hoping for was to install ggv. After a 'port upgrade outdated' the problem persisted. I was able to locate the offending packages with 'grep -iIrn libpng12 /opt/local/lib/*'. I ended up having to uninstall ggv, libgnomeui, libbonoboui, libgnomeprintui, libgnomecanvas, libgnome-keyring, and gnome-keyring. Then I was able to re-install ggv which installed all the above packages as dependencies.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

It's not really clear what was going on here, but everything using libpng has long since been updated, so I'm closing this ticket.

Note: See TracTickets for help on using tickets.