[OmniOS-discuss] Building CalendarServer fails for GSSAPI

Olaf Marzocchi lists at marzocchi.net
Sun Oct 5 11:56:24 UTC 2014


Dear all,
I submitted the same request some weeks ago to the CalendarServer but I got no answer, so I try with OmniOS, where I also expect to find the knowledge necessary to solve this issue.

I am preparing a server based on OmniOS and I would like to offer CalDAV/CardDAV to the users. I chose calendarserver because the users use iOS, OS X, Android. I know there are other options like DAViCal, but for the time being I tried to go with Apple’s implementation.

I checked the repository locally and then I run “python setup.py”.
Everything gets compiled well after putting the GNU tar in the path before the one provided by OmniOS, except PyKerberos. It is a library written to avoid including the whole Python Kerberos libraries (or so I read in the READMEs).

This is the output:
------
~/CalendarServer/CalendarServer-5.2 $ ./run -s

Using built libevent.

Using built memcached.

Using built PostgreSQL.

Using built OpenLDAP.

Using built libffi.

Using system version of setuptools.

Building Zope Interface...

Using system version of pyOpenSSL.

Building PyKerberos...

gcc: error: /usr/bin/krb5-config:: No such file or directory
gcc: error: Unknown: No such file or directory
gcc: error: option: No such file or directory
gcc: error: `gssapi': No such file or directory
gcc: error: use: No such file or directory
gcc: error: `--help': No such file or directory
gcc: error: for: No such file or directory
gcc: error: usage: No such file or directory
gcc: error: unrecognized command line option '--'
error: command 'gcc' failed with exit status 1

~/CalendarServer/CalendarServer-5.2 $ cd ../PyKerberos

~/CalendarServer/PyKerberos $ python setup.py build

running build
running build_ext
building 'kerberos' extension
gcc -m64 -fno-strict-aliasing -std=c99 -m64 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/kerberos.c -o build/temp.solaris-2.11-i86pc-2.6/src/kerberos.o /usr/bin/krb5-config: Unknown option `gssapi' -- use `--help' for usage
gcc: error: /usr/bin/krb5-config:: No such file or directory
gcc: error: Unknown: No such file or directory
gcc: error: option: No such file or directory
gcc: error: `gssapi': No such file or directory
gcc: error: use: No such file or directory
gcc: error: `--help': No such file or directory
gcc: error: for: No such file or directory
gcc: error: usage: No such file or directory
gcc: error: unrecognized command line option '--'
error: command 'gcc' failed with exit status 1

~/src/CalendarServer/PyKerberos $  krb5-config --all --libs --cflags

Version:     Solaris Kerberos (based on MIT Kerberos 5 release 1.6.3)
Vendor:      Sun Microsystems, Inc.
Prefix:      /usr
Exec_prefix: /usr
-I/usr/include/kerberosv5
-L/usr/lib -R/usr/lib -lkrb5
------

It is also important to mention that the build script uses the commandline "krb5-config --libs gssapi" to get the path for the GSSAPI libs.

However the gssapi packages ARE installed (I never tested Kerberos though):
------
~/src/CalendarServer/PyKerberos $ pkg search gssapi

INDEX       ACTION VALUE              PACKAGE
pkg.summary set    GSSAPI CONFIG V2   pkg:/service/security/gss at 0.5.11-0.151010
pkg.summary set    GSSAPI V2          pkg:/system/library/security/gss at 0.5.11-0.151010
pkg.summary set    kernel GSSAPI V2   pkg:/system/kernel/security/gss at 0.5.11-0.151010
basename    dir    usr/include/gssapi pkg:/system/header at 0.5.11-0.151010

~/src/CalendarServer/PyKerberos $ pkg info pkg:/service/security/gss at 0.5.11-0.151010 pkg:/system/library/security/gss at 0.5.11-0.151010 pkg:/system/kernel/security/gss at 0.5.11-0.151010 pkg:/system/header at 0.5.11-0.151010

         Name: service/security/gss
      Summary: GSSAPI CONFIG V2
  Description: Generic Security Service Application Program Interface, Version
               2 - config
     Category: System/Security
        State: Installed
    Publisher: omnios
      Version: 0.5.11
Build Release: 5.11
       Branch: 0.151010
Packaging Date: Mon Apr 28 19:28:56 2014
         Size: 17.53 kB
         FMRI: pkg://omnios/service/security/gss@0.5.11,5.11-0.151010:20140428T192856Z

         Name: system/header
      Summary: SunOS Header Files
  Description: SunOS C/C++ header files for general development of software
     Category: System/Core
        State: Installed
    Publisher: omnios
      Version: 0.5.11
Build Release: 5.11
       Branch: 0.151010
Packaging Date: Mon Apr 28 19:29:16 2014
         Size: 12.19 MB
         FMRI: pkg://omnios/system/header@0.5.11,5.11-0.151010:20140428T192916Z

         Name: system/kernel/security/gss
      Summary: kernel GSSAPI V2
  Description: Generic Security Service Application Program Interface, Version
               2 - kernel
     Category: System/Security
        State: Installed
    Publisher: omnios
      Version: 0.5.11
Build Release: 5.11
       Branch: 0.151010
Packaging Date: Mon Apr 28 19:29:21 2014
         Size: 335.22 kB
         FMRI: pkg://omnios/system/kernel/security/gss@0.5.11,5.11-0.151010:20140428T192921Z

         Name: system/library/security/gss
      Summary: GSSAPI V2
  Description: Generic Security Service Application Program Interface, Version
               2 - user
     Category: System/Security
        State: Installed
    Publisher: omnios
      Version: 0.5.11
Build Release: 5.11
       Branch: 0.151010
Packaging Date: Mon Apr 28 19:29:26 2014
         Size: 687.41 kB
         FMRI: pkg://omnios/system/library/security/gss@0.5.11,5.11-0.151010:20140428T192926Z
------


Could anyone help me with the issue? I tried some changes like providing directly the path with the libraries but I was not able to solve the problem.

Thanks
Olaf Marzocchi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20141005/67e6e3f4/attachment.html>


More information about the OmniOS-discuss mailing list