bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compilation error in coreutils-6.9 source code.


From: Michael
Subject: compilation error in coreutils-6.9 source code.
Date: Fri, 20 Feb 2009 19:02:24 +0800
User-agent: KMail/1.11.0 (Linux/2.6.28-8-generic; KDE/4.2.0; x86_64; ; )

When trying to build coreutils-6.9 on debian 5.0 amd64, it fails because of 
duplicate function name:

function futimens exists in utimens.h and sys/stat.h and they are not 
compatible. This bug is supposed to be caused by the system headers.

Details:
$ make
Making all in lib
make[1]: Entering directory `/mnt/src/coreutils-6.9/lib'
make  all-am
make[2]: Entering directory `/mnt/src/coreutils-6.9/lib'
gcc -std=gnu99  -I.      -ggdbe -Wall -Wextra -O0 -MT utimecmp.o -MD -MP -MF 
.deps/utimecmp.Tpo -c -o utimecmp.o utimecmp.c
In file included from utimecmp.c:33:
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
make[2]: Leaving directory `/mnt/src/coreutils-6.9/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/src/coreutils-6.9/lib'
make: *** [all-recursive] Error 1
$ 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]