« 事故 | メイン | そりゃ、スカウトされて当然なのですが » |

2005年11月 7日

checkpassword & qmail compile error on Turbolinux 10 Server

 Turbolinuxのマシンにqmailを入れようとして、checkpassword-0.9.0をインストールしようとしたらエラーが。

checkpassword.o(.text+0xf8): In function `main': : undefined reference to `errno' checkpassword.o(.text+0x23b): In function `main': : undefined reference to `errno' checkpassword.o(.text+0x267): In function `main': : undefined reference to `errno' unix.a(pathexec_run.o)(.text+0x109): In function `pathexec_run': : undefined reference to `errno' unix.a(pathexec_run.o)(.text+0x14d): In function `pathexec_run': : undefined reference to `errno' unix.a(alloc.o)(.text+0x4c): more undefined references to `errno' follow collect2: ld returned 1 exit status make: *** [checkpassword] Error 1

で、ちょっと調べてみたらば、こんな奴を発見。で、qmailのサイトを見てみるとこんな記述を発見。

cat error.h | sed -es/^extern\ int\ errno\;/#include\ \/ >error.h

やー、このコマンドだとerror.hを微妙なタイミングで上書きしてしまうので、下記のコマンドを実行したですぜ。

cat error.h | sed -es/^extern\ int\ errno\;/#include\ \/ > error.h.new; mv error.h.new error.h

これでコンパイルオッケー。ちなみに、qmail-1.03でも同様のコンパイルエラーが発生するので要注意ですぜ。

投稿者 ymkx : 2005年11月 7日 20:01

ブログランキング ドット ネット