Gentoo Archives: gentoo-alt

From: Vladimir Rusinov <vladimir@×××××××××.info>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] bootsrapping coreutils error: conflicting types for 'tee'
Date: Wed, 27 May 2009 20:49:46
Message-Id: f6fdfb550905271349t233cd2bib36b033f9baed9bf@mail.gmail.com
1 Hi.
2
3 I'm trying to install gentoo prefix on Fedora 6 using this howto:
4 http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml
5
6 # echo $EPREFIX
7 /opt/gentoo/
8 # echo $PATH
9 /opt/gentoo//sbin/:/opt/gentoo//usr/sbin/:/opt/gentoo//bin/:/opt/gentoo//usr/bin/:/opt/gentoo//tmp/usr/bin:/opt/gentoo//tmp/bin:/sbin:/usr/sbin:/opt/nginx/sbin/:/opt/php/bin/:/opt/prce/bin/:/opt/apache/bin/:/opt/bind/bin/:/opt/bind/sbin/:/sbin:/usr/sbin:/opt/nginx/sbin/:/opt/php/bin/:/opt/prce/bin/:/opt/apache/bin/:/opt/bind/bin/:/opt/bind/sbin/:/sbin:/usr/sbin:/opt/nginx/sbin/:/opt/php/bin/:/opt/prce/bin/:/opt/apache/bin/:/opt/bind/bin/:/opt/bind/sbin/:/usr/kerberos/sbin:/sbin:/usr/sbin:/opt/nginx/sbin/:/opt/php/bin/:/opt/prce/bin/:/opt/apache/bin/:/opt/bind/bin/:/opt/bind/sbin/:/sbin:/usr/sbin:/opt/nginx/sbin/:/opt/php/bin/:/opt/prce/bin/:/opt/apache/bin/:/opt/bind/bin/:/opt/bind/sbin/:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/vrusinov/bin
10 (wow)
11
12 After successful bootsrapping make, wget and python and sed, I run
13 ./bootstrap-prefix.sh $EPREFIX/tmp coreutils and got following error:
14
15 <....>
16 if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib
17 -O2 -pipe -MT printf.o -MD -MP -MF ".deps/printf.Tpo" -c -o printf.o
18 printf.c; \
19 then mv -f ".deps/printf.Tpo" ".deps/printf.Po"; else rm -f
20 ".deps/printf.Tpo"; exit 1; fi
21 gcc -std=gnu99 -O2 -pipe -o printf printf.o ../lib/libcoreutils.a
22 ../lib/libcoreutils.a -liconv
23 if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib
24 -O2 -pipe -MT pwd.o -MD -MP -MF ".deps/pwd.Tpo" -c -o pwd.o pwd.c; \
25 then mv -f ".deps/pwd.Tpo" ".deps/pwd.Po"; else rm -f
26 ".deps/pwd.Tpo"; exit 1; fi
27 gcc -std=gnu99 -O2 -pipe -o pwd pwd.o ../lib/libcoreutils.a
28 ../lib/libcoreutils.a
29 if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib
30 -O2 -pipe -MT seq.o -MD -MP -MF ".deps/seq.Tpo" -c -o seq.o seq.c; \
31 then mv -f ".deps/seq.Tpo" ".deps/seq.Po"; else rm -f
32 ".deps/seq.Tpo"; exit 1; fi
33 gcc -std=gnu99 -O2 -pipe -o seq seq.o ../lib/libcoreutils.a
34 ../lib/libcoreutils.a -lm
35 if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib
36 -O2 -pipe -MT sleep.o -MD -MP -MF ".deps/sleep.Tpo" -c -o sleep.o sleep.c; \
37 then mv -f ".deps/sleep.Tpo" ".deps/sleep.Po"; else rm -f
38 ".deps/sleep.Tpo"; exit 1; fi
39 gcc -std=gnu99 -O2 -pipe -o sleep sleep.o ../lib/libcoreutils.a
40 ../lib/libcoreutils.a
41 if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib
42 -O2 -pipe -MT tee.o -MD -MP -MF ".deps/tee.Tpo" -c -o tee.o tee.c; \
43 then mv -f ".deps/tee.Tpo" ".deps/tee.Po"; else rm -f
44 ".deps/tee.Tpo"; exit 1; fi
45 tee.c:34: error: conflicting types for 'tee'
46 /usr/include/bits/fcntl.h:233: error: previous declaration of 'tee' was here
47
48 # cat /etc/*release
49 Fedora Core release 6 (Zod)
50 Fedora Core release 6 (Zod)
51 [root@server gentoo]# uname -a
52 Linux server.samforum.ws 2.6.22.14-72.fc6 #1 SMP Wed Nov 21 13:44:07 EST
53 2007 i686 i686 i386 GNU/Linux
54 [root@server gentoo]# gcc -v
55 Using built-in specs.
56 Target: i386-redhat-linux
57 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
58 --infodir=/usr/share/info --enable-shared --enable-threads=posix
59 --enable-checking=release --with-system-zlib --enable-__cxa_atexit
60 --disable-libunwind-exceptions --enable-libgcj-multifile
61 --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
62 --disable-dssi --enable-plugin
63 --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
64 --host=i386-redhat-linux
65 Thread model: posix
66 gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)
67
68
69 Please, help.
70
71 --
72 Vladimir Rusinov
73 http://greenmice.info/

Replies