歡迎您光臨本站 註冊首頁

freetype-2.3.5 編譯make時出錯

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

freetype-2.3.5 編譯make時出錯

請教是什麼問題原因引起:

# make
./builds/unix/libtool --mode=compile gcc -pedantic -ansi -I/tmp/rrdbuild/lb/include -I/tmp/rrdbuild/lb/include/libart-2.0 -I/tmp/rrdbuild/lb/include/freetype2 -I/tmp/rrdbuild/lb/include/libpng -I/root/cacti_test/freetype-2.3.5/objs -I./builds/unix -I/root/cacti_test/freetype-2.3.5/include -c -Wall -O3 -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -I/root/cacti_test/freetype-2.3.5/src/base -o /root/cacti_test/freetype-2.3.5/objs/ftbase.lo /root/cacti_test/freetype-2.3.5/src/base/ftbase.c
gcc -pedantic -ansi -I/tmp/rrdbuild/lb/include -I/tmp/rrdbuild/lb/include/libart-2.0 -I/tmp/rrdbuild/lb/include/freetype2 -I/tmp/rrdbuild/lb/include/libpng -I/root/cacti_test/freetype-2.3.5/objs -I./builds/unix -I/root/cacti_test/freetype-2.3.5/include -c -Wall -O3 -DFT_CONFIG_OPTION_SYSTEM_ZLIB "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY "-DFT_CONFIG_MODULES_H=<ftmodule.h>" -I/root/cacti_test/freetype-2.3.5/src/base /root/cacti_test/freetype-2.3.5/src/base/ftbase.c -o /root/cacti_test/freetype-2.3.5/objs/ftbase.o
In file included from /root/cacti_test/freetype-2.3.5/src/base/ftbase.c:25:
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c: In function `FT_GlyphLoader_New':
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:76: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c: In function `FT_GlyphLoader_Reset':
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:115: error: structure has no member named `extra_points2'
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c: In function `FT_GlyphLoader_Done':
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:135: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c: In function `FT_GlyphLoader_Adjust_Points':
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:158: error: structure has no member named `extra_points2'
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:158: error: structure has no member named `extra_points2'
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c: In function `FT_GlyphLoader_CreateExtra':
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:174: error: structure has no member named `extra_points2'
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c: In function `FT_GlyphLoader_CheckPoints':
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:235: error: structure has no member named `extra_points2'
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c: In function `FT_GlyphLoader_CopyPoints':
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:380: error: structure has no member named `extra_points2'
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:380: error: structure has no member named `extra_points2'
/root/cacti_test/freetype-2.3.5/src/base/ftgloadr.c:380: error: structure has no member named `extra_points2'
In file included from /root/cacti_test/freetype-2.3.5/src/base/ftbase.c:27:
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:22:10: #include expects "FILENAME" or <FILENAME>
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:36:10: #include expects "FILENAME" or <FILENAME>
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:37:10: #include expects "FILENAME" or <FILENAME>
In file included from /root/cacti_test/freetype-2.3.5/src/base/ftbase.c:27:
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `ft_validator_error':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:95: warning: initialization from incompatible pointer type
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Stream_New':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:140: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:164: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:171: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Stream_Free':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:194: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `ft_glyphslot_init':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:228: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_New_GlyphSlot':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:372: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:380: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Done_GlyphSlot':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:427: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Load_Glyph':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:611: error: structure has no member named `ignore_unpatented_hinter'
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `destroy_size':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:775: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `destroy_face':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:856: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `open_face':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:995: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:998: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1048: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1049: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `new_memory_stream':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1178: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `open_face_from_buffer':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1215: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1234: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `Mac_Read_POST_Resource':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1282: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1351: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `Mac_Read_sfnt_Resource':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1395: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `IsMacResource':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1450: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1468: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Open_Face':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1787: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Done_Face':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:1969: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_New_Size':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2011: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2011: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2033: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2034: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Done_Size':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2071: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: At top level:
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2093: error: syntax error before "FT_Size_Request"
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Match_Size':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2101: error: `face' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2101: error: (Each undeclared identifier is reported only once
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2101: error: for each function it appears in.)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2105: error: `req' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2105: error: `FT_SIZE_REQUEST_TYPE_NOMINAL' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2108: warning: implicit declaration of function `FT_REQUEST_WIDTH'
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2109: warning: implicit declaration of function `FT_REQUEST_HEIGHT'
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2127: error: `ignore_width' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2129: error: `size_index' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: At top level:
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2227: error: syntax error before "FT_Size_Request"
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Request_Metrics':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2232: error: `face' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2239: error: `req' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2241: error: `FT_SIZE_REQUEST_TYPE_NOMINAL' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2245: error: `FT_SIZE_REQUEST_TYPE_REAL_DIM' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2249: error: `FT_SIZE_REQUEST_TYPE_BBOX' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2254: error: `FT_SIZE_REQUEST_TYPE_CELL' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2259: error: `FT_SIZE_REQUEST_TYPE_SCALES' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2268: error: `FT_SIZE_REQUEST_TYPE_MAX' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Select_Size':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2350: error: structure has no member named `select_size'
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2351: error: structure has no member named `select_size'
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: At top level:
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2363: error: syntax error before "FT_Size_Request"
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Request_Size':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2369: error: `face' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2372: error: `req' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2373: error: `FT_SIZE_REQUEST_TYPE_MAX' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2378: error: structure has no member named `request_size'
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2379: error: structure has no member named `request_size'
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c: In function `FT_Set_Char_Size':
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2418: error: `FT_Size_RequestRec' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2418: error: syntax error before "req"
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2439: error: `req' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftobjs.c:2439: error: `FT_SIZE_REQUEST_TYPE_NOMINAL' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftoutln.c:657: error: conflicting types for 'FT_Outline_Transform'
/tmp/rrdbuild/lb/include/freetype2/freetype/ftoutln.h:303: error: previous declaration of 'FT_Outline_Transform' was here
/root/cacti_test/freetype-2.3.5/src/base/ftoutln.c:657: error: conflicting types for 'FT_Outline_Transform'
/tmp/rrdbuild/lb/include/freetype2/freetype/ftoutln.h:303: error: previous declaration of 'FT_Outline_Transform' was here
/root/cacti_test/freetype-2.3.5/src/base/ftoutln.c: In function `FT_Outline_Embolden':
/root/cacti_test/freetype-2.3.5/src/base/ftoutln.c:860: error: `FT_ORIENTATION_NONE' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftoutln.c: In function `FT_Outline_Get_Orientation':
/root/cacti_test/freetype-2.3.5/src/base/ftoutln.c:1073: error: `FT_ORIENTATION_NONE' undeclared (first use in this function)
In file included from /root/cacti_test/freetype-2.3.5/src/base/ftbase.c:29:
/root/cacti_test/freetype-2.3.5/src/base/ftrfork.c: In function `FT_Raccess_Get_DataOffsets':
/root/cacti_test/freetype-2.3.5/src/base/ftrfork.c:182: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftrfork.c:192: warning: dereferencing type-punned pointer will break strict-/root/cacti_test/freetype-2.3.5/src/base/ftrfork.c:562: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/cacti_test/freetype-2.3.5/src/base/ftrfork.c: In function `raccess_make_file_name':
/root/cacti_test/freetype-2.3.5/src/base/ftrfork.c:671: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /root/cacti_test/freetype-2.3.5/src/base/ftbase.c:32:
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c: In function `ft_mem_alloc':
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:55: warning: implicit declaration of function `ft_mem_qalloc'
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:55: warning: initialization makes pointer from integer without a cast
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c: At top level:
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:69: error: conflicting types for 'ft_mem_qalloc'
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:55: error: previous implicit declaration of 'ft_mem_qalloc' was here
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c: In function `ft_mem_realloc':
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:101: warning: implicit declaration of function `ft_mem_qrealloc'
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:102: warning: assignment makes pointer from integer without a cast
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c: At top level:
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:119: error: conflicting types for 'ft_mem_qrealloc'
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:101: error: previous implicit declaration of 'ft_mem_qrealloc' was here
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c: In function `ft_mem_qrealloc':
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:134: warning: implicit declaration of function `ft_mem_free'
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:137: error: `FT_INT_MAX' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:139: error: `FT_Err_Array_Too_Large' undeclared (first use in this function)
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c: At top level:
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:169: error: conflicting types for 'ft_mem_free'
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:134: error: previous implicit declaration of 'ft_mem_free' was here
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c: In function `FT_List_Finalize':
/root/cacti_test/freetype-2.3.5/src/base/ftutil.c:404: warning: dereferencing type-punned pointer will break strict-aliasing rules
make: *** Error 1
# ls /root/cacti_test/freetype-2.3.5/objs/ftbase.lo
ls: /root/cacti_test/freetype-2.3.5/objs/ftbase.lo: No such file or directory
# ls /root/cacti_test/freetype-2.3.5/objs/
ftdebug.lo  ftdebug.o  ftinit.lo  ftinit.o  ftmodule.h  ftsystem.lo  ftsystem.o  README
#
《解決方案》

請教高手幫忙看一下日誌,出錯在哪裡?
《解決方案》

在make rrdtool時又出錯,什麼原因呢?

make: Entering directory `/root/cacti_test/rrdtool-1.2.26/bindings'
Making all in tcl
make: Entering directory `/root/cacti_test/rrdtool-1.2.26/bindings/tcl'
echo "package ifneeded Rrd 1.2.26 \"load /usr/local/rrdtool-1.2.26/lib/tclrrd1.2.26\"" > pkgIndex.tcl
gcc -O3 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W  -fPIC -DPIC -O3 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W  -fPIC -DPIC -fPIC -I@TCL_INC_DIR@ -I../../src -DUSE_TCL_STUBS -c tclrrd.c -DVERSION=\"1.2.26\"
tclrrd.c:20:17: tcl.h: No such file or directory
tclrrd.c:30: error: syntax error before '*' token
tclrrd.c:31: error: syntax error before '*' token
tclrrd.c:93: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Create':
tclrrd.c:103: error: `argc' undeclared (first use in this function)
tclrrd.c:103: error: (Each undeclared identifier is reported only once
tclrrd.c:103: error: for each function it appears in.)
tclrrd.c:103: error: `argv' undeclared (first use in this function)
tclrrd.c:108: warning: implicit declaration of function `Tcl_AppendResult'
tclrrd.c:108: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:108: error: `interp' undeclared (first use in this function)
tclrrd.c:111: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:114: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:121: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:128: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:137: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:144: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:156: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:166: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:172: warning: passing arg 5 of `rrd_create_r' from incompatible pointer type
tclrrd.c:177: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:183: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:190: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Dump':
tclrrd.c:192: error: `argc' undeclared (first use in this function)
tclrrd.c:193: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:193: error: `interp' undeclared (first use in this function)
tclrrd.c:195: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:198: error: `argv' undeclared (first use in this function)
tclrrd.c:203: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:209: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:216: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Last':
tclrrd.c:220: error: `argc' undeclared (first use in this function)
tclrrd.c:221: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:221: error: `interp' undeclared (first use in this function)
tclrrd.c:223: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:226: error: `argv' undeclared (first use in this function)
tclrrd.c:229: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:235: warning: implicit declaration of function `Tcl_SetIntObj'
tclrrd.c:235: warning: nested extern declaration of `Tcl_SetIntObj'
tclrrd.c:235: warning: implicit declaration of function `Tcl_GetObjResult'
tclrrd.c:235: warning: nested extern declaration of `Tcl_GetObjResult'
tclrrd.c:237: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:244: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Update':
tclrrd.c:249: error: `argc' undeclared (first use in this function)
tclrrd.c:249: error: `argv' undeclared (first use in this function)
tclrrd.c:254: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:254: error: `interp' undeclared (first use in this function)
tclrrd.c:260: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:272: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:285: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:294: warning: passing arg 4 of `rrd_update_r' from incompatible pointer type
tclrrd.c:302: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:308: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:312: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Lastupdate':
tclrrd.c:319: error: `Tcl_Obj' undeclared (first use in this function)
tclrrd.c:319: error: `listPtr' undeclared (first use in this function)
tclrrd.c:322: error: `argc' undeclared (first use in this function)
tclrrd.c:322: error: `argv' undeclared (first use in this function)
tclrrd.c:325: warning: nested extern declaration of `Tcl_GetObjResult'
tclrrd.c:325: error: `interp' undeclared (first use in this function)
tclrrd.c:328: warning: implicit declaration of function `Tcl_ListObjAppendElement'
tclrrd.c:328: warning: nested extern declaration of `Tcl_ListObjAppendElement'
tclrrd.c:329: warning: implicit declaration of function `Tcl_NewStringObj'
tclrrd.c:329: warning: nested extern declaration of `Tcl_NewStringObj'
tclrrd.c:347: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:351: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Fetch':
tclrrd.c:357: error: `Tcl_Obj' undeclared (first use in this function)
tclrrd.c:357: error: `listPtr' undeclared (first use in this function)
tclrrd.c:361: error: `argc' undeclared (first use in this function)
tclrrd.c:361: error: `argv' undeclared (first use in this function)
tclrrd.c:365: warning: nested extern declaration of `Tcl_GetObjResult'
tclrrd.c:365: error: `interp' undeclared (first use in this function)
tclrrd.c:369: warning: nested extern declaration of `Tcl_ListObjAppendElement'
tclrrd.c:370: warning: nested extern declaration of `Tcl_NewStringObj'
tclrrd.c:380: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:383: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:386: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:392: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Graph':
tclrrd.c:394: error: `Tcl_Channel' undeclared (first use in this function)
tclrrd.c:394: error: syntax error before "channel"
tclrrd.c:396: error: `ClientData' undeclared (first use in this function)
tclrrd.c:396: error: syntax error before "fd1"
tclrrd.c:409: error: `channel' undeclared (first use in this function)
tclrrd.c:409: warning: implicit declaration of function `Tcl_GetChannel'
tclrrd.c:409: warning: nested extern declaration of `Tcl_GetChannel'
tclrrd.c:409: error: `interp' undeclared (first use in this function)
tclrrd.c:409: error: `argv' undeclared (first use in this function)
tclrrd.c:413: error: `TCL_WRITABLE' undeclared (first use in this function)
tclrrd.c:414: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:416: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:422: warning: implicit declaration of function `Tcl_Flush'
tclrrd.c:422: warning: nested extern declaration of `Tcl_Flush'
tclrrd.c:422: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c:423: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:424: warning: implicit declaration of function `Tcl_GetErrno'
tclrrd.c:424: warning: nested extern declaration of `Tcl_GetErrno'
tclrrd.c:427: warning: implicit declaration of function `Tcl_GetChannelHandle'
tclrrd.c:427: warning: nested extern declaration of `Tcl_GetChannelHandle'
tclrrd.c:427: error: `fd1' undeclared (first use in this function)
tclrrd.c:428: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:437: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:445: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:453: error: `argc' undeclared (first use in this function)
tclrrd.c:456: warning: implicit declaration of function `Tcl_ResetResult'
tclrrd.c:456: warning: nested extern declaration of `Tcl_ResetResult'
tclrrd.c:468: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:483: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c: At top level:
tclrrd.c:495: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Tune':
tclrrd.c:499: error: `argc' undeclared (first use in this function)
tclrrd.c:499: error: `argv' undeclared (first use in this function)
tclrrd.c:504: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:504: error: `interp' undeclared (first use in this function)
tclrrd.c:507: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:510: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:516: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Resize':
tclrrd.c:520: error: `argc' undeclared (first use in this function)
tclrrd.c:520: error: `argv' undeclared (first use in this function)
tclrrd.c:525: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:525: error: `interp' undeclared (first use in this function)
tclrrd.c:528: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:531: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:537: error: syntax error before "clientData"
tclrrd.c: In function `Rrd_Restore':
tclrrd.c:541: error: `argc' undeclared (first use in this function)
tclrrd.c:541: error: `argv' undeclared (first use in this function)
tclrrd.c:546: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:546: error: `interp' undeclared (first use in this function)
tclrrd.c:549: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:552: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:563: error: syntax error before "Tcl_CmdProc"
tclrrd.c:563: warning: no semicolon at end of struct or union
tclrrd.c:565: error: syntax error before '}' token
tclrrd.c:565: warning: type defaults to `int' in declaration of `CmdInfo'
tclrrd.c:565: error: ISO C forbids data definition with no type or storage class
tclrrd.c:567: error: 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')
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')
tclrrd.c:568: warning: excess elements in scalar initializer
tclrrd.c:568: warning: (near initialization for `rrdCmds')
tclrrd.c:569: warning: braces around scalar initializer
tclrrd.c:569: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:569: warning: excess elements in scalar initializer
tclrrd.c:569: warning: (near initialization for `rrdCmds')
tclrrd.c:570: warning: braces around scalar initializer
tclrrd.c:570: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:570: warning: excess elements in scalar initializer
tclrrd.c:570: warning: (near initialization for `rrdCmds')
tclrrd.c:571: warning: braces around scalar initializer
tclrrd.c:571: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:571: warning: excess elements in scalar initializer
tclrrd.c:571: warning: (near initialization for `rrdCmds')
tclrrd.c:572: warning: braces around scalar initializer
tclrrd.c:572: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:572: warning: excess elements in scalar initializer
tclrrd.c:572: warning: (near initialization for `rrdCmds')
tclrrd.c:573: warning: braces around scalar initializer
tclrrd.c:573: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:573: warning: excess elements in scalar initializer
tclrrd.c:573: warning: (near initialization for `rrdCmds')
tclrrd.c:574: warning: braces around scalar initializer
tclrrd.c:574: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:574: warning: excess elements in scalar initializer
tclrrd.c:574: warning: (near initialization for `rrdCmds')
tclrrd.c:579: warning: braces around scalar initializer
tclrrd.c:579: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:579: warning: excess elements in scalar initializer
tclrrd.c:579: warning: (near initialization for `rrdCmds')
tclrrd.c:580: warning: braces around scalar initializer
tclrrd.c:580: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:580: warning: excess elements in scalar initializer
tclrrd.c:580: warning: (near initialization for `rrdCmds')
tclrrd.c:581: warning: braces around scalar initializer
tclrrd.c:581: warning: (near initialization for `rrdCmds')
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')
tclrrd.c:581: warning: excess elements in scalar initializer
tclrrd.c:581: warning: (near initialization for `rrdCmds')
tclrrd.c:582: warning: braces around scalar initializer
tclrrd.c:582: warning: (near initialization for `rrdCmds')
tclrrd.c:582: warning: initialization makes integer from pointer without a cast
tclrrd.c:582: error: `Tcl_CmdProc' undeclared here (not in a function)
tclrrd.c:582: error: syntax error before ')' token
tclrrd.c:582: warning: excess elements in scalar initializer
tclrrd.c:582: warning: (near initialization for `rrdCmds')
tclrrd.c:582: warning: excess elements in scalar initializer
tclrrd.c:582: warning: (near initialization for `rrdCmds')
tclrrd.c:583: error: ISO C forbids data definition with no type or storage class
tclrrd.c:588: error: syntax error before '*' token
tclrrd.c: In function `init':
tclrrd.c:590: error: `cmdInfoPtr' undeclared (first use in this function)
tclrrd.c:591: error: `Tcl_CmdInfo' undeclared (first use in this function)
tclrrd.c:591: error: syntax error before "info"
tclrrd.c:593: warning: implicit declaration of function `Tcl_InitStubs'
tclrrd.c:593: warning: nested extern declaration of `Tcl_InitStubs'
tclrrd.c:593: error: `interp' undeclared (first use in this function)
tclrrd.c:593: error: `TCL_VERSION' undeclared (first use in this function)
tclrrd.c:593: warning: comparison between pointer and integer
tclrrd.c:594: error: `TCL_ERROR' undeclared (first use in this function)
tclrrd.c:596: warning: implicit declaration of function `Tcl_PkgRequire'
tclrrd.c:596: warning: nested extern declaration of `Tcl_PkgRequire'
tclrrd.c:596: warning: comparison between pointer and integer
tclrrd.c:604: warning: implicit declaration of function `Tcl_SetVar2'
tclrrd.c:604: warning: nested extern declaration of `Tcl_SetVar2'
tclrrd.c:604: error: `TCL_GLOBAL_ONLY' undeclared (first use in this function)
tclrrd.c:612: warning: implicit declaration of function `Tcl_GetCommandInfo'
tclrrd.c:612: warning: nested extern declaration of `Tcl_GetCommandInfo'
tclrrd.c:612: error: `info' undeclared (first use in this function)
tclrrd.c:613: warning: nested extern declaration of `Tcl_AppendResult'
tclrrd.c:617: error: `safe' undeclared (first use in this function)
tclrrd.c:651: warning: implicit declaration of function `Tcl_CreateCommand'
tclrrd.c:651: warning: nested extern declaration of `Tcl_CreateCommand'
tclrrd.c:652: error: `ClientData' undeclared (first use in this function)
tclrrd.c:652: error: `Tcl_CmdDeleteProc' undeclared (first use in this function)
tclrrd.c:652: error: syntax error before ')' token
tclrrd.c:655: warning: implicit declaration of function `Tcl_PkgProvide'
tclrrd.c:655: warning: nested extern declaration of `Tcl_PkgProvide'
tclrrd.c:655: error: `TCL_OK' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:663: error: syntax error before '*' token
tclrrd.c:664: warning: no previous prototype for 'Tclrrd_Init'
tclrrd.c: In function `Tclrrd_Init':
tclrrd.c:665: error: `interp' undeclared (first use in this function)
tclrrd.c: At top level:
tclrrd.c:674: error: syntax error before '*' token
tclrrd.c:675: warning: no previous prototype for 'Tclrrd_SafeInit'
tclrrd.c: In function `Tclrrd_SafeInit':
tclrrd.c:676: error: `interp' undeclared (first use in this function)
make: *** Error 1
make: Leaving directory `/root/cacti_test/rrdtool-1.2.26/bindings/tcl'
make: *** Error 1
make: Leaving directory `/root/cacti_test/rrdtool-1.2.26/bindings'
make: *** Error 1
make: Leaving directory `/root/cacti_test/rrdtool-1.2.26'
make: *** Error 2
#
《解決方案》

我遇到相似的問題,你的解決了嗎?

[火星人 ] freetype-2.3.5 編譯make時出錯已經有714次圍觀

http://coctec.com/docs/service/show-post-23063.html