Opened 13 years ago

Closed 12 years ago

#31613 closed defect (worksforme)

avahi @0.6.30 +python27 configuration fails

Reported by: Greisby (Greisberger Christophe) Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: python27 gtk2 Cc: ak.ml@…, cjones051073 (Chris Jones)
Port: avahi

Description

The configuration phase of avahi fails with the following error:

:info:configure checking whether /opt/local/bin/python2.7 version >= 2.4... yes
:info:configure checking for /opt/local/bin/python2.7 version... 2.7
:info:configure checking for /opt/local/bin/python2.7 platform... darwin
:info:configure checking for /opt/local/bin/python2.7 script directory... ${prefix}/lib/python2.7/site-packages
:info:configure checking for /opt/local/bin/python2.7 extension module directory... ${exec_prefix}/lib/python2.7/site-packages
:info:configure checking for python module gtk... no
:info:configure configure: error: Could not find Python module gtk

Full log attached.

Note: gtk2 is installed with +no_x11 +quartz, and py27-gtk is of course also installed.

Other infos:
OS: Snow Leopard 10.6.8
Arch: x86_64
FS: case sensitive
XCode: 4.0.2

Attachments (1)

main.log (106.3 KB) - added by Greisby (Greisberger Christophe) 13 years ago.
Build log

Download all attachments as: .zip

Change History (17)

Changed 13 years ago by Greisby (Greisberger Christophe)

Attachment: main.log added

Build log

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: pixilla@… removed
Owner: changed from macports-tickets@… to pixilla@…

comment:2 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Looks like py25-gtk, py26-gtk and py27-gtk are capable of producing invalid site-packages/gtk-2.0/gtk/_gtk.so files.

$ otool -L /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so | grep libgtk-x11-2.0.0.dylib
	/opt/local/lib/libgtk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.4.0)
$ file /opt/local/lib/libgtk-x11-2.0.0.dylib
/opt/local/lib/libgtk-x11-2.0.0.dylib: ERROR: cannot open `/opt/local/lib/libgtk-x11-2.0.0.dylib' (No such file or directory)

I have some variants in etc/variants.conf that may be responisble.

+no_x11 -x11 +quartz +no_gtk

comment:3 Changed 13 years ago by Greisby (Greisberger Christophe)

So do I:

+no_x11 -x11 +quartz +qt4 +python27 -python26 -python25

comment:4 Changed 13 years ago by ak.ml@…

It's probable that you installed py27-gtk from the binary package which is linked to X11. See #31303.

Have you tried to build py27-gtk from source?

comment:5 Changed 13 years ago by ak.ml@…

Cc: ak.ml@… added

Cc Me!

comment:6 Changed 13 years ago by cjones051073 (Chris Jones)

I get this same error on OS X 10.7. Everything is compiled from source, no binaries installs for Lion yet !

comment:7 Changed 13 years ago by cjones051073 (Chris Jones)

Cc: jonesc@… added

Cc Me!

comment:8 Changed 13 years ago by cjones051073 (Chris Jones)

just tried to force an uninstall of py27-gtk and avahi followed by a re installation of avahi +python27. py27-gtk builds OK but avahi still fails during configure, with the error as reported above.

comment:9 Changed 13 years ago by cjones051073 (Chris Jones)

In my case, I get the error but have no problem with

macmini ~ > file /opt/local/lib/libgtk-x11-2.0.0.dylib
/opt/local/lib/libgtk-x11-2.0.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64

just to confirm the error message

:info:configure checking whether /opt/local/bin/python2.7 version >= 2.4... yes
:info:configure checking for /opt/local/bin/python2.7 version... 2.7
:info:configure checking for /opt/local/bin/python2.7 platform... darwin
:info:configure checking for /opt/local/bin/python2.7 script directory... /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
:info:configure checking for /opt/local/bin/python2.7 extension module directory... /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
:info:configure checking for python module gtk... no
:info:configure configure: error: Could not find Python module gtk
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_avahi/avahi/work/avahi-0.6.30" && ./configure --prefix=/opt/local --disable-autoipd --disable-qt3 --disable-qt4 --disable-mono --disable-monodoc --with-distro=darwin --enable-compat-libdns_sd --disable-gtk3 --disable-xmltoman --enable-introspection=no " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for avahi): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for avahi is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_avahi/avahi/main.log

Chris

comment:10 Changed 13 years ago by cjones051073 (Chris Jones)

macmini ~ > otool -L /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so:
	/opt/local/lib/libgtk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.7.0)
	/opt/local/lib/libgdk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.7.0)
	/opt/local/lib/libatk-1.0.0.dylib (compatibility version 3210.0.0, current version 3210.1.0)
	/opt/local/lib/libpangocairo-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.4.0)
	/opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/local/lib/libXinerama.1.dylib (compatibility version 2.0.0, current version 2.0.0)
	/opt/local/lib/libXi.6.dylib (compatibility version 8.0.0, current version 8.0.0)
	/opt/local/lib/libXrandr.2.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/local/lib/libXcursor.1.dylib (compatibility version 2.0.0, current version 2.2.0)
	/opt/local/lib/libXcomposite.1.dylib (compatibility version 2.0.0, current version 2.0.0)
	/opt/local/lib/libXdamage.1.dylib (compatibility version 3.0.0, current version 3.0.0)
	/opt/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 2201.0.0, current version 2201.1.0)
	/opt/local/lib/libpangoft2-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.4.0)
	/opt/local/lib/libgio-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.8.0)
	/opt/local/lib/libXfixes.3.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/local/lib/libcairo.2.dylib (compatibility version 11003.0.0, current version 11003.2.0)
	/opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/opt/local/lib/libpng14.14.dylib (compatibility version 23.0.0, current version 23.0.0)
	/opt/local/lib/libpango-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.4.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
	/opt/local/lib/libfreetype.6.dylib (compatibility version 14.0.0, current version 14.2.0)
	/opt/local/lib/libfontconfig.1.dylib (compatibility version 6.0.0, current version 6.4.0)
	/opt/local/lib/libgobject-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.8.0)
	/opt/local/lib/libgmodule-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.8.0)
	/opt/local/lib/libgthread-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.8.0)
	/opt/local/lib/libglib-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.8.0)
	/opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 153.0.0)

comment:11 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Replying to jonesc@…:

macmini ~ > otool -L /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so

And I'll bet many of the linked files do not exist which suggests a bug in the py27-gtk port when the gtk2 port is built with +no_x11.

On my system this command:

$ otool -XL \
    /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so | \
    sed -e "s/^Archive.*//" | tr -d '\t' | awk '{print $1}' | xargs file

results in:

/opt/local/lib/libgtk-x11-2.0.0.dylib:                         ERROR: cannot open `/opt/local/lib/libgtk-x11-2.0.0.dylib' (No such file or directory)
/opt/local/lib/libgdk-x11-2.0.0.dylib:                         ERROR: cannot open `/opt/local/lib/libgdk-x11-2.0.0.dylib' (No such file or directory)
...
/opt/local/lib/libXext.6.dylib:                                ERROR: cannot open `/opt/local/lib/libXext.6.dylib' (No such file or directory)
/opt/local/lib/libXrender.1.dylib:                             ERROR: cannot open `/opt/local/lib/libXrender.1.dylib' (No such file or directory)
/opt/local/lib/libXinerama.1.dylib:                            ERROR: cannot open `/opt/local/lib/libXinerama.1.dylib' (No such file or directory)
/opt/local/lib/libXi.6.dylib:                                  ERROR: cannot open `/opt/local/lib/libXi.6.dylib' (No such file or directory)
/opt/local/lib/libXrandr.2.dylib:                              ERROR: cannot open `/opt/local/lib/libXrandr.2.dylib' (No such file or directory)
/opt/local/lib/libXcursor.1.dylib:                             ERROR: cannot open `/opt/local/lib/libXcursor.1.dylib' (No such file or directory)
/opt/local/lib/libXcomposite.1.dylib:                          ERROR: cannot open `/opt/local/lib/libXcomposite.1.dylib' (No such file or directory)
/opt/local/lib/libXdamage.1.dylib:                             ERROR: cannot open `/opt/local/lib/libXdamage.1.dylib' (No such file or directory)
...
/opt/local/lib/libXfixes.3.dylib:                              ERROR: cannot open `/opt/local/lib/libXfixes.3.dylib' (No such file or directory)
...
/opt/local/lib/libX11.6.dylib:                                 ERROR: cannot open `/opt/local/lib/libX11.6.dylib' (No such file or directory)
...

comment:12 Changed 13 years ago by cjones051073 (Chris Jones)

Nope, they are all there

macmini ~ > otool -XL \
>     /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so | \
>     sed -e "s/^Archive.*//" | tr -d '\t' | awk '{print $1}' | xargs file
/opt/local/lib/libgtk-x11-2.0.0.dylib:                         Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libgdk-x11-2.0.0.dylib:                         Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libatk-1.0.0.dylib:                             Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libpangocairo-1.0.0.dylib:                      Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXext.6.dylib:                                Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXrender.1.dylib:                             Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXinerama.1.dylib:                            Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXi.6.dylib:                                  Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXrandr.2.dylib:                              Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXcursor.1.dylib:                             Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXcomposite.1.dylib:                          Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXdamage.1.dylib:                             Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libgdk_pixbuf-2.0.0.dylib:                      Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libpangoft2-1.0.0.dylib:                        Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libgio-2.0.0.dylib:                             Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libXfixes.3.dylib:                              Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libcairo.2.dylib:                               Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libX11.6.dylib:                                 Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libpng14.14.dylib:                              Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libpango-1.0.0.dylib:                           Mach-O 64-bit dynamically linked shared library x86_64
/usr/lib/libSystem.B.dylib:                                    Mach-O universal binary with 2 architectures
/usr/lib/libSystem.B.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
/usr/lib/libSystem.B.dylib (for architecture i386):	Mach-O dynamically linked shared library i386
/opt/local/lib/libfreetype.6.dylib:                            Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libfontconfig.1.dylib:                          Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libgobject-2.0.0.dylib:                         Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libgmodule-2.0.0.dylib:                         Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libgthread-2.0.0.dylib:                         Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libglib-2.0.0.dylib:                            Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libintl.8.dylib:                                Mach-O 64-bit dynamically linked shared library x86_64
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon: Mach-O universal binary with 2 architectures
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (for architecture i386):	Mach-O dynamically linked shared library i386

comment:13 Changed 13 years ago by cjones051073 (Chris Jones)

Note that my gtk2 port is not installed with the no+x11 variant. I have

 gtk2 @2.24.7_0+x11 

comment:14 Changed 12 years ago by cjones051073 (Chris Jones)

Still have this problem... Any more thoughts on what might be wrong ?

Chris

comment:15 Changed 12 years ago by cjones051073 (Chris Jones)

Hi,

OK, I finally got bored of not being able to update, so I thought I would try a clean slate approach to this.

I made a note of all the ports I had installed, and then completely removed MacPorts. Reinstalled it, and low and behold, avahi now installs. Not sure what this means, probably some port I had installed before was interfering with avahi. Not sure we will ever know now, but at least I can update again.

If it happens again, I'll report back.

Chris

comment:16 Changed 12 years ago by pixilla (Bradley Giesbrecht)

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