Findutils CVS Version 20030108

Jim Gifford jim at jg555.com
Wed Jan 8 15:01:13 PST 2003


If I remove the -D_GNU_SOURCE, it works ok.

"Jim Gifford" <jim at jg555.com> wrote in message
news:sumuexvfb.ln2 at server.jg555.com...
> I can't get findutils to build. I am using Redhat 8.0 as the base distro.
>
> I have applied the patch and here is what I was using for my commands
>
> CPPFLAGS="-Dre_max_failures=re_max_failures2 -D_GNU_SOURCE" \
> LDFLAGS="-static" ./configure --prefix=$LFS/static &&
> make &&
> make install
>
> Here is a log of configure, make, and make install.
>
> loading cache ./config.cache
> checking for gcc... (cached) gcc -s
> checking whether we are using GNU C... (cached) yes
> checking whether gcc -s accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -s -E
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking for ranlib... (cached) ranlib
> checking whether make sets $MAKE... (cached) yes
> checking for AIX... no
> checking for minix/config.h... (cached) no
> checking for POSIXized ISC... no
> checking for -lsun... (cached) no
> checking for fcntl.h... (cached) yes
> checking for string.h... (cached) yes
> checking for limits.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking whether cross-compiling... (cached) no
> checking for ANSI C header files... (cached) yes
> checking whether sys/types.h defines makedev... (cached) yes
> checking for dirent.h that defines DIR... (cached) yes
> checking for -ldir... (cached) no
> checking whether stat file-mode macros are broken... (cached) no
> checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
> checking how to get filesystem type... 4.3BSD
> checking for uid_t in sys/types.h... (cached) yes
> checking for size_t... (cached) yes
> checking for pid_t... (cached) yes
> checking for ino_t... (cached) yes
> checking for dev_t... (cached) yes
> checking for st_blocks in struct stat... (cached) yes
> checking for st_rdev in struct stat... (cached) yes
> checking whether struct tm is in sys/time.h or time.h... (cached) time.h
> checking for tm_zone in struct tm... (cached) yes
> checking for working const... (cached) yes
> checking for memcmp... (cached) yes
> checking for memset... (cached) yes
> checking for mktime... (cached) yes
> checking for stpcpy... (cached) yes
> checking for strdup... (cached) yes
> checking for strftime... (cached) yes
> checking for strspn... (cached) yes
> checking for strstr... (cached) yes
> checking for strtol... (cached) yes
> checking for fchdir... (cached) yes
> checking for getcwd... (cached) yes
> checking for strerror... (cached) yes
> checking for -lintl... (cached) no
> checking for strftime... (cached) yes
> checking for vprintf... (cached) yes
> checking for working alloca.h... (cached) yes
> checking for alloca... (cached) yes
> checking for -lsun... (cached) no
> checking for -lseq... (cached) no
> checking for getmntent... (cached) yes
> checking whether closedir returns void... (cached) no
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating lib/Makefile
> creating find/Makefile
> creating xargs/Makefile
> creating locate/Makefile
> creating doc/Makefile
> creating testsuite/Makefile
> creating config.h
> config.h is unchanged
> for subdir in lib find xargs locate doc testsuite; do \
> echo making all in $subdir ; \
> (cd $subdir; make all); \
> done
> making all in lib
> make[1]: Entering directory `/usr/src/findutils-4.1/lib'
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O regex.c
> regex.c:27:1: warning: "_GNU_SOURCE" redefined
> regex.c:1:1: warning: this is the location of the previous definition
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O dirname.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O error.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O filemode.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O getopt.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O getopt1.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O idcache.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O listfile.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O modechange.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O nextelem.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O savedir.c
> savedir.c:65:15: macro "stpcpy" requires 2 arguments, but only 1 given
> savedir.c:65: `stpcpy' redeclared as different kind of symbol
> /usr/include/string.h:325: previous declaration of `stpcpy'
> make[1]: *** [savedir.o] Error 1
> make[1]: Leaving directory `/usr/src/findutils-4.1/lib'
> making all in find
> make[1]: Entering directory `/usr/src/findutils-4.1/find'
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -Dre_max_failures=re_max_failures2 -
> D_GNU_SOURCE -g -O find.c
> find.c: In function `main':
> find.c:138: warning: return type of `main' is not `int'
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -Dre_max_failures=re_max_failures2 -
> D_GNU_SOURCE -g -O fstype.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -Dre_max_failures=re_max_failures2 -
> D_GNU_SOURCE -g -O parser.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -Dre_max_failures=re_max_failures2 -
> D_GNU_SOURCE -g -O pred.c
> pred.c:18:1: warning: "_GNU_SOURCE" redefined
> pred.c:1:1: warning: this is the location of the previous definition
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -Dre_max_failures=re_max_failures2 -
> D_GNU_SOURCE -g -O tree.c
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -Dre_max_failures=re_max_failures2 -
> D_GNU_SOURCE -g -O util.c
> gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -Dre_max_failures=re_max_failures2
 -
