Bug 242321

Summary: rebuild of 6.9-2.fc7 fails with futimens error
Product: [Fedora] Fedora Reporter: Marek Mahut <mmahut>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7CC: meyering
Target Milestone: ---Keywords: EasyFix, TestBlocker
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 6.9-3.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-27 03:53:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 236808    
Attachments:
Description Flags
screenshot
none
proposed patch none

Description Marek Mahut 2007-06-03 09:56:01 UTC
Description of problem:

When trying to compile coreutils-6.9-2.fc7 from srpm the compilation fail with
errors:

In file included from utimecmp.c:34:
utimens.h:2: error: conflicting types for 'futimens'
///usr/include/sys/stat.h:370: error: previous declaration of 'futimens' was here
make[2]: *** [utimecmp.o] Error 1

Version-Release numbers of selected component (if applicable):

coreutils-6.9-2.fc7
glibc-2.6-3


How reproducible:

always

Steps to Reproduce:

1. download srpm of coreutils-6.9-2.fc7, decompress it or checkout sources from cvs
2. try to build
  
Actual results:

rpmbuild crash with errors

Expected results:

rpmbuild should rebuild that package without problem

Additional info:

it's light rain here in Brno

Comment 1 Marek Mahut 2007-06-03 09:59:31 UTC
Created attachment 156019 [details]
screenshot

Comment 2 Marek Mahut 2007-06-03 11:29:57 UTC
Created attachment 156020 [details]
proposed patch

The problem occur with glibc-2.6. Glibc now declares "futimens" and it
conflicts with "futimens" in gnulib. Upstream decided to rename it to
"gl_futimens".

http://cvs.savannah.gnu.org/viewvc/gnulib/gnulib/lib/utimens.c?revision=1.15&view=markup&pathrev=MAIN

Comment 3 Fedora Update System 2007-06-13 21:03:33 UTC
coreutils-6.9-3.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2007-06-27 03:53:10 UTC
coreutils-6.9-3.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.