[MacPorts] #22331: py25-gtk build failure: can't find libgtk-x11-2.0.la

MacPorts noreply at macports.org
Sun Nov 1 13:30:04 PST 2009


#22331: py25-gtk build failure: can't find libgtk-x11-2.0.la
-----------------------------------------------+----------------------------
 Reporter:  erik.flister@…                     |       Owner:  macports-tickets@…                   
     Type:  defect                             |      Status:  new                                  
 Priority:  Normal                             |   Milestone:                                       
Component:  ports                              |     Version:  1.8.1                                
 Keywords:  libgtk x11 py25 gtk build failure  |        Port:  py25-gtk                             
-----------------------------------------------+----------------------------

Comment(by erik.flister@…):

 wow, thanks for getting back to me so fast!

 i am happy either with x11 or quartz, but can't get either working.  what
 is the right way to work with variants, it seems far too easy to get them
 out of sync, and far to hard to figure out what to do once in that
 situation.  the whole idea of variants seems to break the whole point of a
 package manager that handles dependencies for you -- what am i missing?
 the macports docs don't give any guidance on the matter.

 i thought i had everything built with no_x11, so why would py25-gtk try to
 be +x11?  there is no no_x11 or quartz variant for it -- isn't it a
 problem with the portfile if it doesn't notice this problem?  do you know
 that py25-gtk can work in a no_x11, +quartz environment?

 so now i tried going the x11 route.

 {{{
 $ sudo port install cairo -no_x11
 $ sudo port install gtk2 +x11
 $ sudo port install py25-gtk
 }}}

 at least after this, libgtk-x11-2.0.la exists.
 the first two work, but the third fails, this time with an error that
 makes it look like it wants to be quartz this time!  argh!

 {{{
 --->  Computing dependencies for py25-gtk
 --->  Building py25-gtk
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-gtk/work/pygtk-2.16.0"
 && /usr/bin/make -j1 all " returned error 2
 Command output: /usr/bin/make  all-recursive
 Making all in .
 make[2]: Nothing to be done for `all-am'.
 Making all in gtk
 /bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0
 -I/opt/local/include/python2.5/pycairo -I/opt/local/include/cairo
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include -I/opt/local/include/libpng12
 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
 -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include/libpng12    -O2 -arch i386 -Wall -fno-strict-aliasing
 -std=c9x -module -avoid-version  -L/opt/local/lib -o _gtk.la -rpath
 /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk _gtk_la-gtk-types.lo
 _gtk_la-gtkmodule.lo _gtk_la-gtkobject-support.lo _gtk_la-
 pygtkcellrenderer.lo _gtk_la-pygtktreemodel.lo _gtk_la-gtk.lo _gtk_la-
 gdk.lo -framework Cocoa -L/opt/local/lib -lgtk-quartz-2.0 -lgdk-quartz-2.0
 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lpangoft2-1.0
 -lpango-1.0 -lm -lcairo -lpixman-1 -lfontconfig -lexpat -lfreetype -lpng12
 -lz -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
 libtool: link: /usr/bin/gcc-4.0 -Wl,-undefined -Wl,dynamic_lookup -o
 .libs/_gtk.so -bundle  .libs/_gtk_la-gtk-types.o .libs/_gtk_la-gtkmodule.o
 .libs/_gtk_la-gtkobject-support.o .libs/_gtk_la-pygtkcellrenderer.o .libs
 /_gtk_la-pygtktreemodel.o .libs/_gtk_la-gtk.o .libs/_gtk_la-gdk.o
 -L/opt/local/lib -framework Cocoa -lgtk-quartz-2.0 -lgdk-quartz-2.0
 /opt/local/lib/libatk-1.0.dylib /opt/local/lib/libgdk_pixbuf-2.0.dylib
 /opt/local/lib/libpangocairo-1.0.dylib /opt/local/lib/libgio-2.0.dylib
 /opt/local/lib/libpangoft2-1.0.dylib /opt/local/lib/libpango-1.0.dylib
 /opt/local/lib/libcairo.dylib /opt/local/lib/libXrender.dylib
 /opt/local/lib/libX11.dylib /opt/local/lib/libXau.dylib
 /opt/local/lib/libXdmcp.dylib /opt/local/lib/libpixman-1.dylib -lm
 /opt/local/lib/libfontconfig.dylib /opt/local/lib/libexpat.dylib
 /opt/local/lib/libfreetype.dylib /opt/local/lib/libpng12.dylib -lz
 /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib
 /opt/local/lib/libglib-2.0.dylib -lresolv /opt/local/lib/libintl.dylib -lc
 /opt/local/lib/libiconv.dylib  -arch i386   -framework Cocoa -framework
 Carbon -framework CoreFoundation
 ld: library not found for -lgtk-quartz-2.0
 collect2: ld returned 1 exit status
 make[2]: *** [_gtk.la] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2

 Error: Status 1 encountered during processing.
 }}}

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


More information about the macports-tickets mailing list