Opened 14 years ago

Closed 14 years ago

#28015 closed defect (fixed)

abiword-x11: /opt/local/lib/libpng12.la: No such file or directory

Reported by: wlmcderm@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: png Cc: cz@…
Port: abiword-x11

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Installation of abiword-x11 2.8.6 failed due to dependency on old version of libpng (v1.2).

System: MacBook pro running OSX 10.5.8, MacPorts v1.9.2

From main.log:

:info:build grep: /opt/local/lib/libpng12.la: No such file or directory
:info:build sed: /opt/local/lib/libpng12.la: No such file or directory
:info:build libtool: link: `/opt/local/lib/libpng12.la' is not a valid libtool arc
hive
:info:build make[3]: *** [libabiword-2.8.la] Error 1
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macpo
rts_sources_rsync.macports.org_release_ports_editors_abiword-x11/work/abiword-2.8.
6" && /usr/bin/make all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for
 details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for abiword-x11): org.ma
cports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for abiword-x11 is at: /opt/local/var/macports/logs/_opt_local_v
ar_macports_sources_rsync.macports.org_release_ports_editors_abiword-x11/main.log

Attachments (1)

search-libpng12.sh (239 bytes) - added by jmroot (Joshua Root) 14 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: dependency removed
Summary: Outdated dependency for Abiword-x11 2.8.6abiword-x11: /opt/local/lib/libpng12.la: No such file or directory

Remember WikiFormatting.

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

Keywords: png added

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Could you please run this script to check for ports linked against libpng12?

Changed 14 years ago by jmroot (Joshua Root)

Attachment: search-libpng12.sh added

comment:4 Changed 14 years ago by cz@…

While I'm not having abiword installed, I get the very same problem with building various other ports (gtk2, librsvg, and others)

The result of search-libpng12.sh here is as follows:

gegl
gimp2
gnome-keyring
graphviz
gtk2
gutenprint
libbonoboui
libglade2
libgnomecanvas
libgnomeui
libgsf
libopenraw
librsvg
libwmf
pango-devel
poppler
texlive-basic
texlive-bin-extra
texlive-context
texlive-lang-czechslovak
texlive-lang-polish
texlive-latex
texlive-math-extra
texlive-xetex
xsane

Hope that helps.

comment:5 Changed 14 years ago by cz@…

Cc: cz@… added

Cc Me!

comment:6 Changed 14 years ago by jmroot (Joshua Root)

I know many of the ports listed in comment:4 have had their revision incremented already, so you'll want to upgrade everything outdated before running the search script again.

comment:7 Changed 14 years ago by cz@…

Well, upgrade outdated starts updating gtk, which doesn't build. (due to libtool: link: `/opt/local/lib/libpng12.la' is not a valid libtool archive)

comment:8 Changed 14 years ago by jmroot (Joshua Root)

This is completely off the topic of this ticket now and should really be handled somewhere else, but that's probably from pango-devel, which I've now rev bumped in r75227. (And you might as well switch back to pango now that it's a newer version.)

comment:9 Changed 14 years ago by wlmcderm@…

I originally tried to install Abiword 2.8.6 after doing a fresh "upgrade outdated", so at the time, everything should have been up to date. Given what jmr said above, I've just upgraded

ImageMagick 6.6.7-0_1 < 6.6.7-1_0

libbonoboui 2.24.4_0 < 2.24.4_1

libgnomecanvas 2.30.2_0 < 2.30.2_1

libgnomeprintui 2.18.6_0 < 2.18.6_1

libgnomeui 2.24.4_0 < 2.24.4_1

librsvg 2.32.1_0 < 2.32.1_1

After that, I ran search-libpng12.sh and got an error:

otool: can't map file: /opt/local/bin (Invalid argument)

\nlibgsf

Don't know what the second line means, but I think the first line is due to the script passing the /opt/local/bin directory itself to otool.

I crudely modified the script:

#!/bin/sh

ports="" for f in $(find /opt/local/bin -type f) $(find /opt/local/lib -name \*.dylib); do

if otool -L $f | grep -q 'libpng12\.0'; then

echo $f

fi

done

and get only /opt/local/bin/gsf-office-thumbnailer as being dependent on libpng12.

comment:10 Changed 14 years ago by jmroot (Joshua Root)

OK, so libgsf has now been rev bumped (#28029). Does abiword-x11 now build (make sure you clean it first)?

comment:11 Changed 14 years ago by wlmcderm@…

Abiword-x11 now builds and runs OK.

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

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.