bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

having trouble building find.c


From: Vicky Thai
Subject: having trouble building find.c
Date: Tue, 12 Oct 2004 09:29:39 +1000

Hi everyone,

This may seem like a stupid question but I'm relatively new to UNIX so any help 
on this subject would be much appreciated.

I recently downloaded findutils-4.1.tar.gz from www.gnu.org and uploaded it to 
my Linux machine (I'm running uClinux).  After I unzipped the archive and 
extracted its files, I changed to the newly created findutils-4.1 directory and 
ran the configure shell script, then typed 'make' to compile the package.

When I ran 'configure' I got the following output:

address@hidden findutils-4.1]$ ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -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

and when I ran 'make' I got the following output, as you can see there are 
errors in it:

address@hidden findutils-4.1]$ make
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 `/home/vthai/findutils-4.1/lib'
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O regex.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O dirname.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O error.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O filemode.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O getopt.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O getopt1.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O idcache.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O listfile.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O modechange.c
gcc -c -DHAVE_CONFIG_H -I.. -I.  -g -O nextelem.c
nextelem.c:35: parse error before "__extension__"
nextelem.c:35: `__len' undeclared here (not in a function)
nextelem.c:35: initializer element is not constant
nextelem.c:35: parse error before "if"
nextelem.c:35: conflicting types for `__retval'
nextelem.c:35: previous declaration of `__retval'
nextelem.c:35: warning: data definition has no type or storage class
nextelem.c:35: parse error before '}' token
make[1]: *** [nextelem.o] Error 1
make[1]: Leaving directory `/home/vthai/findutils-4.1/lib'
making all in find
make[1]: Entering directory `/home/vthai/findutils-4.1/find'
gcc -c -DHAVE_CONFIG_H -I.. -I../lib  -g -O find.c
find.c: In function `main':
find.c:138: warning: return type of `main' is not `int'
gcc -c -DHAVE_CONFIG_H -I.. -I../lib  -g -O fstype.c
fstype.c:33: parse error before "__extension__"
fstype.c:33: `__len' undeclared here (not in a function)
fstype.c:33: initializer element is not constant
fstype.c:33: parse error before "if"
fstype.c:33: conflicting types for `__retval'
fstype.c:33: previous declaration of `__retval'
fstype.c:33: warning: data definition has no type or storage class
fstype.c:33: parse error before '}' token
make[1]: *** [fstype.o] Error 1
make[1]: Leaving directory `/home/vthai/findutils-4.1/find'
making all in xargs
make[1]: Entering directory `/home/vthai/findutils-4.1/xargs'
gcc -c -DHAVE_CONFIG_H -I.. -I../lib  -g -O xargs.c
xargs.c:64: parse error before "__extension__"
xargs.c:64: `__len' undeclared here (not in a function)
xargs.c:64: initializer element is not constant
xargs.c:64: parse error before "if"
xargs.c:64: conflicting types for `__retval'
xargs.c:64: previous declaration of `__retval'
xargs.c:64: warning: data definition has no type or storage class
xargs.c:64: parse error before '}' token
xargs.c: In function `main':
xargs.c:255: warning: return type of `main' is not `int'
make[1]: *** [xargs.o] Error 1
make[1]: Leaving directory `/home/vthai/findutils-4.1/xargs'
making all in locate
make[1]: Entering directory `/home/vthai/findutils-4.1/locate'
gcc -c -DHAVE_CONFIG_H -I.. -I../lib - DLOCATE_DB=\"/usr/local/var/locatedb\"  
-g -O ../find/version.c
make[1]: *** No rule to make target `../lib/libfind.a', needed by `locate'. 
Stop.
make[1]: Leaving directory `/home/vthai/findutils-4.1/locate'
making all in doc
make[1]: Entering directory `/home/vthai/findutils-4.1/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vthai/findutils-4.1/doc'
making all in testsuite
make[1]: Entering directory `/home/vthai/findutils-4.1/testsuite'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vthai/findutils-4.1/testsuite'


Can anyone please tell me what to do about the errors and how to go about 
building find.c successfully?

Regards,

Vicky



-- 
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]