Hello, I've been happily running Calendar Server on a spare Linux machine for a while now, and would very much like to get it running under FreeBSD. I found the following old list post with instructions as to how to get DCS running: http://lists.macosforge.org/pipermail/calendarserver-users/2006- October/000090.html The error message I''m getting with this person's patches is as follows: Building PyKerberos... running build running build_ext building 'kerberos' extension cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t - DTHREAD_STACK_SIZE=0x20000 -fPIC -I/usr/local/include/python2.4 -c src/kerberos.c -o build/temp.freebsd-5.4-RELEASE-p14-i386-2.4/src/ kerberos.o -I/usr/include In file included from src/kerberos.c:21: src/kerberosbasic.h:19:27: gssapi/gssapi.h: No such file or directory In file included from src/kerberos.c:22: src/kerberosgss.h:36: error: syntax error before "gss_ctx_id_t" src/kerberosgss.h:43: error: syntax error before "gss_ctx_id_t" error: command 'cc' failed with exit status 1 Without: Building PyKerberos... running build running build_ext building 'kerberos' extension creating build creating build/temp.freebsd-5.4-RELEASE-p14-i386-2.4 creating build/temp.freebsd-5.4-RELEASE-p14-i386-2.4/src cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t - DTHREAD_STACK_SIZE=0x20000 -fPIC -I/usr/local/include/python2.4 -c src/kerberos.c -o build/temp.freebsd-5.4-RELEASE-p14-i386-2.4/src/ kerberos.o -I/usr/include In file included from src/kerberos.c:21: src/kerberosbasic.h:19:27: gssapi/gssapi.h: No such file or directory src/kerberosbasic.h:20:35: gssapi/gssapi_generic.h: No such file or directory src/kerberosbasic.h:21:32: gssapi/gssapi_krb5.h: No such file or directory In file included from src/kerberos.c:22: src/kerberosgss.h:30: error: syntax error before "gss_ctx_id_t" src/kerberosgss.h:37: error: syntax error before "gss_ctx_id_t" error: command 'cc' failed with exit status 1 Any recent progress with getting PyKerberos to build under FBSD? I'm anxious to get it running =) Perhaps I'll help make a FreeBSD port out of DCS once the project hits its next milestone... ----------- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org
Hi Joe, --On February 15, 2007 1:18:53 PM -0500 Joe Auty <joe@netmusician.org> wrote:
I've been happily running Calendar Server on a spare Linux machine for a while now, and would very much like to get it running under FreeBSD. I found the following old list post with instructions as to how to get DCS running:
http://lists.macosforge.org/pipermail/calendarserver-users/2006-October/0 00090.html
The error message I''m getting with this person's patches is as follows:
Building PyKerberos... running build running build_ext building 'kerberos' extension cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -fPIC -I/usr/local/include/python2.4 -c src/kerberos.c -o build/temp.freebsd-5.4-RELEASE-p14-i386-2.4/src/kerberos.o -I/usr/include In file included from src/kerberos.c:21: src/kerberosbasic.h:19:27: gssapi/gssapi.h: No such file or directory In file included from src/kerberos.c:22: src/kerberosgss.h:36: error: syntax error before "gss_ctx_id_t" src/kerberosgss.h:43: error: syntax error before "gss_ctx_id_t" error: command 'cc' failed with exit status 1
Do you have a gssapi.h header somewhere on your system? If so where? Sometimes the extra "gssapi/" prefix on the #include does not work because of where the systems puts the Kerberos headers. -- Cyrus Daboo
On Feb 15, 2007, at 1:23 PM, Cyrus Daboo wrote:
Hi Joe,
--On February 15, 2007 1:18:53 PM -0500 Joe Auty <joe@netmusician.org> wrote:
I've been happily running Calendar Server on a spare Linux machine for a while now, and would very much like to get it running under FreeBSD. I found the following old list post with instructions as to how to get DCS running:
http://lists.macosforge.org/pipermail/calendarserver-users/2006- October/0 00090.html
The error message I''m getting with this person's patches is as follows:
Building PyKerberos... running build running build_ext building 'kerberos' extension cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -fPIC -I/usr/local/include/python2.4 -c src/kerberos.c -o build/temp.freebsd-5.4-RELEASE-p14-i386-2.4/src/kerberos.o -I/usr/ include In file included from src/kerberos.c:21: src/kerberosbasic.h:19:27: gssapi/gssapi.h: No such file or directory In file included from src/kerberos.c:22: src/kerberosgss.h:36: error: syntax error before "gss_ctx_id_t" src/kerberosgss.h:43: error: syntax error before "gss_ctx_id_t" error: command 'cc' failed with exit status 1
Do you have a gssapi.h header somewhere on your system? If so where? Sometimes the extra "gssapi/" prefix on the #include does not work because of where the systems puts the Kerberos headers.
# find /usr -name "gssapi.h" /usr/include/gssapi.h /usr/src/contrib/bind9/lib/dns/include/dst/gssapi.h /usr/src/crypto/heimdal/lib/gssapi/gssapi.h /usr/obj/usr/src/i386/usr/include/gssapi.h I replaced the includes in both kerberosbasic.h and kerberosgss.h from "gssapi/gssapi.h" to just "gssapi.h" and got PyKerberos to build! However, now, I"m having problems with PySQL: building 'pysqlite2._sqlite' extension creating build/temp.freebsd-5.4-RELEASE-p14-i386-2.4 creating build/temp.freebsd-5.4-RELEASE-p14-i386-2.4/src cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t - DTHREAD_STACK_SIZE=0x20000 -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -I/ usr/include -I/usr/local/include/python2.4 -c src/module.c -o build/ temp.freebsd-5.4-RELEASE-p14-i386-2.4/src/module.o In file included from src/module.c:24: src/connection.h:33:21: sqlite3.h: No such file or directory In file included from src/module.c:24: src/connection.h:38: error: syntax error before "sqlite3" In file included from src/module.c:25: src/statement.h:37: error: syntax error before "sqlite3" src/module.c:221: error: `SQLITE_OK' undeclared here (not in a function) src/module.c:221: error: initializer element is not constant src/module.c:221: error: (near initialization for `_int_constants [2].constant_value') src/module.c:221: error: initializer element is not constant src/module.c:221: error: (near initialization for `_int_constants[2]') src/module.c:222: error: `SQLITE_DENY' undeclared here (not in a function) src/module.c:222: error: initializer element is not constant src/module.c:222: error: (near initialization for `_int_constants [3].constant_value') src/module.c:222: error: initializer element is not constant src/module.c:222: error: (near initialization for `_int_constants[3]') src/module.c:223: error: `SQLITE_IGNORE' undeclared here (not in a function) src/module.c:223: error: initializer element is not constant src/module.c:223: error: (near initialization for `_int_constants [4].constant_value') src/module.c:223: error: initializer element is not constant src/module.c:223: error: (near initialization for `_int_constants[4]') src/module.c:224: error: `SQLITE_CREATE_INDEX' undeclared here (not in a function) src/module.c:224: error: initializer element is not constant src/module.c:224: error: (near initialization for `_int_constants [5].constant_value') src/module.c:224: error: initializer element is not constant src/module.c:224: error: (near initialization for `_int_constants[5]') src/module.c:225: error: `SQLITE_CREATE_TABLE' undeclared here (not in a function) src/module.c:225: error: initializer element is not constant src/module.c:225: error: (near initialization for `_int_constants [6].constant_value') src/module.c:225: error: initializer element is not constant src/module.c:225: error: (near initialization for `_int_constants[6]') src/module.c:226: error: `SQLITE_CREATE_TEMP_INDEX' undeclared here (not in a function) src/module.c:226: error: initializer element is not constant src/module.c:226: error: (near initialization for `_int_constants [7].constant_value') src/module.c:226: error: initializer element is not constant src/module.c:226: error: (near initialization for `_int_constants[7]') src/module.c:227: error: `SQLITE_CREATE_TEMP_TABLE' undeclared here (not in a function) src/module.c:227: error: initializer element is not constant src/module.c:227: error: (near initialization for `_int_constants [8].constant_value') src/module.c:227: error: initializer element is not constant src/module.c:227: error: (near initialization for `_int_constants[8]') src/module.c:228: error: `SQLITE_CREATE_TEMP_TRIGGER' undeclared here (not in a function) src/module.c:228: error: initializer element is not constant src/module.c:228: error: (near initialization for `_int_constants [9].constant_value') src/module.c:228: error: initializer element is not constant src/module.c:228: error: (near initialization for `_int_constants[9]') src/module.c:229: error: `SQLITE_CREATE_TEMP_VIEW' undeclared here (not in a function) src/module.c:229: error: initializer element is not constant src/module.c:229: error: (near initialization for `_int_constants [10].constant_value') src/module.c:229: error: initializer element is not constant src/module.c:229: error: (near initialization for `_int_constants[10]') src/module.c:230: error: `SQLITE_CREATE_TRIGGER' undeclared here (not in a function) src/module.c:230: error: initializer element is not constant src/module.c:230: error: (near initialization for `_int_constants [11].constant_value') src/module.c:230: error: initializer element is not constant src/module.c:230: error: (near initialization for `_int_constants[11]') src/module.c:231: error: `SQLITE_CREATE_VIEW' undeclared here (not in a function) src/module.c:231: error: initializer element is not constant src/module.c:231: error: (near initialization for `_int_constants [12].constant_value') src/module.c:231: error: initializer element is not constant src/module.c:231: error: (near initialization for `_int_constants[12]') src/module.c:232: error: `SQLITE_DELETE' undeclared here (not in a function) src/module.c:232: error: initializer element is not constant src/module.c:232: error: (near initialization for `_int_constants [13].constant_value') src/module.c:232: error: initializer element is not constant src/module.c:232: error: (near initialization for `_int_constants[13]') src/module.c:233: error: `SQLITE_DROP_INDEX' undeclared here (not in a function) src/module.c:233: error: initializer element is not constant src/module.c:233: error: (near initialization for `_int_constants [14].constant_value') src/module.c:233: error: initializer element is not constant src/module.c:233: error: (near initialization for `_int_constants[14]') src/module.c:234: error: `SQLITE_DROP_TABLE' undeclared here (not in a function) src/module.c:234: error: initializer element is not constant src/module.c:234: error: (near initialization for `_int_constants [15].constant_value') src/module.c:234: error: initializer element is not constant src/module.c:234: error: (near initialization for `_int_constants[15]') src/module.c:235: error: `SQLITE_DROP_TEMP_INDEX' undeclared here (not in a function) src/module.c:235: error: initializer element is not constant src/module.c:235: error: (near initialization for `_int_constants [16].constant_value') src/module.c:235: error: initializer element is not constant src/module.c:235: error: (near initialization for `_int_constants[16]') src/module.c:236: error: `SQLITE_DROP_TEMP_TABLE' undeclared here (not in a function) src/module.c:236: error: initializer element is not constant src/module.c:236: error: (near initialization for `_int_constants [17].constant_value') src/module.c:236: error: initializer element is not constant src/module.c:236: error: (near initialization for `_int_constants[17]') src/module.c:237: error: `SQLITE_DROP_TEMP_TRIGGER' undeclared here (not in a function) src/module.c:237: error: initializer element is not constant src/module.c:237: error: (near initialization for `_int_constants [18].constant_value') src/module.c:237: error: initializer element is not constant src/module.c:237: error: (near initialization for `_int_constants[18]') src/module.c:238: error: `SQLITE_DROP_TEMP_VIEW' undeclared here (not in a function) src/module.c:238: error: initializer element is not constant src/module.c:238: error: (near initialization for `_int_constants [19].constant_value') src/module.c:238: error: initializer element is not constant src/module.c:238: error: (near initialization for `_int_constants[19]') src/module.c:239: error: `SQLITE_DROP_TRIGGER' undeclared here (not in a function) src/module.c:239: error: initializer element is not constant src/module.c:239: error: (near initialization for `_int_constants [20].constant_value') src/module.c:239: error: initializer element is not constant src/module.c:239: error: (near initialization for `_int_constants[20]') src/module.c:240: error: `SQLITE_DROP_VIEW' undeclared here (not in a function) src/module.c:240: error: initializer element is not constant src/module.c:240: error: (near initialization for `_int_constants [21].constant_value') src/module.c:240: error: initializer element is not constant src/module.c:240: error: (near initialization for `_int_constants[21]') src/module.c:241: error: `SQLITE_INSERT' undeclared here (not in a function) src/module.c:241: error: initializer element is not constant src/module.c:241: error: (near initialization for `_int_constants [22].constant_value') src/module.c:241: error: initializer element is not constant src/module.c:241: error: (near initialization for `_int_constants[22]') src/module.c:242: error: `SQLITE_PRAGMA' undeclared here (not in a function) src/module.c:242: error: initializer element is not constant src/module.c:242: error: (near initialization for `_int_constants [23].constant_value') src/module.c:242: error: initializer element is not constant src/module.c:242: error: (near initialization for `_int_constants[23]') src/module.c:243: error: `SQLITE_READ' undeclared here (not in a function) src/module.c:243: error: initializer element is not constant src/module.c:243: error: (near initialization for `_int_constants [24].constant_value') src/module.c:243: error: initializer element is not constant src/module.c:243: error: (near initialization for `_int_constants[24]') src/module.c:244: error: `SQLITE_SELECT' undeclared here (not in a function) src/module.c:244: error: initializer element is not constant src/module.c:244: error: (near initialization for `_int_constants [25].constant_value') src/module.c:244: error: initializer element is not constant src/module.c:244: error: (near initialization for `_int_constants[25]') src/module.c:245: error: `SQLITE_TRANSACTION' undeclared here (not in a function) src/module.c:245: error: initializer element is not constant src/module.c:245: error: (near initialization for `_int_constants [26].constant_value') src/module.c:245: error: initializer element is not constant src/module.c:245: error: (near initialization for `_int_constants[26]') src/module.c:246: error: `SQLITE_UPDATE' undeclared here (not in a function) src/module.c:246: error: initializer element is not constant src/module.c:246: error: (near initialization for `_int_constants [27].constant_value') src/module.c:246: error: initializer element is not constant src/module.c:246: error: (near initialization for `_int_constants[27]') src/module.c:247: error: `SQLITE_ATTACH' undeclared here (not in a function) src/module.c:247: error: initializer element is not constant src/module.c:247: error: (near initialization for `_int_constants [28].constant_value') src/module.c:247: error: initializer element is not constant src/module.c:247: error: (near initialization for `_int_constants[28]') src/module.c:248: error: `SQLITE_DETACH' undeclared here (not in a function) src/module.c:248: error: initializer element is not constant src/module.c:248: error: (near initialization for `_int_constants [29].constant_value') src/module.c:248: error: initializer element is not constant src/module.c:248: error: (near initialization for `_int_constants[29]') src/module.c:256: error: initializer element is not constant src/module.c:256: error: (near initialization for `_int_constants[30]') src/module.c: In function `init_sqlite': src/module.c:375: warning: passing arg 1 of `PyString_FromString' makes pointer from integer without a cast error: command 'cc' failed with exit status 1 So, I installed the py-pysqlite23 port and everything seems to work just fine! I have to play around with xattr, but I'm happy that I got it to build =) Just out of curiosity, out of all of the DCS prereqs (twisted, etc.), do any of these use modified source? If not, I'll install the necessary FreeBSD ports.
Hi Joe, --On February 15, 2007 2:13:02 PM -0500 Joe Auty <joe@netmusician.org> wrote:
Just out of curiosity, out of all of the DCS prereqs (twisted, etc.), do any of these use modified source? If not, I'll install the necessary FreeBSD ports.
We do patch the some standard distributions. If you look at CalendarServer/lib-patches you will see the components and patches being used currently. The ./run script takes care of applying the diffs when it is run. -- Cyrus Daboo
On Feb 15, 2007, at 2:16 PM, Cyrus Daboo wrote:
Hi Joe,
--On February 15, 2007 2:13:02 PM -0500 Joe Auty <joe@netmusician.org> wrote:
Just out of curiosity, out of all of the DCS prereqs (twisted, etc.), do any of these use modified source? If not, I'll install the necessary FreeBSD ports.
We do patch the some standard distributions. If you look at CalendarServer/lib-patches you will see the components and patches being used currently. The ./run script takes care of applying the diffs when it is run.
Cool... Well, I was successful in getting DCS not only built, but started too... I had to make one more change, and that was to comment out line 46 in bin/caldavd to accommodate this error: CalendarServer/bin/caldavd: 46: Syntax error: Bad substitution Would it be useful to submit some diffs to people? The changes necessary (other than the above) were simple path name changes plus the installation of the py-sqlite port. What is the best way to compile a list of all DCS dependencies for the purpose of this guide? It seems like most depends are depends of twistedcaldav? Since twistedcaldav includes patches, perhaps it is best to not grab FreeBSD ports to replace these dependencies? Also, has anybody contributed an init.d script yet? Would it be helpful if I put one together? Thanks so much for your patience with me, this is a cool project! ----------- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org
The best way to contribute patches, etc. is to file a ticket and attach the patch. Since it sometimes takes us a while to get around to reviewing and applying patches, this ensures that we don't lose track of it. -wsv On Feb 15, 2007, at 11:32 AM, Joe Auty wrote:
Would it be useful to submit some diffs to people? The changes necessary (other than the above) were simple path name changes plus the installation of the py-sqlite port. What is the best way to compile a list of all DCS dependencies for the purpose of this guide? It seems like most depends are depends of twistedcaldav? Since twistedcaldav includes patches, perhaps it is best to not grab FreeBSD ports to replace these dependencies?
Also, has anybody contributed an init.d script yet? Would it be helpful if I put one together?
participants (3)
-
Cyrus Daboo
-
Joe Auty
-
Wilfredo Sánchez Vega