[MacPorts] #17558: connection errors when macports libs are used with Tiger X11 headers

MacPorts noreply at macports.org
Thu Jan 1 13:20:56 PST 2009


#17558: connection errors when macports libs are used with Tiger X11 headers
----------------------------------+-----------------------------------------
  Reporter:  vinc17@…             |       Owner:  jeremyhu@…           
      Type:  defect               |      Status:  reopened             
  Priority:  High                 |   Milestone:  Port Bugs            
 Component:  ports                |     Version:  1.6.0                
Resolution:                       |    Keywords:  crash                
      Port:  xorg                 |  
----------------------------------+-----------------------------------------

Comment(by jeremyhu@…):

 The main problem with the --x-include and --x-lib (and AC_X_PATH in
 general) is that it puts its CFLAGS before configure.cppflags ... thus it
 causes ${x11prefix}/include/blech.h to be used even when we have
 ${prefix}/include/blech.h already.

 we might be able to solve this by doing:
 {{{
 configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib
 configure.cppflags-append -I${x11prefix}/include
 configure.ldflags-append -L${x11prefix}/lib
 }}}

 Could you give that a try as well.

 Aside from that, you may need to do this hack to trick xmkmf (I will
 celebrate the day AC_X_PATH is no longer used):

 {{{
 cd /Developer/SDKs/MacOSX10.4u.sdk/usr
 sudo ln -s X11R6 X11
 }}}

 You should also do yourself a favor and nuke /usr/X11/bin/xmkmf and
 /usr/X11/bin/imake and 'port uninstall imake' as often as you can.  Having
 it around might cause some ports to use it instead of pkgconfig to find
 X11 (although your situation is a bit unique because you want to force it
 to use an SDK's X11, I think that will be enough to trick it into doing
 what you want)

 so in summary:
   * Make a symlink for /Developer/SDKs/MacOSX10.4u.sdk/usr/X11
   * x11prefix /usr/X11R6
   * universal_sysroot /Developer/SDKs/MacOS10.4u.sdk
   * +universal
   * Try changing your build order to only keep imake installed for the
 ports that explicitly depend on it.

 Once we have the option of x11prefix=prefix fully realized (just need
 fonts to be added now).

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


More information about the macports-tickets mailing list