On Thu, 24 Sep 2009, Tomasz Pajor wrote:

I can't rebuild gtk+2 package, I get this error.

(cd .libs && rm -f im-xim.la && ln -s ../im-xim.la im-xim.la)
LD_LIBRARY_PATH=../../gdk-pixbuf/.libs/:../../gdk/.libs/:../../gtk/.libs/ \
../../gtk/gtk-query-immodules-2.0 im-am-et.la im-cedilla.la im-cyrillic-translit.la im-inuktitut.la im-ipa.la im-multipress.la im-thai.la im-ti-er.la im-ti-et.la im-viqr.la im-xim.la > gtk.immodules /usr/ports/obj/gtk+-2.16.6/gtk+-2.16.6/gtk/.libs/gtk-query-immodules-2.0: can't load library '/usr/local/lib/libpango-1.0.so.1800.0'
gmake[3]: *** [gtk.immodules] Error 4
gmake[3]: Leaving directory `/usr/ports/obj/gtk+-2.16.6/gtk+-2.16.6/modules/input'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/obj/gtk+-2.16.6/gtk+-2.16.6/modules'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/obj/gtk+-2.16.6/gtk+-2.16.6'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/x11/gtk+2 (line 2188 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/gtk+2 (line 1443 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/gtk+2 (line 1983 of /usr/ports/infrastructure/mk/bsd.port.mk).

Sigh, this is exactly what I meant when I wrote about broken ports in my last reply to your question about updating ports. Welcome to libtool hell.

Now you have two options:

1. Deinstall everything depending and including pango and rebuild everything you deinstalled from source. Do this for every port that shows this behaviour.

2. Rebuild pango and every other port that has problems with libtool with the libtool from the ports tree (${PORTSDIR}/infrastructure/build/libtool). I don't know if this is sufficient. Be sure to issue a make clean before rebuilding the port.


There is a reason why it is recommended to update via snapshots.


So if you still want to build everything from source, may I suggest that you take a look at the autoupdate script I mentioned in my other mail? It does exactly what you want and has already a working solution for the problem you ran into.

Kind regards,
  Markus

Reply via email to