[ libpng ]
# tar fvxz libpng-1.2.8-config.tar.gz
# cd libpng-1.2.8-config
# cp ./scripts/makefile.linux ./makefile
# make test
gcc -I../zlib -Wall -O3 -funroll-loops -c -o pngtest.o pngtest.c
pngtest.c:31 から include されたファイル中:
png.h:359:18: zlib.h: そのようなファイルやディレクトリはありません
In file included from png.h:363,
from pngtest.c:31:
pngconf.h:1175: error: 文法エラー before '*' token
pngconf.h:1175: 警告: type defaults to `int' in declaration of `png_zcharp'
pngconf.h:1175: 警告: data definition has no type or storage class
pngconf.h:1176: error: 文法エラー before '*' token
pngconf.h:1176: 警告: type defaults to `int' in declaration of `png_zcharpp'
pngconf.h:1176: 警告: data definition has no type or storage class
pngconf.h:1177: error: 文法エラー before '*' token
pngconf.h:1177: 警告: type defaults to `int' in declaration of `png_zstreamp'
pngconf.h:1177: 警告: data definition has no type or storage class
In file included from pngtest.c:31:
png.h:1107: error: 文法エラー before "z_stream"
png.h:1107: 警告: struct や union の最後にセミコロンがありません
png.h:1353: error: 文法エラー before '}' token
pngtest.c: 関数 `test_one_file' 内:
pngtest.c:695: error: dereferencing pointer to incomplete type
pngtest.c:719: error: dereferencing pointer to incomplete type
pngtest.c:1260: error: `ZLIB_VERSION' undeclared (first use in this function)
pngtest.c:1260: error: (Each undeclared identifier is reported only once
pngtest.c:1260: error: for each function it appears in.)
pngtest.c: 関数 `main' 内:
pngtest.c:1314: error: `ZLIB_VERSION' undeclared (first use in this function)
pngtest.c:1323: error: invalid application of `sizeof' to an incomplete type
make: *** [pngtest.o] エラー 1
MRTGを使うと、マシンの状態やトラフィックをグラフで視覚的にわかりやすいように出力してくれます。
Vine Linuxでは MRTG 本体もそれを使用するためのライブラリもインストールされていないのでインストールします。
[ zlib ]
[ libpng ]
# tar fvxz libpng-1.2.8-config.tar.gz
# cd libpng-1.2.8-config
# cp ./scripts/makefile.linux ./makefile
# make test
gcc -I../zlib -Wall -O3 -funroll-loops -c -o pngtest.o pngtest.c
pngtest.c:31 から include されたファイル中:
png.h:359:18: zlib.h: そのようなファイルやディレクトリはありません
In file included from png.h:363,
from pngtest.c:31:
pngconf.h:1175: error: 文法エラー before '*' token
pngconf.h:1175: 警告: type defaults to `int' in declaration of `png_zcharp'
pngconf.h:1175: 警告: data definition has no type or storage class
pngconf.h:1176: error: 文法エラー before '*' token
pngconf.h:1176: 警告: type defaults to `int' in declaration of `png_zcharpp'
pngconf.h:1176: 警告: data definition has no type or storage class
pngconf.h:1177: error: 文法エラー before '*' token
pngconf.h:1177: 警告: type defaults to `int' in declaration of `png_zstreamp'
pngconf.h:1177: 警告: data definition has no type or storage class
In file included from pngtest.c:31:
png.h:1107: error: 文法エラー before "z_stream"
png.h:1107: 警告: struct や union の最後にセミコロンがありません
png.h:1353: error: 文法エラー before '}' token
pngtest.c: 関数 `test_one_file' 内:
pngtest.c:695: error: dereferencing pointer to incomplete type
pngtest.c:719: error: dereferencing pointer to incomplete type
pngtest.c:1260: error: `ZLIB_VERSION' undeclared (first use in this function)
pngtest.c:1260: error: (Each undeclared identifier is reported only once
pngtest.c:1260: error: for each function it appears in.)
pngtest.c: 関数 `main' 内:
pngtest.c:1314: error: `ZLIB_VERSION' undeclared (first use in this function)
pngtest.c:1323: error: invalid application of `sizeof' to an incomplete type
make: *** [pngtest.o] エラー 1
この記事はご希望通りの内容でしたか?
このエントリーのトラックバックURL: