bugfindutils - Bugs: bug #12073, c89 syntax error in find/find.c

 
 

bug #12073: c89 syntax error in find/find.c

Submitter:  James Youngman <jay>
Submitted:  Mon 21 Feb 2005 10:17:53 AM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Compilation Failure Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Michael Deutschmann Open/Closed:  Closed
Release:  4.2.18 Fixed Release:  4.2.19
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 Feb 2005 08:22:20 PM UTC, comment #1: 

This problem is fixed in the CVS code for findutils.
To resolve your problem, you could either wait for the
next official release of findutils, or check out a copy
of the code from the CVS repository for findutils.

James Youngman <jay>
Group administrator
Mon 21 Feb 2005 10:17:53 AM UTC, original submission:  

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)

James Youngman <jay>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-03-07 jay Open/ClosedOpen Closed
    Fixed ReleaseNone 4.2.19
2005-02-21 jay Severity2 - Minor 3 - Normal
    StatusNone Fixed
2005-02-21 jay Carbon-Copy- Added -email is unavailable-

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code