Configure does not recognize 64-bit host

Brad Fitzpatrick brad at danga.com
Thu Sep 7 20:33:52 UTC 2006


Works for me on CentOS 4.2:

[root at brad1 memcached-1.2.x-svn373]# cat /etc/redhat-release
CentOS release 4.2 (Final)

[root at brad1 memcached-1.2.x-svn373]# ./configure
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
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk

....
# t/64bit.t
1..6
ok 1 - is 64 bit
ok 2 - max bytes is 4097 MB
ok 3 - expected (faked) value of total_malloced
ok 4 - no active slabs
ok 5 - hit size limit
ok 6 - 1 active slab


No clue how to fix on RHEL 3.



On Thu, 7 Sep 2006, Mark Jaffe wrote:

> Strange situation, running on Redhat EL 3, Opteron 64-bit. Here is a
> complete log of build and test:
>
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> 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 ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> 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... none required
> checking for daemon... yes
> checking how to run the C preprocessor... gcc -E
> checking for egrep... 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 malloc.h usability... yes
> checking malloc.h presence... yes
> checking for malloc.h... yes
> checking for struct mallinfo.arena... yes
> checking for socklen_t... yes
> checking for mlockall... yes
> 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
> make  all-recursive
> make[1]: Entering directory `/root/memcached-1.2.x-svn378'
> Making all in doc
> make[2]: Entering directory `/root/memcached-1.2.x-svn378/doc'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/root/memcached-1.2.x-svn378/doc'
> make[2]: Entering directory `/root/memcached-1.2.x-svn378'
> if gcc -DHAVE_CONFIG_H -I. -I. -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; \
> then mv -f ".deps/memcached-memcached.Tpo" ".deps/memcached-
> memcached.Po"; \
> else rm -f ".deps/memcached-memcached.Tpo"; exit 1; \
> fi
> if gcc -DHAVE_CONFIG_H -I. -I. -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; \
> then mv -f ".deps/memcached-slabs.Tpo" ".deps/memcached-slabs.Po"; \
> else rm -f ".deps/memcached-slabs.Tpo"; exit 1; \
> fi
> if gcc -DHAVE_CONFIG_H -I. -I. -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; \
> then mv -f ".deps/memcached-items.Tpo" ".deps/memcached-items.Po"; \
> else rm -f ".deps/memcached-items.Tpo"; exit 1; \
> fi
> if gcc -DHAVE_CONFIG_H -I. -I. -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; \
> then mv -f ".deps/memcached-assoc.Tpo" ".deps/memcached-assoc.Po"; \
> else rm -f ".deps/memcached-assoc.Tpo"; exit 1; \
> fi
> gcc  -g -O2   -o memcached  memcached-memcached.o memcached-slabs.o
> memcached-items.o memcached-assoc.o  -levent
> if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT memcached.o -MD -MP
> -MF ".deps/memcached.Tpo" \
>    -c -o memcached.o `test -f 'memcached.c' || echo './'`memcached.c; \
> then mv -f ".deps/memcached.Tpo" ".deps/memcached.Po"; \
> else rm -f ".deps/memcached.Tpo"; exit 1; \
> fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT slabs.o -MD -MP -MF
> ".deps/slabs.Tpo" \
>    -c -o slabs.o `test -f 'slabs.c' || echo './'`slabs.c; \
> then mv -f ".deps/slabs.Tpo" ".deps/slabs.Po"; \
> else rm -f ".deps/slabs.Tpo"; exit 1; \
> fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT items.o -MD -MP -MF
> ".deps/items.Tpo" \
>    -c -o items.o `test -f 'items.c' || echo './'`items.c; \
> then mv -f ".deps/items.Tpo" ".deps/items.Po"; \
> else rm -f ".deps/items.Tpo"; exit 1; \
> fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT assoc.o -MD -MP -MF
> ".deps/assoc.Tpo" \
>    -c -o assoc.o `test -f 'assoc.c' || echo './'`assoc.c; \
> then mv -f ".deps/assoc.Tpo" ".deps/assoc.Po"; \
> else rm -f ".deps/assoc.Tpo"; exit 1; \
> fi
> gcc  -g -O2   -o memcached-debug  memcached.o slabs.o items.o
> assoc.o  -levent
> make[2]: Leaving directory `/root/memcached-1.2.x-svn378'
> make[1]: Leaving directory `/root/memcached-1.2.x-svn378'
> test...test does not exist
> FAILED--1 test script could be run, alas--no output ever seen
> t/unixsocket.........skipped
>          all skipped: Tests not written.
> t/expirations........ok
> t/incrdecr...........ok
> t/flush-all..........ok
>          2/11 skipped: flush_all is still only second-granularity.
> need atomic counter on flush_all.
> t/multiversioning....ok
> t/delete-window......# waiting 5 seconds for the deleter event...
> ok
> t/lru................skipped
>          all skipped: Tests not written.
> t/stats..............skipped
>          all skipped: Tests not written.
> t/managed-buckets....skipped
>          all skipped: Tests not written.
> t/binary-get.........skipped
>          all skipped: Tests not written.
> t/00-startup.........ok
> t/64bit..............skipped
>          all skipped: Skipping 64-bit tests on 32-bit build
> t/bogus-commands.....ok
> t/slab-reassign......skipped
>          all skipped: Tests not written.
> t/daemonize..........ok
> t/getset.............ok
> t/flags..............ok
> t/udp................ok
> All tests successful, 7 tests and 2 subtests skipped.
> Files=18, Tests=127, 17 wallclock secs ( 1.49 cusr +  0.22 csys =
> 1.71 CPU)
>
>
> Anyone have a clue how I can force the host type?
> --
> Mark Jaffe
> markie at ydl.net
> 408-807-2093 (cell)
>
>


More information about the memcached mailing list