1 |
Le 7 mai 08 à 18:53, Jeremy Olexa a écrit : |
2 |
> |
3 |
> |
4 |
> But, I don't even know if that is valid... It would be interesting to |
5 |
> know if you could compile findutils by hand, using the trusty |
6 |
> ./configure, make, make install. Hopefully someone else can chime in |
7 |
> here. |
8 |
|
9 |
I got it when I build manually |
10 |
my exports : |
11 |
declare -x CFLAGS="-O2 -pipe -m64" |
12 |
declare -x CXXFLAGS="-O2 -pipe -m64" |
13 |
declare -x LC_CTYPE |
14 |
declare -x MAKE="gmake" |
15 |
declare -x MAKEOPTS |
16 |
declare -x PAGER="/usr/bin/less" |
17 |
declare -x PATH="/data/gentoo/usr/bin:/data/gentoo/bin:/data/gentoo/ |
18 |
tmp/usr/bin:/data/gentoo/tmp/bin:/usr/sfw/bin:/usr/sfw/i386-sun- |
19 |
solaris2.10/bin:/usr/bin:/bin:/sbin" |
20 |
declare -x PWD="/tmp/findutils-4.4.0" |
21 |
|
22 |
|
23 |
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../lib -I../ |
24 |
gnulib/lib -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -O2 - |
25 |
pipe -m64 -MT pred.o -MD -MP -MF .deps/pred.Tpo -c -o pred.o pred.c |
26 |
pred.c: In function `file_sparseness': |
27 |
pred.c:661: error: wrong type argument to unary minus |
28 |
|
29 |
or another try : |
30 |
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../lib -I../ |
31 |
gnulib/lib -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 |
32 |
-MT pred.o -MD -MP -MF .deps/pred.Tpo -c -o pred.o pred.c |
33 |
pred.c: In function `file_sparseness': |
34 |
pred.c:661: error: wrong type argument to unary minus |
35 |
|
36 |
The wrong line : |
37 |
return p->st_blocks < 0 ? -HUGE_VAL : HUGE_VAL; |
38 |
$ find . -type f | xargs grep HUGE_VAL |
39 |
./find/pred.c: return p->st_blocks < 0 ? -HUGE_VAL : HUGE_VAL; |
40 |
|
41 |
my gcc : |
42 |
$ type -p gcc |
43 |
/usr/sfw/bin/gcc |
44 |
|
45 |
$ gcc -v |
46 |
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs |
47 |
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/ |
48 |
configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as -- |
49 |
with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ -- |
50 |
enable-shared |
51 |
Thread model: posix |
52 |
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) |
53 |
|
54 |
The find I'm trying to compile is : |
55 |
http://www.gentoo.org/~grobian/distfiles/findutils-4.4.0-patched.tar.gz-- |
56 |
gentoo-alt@l.g.o mailing list |