py26-gtk errors: libpng, force upgrade/clean does not fix
ak.ml at laposte.net
Fri Apr 1 04:17:16 PDT 2011
> From the log:
>> :info:build /opt/local/bin/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: *** [glade.la] Error 1
>> :info:build make: *** [all-recursive] Error 1
>> :info:build make: *** [all] Error 2
>> :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
>> .org_release_ports_python_py26-gtk/work/pygtk-2.22.0" && /usr/bin/make all " returned error 2
>> :error:build Target org.macports.build returned: shell command failed (see log for details)
> Repeatedly applying the earlier hints about force-upgrading gdkpixbuf2 and force-cleaning all do not improve the situation, nor does force-upgrading libpng.
This looks like a different issue.
In your case you might have remaining references to libpng12.la in some of your *.la files on your system.
From the log, the glade.la file seems affected.
$ port provides /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/gtk/glade.la
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/gtk/glade.la is provided by: py26-gtk
$ egrep -e 'libpng12\.la' /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/gtk/glade.la
returns something, you might need to (force) uninstall py26-gtk temporarily.
I'd also advise you to run the following command to see if other *.la files on your system have references to libpng12.la
$ find /opt/local/lib /opt/local/Library -name '*.la' -print0 \
| xargs -0 egrep --files-with-match 'libpng12\.la'
More information about the macports-users