With some help on irc from kito and grobian I was able to progress
beyond configure being stuck.
It was caused by environment issues. (Using strace and grepping for
"access" proved very fruitful to find the missing files. A simple
symlink seemed to solve these issues).
Now on to the next problem, configure being confused. I've installed
gcc with toolsbox, yet somehow the it isn't being found....
Here's a line from configure:
checking whether we are using the GNU C compiler... no
strace is also showing that configure is looking for a few files and
not finding them:
.... [filtered strace output]
access("/data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//usr/etc/config.site",
R_OK) = -1 ENOENT (No such file or directory)
access("/data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//usr/share/config.site",
R_OK) = -1 ENOENT (No such file or directory)
I'm attaching my latest build script in case anyone is interested.
Any hints, send them my way.
thanks
matt
[complete configure output]
./configure --prefix=/data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221/
i686-pc-linux-gnu//usr --host=i686-pc-linux-gnu --mandir=/data1/portage/dec21/pr
efix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//usr/share/man --infodir=/
data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//usr
/share/info --datadir=/data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221
/i686-pc-linux-gnu//usr/share --sysconfdir=/data1/portage/dec21/prefix/toolsbox-
4-patchespre.20051221/i686-pc-linux-gnu//etc --localstatedir=/data1/portage/dec2
1/prefix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//var/lib --build=i686-
pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-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...
checking whether we are using the GNU C compiler... no
checking whether i686-pc-linux-gnu-gcc accepts -g... no
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for a BSD-compatible install... /data1/portage/dec21/prefix/toolsbox-4-
patchespre.20051221/i686-pc-linux-gnu//bin/ginstall -c
checking whether make sets $(MAKE)... no
checking for ed... ed
checking for egrep... grep -E
checking for AIX... no
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for library containing strerror... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for function prototypes... no
checking for an ANSI C-conforming const... no
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for library containing opendir... none required
checking for ANSI C header files... (cached) no
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for fcntl.h... yes
checking limits.h usability... no
checking limits.h presence... yes
configure: WARNING: limits.h: present but cannot be compiled
configure: WARNING: limits.h: check for missing prerequisite headers?
configure: WARNING: limits.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for limits.h... yes
checking for string.h... (cached) no
checking for unistd.h... (cached) no
checking utime.h usability... no
checking utime.h presence... yes
configure: WARNING: utime.h: present but cannot be compiled
configure: WARNING: utime.h: check for missing prerequisite headers?
configure: WARNING: utime.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for utime.h... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking for mode_t... no
checking for off_t... no
checking for pid_t... no
checking return type of signal handlers... int
checking for size_t... no
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking sys/time.h usability... no
checking sys/time.h presence... yes
configure: WARNING: sys/time.h: present but cannot be compiled
configure: WARNING: sys/time.h: check for missing prerequisite headers?
configure: WARNING: sys/time.h: proceeding with the preprocessor's
resulconfigure: WARNING: ## ------------------------------------
##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for sys/time.h... yes
checking for utime.h... (cached) yes
checking whether time.h and sys/time.h may both be included... no
checking for struct utimbuf... no
checking whether closedir returns void... yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking whether getenv is declared... no
checking whether malloc is declared... no
checking whether system is Windows or MSDOS... no
checking for unistd.h... (cached) no
checking for d_ino member in directory struct... no
checking for long file names... (cached) yes
checking for pathconf... yes
checking for vprintf... yes
checking for _doprnt... no
checking for error_at_line... yes
checking for strerror... yes
checking whether strerror is declared... no
checking whether strerror_r is declared... no
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for memchr... yes
checking whether stat file-mode macros are broken... no
checking for rmdir... yes
checking for stdlib.h... (cached) no
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) no
checking for GNU libc compatible realloc... yes
checking stddef.h usability... no
checking stddef.h presence... yes
configure: WARNING: stddef.h: present but cannot be compiled
configure: WARNING: stddef.h: check for missing prerequisite headers?
configure: WARNING: stddef.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for stddef.h... yes
checking wchar.h usability... no
checking wchar.h presence... yes
configure: WARNING: wchar.h: present but cannot be compiled
configure: WARNING: wchar.h: check for missing prerequisite headers?
configure: WARNING: wchar.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for wchar.h... yes
checking wctype.h usability... no
checking wctype.h presence... yes
configure: WARNING: wctype.h: present but cannot be compiled
configure: WARNING: wctype.h: check for missing prerequisite headers?
configure: WARNING: wctype.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for wctype.h... yes
checking for iswprint... yes
checking for mbsinit... yes
checking for mbstate_t... no
checking whether mbrtowc and mbstate_t are properly declared... yes
checking for pathconf... (cached) yes
checking for limits.h... (cached) yes
checking for string.h... (cached) no
checking for unistd.h... (cached) no
checking whether free is declared... no
checking whether getenv is declared... (cached) no
checking whether malloc is declared... (cached) no
checking whether mktemp is declared... no
checking for _doprintf... no
checking for geteuid... yes
checking for getuid... yes
checking for isascii... yes
checking for memcmp... yes
checking for mktemp... yes
checking for pathconf... (cached) yes
checking for raise... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigsetmask... yes
checking for strerror... (cached) yes
checking for mkdir... yes
checking for strncasecmp... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking whether clearerr_unlocked is declared... no
checking whether feof_unlocked is declared... no
checking whether ferror_unlocked is declared... no
checking whether fflush_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getc_unlocked is declared... no
checking whether getchar_unlocked is declared... no
checking whether putc_unlocked is declared... no
checking whether putchar_unlocked is declared... no
checking whether closedir returns void... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) no
checking for DOS-style setmode... no
checking for vprintf... (cached) yes
checking for _doprnt... (cached) no
checking for mkdir... (cached) yes
checking whether mkdir takes only one argument... no
checking whether system is Windows or MSDOS... (cached) no
checking for long file names... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
sed -e 's/@''HAVE__BOOL''@/0/g' \
<./stdbool.h.in >stdbool.h
i686-pc-linux-gnu-gcc -o patch -DLINUX -D_XOPEN_SOURCE=500 addext. argmatch. b
ackupfile. basename. dirname. getopt. getopt1. inp. maketime. partime. patch. pc
h. quote. quotearg. quotesys. util. version. xmalloc.
i686-pc-linux-gnu-gcc: addext.: No such file or directory
i686-pc-linux-gnu-gcc: argmatch.: No such file or directory
i686-pc-linux-gnu-gcc: backupfile.: No such file or directory
i686-pc-linux-gnu-gcc: basename.: No such file or directory
i686-pc-linux-gnu-gcc: dirname.: No such file or directory
i686-pc-linux-gnu-gcc: getopt.: No such file or directory
i686-pc-linux-gnu-gcc: getopt1.: No such file or directory
i686-pc-linux-gnu-gcc: inp.: No such file or directory
i686-pc-linux-gnu-gcc: maketime.: No such file or directory
i686-pc-linux-gnu-gcc: partime.: No such file or directory
i686-pc-linux-gnu-gcc: patch.: No such file or directory
i686-pc-linux-gnu-gcc: pch.: No such file or directory
i686-pc-linux-gnu-gcc: quote.: No such file or directory
i686-pc-linux-gnu-gcc: quotearg.: No such file or directory
i686-pc-linux-gnu-gcc: quotesys.: No such file or directory
i686-pc-linux-gnu-gcc: util.: No such file or directory
i686-pc-linux-gnu-gcc: version.: No such file or directory
i686-pc-linux-gnu-gcc: xmalloc.: No such file or directory
i686-pc-linux-gnu-gcc: no input files
make: *** [patch] Error 1
!!! ERROR: sys-devel/patch-2.5.9-r1 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message
beyond configure being stuck.
It was caused by environment issues. (Using strace and grepping for
"access" proved very fruitful to find the missing files. A simple
symlink seemed to solve these issues).
Now on to the next problem, configure being confused. I've installed
gcc with toolsbox, yet somehow the it isn't being found....
Here's a line from configure:
checking whether we are using the GNU C compiler... no
strace is also showing that configure is looking for a few files and
not finding them:
.... [filtered strace output]
access("/data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//usr/etc/config.site",
R_OK) = -1 ENOENT (No such file or directory)
access("/data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//usr/share/config.site",
R_OK) = -1 ENOENT (No such file or directory)
I'm attaching my latest build script in case anyone is interested.
Any hints, send them my way.
thanks
matt
[complete configure output]
./configure --prefix=/data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221/
i686-pc-linux-gnu//usr --host=i686-pc-linux-gnu --mandir=/data1/portage/dec21/pr
efix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//usr/share/man --infodir=/
data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//usr
/share/info --datadir=/data1/portage/dec21/prefix/toolsbox-4-patchespre.20051221
/i686-pc-linux-gnu//usr/share --sysconfdir=/data1/portage/dec21/prefix/toolsbox-
4-patchespre.20051221/i686-pc-linux-gnu//etc --localstatedir=/data1/portage/dec2
1/prefix/toolsbox-4-patchespre.20051221/i686-pc-linux-gnu//var/lib --build=i686-
pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-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...
checking whether we are using the GNU C compiler... no
checking whether i686-pc-linux-gnu-gcc accepts -g... no
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for a BSD-compatible install... /data1/portage/dec21/prefix/toolsbox-4-
patchespre.20051221/i686-pc-linux-gnu//bin/ginstall -c
checking whether make sets $(MAKE)... no
checking for ed... ed
checking for egrep... grep -E
checking for AIX... no
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for library containing strerror... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for function prototypes... no
checking for an ANSI C-conforming const... no
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for library containing opendir... none required
checking for ANSI C header files... (cached) no
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for fcntl.h... yes
checking limits.h usability... no
checking limits.h presence... yes
configure: WARNING: limits.h: present but cannot be compiled
configure: WARNING: limits.h: check for missing prerequisite headers?
configure: WARNING: limits.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for limits.h... yes
checking for string.h... (cached) no
checking for unistd.h... (cached) no
checking utime.h usability... no
checking utime.h presence... yes
configure: WARNING: utime.h: present but cannot be compiled
configure: WARNING: utime.h: check for missing prerequisite headers?
configure: WARNING: utime.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for utime.h... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking for mode_t... no
checking for off_t... no
checking for pid_t... no
checking return type of signal handlers... int
checking for size_t... no
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking sys/time.h usability... no
checking sys/time.h presence... yes
configure: WARNING: sys/time.h: present but cannot be compiled
configure: WARNING: sys/time.h: check for missing prerequisite headers?
configure: WARNING: sys/time.h: proceeding with the preprocessor's
resulconfigure: WARNING: ## ------------------------------------
##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for sys/time.h... yes
checking for utime.h... (cached) yes
checking whether time.h and sys/time.h may both be included... no
checking for struct utimbuf... no
checking whether closedir returns void... yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking whether getenv is declared... no
checking whether malloc is declared... no
checking whether system is Windows or MSDOS... no
checking for unistd.h... (cached) no
checking for d_ino member in directory struct... no
checking for long file names... (cached) yes
checking for pathconf... yes
checking for vprintf... yes
checking for _doprnt... no
checking for error_at_line... yes
checking for strerror... yes
checking whether strerror is declared... no
checking whether strerror_r is declared... no
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for memchr... yes
checking whether stat file-mode macros are broken... no
checking for rmdir... yes
checking for stdlib.h... (cached) no
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) no
checking for GNU libc compatible realloc... yes
checking stddef.h usability... no
checking stddef.h presence... yes
configure: WARNING: stddef.h: present but cannot be compiled
configure: WARNING: stddef.h: check for missing prerequisite headers?
configure: WARNING: stddef.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for stddef.h... yes
checking wchar.h usability... no
checking wchar.h presence... yes
configure: WARNING: wchar.h: present but cannot be compiled
configure: WARNING: wchar.h: check for missing prerequisite headers?
configure: WARNING: wchar.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for wchar.h... yes
checking wctype.h usability... no
checking wctype.h presence... yes
configure: WARNING: wctype.h: present but cannot be compiled
configure: WARNING: wctype.h: check for missing prerequisite headers?
configure: WARNING: wctype.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for wctype.h... yes
checking for iswprint... yes
checking for mbsinit... yes
checking for mbstate_t... no
checking whether mbrtowc and mbstate_t are properly declared... yes
checking for pathconf... (cached) yes
checking for limits.h... (cached) yes
checking for string.h... (cached) no
checking for unistd.h... (cached) no
checking whether free is declared... no
checking whether getenv is declared... (cached) no
checking whether malloc is declared... (cached) no
checking whether mktemp is declared... no
checking for _doprintf... no
checking for geteuid... yes
checking for getuid... yes
checking for isascii... yes
checking for memcmp... yes
checking for mktemp... yes
checking for pathconf... (cached) yes
checking for raise... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigsetmask... yes
checking for strerror... (cached) yes
checking for mkdir... yes
checking for strncasecmp... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking whether clearerr_unlocked is declared... no
checking whether feof_unlocked is declared... no
checking whether ferror_unlocked is declared... no
checking whether fflush_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getc_unlocked is declared... no
checking whether getchar_unlocked is declared... no
checking whether putc_unlocked is declared... no
checking whether putchar_unlocked is declared... no
checking whether closedir returns void... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) no
checking for DOS-style setmode... no
checking for vprintf... (cached) yes
checking for _doprnt... (cached) no
checking for mkdir... (cached) yes
checking whether mkdir takes only one argument... no
checking whether system is Windows or MSDOS... (cached) no
checking for long file names... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
sed -e 's/@''HAVE__BOOL''@/0/g' \
<./stdbool.h.in >stdbool.h
i686-pc-linux-gnu-gcc -o patch -DLINUX -D_XOPEN_SOURCE=500 addext. argmatch. b
ackupfile. basename. dirname. getopt. getopt1. inp. maketime. partime. patch. pc
h. quote. quotearg. quotesys. util. version. xmalloc.
i686-pc-linux-gnu-gcc: addext.: No such file or directory
i686-pc-linux-gnu-gcc: argmatch.: No such file or directory
i686-pc-linux-gnu-gcc: backupfile.: No such file or directory
i686-pc-linux-gnu-gcc: basename.: No such file or directory
i686-pc-linux-gnu-gcc: dirname.: No such file or directory
i686-pc-linux-gnu-gcc: getopt.: No such file or directory
i686-pc-linux-gnu-gcc: getopt1.: No such file or directory
i686-pc-linux-gnu-gcc: inp.: No such file or directory
i686-pc-linux-gnu-gcc: maketime.: No such file or directory
i686-pc-linux-gnu-gcc: partime.: No such file or directory
i686-pc-linux-gnu-gcc: patch.: No such file or directory
i686-pc-linux-gnu-gcc: pch.: No such file or directory
i686-pc-linux-gnu-gcc: quote.: No such file or directory
i686-pc-linux-gnu-gcc: quotearg.: No such file or directory
i686-pc-linux-gnu-gcc: quotesys.: No such file or directory
i686-pc-linux-gnu-gcc: util.: No such file or directory
i686-pc-linux-gnu-gcc: version.: No such file or directory
i686-pc-linux-gnu-gcc: xmalloc.: No such file or directory
i686-pc-linux-gnu-gcc: no input files
make: *** [patch] Error 1
!!! ERROR: sys-devel/patch-2.5.9-r1 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message