[问题]求助:ubuntu 中安装gcc4-2-1时,编译过不去了请高手指点一下

为当前最终发行版之前的所有版本提供支持
回复
头像
lixinyu2268
帖子: 23
注册时间: 2007-09-05 12:50
送出感谢: 0
接收感谢: 0
联系:

[问题]求助:ubuntu 中安装gcc4-2-1时,编译过不去了请高手指点一下

#1

帖子 lixinyu2268 » 2007-09-06 13:14

以下是错误
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c: In function ‘read_zip_member’:
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:193: error: ‘Z_NO_COMPRESSION’ undeclared (first use in this function)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:193: error: (Each undeclared identifier is reported only once
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:193: error: for each function it appears in.)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:206: error: ‘z_stream’ undeclared (first use in this function)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:206: error: expected ‘;’ before ‘d_stream’
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:207: error: ‘d_stream’ undeclared (first use in this function)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:207: error: ‘alloc_func’ undeclared (first use in this function)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:207: error: expected ‘;’ before numeric constant
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:208: error: ‘free_func’ undeclared (first use in this function)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:208: error: expected ‘;’ before numeric constant
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:209: error: ‘voidpf’ undeclared (first use in this function)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:209: error: expected ‘;’ before numeric constant
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:225: warning: implicit declaration of function ‘inflateInit2’
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:225: error: ‘MAX_WBITS’ undeclared (first use in this function)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:226: warning: implicit declaration of function ‘inflate’
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:226: error: ‘Z_NO_FLUSH’ undeclared (first use in this function)
/home/lixinyu/gcc-4.2.1/gcc/java/jcf-io.c:227: warning: implicit declaration of function ‘inflateEnd’
make[3]: *** [java/jcf-io.o] Error 1
make[3]: Leaving directory `/home/lixinyu/gcc/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/lixinyu/gcc'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/lixinyu/gcc'
make: *** [all] Error 2
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
送出感谢: 0
接收感谢: 7 次
联系:

#2

帖子 BigSnake.NET » 2007-09-06 13:15

用apt安装, 不要编译
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
bones7456
论坛版主
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
送出感谢: 0
接收感谢: 8 次
联系:

#3

帖子 bones7456 » 2007-09-06 13:16

汗~gcc也有拿来编译的。。。
关注我的blog: ε==3
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星
送出感谢: 1 次
接收感谢: 0

#4

帖子 xhy » 2007-09-06 13:45

先安一个指定版本的gcc
然后编译4.2的

我还在用4.1.2呢 目前稳定版

编译gcc跟firefox一样需要耗费时间
目前负债150多万
回复

回到 “老旧版本支持”