Opened 16 years ago

Closed 16 years ago

#17541 closed defect (duplicate)

avahi 0.6.23 doesn't build

Reported by: andi@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: avahi

Description

avahi currently doesn't build. it says it could not find Python module gtk, but it's installed.

andi-macbook-2:~ andi$ sudo port install avahi
--->  Configuring avahi
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_avahi/work/avahi-0.6.23" && ./configure --prefix=/opt/local --disable-autoipd --disable-qt3 --disable-qt4 --disable-mono --disable-monodoc --with-libiconv-prefix=/opt/local --with-libintl-prefix=/opt/local --with-distro=darwin --enable-compat-libdns_sd " returned error 1
Command output: checking for gmsgfmt... (cached) /opt/local/bin/msgfmt
checking for xgettext... (cached) /opt/local/bin/xgettext
checking for pkg-config... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB20... yes
checking for GOBJECT... yes
checking for GTK20... yes
checking for GLADE20... yes
checking for DBUS... yes
Your D-Bus version is 1,2,4.
checking for dbus_connection_close... yes
checking for dbus_bus_get_private... yes
checking for XML_ParserCreate in -lexpat... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lbsdxml... no
checking for gdbm_open in -lgdbm... yes
checking gdbm.h usability... yes
checking gdbm.h presence... yes
checking for gdbm.h... yes
checking for LIBDAEMON... yes
checking whether /opt/local/bin/python2.5 version >= 2.4... yes
checking for /opt/local/bin/python2.5 version... 2.5
checking for /opt/local/bin/python2.5 platform... darwin
checking for /opt/local/bin/python2.5 script directory... ${prefix}/lib/python2.5/site-packages
checking for /opt/local/bin/python2.5 extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for python module gtk... no
configure: error: Could not find Python module gtk

Error: Status 1 encountered during processing.
andi-macbook-2:~ andi$ sudo port install py25-gtk
Skipping org.macports.activate (py25-gtk +darwin_9) since this port is already active
--->  Cleaning py25-gtk

Change History (12)

comment:1 Changed 16 years ago by andi@…

any updates?

comment:2 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:3 Changed 16 years ago by blb@…

Does it fail the same with with avahi 0.6.24 (which is the port's current version now)?

comment:4 in reply to:  3 Changed 16 years ago by andi@…

Replying to blb@…:

Does it fail the same with with avahi 0.6.24 (which is the port's current version now)?

yes, 0.6.24 also fails with the same error message

comment:5 Changed 16 years ago by blb@…

What version of the python25 port do you have (port installed python25)? Also, do you have the python_select port installed and have used it to select python25?

comment:6 Changed 16 years ago by andi@…

i upgraded python25 to the newest version, selected it and tried again. But it still fails:

r063137:~ andi$ sudo port upgrade python25
--->  Extracting python25
--->  Applying patches to python25
--->  Configuring python25
--->  Building python25
--->  Staging python25 into destroot
--->  Deactivating python25 @2.5.2_7+darwin_9
--->  Installing python25 @2.5.4_0+darwin_9+macosx
--->  Activating python25 @2.5.4_0+darwin_9+macosx

To fully complete your installation and make python 2.5 the default, please run

	sudo port install python_select  
	sudo python_select python25

--->  Cleaning python25
r063137:~ andi$ sudo python_select python25
Password:
Selecting version "python25" for python
r063137:~ andi$ sudo port install avahi
--->  Configuring avahi
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_avahi/work/avahi-0.6.24" && ./configure --prefix=/opt/local --disable-autoipd --disable-qt3 --disable-qt4 --disable-mono --disable-monodoc --with-libiconv-prefix=/opt/local --with-libintl-prefix=/opt/local --with-distro=darwin --enable-compat-libdns_sd " returned error 1
Command output: checking for gmsgfmt... (cached) /opt/local/bin/msgfmt
checking for xgettext... (cached) /opt/local/bin/xgettext
checking for pkg-config... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB20... yes
checking for GOBJECT... yes
checking for GTK20... yes
checking for GLADE20... yes
checking for DBUS... yes
Your D-Bus version is 1,2,4.
checking for dbus_connection_close... yes
checking for dbus_bus_get_private... yes
checking for XML_ParserCreate in -lexpat... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lbsdxml... no
checking for gdbm_open in -lgdbm... yes
checking gdbm.h usability... yes
checking gdbm.h presence... yes
checking for gdbm.h... yes
checking for LIBDAEMON... yes
checking whether /opt/local/bin/python2.5 version >= 2.4... yes
checking for /opt/local/bin/python2.5 version... 2.5
checking for /opt/local/bin/python2.5 platform... darwin
checking for /opt/local/bin/python2.5 script directory... ${prefix}/lib/python2.5/site-packages
checking for /opt/local/bin/python2.5 extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for python module gtk... no
configure: error: Could not find Python module gtk

Error: Status 1 encountered during processing.
r063137:~ andi$ sudo python_select python25

comment:7 Changed 16 years ago by blb@…

Odd...can you manually import the gtk module? Run python, then try import gtk and see what happens.

comment:8 Changed 16 years ago by andi@…

no manually importing doesn't work too: where does python search for it's modules?

 andi$ python
Python 2.5.4 (r254:67916, Jan 12 2009, 23:50:37) 
[GCC 4.0.1 (Apple Inc. build 5488)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gtk
>>> 

comment:9 Changed 16 years ago by blb@…

It should be looking in either /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages or /opt/local/lib/python2.5/site-packages (one is just a symlink to the other); if you check port contents py25-gtk it should have installed a gtk-2.0 directory within it.

However, maybe you installed py25-gtk some time ago, prior to python25 2.5.2_7 and the paths could be off? If so, you may need to reinstall py25-gtk (though this is definitely just a theory at this point).

comment:10 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:11 Changed 16 years ago by andi@…

Looks like this bug is a dupplicate of #12966 Compiling works now

comment:12 Changed 16 years ago by blb@…

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.