> D_GNU_SOURCE -g -O version.c
> make[1]: *** No rule to make target `../lib/libfind.a', needed by `find'.
> Stop.
> make[1]: Leaving directory `/usr/src/findutils-4.1/find'
> making all in xargs
> make[1]: Entering directory `/usr/src/findutils-4.1/xargs'
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -Dre_max_failures=re_max_failures2 -
> D_GNU_SOURCE -g -O xargs.c
> xargs.c:29:1: warning: "_GNU_SOURCE" redefined
> xargs.c:1:1: warning: this is the location of the previous definition
> xargs.c: In function `main':
> xargs.c:252: warning: return type of `main' is not `int'
> make[1]: *** No rule to make target `../lib/libfind.a', needed by `xargs'.
> Stop.
> make[1]: Leaving directory `/usr/src/findutils-4.1/xargs'
> making all in locate
> make[1]: Entering directory `/usr/src/findutils-4.1/locate'
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I../lib -DLOCATE_DB=\"/mnt/lfs/static/var/lo
> catedb\" -Dre_max_failures=re_max_failures2 -D_GNU_SOURCE -g -O locate.c
> locate.c: In function `main':
> locate.c:362: warning: return type of `main' is not `int'
> make[1]: *** No rule to make target `../lib/libfind.a', needed by
`locate'.
> Stop.
> make[1]: Leaving directory `/usr/src/findutils-4.1/locate'
> making all in doc
> make[1]: Entering directory `/usr/src/findutils-4.1/doc'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/usr/src/findutils-4.1/doc'
> making all in testsuite
> make[1]: Entering directory `/usr/src/findutils-4.1/testsuite'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/usr/src/findutils-4.1/testsuite'
> for subdir in lib find xargs locate doc testsuite; do \
> echo making install in $subdir ; \
> (cd $subdir; make install); \
> done
> making install in lib
> make[1]: Entering directory `/usr/src/findutils-4.1/lib'
>
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -Dre_max_failures=re_max_failures2 -D_GNU
> _SOURCE -g -O savedir.c
> savedir.c:65:15: macro "stpcpy" requires 2 arguments, but only 1 given
> savedir.c:65: `stpcpy' redeclared as different kind of symbol
> /usr/include/string.h:325: previous declaration of `stpcpy'
> make[1]: *** [savedir.o] Error 1
> make[1]: Leaving directory `/usr/src/findutils-4.1/lib'
> making install in find
> make[1]: Entering directory `/usr/src/findutils-4.1/find'
> make[1]: *** No rule to make target `../lib/libfind.a', needed by `find'.
> Stop.
> make[1]: Leaving directory `/usr/src/findutils-4.1/find'
> making install in xargs
> make[1]: Entering directory `/usr/src/findutils-4.1/xargs'
> make[1]: *** No rule to make target `../lib/libfind.a', needed by `xargs'.
> Stop.
> make[1]: Leaving directory `/usr/src/findutils-4.1/xargs'
> making install in locate
> make[1]: Entering directory `/usr/src/findutils-4.1/locate'
> make[1]: *** No rule to make target `../lib/libfind.a', needed by
`locate'.
> Stop.
> make[1]: Leaving directory `/usr/src/findutils-4.1/locate'
> making install in doc
> make[1]: Entering directory `/usr/src/findutils-4.1/doc'
> ../mkinstalldirs /mnt/lfs/static/info
> cd .; for file in *.info*; do \
> /usr/bin/install -c -m 644 $file /mnt/lfs/static/info/$file; \
> done
> make[1]: Leaving directory `/usr/src/findutils-4.1/doc'
> making install in testsuite
> make[1]: Entering directory `/usr/src/findutils-4.1/testsuite'
> make[1]: Nothing to be done for `install'.
> make[1]: Leaving directory `/usr/src/findutils-4.1/testsuite'
>
>


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list