[MacPorts] #21512: Tk fails to build

MacPorts noreply at macports.org
Sun Jan 31 16:16:28 PST 2010


#21512: Tk fails to build
------------------------------------+---------------------------------------
 Reporter:  issac.trotts@…          |       Owner:  mww@…           
     Type:  defect                  |      Status:  new             
 Priority:  Normal                  |   Milestone:                  
Component:  ports                   |     Version:  1.8.0           
 Keywords:  snowleopard             |        Port:  tk              
------------------------------------+---------------------------------------

Comment(by areusch@…):

 Patch works great for me on snow leopard 10.6.2, Xcode ver 3.2.1. Let me
 know if I can provide other information about my system to help you guys
 figure out when the X11 includes/libs are relocated.

 Replying to [comment:11 pkrohn@…]:
 > This situation does not exist on all hosts; I was able to build tk on
 another 10.6 system.
 >
 > The problem seems to be that on some systems, the include path for X11
 libraries is not correctly calculated. I was able to get tk to build with
 minor manual changes to the Makefile, but this fix is not suitable for a
 patch because it really just fixes the symptoms of the problem. In any
 case, here is what I did, under
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix:
 >
 > * copy Makefile to Makefile.auto[[BR]]
 >
 > * set the include path to /opt/local/include (my X11 includes live under
 there)[[BR]]
 >
 > * run this diff:
 >
 > {{{
 > diff -u Makefile.auto Makefile
 > --- Makefile.auto  2009-10-11 16:35:23.000000000 -0700
 > +++ Makefile  2009-10-11 16:39:32.000000000 -0700
 > @@ -146,14 +146,15 @@
 >  # X11 include files accessible (the configure script will try to
 >  # set this value, and will cause it to be an empty string if the
 >  # include files are accessible via /usr/include).
 > -X11_INCLUDES    =
 > +X11_INCLUDES    = -I$(includedir)
 >
 >  AQUA_INCLUDES    = -I$(MAC_OSX_DIR) -I$(XLIB_DIR)
 >
 >  # Linker switch(es) to use to link with the X11 library archive (the
 >  # configure script will try to set this value automatically, but you
 >  # can override it).
 > -X11_LIB_SWITCHES  = -L/usr/X11R6/lib -lX11 -Wl,-weak-lXss -lXext
 $(XFT_LIBS)
 > +#X11_LIB_SWITCHES  = -L/usr/X11R6/lib -lX11 -Wl,-weak-lXss -lXext
 $(XFT_LIBS)
 > +X11_LIB_SWITCHES  = -L/opt/local/lib -lX11 -Wl,-weak-lXss -lXext
 $(XFT_LIBS)
 >
 > }}}
 >
 > Hope this helps!

-- 
Ticket URL: <http://trac.macports.org/ticket/21512#comment:17>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list