I found that Roy Hooper's instruction that doesn't work for me. I found same problem as you. The cause of the problem is FreeBSD has its own kerberos so when the script setup.py execute commands.getoutput("krb5-config --libs gssapi") and commands.getoutput("krb5-config --cflags gssapi") it call FreeBSD's krb5-config instead call the command that you installed from kerberos's port. There are 2 solution. 1. Set your path like this, PATH=/usr/local/bin:$PATH 2. Modify your setup.py to commands.getoutput("/usr/local/bin/krb5-config --libs gssapi") commands.getoutput("/usr/local/bin/krb5-config --cflags gssapi") I hope this can help you. On Mon, Oct 12, 2009 at 9:00 PM, Bastien Semene <bsemene@cyanide-studio.com>wrote:
I case I did something wrong I tested to fresh reinstall : r3720 and 3721.
r3721 is doing the same error, r3720 is working. This the (usual) way I install PyKerberos :
- retrieveing PyKerberos from svn : svn co http://svn.calendarserver.org/repository/calendarserver/PyKerberos/trunkPyKe... - fix references : perl -spi -e ’s{<Python/}{<};’ src/* - adding includes in source block (setup.py) : - library_dirs=['/usr/local/lib'], - include_dirs=['/usr/local/include'], - running run -s that updates PyKerberos @ r3108 for both revisions (3721 and 3720).
Guy a écrit :
How did you install Kerberos onto this system? looks to me like it's missing a library or something. Maybe try recompiling/installing kerbos for python.
--Guy
On 12 Oct 2009, at 13:36, Bastien Semene wrote:
Hi,
I'm currently running DCS r3443 successfully. While testing the last release I found several problems, the one reported by Lars N. Cleemann : http://www.mail-archive.com/calendarserver-users@lists.macosforge.org/msg012... and another.
On r3721 ( http://trac.calendarserver.org/changeset/3721/ ) I have a problem with PyKerberos on FreeBSD 7.0, here are the logs from an interactive ./run :
./run Using python as Python
exec python /usr/local/new_calendar/Twisted/bin/twistd -n caldav -f /usr/local/new_calendar/CalendarServer/conf/caldavd-dev.plist -o ProcessType=Combined Traceback (most recent call last): File "/usr/local/new_calendar/Twisted/bin/twistd", line 21, in <module> run() File "/usr/local/new_calendar/Twisted/twisted/scripts/twistd.py", line 27, in run app.run(runApp, ServerOptions) File "/usr/local/new_calendar/Twisted/twisted/application/app.py", line 374, in run config.parseOptions() File "/usr/local/new_calendar/Twisted/twisted/application/app.py", line 354, in parseOptions usage.Options.parseOptions(self, options) File "/usr/local/new_calendar/Twisted/twisted/python/usage.py", line 184, in parseOptions for (cmd, short, parser, doc) in self.subCommands: File "/usr/local/new_calendar/Twisted/twisted/application/app.py", line 365, in subCommands self.loadedPlugins[plug.tapname] = plug File "/usr/local/new_calendar/CalendarServer/twisted/plugins/caldav.py", line 9, in getProperty return getattr(reflect.namedClass(self.serviceMakerClass), propname) File "/usr/local/new_calendar/Twisted/twisted/python/reflect.py", line 347, in namedObject module = namedModule(string.join(classSplit[:-1], '.')) File "/usr/local/new_calendar/Twisted/twisted/python/reflect.py", line 335, in namedModule topLevel = __import__(name) File "/usr/local/new_calendar/CalendarServer/calendarserver/tap/caldav.py", line 65, in <module> from twistedcaldav.directory.principal import DirectoryPrincipalProvisioningResource File "/usr/local/new_calendar/CalendarServer/twistedcaldav/directory/principal.py", line 48, in <module> from twistedcaldav.authkerb import NegotiateCredentials File "/usr/local/new_calendar/CalendarServer/twistedcaldav/authkerb.py", line 41, in <module> import kerberos ImportError: /usr/local/new_calendar/PyKerberos/build/lib.freebsd-7.0-RELEASE-i386-2.5/kerberos.so: Undefined symbol "gss_nt_service_name"
I made this "test" with a clean folder and the following 2 commands :
svn co http://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk CalendarServer -r3721 svn co http://svn.calendarserver.org/repository/calendarserver/PyKerberos/trunk PyKerberos -r3721
After that I followed the usual steps for FreeBSD writen by Roy Hooper that are working for r3720 and my current r3443. I'm not sure there's a problem in the code, I maybe can configure PyKerberos differently but don't know where to start.
Thanks for your help,
-- Bastien Semene Administrateur Réseau & Système
admin@cyanide-studio.com +33 (0)1 47 86 30 80
Cyanide S.A. 5, Boulevard des Bouvets 92000 Nanterre - FRANCE
_______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users
-- Bastien Semene Administrateur Réseau & Système admin@cyanide-studio.com +33 (0)1 47 86 30 80
Cyanide S.A. 5, Boulevard des Bouvets 92000 Nanterre - FRANCE
_______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users