diff -ru scponly-4.6/configure.in scponly-4.6_mod/configure.in
--- scponly-4.6/configure.in	2006-02-01 00:07:28.000000000 +0200
+++ scponly-4.6_mod/configure.in	2009-11-18 14:16:31.440600396 +0200
@@ -48,6 +48,8 @@
 AC_PATH_PROG(PROG_PW, pw)
 AC_PATH_PROG(PROG_RM, rm)
 AC_PATH_PROG(PROG_PWD_MKDB, pwd_mkdb)
+AC_PATH_PROG(PROG_MKNOD, mknod)
+AC_PATH_PROG(PROG_MKDIR, mkdir)
 
 dnl Features wanted for this installation:
 dnl Command-line args to ./configure
diff -ru scponly-4.6/setup_chroot.sh.in scponly-4.6_mod/setup_chroot.sh.in
--- scponly-4.6/setup_chroot.sh.in	2006-01-31 01:11:31.000000000 +0200
+++ scponly-4.6_mod/setup_chroot.sh.in	2009-11-18 14:16:39.805371422 +0200
@@ -78,8 +78,12 @@
 
 #
 #	we also need to add some form of ld.so, here are some good guesses.
+#      for 64 bit linux we need extra stuff. see http://www.quae.co.uk/2009/03/03/scponly-chroot-with-ubuntu-hardy-64-bit
 #
-LDSO_LIST="/lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /lib/ld-linux.so.2 /usr/libexec/ld-elf.so.1"
+LDSO_LIST="/lib/ld-2.7.so /lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /lib/ld-linux.so.2 /usr/libexec/ld-elf.so.1"
+if [ x`uname -m` = "xx86_64" ]; then
+	LDSO_LIST="$LDSO_LIST /lib/libncurses.so.5 /lib/libdl.so.2 /lib/libc.so.6 /lib64/ld-linux-x86-64.so.2"
+fi
 for lib in $LDSO_LIST; do
 	if [ -f $lib ]; then
 		LDSOFOUND=1;
@@ -199,6 +203,10 @@
 	done
 fi
 
+# and a /dev/null
+[ -d $targetdir/dev ] || @PROG_MKDIR@ $targetdir/dev
+@PROG_MKNOD@ -m 666 $targetdir/dev/null c 1 3
+
 if [ "x$USE_PW" = x0 ] ; then
     @PROG_USERADD@ -d "$targetdir" -s "@prefix@/sbin/@CHROOTED_NAME@" $targetuser
     if [ $? -ne 0 ]; then
