[CalendarServer-users] CalendarServer trunk's bundled-memcached build fails to find libevent
crowe at mailhaven.com
crowe at mailhaven.com
Fri Jan 6 15:28:36 PST 2012
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
More information about the calendarserver-users
mailing list