I've attached a config.log from my build failure on i386, which I reproduced by trying to run: 'dpkg-buildpackage </dev/null 2>&1 | tee ../build-log'. It looks to me as if the test program is depending on a read select on stdin to block, which won't be the case on buildd's or under pbuilder. -- Daniel Schepler
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
configure:536: checking for gcc configure:649: checking whether the C compiler (gcc -g -O0 ) works configure:665: gcc -o conftest -g -O0 conftest.c 1>&5 configure:691: checking whether the C compiler (gcc -g -O0 ) is a cross-compiler configure:696: checking whether we are using GNU C configure:705: gcc -E conftest.c configure:724: checking whether gcc accepts -g configure:786: checking for a BSD compatible install configure:839: checking whether make sets ${MAKE} configure:869: checking for kvm_openfiles in -lkvm configure:888: gcc -o conftest -g -O0 -rdynamic conftest.c -lkvm 1>&5 /usr/bin/ld: cannot find -lkvm collect2: ld returned 1 exit status configure: failed program was: #line 877 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char kvm_openfiles(); int main() { kvm_openfiles() ; return 0; } configure:917: checking for scrollok in -lncurses configure:936: gcc -o conftest -g -O0 -rdynamic conftest.c -lncurses 1>&5 configure:1002: checking for dlopen in -ldl configure:1021: gcc -o conftest -g -O0 -rdynamic conftest.c -ldl -lncurses 1>&5 configure:1047: checking for dirent.h that defines DIR configure:1060: gcc -c -g -O0 conftest.c 1>&5 configure:1085: checking for opendir in -ldir configure:1104: gcc -o conftest -g -O0 -rdynamic conftest.c -ldir -lncurses -ldl 1>&5 /usr/bin/ld: cannot find -ldir collect2: ld returned 1 exit status configure: failed program was: #line 1093 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char opendir(); int main() { opendir() ; return 0; } configure:1168: checking how to run the C preprocessor configure:1189: gcc -E conftest.c >/dev/null 2>conftest.out configure:1248: checking for ANSI C header files configure:1261: gcc -E conftest.c >/dev/null 2>conftest.out configure:1328: gcc -o conftest -g -O0 -rdynamic conftest.c -lncurses -ldl 1>&5 configure: In function 'main': configure:1323: warning: incompatible implicit declaration of built-in function 'exit' configure:1352: checking for sys/wait.h that is POSIX.1 compatible configure:1373: gcc -c -g -O0 conftest.c 1>&5 configure:1397: checking for fcntl.h configure:1407: gcc -E conftest.c >/dev/null 2>conftest.out configure:1397: checking for sys/ioctl.h configure:1407: gcc -E conftest.c >/dev/null 2>conftest.out configure:1397: checking for sys/time.h configure:1407: gcc -E conftest.c >/dev/null 2>conftest.out configure:1397: checking for unistd.h configure:1407: gcc -E conftest.c >/dev/null 2>conftest.out configure:1437: checking for curses.h configure:1447: gcc -E conftest.c >/dev/null 2>conftest.out configure:1475: checking for working const configure:1529: gcc -c -g -O0 conftest.c 1>&5 configure:1550: checking for inline configure:1564: gcc -c -g -O0 conftest.c 1>&5 configure:1590: checking for pid_t configure:1623: checking for st_rdev in struct stat configure:1636: gcc -c -g -O0 conftest.c 1>&5 configure:1657: checking whether time.h and sys/time.h may both be included configure:1671: gcc -c -g -O0 conftest.c 1>&5 configure:1693: checking whether utmp has USER_PROCESS type configure:1705: gcc -c -g -O0 conftest.c 1>&5 configure:1721: checking whether utmp has DEAD_PROCESS type configure:1733: gcc -c -g -O0 conftest.c 1>&5 configure:1749: checking whether utmp struct has ut_pid member configure:1761: gcc -c -g -O0 conftest.c 1>&5 configure:1777: checking whether utmp struct has ut_name member configure:1789: gcc -c -g -O0 conftest.c 1>&5 configure:1806: checking whether gcc needs -traditional configure:1852: checking return type of signal handlers configure:1874: gcc -c -g -O0 conftest.c 1>&5 configure:1895: checking for select configure:1923: gcc -o conftest -g -O0 -rdynamic conftest.c -lncurses -ldl 1>&5 configure:1950: checking for getloadavg configure:1978: gcc -o conftest -g -O0 -rdynamic conftest.c -lncurses -ldl 1>&5 configure:2004: checking whether select() modifies the time value configure:2027: gcc -o conftest -g -O0 -rdynamic conftest.c -lncurses -ldl 1>&5 configure: In function 'main': configure:2021: warning: incompatible implicit declaration of built-in function 'exit' configure: failed program was: #line 2009 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> #include <unistd.h> int main() { int retval; fd_set rfds; struct timeval tv = {1, 0}; FD_ZERO(&rfds); FD_SET(0,&rfds); select(1,&rfds,0,0,&tv); if(tv.tv_sec == 0) exit(0); else exit(1); } configure:2044: checking whether sysctl() can be used configure:2059: gcc -c -g -O0 conftest.c 1>&5 configure: In function 'main': configure:2052: error: 'KERN_PROC' undeclared (first use in this function) configure:2052: error: (Each undeclared identifier is reported only once configure:2052: error: for each function it appears in.) configure:2052: error: 'KERN_PROC_PID' undeclared (first use in this function) configure: failed program was: #line 2046 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> #include <sys/sysctl.h> int main() { int mib[]={CTL_KERN,KERN_PROC,KERN_PROC_PID,1}; int len; sysctl(mib, 4, 0, &len, 0, 0); ; return 0; }