
Ubuntu日本語フォーラム

ログインしていません。
ubuntu初心者です。
ubuntu9.04をインストールしてopacity analyzerというプログラムを入れたいのですが、
gcc -I/usr/local/pgplot -I/usr/local/uvf_difmap/include -DCOLOR -O3 -c opacity_plot.c
opacity_plot.c:10 から include されたファイル中:
/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
/usr/include/stdio.h:75 から include されたファイル中,
opacity_plot.c:10 から:
/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from /usr/include/stdio.h:75,
from opacity_plot.c:10:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:489: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/libio.h:491: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from opacity_plot.c:10:
/usr/include/stdio.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’
・
・
・
・
/usr/include/bits/stdlib.h:138: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_chk_warn’
/usr/include/bits/stdlib.h:145: error: expected ‘,’ or ‘;’ before ‘wcstombs’
opacity_plot.c: In function ‘MAIN__’:
opacity_plot.c:46: 警告: incompatible implicit declaration of built-in function ‘malloc’
make: *** [opacity_plot.o] エラー 1
といったエラーが解決できません。sudo apt-get install build-essentialはしてみたのですが、それでもうまくいきませんでした。環境変数があってないのでしょうか?
オフライン
gccのバージョンと、opacity analyzerのソースの在り処を明記してみてください。
オフライン
失礼しました。gccは最新の4.3.3でソースは/usr/local/srceの中に入っています。
オフライン
syana による投稿:
ソースは/usr/local/srceの中に入っています。
ではなく、opacity analyzerのソースをどこからダウンロードしたのですか? という質問です。
オフライン
http://163.209.90.1/users/kameno/weblog/4f0c6/Opacity_Analyzer_updated.htmlとhttp://163.209.90.1/users/kameno/からダウンロードしてきました。
オフライン
すいません。意味を取り違えてました。
http://163.209.90.1/users/kameno/weblog/4f0c6/Opacity_Analyzer_updated.html
http://163.209.90.1/users/kameno/
からダウンロードしました。
オフライン
opacity analyzerを最近のLinuxディストリでmakeされた方いるのですか?
ソースの日付を見ると、gcc-4.Xでは無理のようですし、gcc-3.3か3.4、それでもダメなら、gcc-2.95でトライしてみてください。
オフライン