error: 'AT_FDCWD' undeclared in compiling gzip package

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

 



Hi, 

	I failed to compile gzip with my gcc, error log is here:

sh-3.2#  /usr/local/bin/powerpc-none-linux-gnuspe-gcc -std=gnu99
-DHAVE_CONFIG_H -I.     -O2 -mcpu=8548 -mspe -mabi=spe -mhard-float
-mfloat-gprs=double -MT utimens.o -MD -MP -MF .deps/utimens.Tpo -c -o
utimens.o utimens.c
utimens.c: In function 'gl_futimens':
utimens.c:123: warning: implicit declaration of function 'futimesat'
utimens.c:123: error: 'AT_FDCWD' undeclared (first use in this function)
utimens.c:123: error: (Each undeclared identifier is reported only once
utimens.c:123: error: for each function it appears in.)


	But after installing another "gcc" which was built to support
java, this issue disappear. The difference between the two "gcc" is only
"--enable-languages", the good gcc support java, but the bad one not.

	After investigation, I found that:
		1. bad "gcc" uses
"/usr/local/lib/gcc/powerpc-none-linux-gnuspe/4.3.2/include-fixed/featur
es.h", which doesn't contain "__USE_ATFILE"
		2. good "gcc" uses "/usr/include/features.h", which
contains "__USE_ATFILE"


	My question is:
		1. since there is /usr/include/features.h, why bad gcc
select
"/usr/local/lib/gcc/powerpc-none-linux-gnuspe/4.3.2/include-fixed/featur
es.h"?
		2. why bad gcc removed __USE_ATFILE when it was compiled
without java?

	I don't know whether attachments are allowed(previous mail was
sent, but didn't received), if needed, I can send out the preprocessed
utimens.c.

B.R.
Harry


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux