[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
findutils-4.2.18: syntax error in find/find.c
From: |
Michael Deutschmann |
Subject: |
findutils-4.2.18: syntax error in find/find.c |
Date: |
Mon, 21 Feb 2005 00:01:30 -0800 (PST) |
Findutils 4.2.18 refused to compile on my system with the following error:
../../findutils-4.2.18/find/find.c: In function `safely_chdir_nofollow':
../../findutils-4.2.18/find/find.c:1097: parse error before `int'
../../findutils-4.2.18/find/find.c:1098: `fd' undeclared (first use in this
function)
../../findutils-4.2.18/find/find.c:1098: (Each undeclared identifier is
reported only once
../../findutils-4.2.18/find/find.c:1098: for each function it appears in.)
Checking the source reveals that at that point of the file there is a
declaration ("int fd = open(...);") after an assignment ("errno = 0;").
That's legal in C++, but not in C.
(Vitals: Linux 2.0.40, i386-pc-linux-gnu, GCC 2.95.3, GLIBC 2.1.3)
---- Michael Deutschmann <address@hidden>
- findutils-4.2.18: syntax error in find/find.c,
Michael Deutschmann <=