I just tried building 1.2.6 on the following system:
Linux 2.6.24-19-xen #1 SMP x86_64 x86_64 x86_64 GNU/Linux
... and received the following error:
./configure --enable-64bit
checking build system type... Invalid configuration `x86_64-unknown-
linux-': machine `x86_64-unknown-linux' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linux- failed
... definitely looks like configure doesn't know about the specific
distribution I'm running:
cat /etc/redhat-release
CentOS release 5.2 (Final)
Aside from munging with configure, are there any cleaner ways of
fixing this problem?
You just need to specify the build target to configure; no munging
required:
./configure --enable-64bit --build x86_64-redhat-linux-gnu
So what do I specify as a build target here for 64 bit solaris 10, the
configure is detecting my system as sparc-sun-solaris2.10 but this
gives me 32 bit output I want 64 bit output?
memcached-1.2.6 should identify the host correctly, so it should just
be a case of specifying --enable-64bit, but you can be explicit:
./configure --build=i386-pc-solaris2.11 --enable-64bit
A quick check of the created Makefile shows it is setting the CFLAGS
correctly:
$ grep 64 Makefile
install_sh_DATA = $(install_sh) -c -m 644
CFLAGS = -m64 -g -O2
INSTALL_DATA = ${INSTALL} -m 644
MC
--
Martin MC Brown, Technical Writer
Database Technology Group, Sun Microsystems
http://sun.com | http://mysql.com
Phone: x18435/+44 247 669 8435 Skype: mcmcslp