告別銀河 (book.bbs@bbs.cs.ntust.edu.tw) 提到:
: checking whether gcc accepts -g... (cached) yes
: checking gcc version... 2
: [deleted]
: checking if fixincludes is needed... no
: configure: error: see the INSTALL for more info
: configure: error: ./configure failed for libpcap-0.3
: 請問高手!問題是出在那一個地方??
呃,我用的是 0.3.5 版的 sniffit 。
請看 INSTALL 中寫的這一段:
===
Note well: If you use gcc, you may need to run its "fixincludes"
script. Running fixincludes is not required with later versions of gcc
and in some cases (e.g. Solaris 2.5) causes problems when run. The
configure script will abort if it detects if the fixincludes needs to
be run. If the fixincludes test in configure passes, you're probably
ok.
===
還有 configure 中的這一大段:
===
if test $ac_cv_prog_gcc = yes ; then
echo $ac_n "checking if fixincludes is needed""... $ac_c" 1>&6
[deleted]
echo "$ac_t""$ac_cv_gcc_fixincludes" 1>&6
if test $ac_cv_gcc_fixincludes = no ; then
# Don't cache failure
unset ac_cv_gcc_fixincludes
{ echo "configure: error: see the INSTALL for more info"
1>&
2; exit 1; }
===
嗯,問題已經找到,剩下的你自己解決好了。