Bugzilla – Bug 366
configure script is missing basic macro
Last modified: 2004-10-07 23:08:35 CST
You need to log in before you can comment on or make changes to this bug.
the configure.in is missing a call to AC_PROG_CC which results in bad (but not fatal) detection of header files and type sizes $ ./configure [...] checking for sys/types.h... no [...] checking size of long... 0 [...]
Created an attachment (id=140) [details] 2.6.13-configure.patch patch written by Marc Bevand
Created an attachment (id=141) [details] 2.6.13-configure.patch patch written by Marc Bevand
Hi there, Hmm, AC_PROG_CC is called via AC_PACKAGE_UTILITIES, before any of those failed checks you've listed there. The problem must be somewhere else.. probably a Gentoo-specific thing, since noone else has reported this and its known to work correctly on Redhat, SuSE and Debian. Can you add the full configure output please? (gentoo bug system doesnt have that either). And maybe your generated configure script too? thanks.
ok, the problem is this little bit of code: if test -z "$CC"; then AC_PROG_CC fi on Gentoo, we have a habit of setting $CC in the environment (unrelated topic as to why we do that ...) not quite sure what kind of assumption that code is working under, but the side effect is that $OBJEXT is never defined and thus all the compilation configure tests will fail since they look for 'conftest.$OBJEXT' which would normally resolve to 'conftest.o' but for us Gentoo peeps, we get 'conftest.'
test case: vapier@vapier 0 xfsprogs-2.6.13 # env -uCC ./configure checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for make... /usr/bin/make checking for libtool... /usr/bin/libtool checking for tar... /bin/tar checking for gzip... /bin/gzip checking for makedepend... /usr/X11R6/bin/makedepend checking for awk... /bin/awk checking for sed... /bin/sed checking for echo... /bin/echo checking for sort... /bin/sort checking whether ln -s works... yes checking for msgfmt... /usr/bin/msgfmt checking for msgmerge... /usr/bin/msgmerge checking for rpm... /usr/bin/rpm checking for rpmbuild... /usr/bin/rpmbuild checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking uuid.h usability... no checking uuid.h presence... no checking for uuid.h... no checking uuid/uuid.h usability... yes checking uuid/uuid.h presence... yes checking for uuid/uuid.h... yes checking for uuid_compare... no checking for uuid_compare in -luuid... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_mutex_init in -lpthread... yes checking for __psint_t ... no checking for __psunsigned_t ... no checking for long... yes checking size of long... 4 checking for char *... yes checking size of char *... 4 configure: creating ./config.status config.status: creating include/builddefs config.status: creating include/platform_defs.h vapier@vapier 0 xfsprogs-2.6.13 # env CC=gcc ./configure checking for make... /usr/bin/make checking for libtool... /usr/bin/libtool checking for tar... /bin/tar checking for gzip... /bin/gzip checking for makedepend... /usr/X11R6/bin/makedepend checking for awk... /bin/awk checking for sed... /bin/sed checking for echo... /bin/echo checking for sort... /bin/sort checking whether ln -s works... yes checking for msgfmt... /usr/bin/msgfmt checking for msgmerge... /usr/bin/msgmerge checking for rpm... /usr/bin/rpm checking for rpmbuild... /usr/bin/rpmbuild checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... no checking for sys/types.h... no checking for sys/stat.h... no checking for stdlib.h... no checking for string.h... no checking for memory.h... no checking for strings.h... no checking for inttypes.h... no checking for stdint.h... no checking for unistd.h... no checking uuid.h usability... no checking uuid.h presence... no checking for uuid.h... no checking uuid/uuid.h usability... no checking uuid/uuid.h presence... yes configure: WARNING: uuid/uuid.h: present but cannot be compiled configure: WARNING: uuid/uuid.h: check for missing prerequisite headers? configure: WARNING: uuid/uuid.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for uuid/uuid.h... yes checking for uuid_compare... no checking for uuid_compare in -luuid... yes checking pthread.h usability... no checking pthread.h presence... yes configure: WARNING: pthread.h: present but cannot be compiled configure: WARNING: pthread.h: check for missing prerequisite headers? configure: WARNING: pthread.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for pthread.h... yes checking for pthread_mutex_init in -lpthread... yes checking for __psint_t ... no checking for __psunsigned_t ... no checking for long... no checking size of long... 0 checking for char *... no checking size of char *... 0 configure: creating ./config.status config.status: creating include/builddefs config.status: creating include/platform_defs.h
> on Gentoo, we have a habit of setting $CC in the environment > (unrelated topic as to why we do that ...) Ah, this is easily resolved then - if you guys get current xfsprogs, that check is no longer there. xfsprogs-2.6.25 is current in cvs. I suspect you will also want current versions of xfsdump, dmapi, acl and attr packages too (if you guys have those in gentoo) - they will all have the same issue. cheers.
ah, very true, the other xfs apps hadnt caught my mind thanks for the heads up, i'll update the Gentoo packages :)