免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4384 | 回复: 3
打印 上一主题 下一主题

求助!!编译rrdtool1.2.16出现错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-14 16:10 |只看该作者 |倒序浏览
f\" -DNUMVERS=1.2016 -I/usr/include/libart-2.0 -I/usr/include/freetype2  -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -MT rrd_cgi.o -MD -MP -MF ".deps/rrd_cgi.Tpo" -c -o rrd_cgi.o rrd_cgi.c; \
then mv -f ".deps/rrd_cgi.Tpo" ".deps/rrd_cgi.Po"; else rm -f ".deps/rrd_cgi.Tpo"; exit 1; fi
rrd_cgi.c: In function `rrdcgiReadVariables':
rrd_cgi.c:1290: warning: comparison between signed and unsigned
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W  -fPIC -DPIC   -o rrdcgi  rrd_cgi.o librrd.la
gcc -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -o .libs/rrdcgi rrd_cgi.o  ./.libs/librrd.so -lpng -lz -lart_lgpl_2 -lm -Wl,--rpath -Wl,/usr/local/rrdtool/lib
creating rrdcgi
make[2]: Leaving directory `/var/local/linux/linuxsoft/rrdtool-1.2.16/src'
Making all in bindings
make[2]: Entering directory `/var/local/linux/linuxsoft/rrdtool-1.2.16/bindings'
Making all in tcl
make[3]: Entering directory `/var/local/linux/linuxsoft/rrdtool-1.2.16/bindings/tcl'
echo "package ifneeded Rrd 1.2.16 \"load /usr/local/rrdtool/lib/tclrrd1.2.16[info sharedlibextension]\"" > pkgIndex.tcl
gcc -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W  -fPIC -DPIC -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W  -fPIC -DPIC -fPIC -I/usr/include -I../../src -DUSE_TCL_STUBS -c tclrrd.c -DVERSION=\"1.2.16\"
tclrrd.c:20:17: tcl.h: 没有那个文件或目录
tclrrd.c:30: syntax error before '*' token
tclrrd.c:31: syntax error before '*' token
tclrrd.c:93: syntax error before "clientData"
tclrrd.c: In function `Rrd_Create':
tclrrd.c:103: `argc' undeclared (first use in this function)
tclrrd.c:103: (Each undeclared identifier is reported only once
tclrrd.c:103: for each function it appears in.)
tclrrd.c:103: `argv' undeclared (first use in this function)
tclrrd.c:108: warning: implicit declaration of function `Tcl_AppendResult'
tclrrd.c:108: `interp' undeclared (first use in this function)
tclrrd.c:111: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:183: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:190: syntax error before "clientData"
tclrrd.c: In function `Rrd_Dump':
tclrrd.c:192: `argc' undeclared (first use in this function)
tclrrd.c:193: `interp' undeclared (first use in this function)
tclrrd.c:195: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:198: `argv' undeclared (first use in this function)
tclrrd.c:209: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:216: syntax error before "clientData"
tclrrd.c: In function `Rrd_Last':
tclrrd.c:220: `argc' undeclared (first use in this function)
tclrrd.c:221: `interp' undeclared (first use in this function)
tclrrd.c:223: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:226: `argv' undeclared (first use in this function)
tclrrd.c:235: warning: implicit declaration of function `Tcl_SetIntObj'
tclrrd.c:235: warning: implicit declaration of function `Tcl_GetObjResult'
tclrrd.c:237: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:244: syntax error before "clientData"
tclrrd.c: In function `Rrd_Update':
tclrrd.c:249: `argc' undeclared (first use in this function)
tclrrd.c:249: `argv' undeclared (first use in this function)
tclrrd.c:254: `interp' undeclared (first use in this function)
tclrrd.c:260: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:308: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:312: syntax error before "clientData"
tclrrd.c: In function `Rrd_Lastupdate':
tclrrd.c:319: `Tcl_Obj' undeclared (first use in this function)
tclrrd.c:319: `listPtr' undeclared (first use in this function)
tclrrd.c:322: `argc' undeclared (first use in this function)
tclrrd.c:322: `argv' undeclared (first use in this function)
tclrrd.c:325: `interp' undeclared (first use in this function)
tclrrd.c:328: warning: implicit declaration of function `Tcl_ListObjAppendElement'
tclrrd.c:329: warning: implicit declaration of function `Tcl_NewStringObj'
tclrrd.c:347: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:351: syntax error before "clientData"
tclrrd.c: In function `Rrd_Fetch':
tclrrd.c:357: `Tcl_Obj' undeclared (first use in this function)
tclrrd.c:357: `listPtr' undeclared (first use in this function)
tclrrd.c:361: `argc' undeclared (first use in this function)
tclrrd.c:361: `argv' undeclared (first use in this function)
tclrrd.c:365: `interp' undeclared (first use in this function)
tclrrd.c:383: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:386: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:392: syntax error before "clientData"
tclrrd.c: In function `Rrd_Graph':
tclrrd.c:394: `Tcl_Channel' undeclared (first use in this function)
tclrrd.c:394: syntax error before "channel"
tclrrd.c:396: `ClientData' undeclared (first use in this function)
tclrrd.c:396: syntax error before "fd1"
tclrrd.c:409: `channel' undeclared (first use in this function)
tclrrd.c:409: warning: implicit declaration of function `Tcl_GetChannel'
tclrrd.c:409: `interp' undeclared (first use in this function)
tclrrd.c:409: `argv' undeclared (first use in this function)
tclrrd.c:413: `TCL_WRITABLE' undeclared (first use in this function)
tclrrd.c:416: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:422: warning: implicit declaration of function `Tcl_Flush'
tclrrd.c:422: `TCL_OK' undeclared (first use in this function)
tclrrd.c:424: warning: implicit declaration of function `Tcl_GetErrno'
tclrrd.c:427: warning: implicit declaration of function `Tcl_GetChannelHandle'
tclrrd.c:427: `fd1' undeclared (first use in this function)
tclrrd.c:453: `argc' undeclared (first use in this function)
tclrrd.c:456: warning: implicit declaration of function `Tcl_ResetResult'
tclrrd.c: At top level:
tclrrd.c:495: syntax error before "clientData"
tclrrd.c: In function `Rrd_Tune':
tclrrd.c:499: `argc' undeclared (first use in this function)
tclrrd.c:499: `argv' undeclared (first use in this function)
tclrrd.c:504: `interp' undeclared (first use in this function)
tclrrd.c:507: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:510: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:516: syntax error before "clientData"
tclrrd.c: In function `Rrd_Resize':
tclrrd.c:520: `argc' undeclared (first use in this function)
tclrrd.c:520: `argv' undeclared (first use in this function)
tclrrd.c:525: `interp' undeclared (first use in this function)
tclrrd.c:528: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:531: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:537: syntax error before "clientData"
tclrrd.c: In function `Rrd_Restore':
tclrrd.c:541: `argc' undeclared (first use in this function)
tclrrd.c:541: `argv' undeclared (first use in this function)
tclrrd.c:546: `interp' undeclared (first use in this function)
tclrrd.c:549: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:552: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:563: syntax error before "Tcl_CmdProc"
tclrrd.c:563: warning: no semicolon at end of struct or union
tclrrd.c:565: syntax error before '}' token
tclrrd.c:565: warning: type defaults to `int' in declaration of `CmdInfo'
tclrrd.c:565: ISO C forbids data definition with no type or storage class
tclrrd.c:567: syntax error before "rrdCmds"
tclrrd.c:567: warning: type defaults to `int' in declaration of `rrdCmds'
tclrrd.c:568: warning: braces around scalar initializer
tclrrd.c:568: warning: (near initialization for `rrdCmds[0]')
tclrrd.c:568: warning: initialization makes integer from pointer without a cast
tclrrd.c:568: warning: excess elements in scalar initializer
tclrrd.c:568: warning: (near initialization for `rrdCmds[0]')
tclrrd.c:568: warning: excess elements in scalar initializer
tclrrd.c:568: warning: (near initialization for `rrdCmds[0]')
tclrrd.c:569: warning: braces around scalar initializer
tclrrd.c:569: warning: (near initialization for `rrdCmds[1]')
tclrrd.c:569: warning: initialization makes integer from pointer without a cast
tclrrd.c:569: warning: excess elements in scalar initializer
tclrrd.c:569: warning: (near initialization for `rrdCmds[1]')
tclrrd.c:569: warning: excess elements in scalar initializer
tclrrd.c:569: warning: (near initialization for `rrdCmds[1]')
tclrrd.c:570: warning: braces around scalar initializer
tclrrd.c:570: warning: (near initialization for `rrdCmds[2]')
tclrrd.c:570: warning: initialization makes integer from pointer without a cast
tclrrd.c:570: warning: excess elements in scalar initializer
tclrrd.c:570: warning: (near initialization for `rrdCmds[2]')
tclrrd.c:570: warning: excess elements in scalar initializer
tclrrd.c:570: warning: (near initialization for `rrdCmds[2]')
tclrrd.c:571: warning: braces around scalar initializer
tclrrd.c:571: warning: (near initialization for `rrdCmds[3]')
tclrrd.c:571: warning: initialization makes integer from pointer without a cast
tclrrd.c:571: warning: excess elements in scalar initializer
tclrrd.c:571: warning: (near initialization for `rrdCmds[3]')
tclrrd.c:571: warning: excess elements in scalar initializer
tclrrd.c:571: warning: (near initialization for `rrdCmds[3]')
tclrrd.c:572: warning: braces around scalar initializer
tclrrd.c:572: warning: (near initialization for `rrdCmds[4]')
tclrrd.c:572: warning: initialization makes integer from pointer without a cast
tclrrd.c:572: warning: excess elements in scalar initializer
tclrrd.c:572: warning: (near initialization for `rrdCmds[4]')
tclrrd.c:572: warning: excess elements in scalar initializer
tclrrd.c:572: warning: (near initialization for `rrdCmds[4]')
tclrrd.c:573: warning: braces around scalar initializer
tclrrd.c:573: warning: (near initialization for `rrdCmds[5]')
tclrrd.c:573: warning: initialization makes integer from pointer without a cast
tclrrd.c:573: warning: excess elements in scalar initializer
tclrrd.c:573: warning: (near initialization for `rrdCmds[5]')
tclrrd.c:573: warning: excess elements in scalar initializer
tclrrd.c:573: warning: (near initialization for `rrdCmds[5]')
tclrrd.c:574: warning: braces around scalar initializer
tclrrd.c:574: warning: (near initialization for `rrdCmds[6]')
tclrrd.c:574: warning: initialization makes integer from pointer without a cast
tclrrd.c:574: warning: excess elements in scalar initializer
tclrrd.c:574: warning: (near initialization for `rrdCmds[6]')
tclrrd.c:574: warning: excess elements in scalar initializer
tclrrd.c:574: warning: (near initialization for `rrdCmds[6]')
tclrrd.c:579: warning: braces around scalar initializer
tclrrd.c:579: warning: (near initialization for `rrdCmds[7]')
tclrrd.c:579: warning: initialization makes integer from pointer without a cast
tclrrd.c:579: warning: excess elements in scalar initializer
tclrrd.c:579: warning: (near initialization for `rrdCmds[7]')
tclrrd.c:579: warning: excess elements in scalar initializer
tclrrd.c:579: warning: (near initialization for `rrdCmds[7]')
tclrrd.c:580: warning: braces around scalar initializer
tclrrd.c:580: warning: (near initialization for `rrdCmds[8]')
tclrrd.c:580: warning: initialization makes integer from pointer without a cast
tclrrd.c:580: warning: excess elements in scalar initializer
tclrrd.c:580: warning: (near initialization for `rrdCmds[8]')
tclrrd.c:580: warning: excess elements in scalar initializer
tclrrd.c:580: warning: (near initialization for `rrdCmds[8]')
tclrrd.c:581: warning: braces around scalar initializer
tclrrd.c:581: warning: (near initialization for `rrdCmds[9]')
tclrrd.c:581: warning: initialization makes integer from pointer without a cast
tclrrd.c:581: warning: excess elements in scalar initializer
tclrrd.c:581: warning: (near initialization for `rrdCmds[9]')
tclrrd.c:581: warning: excess elements in scalar initializer
tclrrd.c:581: warning: (near initialization for `rrdCmds[9]')
tclrrd.c:582: warning: braces around scalar initializer
tclrrd.c:582: warning: (near initialization for `rrdCmds[10]')
tclrrd.c:582: warning: initialization makes integer from pointer without a cast
tclrrd.c:582: `Tcl_CmdProc' undeclared here (not in a function)
tclrrd.c:582: syntax error before ')' token
tclrrd.c:582: warning: excess elements in scalar initializer
tclrrd.c:582: warning: (near initialization for `rrdCmds[10]')
tclrrd.c:582: warning: excess elements in scalar initializer
tclrrd.c:582: warning: (near initialization for `rrdCmds[10]')
tclrrd.c:583: ISO C forbids data definition with no type or storage class
tclrrd.c:588: syntax error before '*' token
tclrrd.c: In function `init':
tclrrd.c:590: `cmdInfoPtr' undeclared (first use in this function)
tclrrd.c:591: `Tcl_CmdInfo' undeclared (first use in this function)
tclrrd.c:591: syntax error before "info"
tclrrd.c:593: warning: implicit declaration of function `Tcl_InitStubs'
tclrrd.c:593: `interp' undeclared (first use in this function)
tclrrd.c:593: `TCL_VERSION' undeclared (first use in this function)
tclrrd.c:593: warning: comparison between pointer and integer
tclrrd.c:594: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:596: warning: implicit declaration of function `Tcl_PkgRequire'
tclrrd.c:596: warning: comparison between pointer and integer
tclrrd.c:604: warning: implicit declaration of function `Tcl_SetVar2'
tclrrd.c:604: `TCL_GLOBAL_ONLY' undeclared (first use in this function)
tclrrd.c:612: warning: implicit declaration of function `Tcl_GetCommandInfo'
tclrrd.c:612: `info' undeclared (first use in this function)
tclrrd.c:617: `safe' undeclared (first use in this function)
tclrrd.c:651: warning: implicit declaration of function `Tcl_CreateCommand'
tclrrd.c:652: `ClientData' undeclared (first use in this function)
tclrrd.c:652: `Tcl_CmdDeleteProc' undeclared (first use in this function)
tclrrd.c:652: syntax error before ')' token
tclrrd.c:655: warning: implicit declaration of function `Tcl_PkgProvide'
tclrrd.c:655: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:663: syntax error before '*' token
tclrrd.c:664: warning: no previous prototype for `Tclrrd_Init'
tclrrd.c: In function `Tclrrd_Init':
tclrrd.c:665: `interp' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:674: syntax error before '*' token
tclrrd.c:675: warning: no previous prototype for `Tclrrd_SafeInit'
tclrrd.c: In function `Tclrrd_SafeInit':
tclrrd.c:676: `interp' undeclared (first use in this function)
make[3]: *** [tclrrd.o] Error 1
make[3]: Leaving directory `/var/local/linux/linuxsoft/rrdtool-1.2.16/bindings/tcl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/local/linux/linuxsoft/rrdtool-1.2.16/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/local/linux/linuxsoft/rrdtool-1.2.16'
make: *** [all] Error 2
是什么原因????先谢谢大家

论坛徽章:
0
2 [报告]
发表于 2007-08-14 17:24 |只看该作者
有错误一般都是看最开始的错误

  1. tclrrd.c:20:17: tcl.h: 没有那个文件或目录
复制代码

然后找一下这个东西要什么包装上才有。偶虽然知道,但还是让lz自己去查吧。

下次提问题的时候记得说清楚自己的系统版本,内核版本,gcc版本等信息。

论坛徽章:
0
3 [报告]
发表于 2007-08-14 18:06 |只看该作者
用的是red hat as 3
安装环境全是默认的。非常感谢,我现在去上班,明天回来继续做,原来在centos4.3上我做的时候没有这个错误。郁闷。

论坛徽章:
0
4 [报告]
发表于 2007-08-14 21:34 |只看该作者
configure --disable-tcl
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP