CalendarServer trunk's bundled-memcached build fails to find libevent
hi, i'm taking a 1st shot at building CalendarServer on my linux/64 box. i've co'd from trunk, cd /usr/local/src/CalendarServer/CalendarServer svn info | egrep "UUID|Revision" Repository UUID: e27351fd-9f3e-4f54-a53b-843176b1656c Revision: 8488 then, per README, ./run -s ... Checking MD5 sum for libevent... Unpacking libevent from cache... libevent-1.4.13-stable/ ... Building libevent... ... Libraries have been installed in: /usr/local/src/CalendarServer/libevent-1.4.13-stable/_root/lib64 ... Building memcached... ... checking for libevent directory... configure: error: libevent is required. You can get it from http://www.monkey.org/~provos/libevent/ If it's already installed, specify its path using --with-libevent=/dir/ iiuc, "./run" is supposed to gather prereqs. do i need to install libevent prior to 1st exec of "./run" to satisfy the bundled-memcached build? or pass some additional flags to ./run itself? crowe
On Jan 5, 2012, at 11:35 PM, crowe@mailhaven.com wrote:
hi,
i'm taking a 1st shot at building CalendarServer on my linux/64 box.
i've co'd from trunk,
cd /usr/local/src/CalendarServer/CalendarServer svn info | egrep "UUID|Revision" Repository UUID: e27351fd-9f3e-4f54-a53b-843176b1656c Revision: 8488
then, per README,
./run -s ... Checking MD5 sum for libevent... Unpacking libevent from cache... libevent-1.4.13-stable/ ... Building libevent... ... Libraries have been installed in: /usr/local/src/CalendarServer/libevent-1.4.13-stable/_root/lib64 ... Building memcached... ... checking for libevent directory... configure: error: libevent is required. You can get it from http://www.monkey.org/~provos/libevent/
If it's already installed, specify its path using --with-libevent=/dir/
iiuc, "./run" is supposed to gather prereqs.
do i need to install libevent prior to 1st exec of "./run" to satisfy the bundled-memcached build? or pass some additional flags to ./run itself?
The idea is that ./run -s sets everything up. What kind of Linux is this? I have been able to personally get calendar server working on the last 3 versions of Ubuntu or so, as well as Red Hat derivatives, by just doing ./run. My guess is that this is a problem with build.sh's c_dependency function; it currently hard-codes ${dstroot}/lib, and it looks like your configuration is producing ${dstroot}/lib64 instead. If you try patching that file, does your build succeed? Thanks, and good luck, -glyph
Hi, On Fri, Jan 6, 2012, at 05:07 PM, Glyph wrote:
do i need to install libevent prior to 1st exec of "./run" to satisfy the bundled-memcached build? or pass some additional flags to ./run itself?
The idea is that ./run -s sets everything up.
What kind of Linux is this?
This is opensuse 12.1 x86_64
I have been able to personally get calendar server working on the last 3 versions of Ubuntu or so, as well as Red Hat derivatives, by just doing ./run.
Good, that's useful to know.
My guess is that this is a problem with build.sh's c_dependency function; it currently hard-codes ${dstroot}/lib, and it looks like your configuration is producing ${dstroot}/lib64 instead. If you try patching that file, does your build succeed?
Starting clean, mkdir -p CalendarServer cd CalendarServer svn co http://svn.macosforge.org/repository/calendarserver/CalendarServer/trunk/ CalendarServer svn info | grep Rev Revision: 8490 cd CalendarServer patching "lib" -> "lib64", perl -pi -e 's|{dstroot}/lib|{dstroot}/lib64|g' support/build.sh then ./run -s gets further, but still fails, but at a different point (see below). seems closer. more to change? Thanks for the help! crowe Downloading libevent... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 219 100 219 0 0 1715 0 --:--:-- --:--:-- --:--:-- 6441 libevent is not available from calendarserver.org; trying upstream source. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 487k 100 487k 0 0 404k 0 0:00:01 0:00:01 --:--:-- 455k Checking MD5 sum for libevent... Unpacking libevent from cache... libevent-1.4.13-stable/ ... Building libevent... configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking whether gcc needs -traditional... no checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl.exe... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool appending configuration tag "F77" to libtool checking for socket in -lsocket... no checking for inet_aton in -lresolv... yes checking for clock_gettime in -lrt... yes checking for inet_ntoa in -lnsl... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking for unistd.h... (cached) yes checking sys/epoll.h usability... yes checking sys/epoll.h presence... yes checking for sys/epoll.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/queue.h usability... yes checking sys/queue.h presence... yes checking for sys/queue.h... yes checking sys/event.h usability... no checking sys/event.h presence... no checking for sys/event.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/devpoll.h usability... no checking sys/devpoll.h presence... no checking for sys/devpoll.h... no checking port.h usability... no checking port.h presence... no checking for port.h... no checking netinet/in6.h usability... no checking netinet/in6.h presence... no checking for netinet/in6.h... no checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for TAILQ_FOREACH in sys/queue.h... yes checking for timeradd in sys/time.h... yes checking for timercmp in sys/time.h... yes checking for timerclear in sys/time.h... yes checking for timerisset in sys/time.h... yes checking for WIN32... no checking for an ANSI C-conforming const... yes checking for inline... inline checking whether time.h and sys/time.h may both be included... yes checking for gettimeofday... yes checking for vasprintf... yes checking for fcntl... yes checking for clock_gettime... yes checking for strtok_r... yes checking for strsep... yes checking for getaddrinfo... yes checking for getnameinfo... yes checking for strlcpy... no checking for inet_ntop... yes checking for signal... yes checking for sigaction... yes checking for strtoll... yes checking for issetugid... no checking for geteuid... yes checking for getegid... yes checking size of long... 8 checking for F_SETFD in fcntl.h... yes checking for select... yes checking for poll... yes checking for epoll_ctl... yes checking for port_create... no checking for pid_t... yes checking for size_t... yes checking for uint64_t... yes checking for uint32_t... yes checking for uint16_t... yes checking for uint8_t... yes checking for fd_mask... yes checking size of long long... 8 checking size of int... 4 checking size of short... 2 checking for struct in6_addr... yes checking for socklen_t... yes checking whether our compiler supports __func__... yes configure: creating ./config.status config.status: creating Makefile config.status: creating test/Makefile config.status: creating sample/Makefile config.status: creating config.h config.status: executing depfiles commands echo '/* event-config.h' > event-config.h echo ' * Generated by autoconf; post-processed by libevent.' >> event-config.h echo ' * Do not edit this file.' >> event-config.h echo ' * Do not rely on macros in this file existing in later versions.'>> event-config.h echo ' */' >> event-config.h echo '#ifndef _EVENT_CONFIG_H_' >> event-config.h echo '#define _EVENT_CONFIG_H_' >> event-config.h sed -e 's/#define /#define _EVENT_/' \ -e 's/#undef /#undef _EVENT_/' \ -e 's/#ifndef /#ifndef _EVENT_/' < config.h >> event-config.h echo "#endif" >> event-config.h make all-recursive make[1]: Entering directory `/usr/local/src/CalendarServer/libevent-1.4.13-stable' Making all in . make[2]: Entering directory `/usr/local/src/CalendarServer/libevent-1.4.13-stable' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./compat -I/usr/local/src/CalendarServer/libevent-1.4.13-stable/_root/include -O2 -march=amdfam10 -mtune=amdfam10 -Wall -fno-strict-aliasing -c -o event.lo event.c ... ... PATH="$PATH:/sbin" ldconfig -n /usr/local/src/CalendarServer/libevent-1.4.13-stable/_root/lib64 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/src/CalendarServer/libevent-1.4.13-stable/_root/lib64 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- ... Downloading memcached... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 220 100 220 0 0 6170 0 --:--:-- --:--:-- --:--:-- 11000 memcached is not available from calendarserver.org; trying upstream source. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 295k 100 295k 0 0 316k 0 --:--:-- --:--:-- --:--:-- 361k Checking MD5 sum for memcached... Unpacking memcached from cache... memcached-1.4.5/ memcached-1.4.5/ChangeLog ... Building memcached... configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu ... gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DNDEBUG -I/usr/local/src/CalendarServer/memcached-1.4.5/_root/include -I/usr/local/src/CalendarServer/libevent-1.4.13-stable/_root/include -O2 -march=amdfam10 -mtune=amdfam10 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-items.o -MD -MP -MF .deps/memcached-items.Tpo -c -o memcached-items.o `test -f 'items.c' || echo './'`items.c memcached.c: In function ‘complete_incr_bin’: memcached.c:1023:16: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:1044:13: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:1061:17: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c: In function ‘process_bin_get’: memcached.c:1193:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c: In function ‘process_bin_update’: memcached.c:1889:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:1905:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c: In function ‘process_bin_append_prepend’: memcached.c:1949:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c: In function ‘process_bin_delete’: memcached.c:2014:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] items.c: In function ‘do_item_link’: items.c:301:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c: In function ‘do_store_item’: memcached.c:2127:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:2127:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:2144:25: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:2145:25: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:2158:13: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:2160:17: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:2160:17: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:2202:13: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c:2214:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] items.c: In function ‘do_item_stats_sizes’: items.c:453:21: error: variable ‘klen’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors memcached.c: In function ‘process_get_command’: memcached.c:2592:45: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] make[2]: *** [memcached-items.o] Error 1 make[2]: *** Waiting for unfinished jobs.... memcached.c: In function ‘process_update_command’: memcached.c:2751:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c: In function ‘do_add_delta’: memcached.c:2870:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] memcached.c: In function ‘main’: memcached.c:4630:13: error: variable ‘udp_port’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors make[2]: *** [memcached-memcached.o] Error 1 mv -f .deps/memcached-hash.Tpo .deps/memcached-hash.Po mv -f .deps/memcached-slabs.Tpo .deps/memcached-slabs.Po make[2]: Leaving directory `/usr/local/src/CalendarServer/memcached-1.4.5' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/CalendarServer/memcached-1.4.5' make: *** [all] Error 2
fyi, these,
memcached.c:2214:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
seem to be a problem with the v1.4.5 memcached bundled with CalendarServer, http://code.google.com/p/memcached/issues/detail?id=125 "This should be fixed in 1.4.6, please reopn if it's not." Don't know yet about the other errors. crowe
On Jan 6, 2012, at 6:39 PM, crowe@mailhaven.com wrote:
fyi, these,
memcached.c:2214:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
seem to be a problem with the v1.4.5 memcached bundled with CalendarServer,
http://code.google.com/p/memcached/issues/detail?id=125
"This should be fixed in 1.4.6, please reopn if it's not."
Don't know yet about the other errors.
crowe
In that case, feel free to file a Trac ticket for us to bump our dependency to 1.4.6 ;). However, in the meanwhile, it might be better for you to just install memcached and libevent development packages using your system's native package manager; if dependencies are already set up, the run script should notice and avoid building its own versions. -glyph
Hi, On Fri, Jan 6, 2012, at 07:38 PM, Glyph wrote:
However, in the meanwhile, it might be better for you to just install memcached and libevent development packages using your system's native package manager; if dependencies are already set up, the run script should notice and avoid building its own versions.
That's already underway. Working around CalendarServer's obsolete bundled memcached (v1.4.5) by installing the prereq locally (build from src, since the silly distro pkg is 1.4.5 as well), zypper in libevent libevent-devel rpm -qa | grep -i libevent libevent-2_0-5-2.0.10-5.1.2.x86_64 libevent-devel-2.0.10-5.1.2.x86_64 cd ~ bzr branch lp:pandora-build cd pandora-build ./config/autorun.sh ./configure make make install cd ~ bzr branch lp:libmemcached libmemcached-BZR cd libmemcached-BZR export CXXFLAGS="-Wno-error" autoupdate ./config/autorun.sh ./configure --disable-libinnodb make make install unset CXXFLAGS cd ~ wget http://memcached.googlecode.com/files/memcached-1.4.10.tar.gz tar zxvf memcached*gz vi ~/memcached.patch --- memcached.c.ORIG 2011-11-09 16:19:53.000000000 -0800 +++ memcached.c 2011-11-30 17:40:04.000000000 -0800 @@ -2483,15 +2483,18 @@ inline static void process_stats_detail(conn *c, const char *command) { assert(c != NULL); - if (strcmp(command, "on") == 0) { + char on[] = "on"; + char off[] = "off"; + char dump[] = "dump"; + if (strcmp(command, on) == 0) { settings.detail_enabled = 1; out_string(c, "OK"); } - else if (strcmp(command, "off") == 0) { + else if (strcmp(command, off) == 0) { settings.detail_enabled = 0; out_string(c, "OK"); } - else if (strcmp(command, "dump") == 0) { + else if (strcmp(command, dump) == 0) { int len; char *stats = stats_prefix_dump(&len); write_and_free(c, stats, len); cd memcached*/ patch -p0 < ~/memcached.patch ./configure make make install cd /usr/local/src/CalendarServer/CalendarServer perl -pi -e 's|{dstroot}/lib|{dstroot}/lib64|g' support/build.sh ./run -s Downloading PostgreSQL... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 221 100 221 0 0 2237 0 --:--:-- --:--:-- --:--:-- 5815 PostgreSQL is not available from calendarserver.org; trying upstream source. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 79 17.4M 79 13.8M 0 0 528k 0 0:00:33 0:00:26 0:00:07 617k ... pgsql v9.0.x build completed. distro-installed pgsql 9.1.x was not recognized for some reason :-/ currently at, ... Building OpenLDAP... configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu Configuring OpenLDAP 2.4.25-Release ... ... crowe
Hi, On Fri, Jan 6, 2012, at 04:46 PM, crowe@mailhaven.com wrote:
That's already underway. ...
With current memcached and a few more tweaks & hoops I managed to get CalendarServer to build on opensuse 12.1/64, ./run -s > ~/calendarserver_build_log.txt ls -al bin/ total 128K drwxr-xr-x 3 root root 4.0K Jan 6 19:26 ./ drwxr-xr-x 17 root root 4.0K Jan 6 20:00 ../ -rwxr-xr-x 1 root root 4.3K Jan 6 19:26 caldavd* -rwxr-xr-x 1 root root 945 Jan 6 19:26 calendarserver_bootstrap_database* -rwxr-xr-x 1 root root 940 Jan 6 19:26 calendarserver_command_gateway* -rwxr-xr-x 1 root root 939 Jan 6 19:26 calendarserver_config* -rwxr-xr-x 1 root root 937 Jan 6 19:26 calendarserver_dbinspect* -rwxr-xr-x 1 root root 939 Jan 6 19:26 calendarserver_export* -rwxr-xr-x 1 root root 940 Jan 6 19:26 calendarserver_load_augmentdb* -rwxr-xr-x 1 root root 940 Jan 6 19:26 calendarserver_make_partition* -rwxr-xr-x 1 root root 942 Jan 6 19:26 calendarserver_manage_augments* -rwxr-xr-x 1 root root 942 Jan 6 19:26 calendarserver_manage_postgres* -rwxr-xr-x 1 root root 942 Jan 6 19:26 calendarserver_manage_principals* -rwxr-xr-x 1 root root 943 Jan 6 19:26 calendarserver_manage_timezones* -rwxr-xr-x 1 root root 937 Jan 6 19:26 calendarserver_migrate_resources* -rwxr-xr-x 1 root root 941 Jan 6 19:26 calendarserver_monitor_notifications* -rw-r--r-- 1 root root 2.0K Jan 6 19:26 _calendarserver_preamble.py -rwxr-xr-x 1 root root 992 Jan 6 19:26 calendarserver_purge_attachments* -rwxr-xr-x 1 root root 964 Jan 6 19:26 calendarserver_purge_events* -rwxr-xr-x 1 root root 972 Jan 6 19:26 calendarserver_purge_principals* -rwxr-xr-x 1 root root 938 Jan 6 19:26 calendarserver_shell* -rwxr-xr-x 1 root root 940 Jan 6 19:26 calendarserver_upgrade* -rwxr-xr-x 1 root root 937 Jan 6 19:26 calendarserver_verify_data* -rwxr-xr-x 1 root root 939 Jan 6 19:26 calendarserver_warmup* -rwxr-xr-x 1 root root 941 Jan 6 19:26 icalendar_split* -rwxr-xr-x 1 root root 1013 Jan 6 19:26 make-ssl-ca* -rwxr-xr-x 1 root root 2.4K Jan 6 19:26 make-ssl-key* -rw-r--r-- 1 root root 6.0K Jan 6 19:26 proxyclean drwxr-xr-x 6 root root 4.0K Jan 6 19:27 .svn/ -rwxr-xr-x 1 root root 366 Jan 6 19:26 watch_memcached* Whatever got built, execs, too, cd /usr/local/src/CalendarServer/CalendarServer cp ./conf/caldavd-test.plist ./conf/caldavd-dev.plist ./run -n Using system version of setuptools. Using python2.7 as Python Starting server... Reading configuration from file: /usr/local/src/CalendarServer/CalendarServer/conf/caldavd-dev.plist 2012-01-06 20:28:19-0800 [-] Log opened. 2012-01-06 20:28:19-0800 [-] twistd 11.0.0 (/usr/bin/python2.7 2.7.2) starting up. 2012-01-06 20:28:19-0800 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2012-01-06 20:28:19-0800 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'./data/Logs/state/caldavd.sock'" 2012-01-06 20:28:19-0800 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'./data/Logs/state/caldavd-stats.sock'" 2012-01-06 20:28:19-0800 [-] [txdav.base.datastore.subpostgres#info] received postgres stdout 'waiting for server to start...' 2012-01-06 20:28:19-0800 [-] [txdav.base.datastore.subpostgres#info] received postgres stdout '.' 2012-01-06 20:28:20-0800 [-] [txdav.base.datastore.subpostgres#info] received postgres stdout ' done\nserver started\n' 2012-01-06 20:28:20-0800 [-] [txdav.base.datastore.subpostgres#info] postgres process ended <twisted.python.failure.Failure <class 'twisted.internet.error.ProcessDone'>> NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_home_pkey" for table "calendar_home" NOTICE: CREATE TABLE / UNIQUE will create implicit index "calendar_home_owner_uid_key" for table "calendar_home" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_home_metadata_pkey" for table "calendar_home_metadata" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_pkey" for table "calendar" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "notification_home_pkey" for table "notification_home" NOTICE: CREATE TABLE / UNIQUE will create implicit index "notification_home_owner_uid_key" for table "notification_home" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "notification_pkey" for table "notification" NOTICE: CREATE TABLE / UNIQUE will create implicit index "notification_notification_uid_notification_home_resource_id_key" for table "notification" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_bind_pkey" for table "calendar_bind" NOTICE: CREATE TABLE / UNIQUE will create implicit index "calendar_bind_calendar_home_resource_id_calendar_resource_n_key" for table "calendar_bind" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_bind_mode_pkey" for table "calendar_bind_mode" NOTICE: CREATE TABLE / UNIQUE will create implicit index "calendar_bind_mode_description_key" for table "calendar_bind_mode" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_bind_status_pkey" for table "calendar_bind_status" NOTICE: CREATE TABLE / UNIQUE will create implicit index "calendar_bind_status_description_key" for table "calendar_bind_status" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_object_pkey" for table "calendar_object" NOTICE: CREATE TABLE / UNIQUE will create implicit index "calendar_object_calendar_resource_id_resource_name_key" for table "calendar_object" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_object_attachments_mode_pkey" for table "calendar_object_attachments_mode" NOTICE: CREATE TABLE / UNIQUE will create implicit index "calendar_object_attachments_mode_description_key" for table "calendar_object_attachments_mode" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendar_access_type_pkey" for table "calendar_access_type" NOTICE: CREATE TABLE / UNIQUE will create implicit index "calendar_access_type_description_key" for table "calendar_access_type" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "time_range_pkey" for table "time_range" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "free_busy_type_pkey" for table "free_busy_type" NOTICE: CREATE TABLE / UNIQUE will create implicit index "free_busy_type_description_key" for table "free_busy_type" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "attachment_pkey" for table "attachment" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "resource_property_pkey" for table "resource_property" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "addressbook_home_pkey" for table "addressbook_home" NOTICE: CREATE TABLE / UNIQUE will create implicit index "addressbook_home_owner_uid_key" for table "addressbook_home" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "addressbook_home_metadata_pkey" for table "addressbook_home_metadata" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "addressbook_pkey" for table "addressbook" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "addressbook_bind_pkey" for table "addressbook_bind" NOTICE: CREATE TABLE / UNIQUE will create implicit index "addressbook_bind_addressbook_home_resource_id_addressbook_r_key" for table "addressbook_bind" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "addressbook_object_pkey" for table "addressbook_object" NOTICE: CREATE TABLE / UNIQUE will create implicit index "addressbook_object_addressbook_resource_id_resource_name_key" for table "addressbook_object" NOTICE: CREATE TABLE / UNIQUE will create implicit index "addressbook_object_addressbook_resource_id_vcard_uid_key" for table "addressbook_object" NOTICE: CREATE TABLE / UNIQUE will create implicit index "notification_object_revisions_notification_home_resource_id_key" for table "notification_object_revisions" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "apn_subscriptions_pkey" for table "apn_subscriptions" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "calendarserver_pkey" for table "calendarserver" 2012-01-06 20:28:30-0800 [-] [twistedcaldav.upgrade#warn] Upgrading to version 1 2012-01-06 20:28:30-0800 [-] [twistedcaldav.upgrade#info] Fetching delegate assignments and auto-schedule settings from directory 2012-01-06 20:28:30-0800 [-] [twistedcaldav.sql#info] Initializing database ./data/Data/mailgatewaytokens.sqlite 2012-01-06 20:28:30-0800 [-] [twistedcaldav.upgrade#warn] Upgraded to version 1 2012-01-06 20:28:30-0800 [-] [twistedcaldav.upgrade#warn] Upgrading to version 2 2012-01-06 20:28:30-0800 [-] [twistedcaldav.upgrade#warn] Upgraded to version 2 2012-01-06 20:28:30-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Beginning database schema check. 2012-01-06 20:28:30-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Required database key VERSION: 7. 2012-01-06 20:28:31-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Actual database key VERSION: 7. 2012-01-06 20:28:31-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Schema version check complete: no upgrade needed. 2012-01-06 20:28:31-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Database schema check complete. 2012-01-06 20:28:31-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Beginning database data check. 2012-01-06 20:28:31-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Required database key CALENDAR-DATAVERSION: 2. 2012-01-06 20:28:31-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Actual database key CALENDAR-DATAVERSION: 2. 2012-01-06 20:28:31-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Data version check complete: no upgrade needed. 2012-01-06 20:28:31-0800 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Database data check complete. 2012-01-06 20:28:31-0800 [-] [twistedcaldav.database#info] Initializing database Proxies 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Configuring augment service of type: <class 'twistedcaldav.directory.augment.AugmentXMLDB'> 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Configuring resource service of type: <class 'twistedcaldav.directory.xmlfile.XMLDirectoryService'> 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Configuring SudoDirectoryService with file: ./conf/sudoers.plist 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'> 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Updating group membership cache 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Group membership snapshot file does not yet exist 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Retrieving list of all proxies 2012-01-06 20:28:34-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] There are 4 proxies 2012-01-06 20:28:34-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Retrieving group hierarchy from directory 2012-01-06 20:28:34-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] 8 groups retrieved from the directory 2012-01-06 20:28:34-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] 2 groups are proxies 2012-01-06 20:28:34-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] There are 6 users delegated-to via groups 2012-01-06 20:28:34-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Taking snapshot of group memberships to /usr/local/src/CalendarServer/CalendarServer/data/Data/memberships_cache 2012-01-06 20:28:34-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Storing 6 group memberships in memcached 2012-01-06 20:28:34-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Group memberships cache updated 2012-01-06 20:28:34-0800 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8008 2012-01-06 20:28:34-0800 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8800 2012-01-06 20:28:34-0800 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8443 2012-01-06 20:28:34-0800 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8843 2012-01-06 20:28:34-0800 [-] [calendarserver.tap.caldav.CalDAVServiceMaker#info] Adding group caching service 2012-01-06 20:28:43-0800 [-] [caldav-0] Reading configuration from file: /usr/local/src/CalendarServer/CalendarServer/conf/caldavd-dev.plist 2012-01-06 20:28:43-0800 [-] [caldav-0] [-] Log opened. 2012-01-06 20:28:43-0800 [-] [caldav-0] [-] twistd 11.0.0 (/usr/bin/python2.7 2.7.2) starting up. 2012-01-06 20:28:43-0800 [-] [caldav-0] [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2012-01-06 20:28:43-0800 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('./data/Logs/state/caldavd.sock') PEER:UNIXAddress('')) 2012-01-06 20:28:43-0800 [-] [caldav-0] [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('./data/Logs/state/caldavd.sock')) 2012-01-06 20:28:43-0800 [-] [caldav-1] Reading configuration from file: /usr/local/src/CalendarServer/CalendarServer/conf/caldavd-dev.plist 2012-01-06 20:28:43-0800 [-] [caldav-1] [-] Log opened. 2012-01-06 20:28:43-0800 [-] [caldav-1] [-] twistd 11.0.0 (/usr/bin/python2.7 2.7.2) starting up. 2012-01-06 20:28:43-0800 [-] [caldav-1] [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2012-01-06 20:28:43-0800 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('./data/Logs/state/caldavd.sock') PEER:UNIXAddress('')) 2012-01-06 20:28:43-0800 [-] [caldav-1] [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('./data/Logs/state/caldavd.sock')) 2012-01-06 20:28:43-0800 [-] [groupcacher] 2012-01-06 20:28:43-0800 [-] Log opened. 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] twistd 11.0.0 (/usr/bin/python2.7 2.7.2) starting up. 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacherService#warn] Starting group membership cacher service 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Updating group membership cache 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Group membership snapshot file exists: /usr/local/src/CalendarServer/CalendarServer/data/Data/memberships_cache 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Attempting to acquire group membership cache lock 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Acquired lock 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Retrieving list of all proxies 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] There are 4 proxies 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Retrieving group hierarchy from directory 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] 8 groups retrieved from the directory 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] 2 groups are proxies 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] There are 6 users delegated-to via groups 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Taking snapshot of group memberships to /usr/local/src/CalendarServer/CalendarServer/data/Data/memberships_cache 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [-] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Storing 6 group memberships in memcached 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Releasing lock 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacheUpdater#info] Group memberships cache updated 2012-01-06 20:28:44-0800 [-] [groupcacher] 2012-01-06 20:28:44-0800 [PooledMemCacheProtocol,client] [twistedcaldav.directory.directory.GroupMembershipCacherService#info] Scheduling next group membership update netstat -an | egrep "8008|8443" tcp 0 0 0.0.0.0:8008 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:39542 127.0.0.1:8008 FIN_WAIT2 tcp 1 0 127.0.0.1:8008 127.0.0.1:39542 CLOSE_WAIT Now I just need to figure out of it was built, and is working, right. Does the output above look about right? Anything look problematic to you? That's enough for tonight. Thanks. crowe
participants (2)
-
crowe@mailhaven.com
-
Glyph