免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: daisypan
打印 上一主题 下一主题

make的时候出现Leaving directory的错误!(在线等~~) [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-11-07 22:10 |只看该作者
把再前的输出贴一下。
你贴的这些信息不足以发现问题。

论坛徽章:
0
12 [报告]
发表于 2007-11-07 22:36 |只看该作者
我只拷下了那么多,因为太多信息了,不过只有一些warning,内容和第一句差不多,所以我没铐下来。
是不是我的GCC有问题呢?

论坛徽章:
0
13 [报告]
发表于 2007-11-07 22:43 |只看该作者
不是的。是源代码问题。
global.h和global.c

论坛徽章:
0
14 [报告]
发表于 2007-11-07 22:48 |只看该作者
那麻烦你看一下我的另一个帖子好不好?“找不到GNU编译器的”谢谢啦~~
希望我明天还可以问你问题,呵呵~~

论坛徽章:
0
15 [报告]
发表于 2007-11-07 22:48 |只看该作者
代码写得不是很规范。

论坛徽章:
0
16 [报告]
发表于 2007-11-07 23:38 |只看该作者
楼主,你打开src/global.h
把最后两行改成
extern        struct Pvmtevdid *pvmtevdidlist;

extern        struct Pvmtevinfo *pvmtevinfo;
再打开src/global.c
334行struct Pvmtevinfo pvmtevinfo[] =
改成struct Pvmtevinfo *pvmtevinfo =

204行struct Pvmtevdid pvmtevdidlist[] =
改成struct Pvmtevdid *pvmtevdidlist =
即可成功编译

论坛徽章:
0
17 [报告]
发表于 2007-11-08 13:00 |只看该作者
谢谢prettywolf~~
我试了一下,还是不行~~
我把所有编译信息都拷下来了,现在放上来

(1)没改src/global之前:
[root@localhost pvm3]# make all
./lib/aimk -here -f ./conf/`./lib/pvmtmparch`.def -f ./Makefile.aimk all
making in . for LINUX
make[1]: Entering directory `/usr/local/pvm3'
building in src
cd src; ../lib/aimk CC="cc" F77="f77" install
making in LINUX/ for LINUX
make[2]: Entering directory `/usr/local/pvm3/src/LINUX'
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/ddpro.c
../../src/ddpro.c: In function ‘addhosts’:
../../src/ddpro.c:1041: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/ddpro.c:1049: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/ddpro.c:1049: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/ddpro.c: In function ‘exectasks’:
../../src/ddpro.c:1484: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/ddpro.c:1485: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/ddpro.c: In function ‘startack’:
../../src/ddpro.c:2125: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/ddpro.c:2125: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/ddpro.c: In function ‘dm_taskout’:
../../src/ddpro.c:2709: warning: incompatible implicit declaration of built-in function ‘strlen’
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/host.c
In file included from ../../src/host.c:227:
../../src/global.h:321: error: array type has incomplete element type
../../src/global.h:323: error: array type has incomplete element type
../../src/host.c: In function ‘ht_insert’:
../../src/host.c:536: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:536: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:541: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:541: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c: In function ‘applydefaults’:
../../src/host.c:682: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:682: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c: In function ‘parsehost’:
../../src/host.c:742: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:742: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:748: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:748: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:754: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:754: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:765: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:765: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:771: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:771: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:777: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:777: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:783: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:783: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:789: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:789: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:800: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:800: warning: incompatible implicit declaration of built-in function ‘strlen’
make[2]: *** [host.o] 错误 1
make[2]: Leaving directory `/usr/local/pvm3/src/LINUX'
make[1]: *** 错误 2
make[1]: Leaving directory `/usr/local/pvm3'
make: *** [all] 错误 2



按照楼上的方法修改global.h和global.c之后,编译错误信息:
[root@localhost pvm3]# make all
./lib/aimk -here -f ./conf/`./lib/pvmtmparch`.def -f ./Makefile.aimk all
making in . for LINUX
make[1]: Entering directory `/usr/local/pvm3'
building in src
cd src; ../lib/aimk CC="cc" F77="f77" install
making in LINUX/ for LINUX
make[2]: Entering directory `/usr/local/pvm3/src/LINUX'
mkdir ../../lib/LINUX
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/ddpro.c
../../src/ddpro.c: In function ‘addhosts’:
../../src/ddpro.c:1041: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/ddpro.c:1049: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/ddpro.c:1049: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/ddpro.c: In function ‘exectasks’:
../../src/ddpro.c:1484: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/ddpro.c:1485: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/ddpro.c: In function ‘startack’:
../../src/ddpro.c:2125: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/ddpro.c:2125: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/ddpro.c: In function ‘dm_taskout’:
../../src/ddpro.c:2709: warning: incompatible implicit declaration of built-in function ‘strlen’
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/host.c
../../src/host.c: In function ‘ht_insert’:
../../src/host.c:536: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:536: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:541: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:541: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c: In function ‘applydefaults’:
../../src/host.c:682: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:682: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c: In function ‘parsehost’:
../../src/host.c:742: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:742: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:748: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:748: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:754: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:754: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:765: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:765: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:771: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:771: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:777: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:777: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:783: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:783: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:789: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:789: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/host.c:800: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/host.c:800: warning: incompatible implicit declaration of built-in function ‘strlen’
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/hoster.c
../../src/hoster.c: In function ‘hoster’:
../../src/hoster.c:385: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/hoster.c:385: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/hoster.c: In function ‘pl_startup’:
../../src/hoster.c:563: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/hoster.c:563: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/hoster.c:679: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/hoster.c:679: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/hoster.c:740: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/hoster.c:740: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/hoster.c: In function ‘phase1’:
../../src/hoster.c:810: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/hoster.c:813: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/hoster.c:910: warning: incompatible implicit declaration of built-in function ‘_exit’
../../src/hoster.c:947: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/hoster.c:955: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/hoster.c:955: warning: incompatible implicit declaration of built-in function ‘strlen’
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/imalloc.c
../../src/imalloc.c: In function ‘i_choke’:
../../src/imalloc.c:172: warning: incompatible implicit declaration of built-in function ‘abort’
../../src/imalloc.c: In function ‘i_malloc’:
../../src/imalloc.c:222: warning: incompatible implicit declaration of built-in function ‘malloc’
../../src/imalloc.c:258: warning: incompatible implicit declaration of built-in function ‘strncpy’
../../src/imalloc.c: In function ‘i_dump’:
../../src/imalloc.c:540: warning: incompatible implicit declaration of built-in function ‘strncpy’
../../src/imalloc.c:548: warning: incompatible implicit declaration of built-in function ‘strlen’
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/msgbox.c
../../src/msgbox.c: In function ‘mc_new’:
../../src/msgbox.c:260: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../src/msgbox.c:260: warning: incompatible implicit declaration of built-in function ‘strlen’
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/pkt.c
../../src/pkt.c: In function ‘pk_new’:
../../src/pkt.c:111: warning: incompatible implicit declaration of built-in function ‘malloc’
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -DUSESTRERROR -c ../../src/pmsg.c
../../src/pmsg.c: In function ‘enc_trc_hdr’:
../../src/pmsg.c:2075: warning: incompatible implicit declaration of built-in function ‘strlen’
../../src/pmsg.c:2075: error: request for member ‘name’ in something not a structure or union
../../src/pmsg.c:2080: error: request for member ‘name’ in something not a structure or union
make[2]: *** [pmsg.o] 错误 1
make[2]: Leaving directory `/usr/local/pvm3/src/LINUX'
make[1]: *** 错误 2
make[1]: Leaving directory `/usr/local/pvm3'
make: *** [all] 错误 2

麻烦大家再帮分析一下,谢谢啦~~~

论坛徽章:
0
18 [报告]
发表于 2007-11-08 13:29 |只看该作者
新手问题那边也有个人问同样的问题。经修改globle.c两个文件后可以编译了。
你编译不过可能与你的编译环境有关了。

论坛徽章:
0
19 [报告]
发表于 2007-11-08 13:34 |只看该作者
嗯,应该是吧。我现在重新去下个gcc编译器,先试试看吧。
真的非常感谢prettywolf~~谢谢你的关注和帮助~~

论坛徽章:
0
20 [报告]
发表于 2007-11-08 15:54 |只看该作者
我没看到你的另外一个帖子啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP