Opened 14 years ago

Closed 13 years ago

#26561 closed defect (fixed)

avahi fails to build (no disk activity)

Reported by: hobbsilla Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: avahi

Description

I have a MBP 5,5 running OSX 10.6.4 and MP 1.9.1. I use Porticus to install my ports. I made the effort to install all of avahi's dependencies before installing avahi itself. I don't actually get any error logs that I can provide so I'll just have to describe what I'm experiencing. Avahi will: -fetch -verify checksums -extract -and apply the necessary patches to avahi however while configuring it hangs and never finishes the process to proceed to the next one. I have left avahi to build for three hours on two occasions and it has been stuck on configuring. I have pulled up my Activity Monitor to see if there is any disk activity while avahi is being configured and it shows no data is being written or read (0 bytes). Cheers to anyone that can help.

Attachments (2)

main.log (128.0 KB) - added by hobbsilla 14 years ago.
Avahi.log (546.6 KB) - added by hobbsilla 14 years ago.

Download all attachments as: .zip

Change History (18)

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

Keywords: avahi removed

We will need to see avahi's main.log file. It should be located in the directory /opt/local/var/macports/logs/ ... avahi

Changed 14 years ago by hobbsilla

Attachment: main.log added

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Curious. The log appears to be cut off mid-line.

If you "sudo port clean avahi" and try again, does it get stuck again at the same point?

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Maybe it's just taking a long time. Try running with the debug switch so you can see what's happening as it's happening, i.e.

sudo port clean avahi
sudo port -d install avahi

comment:4 in reply to:  2 Changed 14 years ago by hobbsilla

Replying to ryandesign@…:

Curious. The log appears to be cut off mid-line.

If you "sudo port clean avahi" and try again, does it get stuck again at the same point?

I have tried cleaning avahi and reinstalling it and it still gets stuck at the same point (configuration) and Activity Monitor still shows no disk activity. I tried running the install with a -d flag and it appears the output stops displaying next text when python 2.6 comes into play. I had to sudo nano a file to make it so one of my python ports (i forget which one exactly though) didn't have arch flags because it was preventing the port from building. Here is what the text says though:

checking whether /opt/local/bin/python2.6 version >= 2.4... yes
checking for /opt/local/bin/python2.6 version... 2.6
checking for /opt/local/bin/python2.6 platform... darwin
checking for /opt/local/bin/python2.6 script directory... ${prefix}/lib/python2.6/site-packages
checking for /opt/local/bin/python2.6 extension module directory... ${exec_prefix}/lib/python2.6/site-packages

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

On my system, avahi configuration pauses for a few seconds between printing

checking for /opt/local/bin/python2.6 version... 2.6
checking for /opt/local/bin/python2.6 platform... darwin
checking for /opt/local/bin/python2.6 script directory... ${prefix}/lib/python2.6/site-packages
checking for /opt/local/bin/python2.6 extension module directory... ${exec_prefix}/lib/python2.6/site-packages

and continuing on with

checking for python module gtk... yes
checking for python module dbus... yes
checking for python module socket... yes
checking for python module gdbm... yes

comment:6 Changed 14 years ago by hobbsilla

Okay update on avahi. So py26-numpy apparently wasn't the issue. It seems like its looking for a directory that doesn't exist in my opt drive. Here attached is a log, just read the parts at the bottom of the log.

Changed 14 years ago by hobbsilla

Attachment: Avahi.log added

comment:7 Changed 14 years ago by hobbsilla

It spits this back at me when I view this in the console. Does anyone have any suggestions on how I can give this permissions?

10/1/10 8:03:06 PM	com.apple.launchd.peruser.501[88]	(org.macosforge.xquartz.startx[91000]) posix_spawn("/opt/X11/bin/startx", ...): Permission denied
10/1/10 8:03:06 PM	com.apple.launchd.peruser.501[88]	(org.macosforge.xquartz.startx[91000]) Exited with exit code: 1
10/1/10 8:03:06 PM	com.apple.launchd.peruser.501[88]	(org.macosforge.xquartz.startx) Throttling respawn: Will start in 10 seconds

comment:8 Changed 14 years ago by hobbsilla

I figured it out. After getting the latest Security Fix Update it breaks XQuartz and requires reinstallation. If I try to rebuild it now it no longer displays the message. Yes! You can close this now.

comment:9 Changed 14 years ago by eric.detrez@…

I've the same problem here : the installation gets stuck at checking for /opt/local/bin/python2.6 extension module directory... ${exec_prefix}/lib/python2.6/site-packages

comment:10 Changed 14 years ago by hobbsilla

Reinstall XQuartz, log out then log back in. sudo port clean py26-numpy Then install whatever port that is dependent on py26-numpy and see if it works. It worked for me really nicely. Also if you use any .apps (that you installed from a .dmg instead of macports) that use the X11 (rather than XQuartz) environment consider uninstalling them and reinstalling and having them be used under the XQuartz environment. Trying to open a program that tries to run in the X11 environment caused my XQuartz to break again so I had to reinstall it again to get things working again.

comment:11 in reply to:  10 Changed 14 years ago by john@…

Sorry, I'm getting this error as well, I tried your advice but it still doesn't work. I didn't have XQuartz to start with but I installed it anyway, rebooted, and completely removed everything from Python and X upwards before trying again, but it still fails. Any suggestions?

comment:12 Changed 14 years ago by rkitover (Rafael Kitover)

I am getting the same problem.

Running sudo port -d install avahi, this is the last line before it freezes:

checking for /opt/local/bin/python2.6 extension module directory... ${exec_prefix}/lib/python2.6/site-packages

I have tried reinstalling XQuartz and logging out as suggested here, but it does not help.

comment:13 Changed 13 years ago by jmroot (Joshua Root)

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

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

A lot has changed since this ticket was filed.
I just built avahi from scratch on a clean system.
hobbsilla: Will you please confirm that this issue exists for you?

comment:15 Changed 13 years ago by hobbsilla

Oh! The issue no longer exists.

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

Resolution: fixed
Status: newclosed

hobbsilla: Thanks buddy.

Note: See TracTickets for help on using tickets.