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

 
 

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

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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

(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

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

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 michael@talamasca.ocis.net

Back to the top


Powered by Savane 3.5