資安論壇

行政院 國家資通安全會報 - 技術服務中心 - 資安論壇 http://forum.icstc.org/
現在的時間是 2012年 10月 22日, 07:46

所有顯示的時間為 UTC + 8 小時




發表新文章 回覆主題  [ 3 篇文章 ] 
發表人 內容
文章發表於 : 2005年 11月 7日, 16:43 
離線

註冊時間: 2005年 11月 7日, 15:59
文章: 2
小弟這二天依照在網路上找到的資料試著安裝Honeyd時,安裝到arpd的時候發生不知道該怎麼安裝的情況,不知是否有熟悉honeyd安裝的前輩可以指導一下,謝謝。

我的環境及套件版本分別如下:
Fedora Core 4
libenvent 1.1a
libdnet 1.10
libdcap 0.9.4
arpd 0.2
honeyd 1.0

參考資料的網址,是PDF檔

我依照指示將libenvent、libdnet、libdcap依序安裝到/usr目錄之後,在安裝arpd時發生錯誤,我試著不變更安裝目錄也無法正常安裝,下面是我使用的方法及遇到的錯誤:

引言回覆:
不變更路徑,出現找不到libdnet

[root@fc4 arpd]# ./configure
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for mawk... no
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for libdnet... no
configure: error: libdnet not found


引言回覆:
將安裝路徑改至/usr,可以完成configure,不過在make時卻發生錯誤

[root@fc4 arpd]# ./configure --prefix=/usr
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for mawk... no
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for libdnet... yes
checking for libevent... yes
checking for libpcap... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for paths.h... yes
checking for sys/ioctl.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for daemon... yes
checking for working addr_cmp in libdnet... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h


[root@fc4 arpd]# make
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -c arpd.c
arpd.c: In function ‘arpd_send’:
arpd.c:268: error: syntax error before string constant
arpd.c: In function ‘arpd_lookup’:
arpd.c:285: error: syntax error before string constant
arpd.c:294: error: syntax error before string constant
arpd.c:297: error: syntax error before string constant
arpd.c: In function ‘arpd_recv_cb’:
arpd.c:426: error: syntax error before string constant
make: *** [arpd.o] Error 1


回頂端
 個人資料  
 
 文章主題 :
文章發表於 : 2006年 5月 6日, 16:38 
離線

註冊時間: 2005年 7月 28日, 13:23
文章: 22
google search 到的資料

先找到 __FUNCTION__,把他跟後面的參數換一下位置就好了

原來的
syslog(LOG_DEBUG,__FUNCTION__,": %s at %s",

變動過後的
syslog(LOG_DEBUG,": %s at %s",__FUNCTION__,

大約 6 or 8 行吧.

./configure 就能過了 ..
不過我現在是卡在 make .. >.<"

gcc -I/usr/local/include -o arpd arpd.o -L/usr/local/lib -ldnet -L/usr/local/lib -levent -L/usr/local/lib -lpcap -L/usr/local/lib -ldnet
/usr/local/lib/libpcap.a(grammar.o): In function `pcap_parse':
grammar.c:(.text+0x4fd): undefined reference to `pcap_lex'
collect2: ld returned 1 exit status
make: *** [arpd] Error 1

好像是說 grammar.c 沒定義 someone help ? :cry:
-------------------------------------------------------------------
星期六 五月 06, 2006 5:21 pm 文章主題:

--------------------------------------------------------------------------------

我原先用的 libpcap 版本是 libpcap-0.9.4.tar.gz
接著換到 libpcap-0.9.3.tar.gz
最後換到 libpcap-0.9.1.tar.gz
再回去 make arpd .. 這次 make 後沒訊息
到是可以 make install 了 .. 大概是我用的版本太新了吧.

現在下 arpd 有反應了
分享一下 ^^a


回頂端
 個人資料  
 
 文章主題 :
文章發表於 : 2006年 5月 28日, 09:00 
離線

註冊時間: 2005年 11月 7日, 15:59
文章: 2
感謝你的資料,不過由於之前一直搞不定,所以現在改用Sebek了!


回頂端
 個人資料  
 
顯示文章 :  排序  
發表新文章 回覆主題  [ 3 篇文章 ] 

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章

搜尋:
前往 :  
POWERED_BY
正體中文語系由 竹貓星球 維護製作