URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12073>
Summary: c89 syntax error in find/find.c
Project: findutils
Submitted by: jay
Submitted on: Mon 02/21/2005 at 10:17
Category: find
Severity: 3 - Ordinary
Item Group: Compilation Failure
Status: None
Privacy: Public
Assigned to: jay
Originator Name: Michael Deutschmann
Originator Email: [EMAIL PROTECTED]
Open/Closed: Open
Release: 4.2.18
Fixed Release: None
_______________________________________________________
Details:
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)
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
[EMAIL PROTECTED] | Originator Email
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12073>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils