Friday, June 5, 2009

Solved: Could not setup Mach task special port 9: (os/kern) no access

I've noticed, for quite some time, that I've been getting *hundreds* of log messages like this in the Console system log:

6/06/09 8:30:00 AM com.apple.launchd[1] (0x40e8a0.cron[4895]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:30:00 AM com.apple.launchd[1] (0x40e990.cron[4896]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:35:00 AM com.apple.launchd[1] (0x40d960.cron[4929]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:40:00 AM com.apple.launchd[1] (0x40db90.cron[4965]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:45:00 AM com.apple.launchd[1] (0x40e8a0.cron[5009]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:45:00 AM com.apple.launchd[1] (0x40eb30.cron[5010]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:50:00 AM com.apple.launchd[1] (0x40db40.cron[5067]) Could not setup Mach task special port 9: (os/kern) no access


A hint to me should have been that they happened every 5 minutes, and also at every 15 minutes, which coincidentally was when I had backup tasks in my crontab.

I'd searched the internet quite a few times and never found the answer. Finally some results.

So, following those instructions, I've removed those tasks from cron and have used Lingon to make modern launchd equivalents. Learn more technical stuff here.

Launchd is pretty good, and Lingon makes it great.

Sunday, April 26, 2009

Building Subversion 1.6.1 on Mac OS X

I had a problem getting Subversion 1.6.1 to build and run correctly on Mac OS X 10.5.5.

I discovered that the file /usr/local/lib/libsvn_ra_neon-1.0.dylib was linking against the built in neon lib: /usr/lib/libneon.dylib

Using otool on the build subversion ra_neon library, I saw that it was expecting neon version 2.7 and Mac OS X built in is version 2.6.

That particular function "ne_set_connect_timeout" is new in 2.7 causing the subversion RA to fail loading.

I downloaded also the subversion dependencies and copied them all into the subversion directory. Then I built like this:

% ./configure --with-ssl --disable-neon-version-check --without-apsx
% make
% sudo make install

viola.