- - PR -
Solaris10(sparc)にproftpdをインストールする際のmakeエラー
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2006-06-28 15:28
何時もお世話になっております。
上記標題の件についてお教え頂きたいと存じます。 環境はSolaris10(Sparc Ultra10)です。 proftpd(proftpd-1.3.0rc5)を./configureをしmakeをすると In file included from /usr/include/sys/signal.h:34, from /usr/include/signal.h:26, from main.c:34: /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:292: error: parse error before '}' token /usr/include/sys/siginfo.h:294: error: parse error before '}' token /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc' /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc' /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault' /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault' /usr/include/sys/siginfo.h:404: error: conflicting types for `__file' /usr/include/sys/siginfo.h:273: error: previous declaration of `__file' /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof' /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof' /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl' /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl' /usr/include/sys/siginfo.h:426: error: parse error before '}' token /usr/include/sys/siginfo.h:428: error: parse error before '}' token /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" /usr/include/sys/siginfo.h:437: error: parse error before '}' token In file included from /usr/include/signal.h:26, from main.c:34: /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" In file included from main.c:34: /usr/include/signal.h:111: error: parse error before "siginfo_t" /usr/include/signal.h:113: error: parse error before "siginfo_t" main.c: In function `shutdown_exit': main.c:472: warning: passing arg 2 of `signal' from incompatible pointer type main.c: In function `fork_server': main.c:1144: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1145: warning: passing arg 2 of `signal' from incompatible pointer type main.c: In function `sig_rehash': main.c:1666: warning: passing arg 2 of `signal' from incompatible pointer type main.c: In function `sig_evnt': main.c:1671: warning: passing arg 2 of `signal' from incompatible pointer type main.c: In function `sig_child': main.c:1724: warning: passing arg 2 of `signal' from incompatible pointer type main.c: In function `handle_chld': main.c:1807: warning: implicit declaration of function `waitpid' main.c:1807: error: `WNOHANG' undeclared (first use in this function) main.c:1807: error: (Each undeclared identifier is reported only once main.c:1807: error: for each function it appears in.) main.c: In function `install_signal_handlers': main.c:1948: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1949: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1950: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1951: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1952: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1953: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1954: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1955: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1956: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1957: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1966: warning: passing arg 2 of `signal' from incompatible pointer type main.c:1968: warning: passing arg 2 of `signal' from incompatible pointer type make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/export/home/sysdba/free/proftpd-1.3.0rc5/src' *** Error code 2 make: Fatal error: Command failed for target `src' とエラーが表示されmakeが終了してしまいます。 solaris9(SPARC SunFireV210)では問題なくインストールされました。 何か差異があり(当然だと思うのですが)問題なのかご教授頂けたらと存じます。 |
|
投稿日時: 2006-06-28 17:53
forums.proftpd.orgに、同じ質問が出ております。
http://forums.proftpd.org/phpBB2/viewtopic.php?t=718& それとrc版ではなく、1.3.0が出ておりますので、 差し支えがないようであれば、1.3.0の方が良いかと思われます。 |
|
投稿日時: 2006-06-29 12:45
pkgadd にしましょう。
|
|
投稿日時: 2006-07-04 16:22
SHRさん、ご教授ありがとうごさいました。
拝見するのが大変遅くなり申し訳ありません。 お教え頂きましたWebを見ました(英語が苦手なもので) mkheadersコマンドをしかってヘッダーを再構築しろと書かれているのでしょうか? |
|
投稿日時: 2006-07-04 18:10
Solaris10 のバージョン(/etc/release)やコンパイラのバージョン(gcc -v)が
不明ですのでなんともえいえませんが, http://forums.proftpd.org/phpBB2/viewtopic.php?t=718& 内の sauvage さんの記述を参考にして,以下のサイトを見てみると http://sunfreeware.com/programlistsparc10.html#gcc33 に対策方法が(赤い文字で)記述されているようです。 # http://www.excite.co.jp/world/english/ で翻訳して読んでみましたが, # こちらでは環境がないので確認はできませんでした。 ちなみに Solaris10 1/06 for Intel + gcc 3.4.3 (/usr/sfw/bin/gcc) だと proftpd-1.3.0 は問題なくコンパイルが通りました。 可能であれば gcc ( http://gcc.gnu.org/ ) のバージョンをあげてしまうのも 一つの方法かもしれません。 |
1