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

make시 오류

작성자 정보

  • 서만기 작성
  • 작성일

컨텐츠 정보

본문

sniffit설치 할때 계속 오류가 뜨네요.
0.3.7베타 버전은. confiure를 마치고 make를 실행시키면
[root@localhost sniffit.0.3.7.beta]# make
gcc -w -O2 -c  sn_packets.c -I./libpcap -L./libpcap -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1
-DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DUSE_32_LONG_INT=1 -DLINUX=1
In file included from sn_packets.c:6:
sn_structs.h:70: error: two or more data types in declaration specifiers
make: *** [sn_packets.o] 오류 1
이렇게 나오고..
0.3.5 버전은
[root@localhost sniffit.0.3.5]# make
gcc -w -O2 -c  sn_packets.c -I./libpcap-0.3 -L./libpcap-0.3 -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1
-DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DLINUX=1
gcc -w -O2 -c  sn_generation.c -I./libpcap-0.3 -L./libpcap-0.3 -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1
-DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DLINUX=1
gcc -w -O2 -c  sn_interface.c -I./libpcap-0.3 -L./libpcap-0.3 -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1
-DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DLINUX=1
gcc -w -O2 -c sn_cfgfile.c -I./libpcap-0.3 -L./libpcap-0.3 -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1
-DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DLINUX=1
gcc -w -O2 -c  sn_logfile.c -I./libpcap-0.3 -L./libpcap-0.3 -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1
-DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DLINUX=1
cd libpcap-0.3; make; cd ..
make[1]: Entering directory `/root/Desktop/sniffit.0.3.5/libpcap-0.3'
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./pcap-linux.c
./pcap-linux.c: In function ‘pcap_read’:
./pcap-linux.c:70: warning: pointer targets in assignment differ in signedness
./pcap-linux.c:81: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./pcap.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./inet.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./gencode.c
./gencode.c:82: warning: function definition has qualified void return type
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./optimize.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./nametoaddr.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./etherent.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./savefile.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./bpf_filter.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./bpf_image.c
flex -Ppcap_ -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
bison -y -p pcap_ -d grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -c ./scanner.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1  -Dyylval=pcap_lval -c
grammar.c
ar rc libpcap.a pcap-linux.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o bpf_filter.o
bpf_image.o scanner.o grammar.o
ranlib libpcap.a
make[1]: Leaving directory `/root/Desktop/sniffit.0.3.5/libpcap-0.3'
gcc -w -O2 -o sniffit sniffit.0.3.5.c sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o
-I./libpcap-0.3 -L./libpcap-0.3 -lpcap -lncurses  -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1
-DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DLINUX=1
strip sniffit
[root@localhost sniffit.0.3.5]# make install
make: *** 타겟 `install'를 만들 규칙이 없음.  멈춤.
이렇게 나옵니다.
도대체 어느부분에서 문제가 있는지 잘 모르겠습니다.
답변 부탁드립니다.

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,035 명
  • 현재 강좌수 :  35,791 개
  • 현재 접속자 :  81 명