I'm trying to compile discover to detect hardware for my distro, but every time a run make this is what I get:
Code:
_===> buildtools make[1]: Entering directory `/usr/src/discover-2.0.1/buildtools' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/discover-2.0.1/buildtools' _===> doctools make[1]: Entering directory `/usr/src/discover-2.0.1/doctools' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/discover-2.0.1/doctools' _===> portability make[1]: Entering directory `/usr/src/discover-2.0.1/portability' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/discover-2.0.1/portability' _===> etc make[1]: Entering directory `/usr/src/discover-2.0.1/etc' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/discover-2.0.1/etc' _===> doc make[1]: Entering directory `/usr/src/discover-2.0.1/doc' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/discover-2.0.1/doc' _===> scripts make[1]: Entering directory `/usr/src/discover-2.0.1/scripts' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/discover-2.0.1/scripts' _===> sysdeps make[1]: Entering directory `/usr/src/discover-2.0.1/sysdeps' make[2]: Entering directory `/usr/src/discover-2.0.1/sysdeps' all ===> sysdeps/linux make[3]: Entering directory `/usr/src/discover-2.0.1/sysdeps/linux' sh ../..//libtool --mode=compile gcc -c -DHAVE_CONFIG_H_ -I../../portability_ -I/usr/include/linux -I../.. -I../../ -I../../lib -g -O2 -c ata.c && touch ata.lo rm -f .libs/ata.lo gcc -c -DHAVE_CONFIG_H -I../../portability -I/usr/include/linux -I../.. -I../../ -I../../lib -g -O2 -c ata.c_ -fPIC -DPIC -o .libs/ata.lo In file included from /usr/include/bits/types.h:143, _ _ _ _ _ _ _ _ _from /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.1/include/stdio.h:45, _ _ _ _ _ _ _ _ _from ata.c:27: /usr/include/bits/pthreadtypes.h:48: parse error before "size_t" /usr/include/bits/pthreadtypes.h:51: parse error before "__stacksize" In file included from /usr/include/_G_config.h:44, _ _ _ _ _ _ _ _ _from /usr/include/libio.h:32, _ _ _ _ _ _ _ _ _from /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.1/include/stdio.h:81, _ _ _ _ _ _ _ _ _from ata.c:27: /usr/include/gconv.h:72: parse error before "size_t" /usr/include/gconv.h:85: parse error before "size_t" /usr/include/gconv.h:94: parse error before "size_t" /usr/include/gconv.h:170: parse error before "size_t" /usr/include/gconv.h:173: parse error before '}' token In file included from /usr/include/libio.h:32, _ _ _ _ _ _ _ _ _from /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.1/include/stdio.h:81, _ _ _ _ _ _ _ _ _from ata.c:27: /usr/include/_G_config.h:47: field `__cd' has incomplete type /usr/include/_G_config.h:50: field `__cd' has incomplete type /usr/include/_G_config.h:52: confused by earlier errors, bailing out make[3]: *** [ata.lo] Error 1 make[3]: Leaving directory `/usr/src/discover-2.0.1/sysdeps/linux' make[2]: *** [__recur] Error 2 make[2]: Leaving directory `/usr/src/discover-2.0.1/sysdeps' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/discover-2.0.1/sysdeps' make: *** [__recur] Error 2
When I get this I'm compiling from chrooted into the CD contents directory. The package configured correctly, but seems to have problems with my headers.