Opened 19 years ago

Closed 19 years ago

#3058 closed defect (duplicate)

BUG: gtk2 - ports which depend on gtk fail to build

Reported by: hyclak@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

There seems to be a problem with Apples ld prebind and GTK2 in darwinports. This is from a fresh install of 1.0 both before and after a selfupdate. Here is an example of what happens with gaim:

checking for pkg-config... (cached) /opt/local/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.6.4) checking for pkg-config... (cached) /opt/local/bin/pkg-config checking for GTK+ - version >= 2.0.0... no * Could not run GTK+ test program, checking why... * The test program compiled, but did not run. This usually means * that the run-time linker is not finding GTK+ or finding the wrong * version of GTK+. If it is not finding GTK+, you'll need to set your * LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point * to the installed location Also, make sure you have run ldconfig if that * is required on your system * * If you have an old version installed, it is best to remove it, although * you may also be able to get things to work by modifying LD_LIBRARY_PATH configure: error: * GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+ * development headers installed. The latest version of GTK+ is * always available at http://www.gtk.org/.

And from config.log:

configure:29355: checking for pkg-config configure:29386: result: /opt/local/bin/pkg-config configure:29407: checking for GTK+ - version >= 2.0.0 configure:29522: gcc -o conftest -g -O2 -Wall -g3 -DXTHREADS -I/opt/local/includ e/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/l ocal/include/pango-1.0 -I/opt/local/include -I/opt/local/include/freetype2 -I/us r/X11R6/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include

-I/opt/local/include -I/usr/X11R6/include -no-cpp-precomp -L/opt/local/lib -L/

usr/X11R6/lib -bind_at_load conftest.c -L/opt/local/lib -lgtk-x11-2.0 >&5 ld: warning prebinding disabled because dependent library: /opt/local/lib/libgtk -x11-2.0.0.dylib is not prebound ld: /var/tmpccOexs4R.o illegal reference to symbol: _g_strdup defined in indir ectly referenced dynamic library /opt/local/lib/libglib-2.0.0.dylib configure:29525: $? = 1 configure: program exited with status 1

It would seem that ld is ignoring the bind_at_load directive and still trying to prebind.

Change History (1)

comment:1 Changed 19 years ago by snu@…

Resolution: duplicate
Status: newclosed
Summary: GTK2 apps fail to buildBUG: gtk2 - ports which depend on gtk fail to build

I think this is a dupe of 3019, please reopen if it's not.

* This bug has been marked as a duplicate of 3019 *

Note: See TracTickets for help on using tickets.