Package: tdb
Severity: normal
Tags: patch

Building tdb on sarge i386 running on an athlon 64 fails if running the
amd64 kernel provided in sarge.  The system type is detected as x86_64
in configure even though the compiler and user space are all i486-linux.
A simple solution is to change one line in debian/rules:

ifeq ($(DEB_BUILD_ARCH),i386)
ENABLE_SPINLOCKS=--with-spinlocks
endif

to

ifeq ($(DEB_BUILD_ARCH),i386)
ENABLE_SPINLOCKS=--with-spinlocks --build=i386-pc-linux-gnu
endif

then it works fine.

It actually seems like a flaw in configure/autoconf to get the cpu type
as x86_64 when the compiler and libc and all on the system it is running
on is saying i486-linux.  I think using gcc -dumpmachine would be a
better test than uname -m although it is only an issue on mixed 32/64
bit machines I suppose.

Either way having builds fail on a system running only packages provided
in sarge is rather unfortunate, especially when the machines failing are
the fastest machines you can get for building on.

Len Sorensen

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.10-9-amd64-k8
Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to