bug-gnu-utils
[Top][All Lists]
Advanced

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

findutils-4.1 and linux build


From: Warren L Dodge
Subject: findutils-4.1 and linux build
Date: Fri, 24 Oct 2003 09:17:07 -0700 (PDT)

I tried to build findutils-4.1 on i686 linux2.4 and had a problem.

It appears the configure script isn't compatible with some of the things that
linux has done.

gcc -c -DHAVE_CONFIG_H -I.. -I../../findutils-4.1/lib  -g -O ../../findutils-4.1
/lib/nextelem.c
../../findutils-4.1/lib/nextelem.c:35: parse error before `__extension__'
../../findutils-4.1/lib/nextelem.c:35: `__len' undeclared here (not in a functio
n)
../../findutils-4.1/lib/nextelem.c:35: initializer element is not constant
../../findutils-4.1/lib/nextelem.c:35: parse error before `if'
../../findutils-4.1/lib/nextelem.c:35: conflicting types for `__retval'
../../findutils-4.1/lib/nextelem.c:35: previous declaration of `__retval'
../../findutils-4.1/lib/nextelem.c:35: warning: data definition has no type or s
torage class

This appers to be because it included strings.h instead of string.h
Or it missed some other include.

This area of nextelem.c is where if I force string.h it appears to compile ok.

#include <stdio.h>
#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
#include <string.h>
#else
#include <strings.h>
#ifndef strchr
#define strchr index
#endif
#endif

Is there a newer version of findutils available?
Am I doing something wrong?

Thanks for the help




reply via email to

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