Opened 16 years ago

Closed 16 years ago

#2906 closed defect (fixed)

BUG: gimp2 fails to install because GTK+ can't link to pango.

Reported by: wallison1@… Owned by: mij@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

---> Unpacking tgz archive for pango 1.8.0_0 ---> Installing pango 1.8.0_0 ---> Activating pango 1.8.0_0 ---> Cleaning pango ---> Configuring gtk2 Error: Target com.apple.configure returned: configure failure: shell command "cd

"/Users/wallison/darwinports/dports/x11/gtk2/work/gtk+-2.6.2" && LDFLAGS="-L/op

t/local/lib" CPPFLAGS="-I/opt/local/include -no-cpp-precomp -DX_LOCALE" CFLAGS=" -O3 -funroll-loops -fstrict-aliasing" ./configure --prefix=/opt/local --disable- shm --disable-gtk-doc --with-included-loaders --mandir=/opt/local/share/man" ret urned error 1 Command output: checking for x86 platform... no checking for freetype-config... /opt/local/bin/freetype-config checking For sufficiently new FreeType (at least 2.0.1)... yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for XOpenDisplay in -lX11... yes checking for XineramaQueryExtension in -lXinerama... yes checking for X11/extensions/Xinerama.h... yes checking for Xinerama support on XFree86... yes checking if <X11/extensions/XIproto.h> is needed for xReply... no checking for XShapeCombineMask in -lXext... yes checking for XConvertCase in -lX11... yes checking for XInternAtoms in -lX11... yes checking for XAddConnectionWatch in -lX11... yes checking for XkbQueryExtension in -lX11... yes checking for XRRUpdateConfiguration in -lXrandr... yes checking for X11/extensions/Xrandr.h... yes checking for xcursor... yes checking XCURSOR_CFLAGS... -I/usr/X11R6/include checking XCURSOR_LIBS... -L/usr/X11R6/lib -lXcursor checking for XSyncQueryExtension in -lXext... yes checking for X11/extensions/sync.h... yes checking for xfixes... checking Pango flags... -DXTHREADS -I/opt/local/include/p ango-1.0 -I/opt/local/include -I/opt/local/include/freetype2 -I/usr/X11R6/includ e -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -L/opt/local /lib -lpangoxft-1.0 -lpangox-1.0 configure: error: * Can't link to Pango. Pango is required to build * GTK+. For more information see http://www.pango.org

Error: The following dependencies failed to build: gtk2 lcms libart_lgpl libwmf p5-xml-parser perl5.8

This is the first bug I've filed, I'm new to OS X and Darwinports. Hope that this is all the info that is required. Essentially, when I do "sudo port install gimp2" it seems to go ok up to this point. When I do "port intsalled" pango is there. I've also tried the workaround in bug 2202 to no avail. Thanks, Will

Attachments (1)

pkgconfig.patch (555 bytes) - added by dcreager@… 16 years ago.
Proposed patch to devel/pkgconfig/Portfile

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by jmpp@…

Owner: changed from darwinports-bugs@… to mij@…

There have already been many reports on the list about gtk2 failing to find pango at configure time, therefore assigning this bug to Jim so he can have a look into the issue.

-jmpp

comment:2 Changed 16 years ago by snu@…

Summary: gimp2 fails to install because GTK+ can't link to pango.BUG: gimp2 fails to install because GTK+ can't link to pango.

comment:3 Changed 16 years ago by dcreager@…

This is very similar to the error in bug 2909. I think I have traced the problem to the latest version of pkg-config.

In the past, pkg-config's behavior has been to automatically take into account any dependencies when creating a --libs list for you. For instance, since pangoxft declares that it relies on pango, and by extension, glib, gobject, etc., running

pkg-config --libs pangoxft

used to ensure that it would include the -l directives to get the core pango libraries.

This is no longer the case with version 0.17.2. Instead, it will try to determine whether or not your system supports inter-library dependencies -- i.e., whether the linker will take care of tracking down these extra libraries or not. pkg-config must be erroneously assuming that Mac OS X supports this. Because of its two-level namespace in the linker, this is not the case.

So the fix, as far as I can tell, is to uninstall pkgconfig, force it to always list the full dependencies (using the patch I'm about to upload), and then install gtk2 (or gimp2 or whatever).

Changed 16 years ago by dcreager@…

Attachment: pkgconfig.patch added

Proposed patch to devel/pkgconfig/Portfile

comment:4 Changed 16 years ago by ksahr@…

On a whim I just blew away my existing darwinports infrastructure and ports, and reinstalled everything from scratch. Gimp2 installed fine (and so did several other ports that previously had problems). YMMV...

comment:5 Changed 16 years ago by mij@…

Resolution: fixed
Status: newclosed

This issue was fixed a while ago but I forgot to close the bug.

Note: See TracTickets for help on using tickets.