[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #12073] c89 syntax error in find/find.c
From: |
James Youngman |
Subject: |
[bugs #12073] c89 syntax error in find/find.c |
Date: |
Mon, 21 Feb 2005 10:17:53 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Logica 5.5 SP2; .NET CLR 1.1.4322) |
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: address@hidden
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
------------------------------------+-----------------------------
address@hidden | 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/
- [bugs #12073] c89 syntax error in find/find.c,
James Youngman <=