[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cannot build gzip-1.3.11
From: |
John Taylor |
Subject: |
Cannot build gzip-1.3.11 |
Date: |
Wed, 09 Sep 2009 15:46:52 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Hello,
I'm trying to build gzip-1.3.11. Make fails with the following error:
x86_64-unknown-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.
-I../../gzip-1.3.11/lib -g -O2 -MT utimens.o -MD -MP -MF
.deps/utimens.Tpo -c -o utimens.o ../../gzip-1.3.11/lib/utimens.c
In file included from ./sys/stat.h:27,
from ./fcntl.h:26,
from ../../gzip-1.3.11/lib/utimens.c:29:
///mnt/clfs/usr/include/sys/stat.h:372: error: conflicting types for
'futimens'
../../gzip-1.3.11/lib/utimens.h:2: note: previous declaration of
'futimens' was here
../../gzip-1.3.11/lib/utimens.c: In function 'utimens':
../../gzip-1.3.11/lib/utimens.c:188: warning: passing argument 2 of
'futimens' from incompatible pointer type
///mnt/clfs/usr/include/sys/stat.h:372: note: expected 'const struct
timespec *' but argument is of type 'const char *'
../../gzip-1.3.11/lib/utimens.c:188: error: too many arguments to
function 'futimens'
make[2]: *** [utimens.o] Error 1
make[2]: Leaving directory `/mnt/clfs/sources/gzip-build/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/clfs/sources/gzip-build/lib'
make: *** [all-recursive] Error 1
I configured it with the following arguments: --prefix=/usr
--build=i486-unknown-linux-gnu --host=x86_64-unknown-linux-gnu.
I managed to write down a workaround:
for i in gzip.c lib/utimens.h lib/utimens.c; do
cp ${i} ${i}.bak
sed --expression="s/futimens/gl_futimens/" ${i}.bak > ${i}
rm ${i}.bak
done
What do you think?
Thanks.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Cannot build gzip-1.3.11,
John Taylor <=