질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

sentinel 컴파일시 에러

작성자 정보

  • 이상봉 작성
  • 작성일

컨텐츠 정보

본문

홍석범님의 글에서 스니핑 탐지툴은 sentinel이라는 게 있어서

서버에 설치할려고 했는데 계속 안되고 있어서요

sentinel 컴파일시 에러가 납니다.

libpcap과 libnet은 설치했구요. make all로 하면 컴파일 안되서

make로 컴파일 실행하니 아래와 같은 오류가 뜹니다.

아래는 오류 내용입니다.

참고로 redhat 9.0 사용하고 있습니다.

테스트 서버 1

[root@localhost sentinel]# make
gcc -Wall -I. -I/usr/local/include `libnet-config --defines`   -c -o detect.o detect.c
detect.c: In function `thread_init':
detect.c:123: parse error before '{' token
detect.c:124: parse error before '{' token
make: *** [detect.o] 오류 1

테스트 서버 2

[root@ns2 sentinel]# make
gcc -Wall -I. -I/usr/local/include `libnet-config --defines`   -c -o init.o init.c
/bin/sh: line 1: libnet-config: command not found
In file included from init.c:1:
sentinel.h:34: field `src_hwaddr' has incomplete type
init.c: In function `net_init':
init.c:37: storage size of `link_int' isn't known
init.c:65: warning: implicit declaration of function `libnet_get_ipaddr'
init.c:71: warning: implicit declaration of function `libnet_host_lookup'
init.c:71: warning: assignment makes pointer from integer without a cast
init.c:72: warning: implicit declaration of function `libnet_name_resolve'
init.c:74: too many arguments to function `libnet_get_hwaddr'
init.c:75: sizeof applied to an incomplete type
init.c:37: warning: unused variable `link_int'
init.c: In function `init_ipfile':
init.c:139: warning: comparison between pointer and integer
make: *** [init.o] 오류 1

libnet-config 가 없는 것 같아 복사 했더니 아래와 같은

에러가 나옵니다.

make
gcc -Wall -I. -I/usr/local/include `libnet-config --defines`   -c -o init.o init.c
init.c: In function `net_init':
init.c:37: storage size of `link_int' isn't known
init.c:65: warning: implicit declaration of function `libnet_get_ipaddr'
init.c:71: warning: implicit declaration of function `libnet_host_lookup'
init.c:71: warning: assignment makes pointer from integer without a cast
init.c:72: warning: implicit declaration of function `libnet_name_resolve'
init.c:74: too many arguments to function `libnet_get_hwaddr'
init.c:37: warning: unused variable `link_int'
init.c: In function `init_ipfile':
init.c:139: warning: comparison between pointer and integer
make: *** [init.o] 오류 1

혹시 sentinel 설치한 분들 답변 부탁드려요

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,378 명
  • 현재 강좌수 :  37,052 개
  • 현재 접속자 :  262 명