Hey, I see some warnings but no compilation errors. (1.2.7 was build-tested on openbsd 4.3). Does "make test" fail for you?
-Dormando On Tue, 7 Apr 2009, Artur wrote: > > Hi, > I have got a problem with compilation of last release 1.2.7 under OpenBSD > 4.3. > Messages form ./configure: > # ./configure > checking build system type... i386-unknown-openbsd4.3 > checking host system type... i386-unknown-openbsd4.3 > checking target system type... i386-unknown-openbsd4.3 > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... ./install-sh -c -d > checking for gawk... no > checking for mawk... no > checking for nawk... nawk > 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... gcc3 > checking whether gcc and cc understand -c and -o together... yes > checking for a BSD-compatible install... /usr/bin/install -c > checking for libevent directory... (system) > checking for library containing socket... none required > checking for library containing gethostbyname... none required > checking for library containing mallinfo... no > checking for daemon... yes > checking how to run the C preprocessor... gcc -E > checking for grep that handles long lines and -e... /usr/bin/grep > checking for egrep... /usr/bin/grep -E > 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 for stdbool.h that conforms to C99... yes > checking for _Bool... yes > checking for an ANSI C-conforming const... yes > checking malloc.h usability... yes > checking malloc.h presence... yes > checking for malloc.h... yes > checking for struct mallinfo.arena... no > checking for socklen_t... yes > checking for endianness... little > checking for mlockall... yes > checking for getpagesizes... no > checking for memcntl... no > configure: creating ./config.status > config.status: creating Makefile > config.status: creating doc/Makefile > config.status: creating config.h > config.status: config.h is unchanged > config.status: executing depfiles commands > > And the error during compilation process: > > # make > make all-recursive > Making all in doc > gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -MT memcached-memcached.o -MD -MP > -MF .deps/memcached-memcached.Tpo -c -o memcached-memcached.o `test -f > 'memcached.c' || echo './'`memcached.c > mv -f .deps/memcached-memcached.Tpo .deps/memcached-memcached.Po > gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -MT memcached-slabs.o -MD -MP -MF > .deps/memcached-slabs.Tpo -c -o memcached-slabs.o `test -f 'slabs.c' || echo > './'`slabs.c > mv -f .deps/memcached-slabs.Tpo .deps/memcached-slabs.Po > gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -MT memcached-items.o -MD -MP -MF > .deps/memcached-items.Tpo -c -o memcached-items.o `test -f 'items.c' || echo > './'`items.c > mv -f .deps/memcached-items.Tpo .deps/memcached-items.Po > gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -MT memcached-assoc.o -MD -MP -MF > .deps/memcached-assoc.Tpo -c -o memcached-assoc.o `test -f 'assoc.c' || echo > './'`assoc.c > mv -f .deps/memcached-assoc.Tpo .deps/memcached-assoc.Po > gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -MT memcached-thread.o -MD -MP -MF > .deps/memcached-thread.Tpo -c -o memcached-thread.o `test -f 'thread.c' || > echo './'`thread.c > In file included from thread.c:15: > /usr/include/malloc.h:4:2: warning: #warning "<malloc.h> is obsolete, use > <stdlib.h>" > mv -f .deps/memcached-thread.Tpo .deps/memcached-thread.Po > gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -MT memcached-stats.o -MD -MP -MF > .deps/memcached-stats.Tpo -c -o memcached-stats.o `test -f 'stats.c' || echo > './'`stats.c > mv -f .deps/memcached-stats.Tpo .deps/memcached-stats.Po > gcc -g -O2 -o memcached memcached-memcached.o memcached-slabs.o > memcached-items.o memcached-assoc.o memcached-thread.o memcached-stats.o > -levent > memcached-memcached.o(.text+0x3601): In function `server_socket_unix': > /usr/src/memcached-1.2.7/memcached.c:2545: warning: strcpy() is almost always > misused, please use strlcpy() > memcached-memcached.o(.text+0x188c): In function `process_stat': > /usr/src/memcached-1.2.7/memcached.c:1076: warning: sprintf() is often > misused, please use snprintf() > gcc -DHAVE_CONFIG_H -I. -g -O2 -MT memcached.o -MD -MP -MF > .deps/memcached.Tpo -c -o memcached.o memcached.c > mv -f .deps/memcached.Tpo .deps/memcached.Po > gcc -DHAVE_CONFIG_H -I. -g -O2 -MT slabs.o -MD -MP -MF .deps/slabs.Tpo -c > -o slabs.o slabs.c > mv -f .deps/slabs.Tpo .deps/slabs.Po > gcc -DHAVE_CONFIG_H -I. -g -O2 -MT items.o -MD -MP -MF .deps/items.Tpo -c > -o items.o items.c > mv -f .deps/items.Tpo .deps/items.Po > gcc -DHAVE_CONFIG_H -I. -g -O2 -MT assoc.o -MD -MP -MF .deps/assoc.Tpo -c > -o assoc.o assoc.c > mv -f .deps/assoc.Tpo .deps/assoc.Po > gcc -DHAVE_CONFIG_H -I. -g -O2 -MT thread.o -MD -MP -MF .deps/thread.Tpo > -c -o thread.o thread.c > In file included from thread.c:15: > /usr/include/malloc.h:4:2: warning: #warning "<malloc.h> is obsolete, use > <stdlib.h>" > mv -f .deps/thread.Tpo .deps/thread.Po > gcc -DHAVE_CONFIG_H -I. -g -O2 -MT stats.o -MD -MP -MF .deps/stats.Tpo -c > -o stats.o stats.c > mv -f .deps/stats.Tpo .deps/stats.Po > gcc -g -O2 -o memcached-debug memcached.o slabs.o items.o assoc.o thread.o > stats.o -levent > memcached.o(.text+0x3a21): In function `server_socket_unix': > /usr/src/memcached-1.2.7/memcached.c:2545: warning: strcpy() is almost always > misused, please use strlcpy() > memcached.o(.text+0x1a98): In function `process_stat': > /usr/src/memcached-1.2.7/memcached.c:1076: warning: sprintf() is often > misused, please use snprintf() > > Please help me to resolve this problem - memcached is the core element of my > system. > > Best regards, > Artur >