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: findSeverity: 3 - Normal
Item Group: Compilation FailureStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Michael DeutschmannOpen/Closed: Closed
Release: 4.2.18Fixed 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 File(s):
   
   
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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 07 Mar 2005 11:53:17 PM UTCjayOpen/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.2.19
Mon 21 Feb 2005 08:22:20 PM UTCjaySeverity2 - Minor=>3 - Normal
  StatusNone=>Fixed
Mon 21 Feb 2005 10:17:53 AM UTCjayCarbon-Copy-=>Added -unavailable-

Back to the top


Powered by Savane 3.1-cleanup1