Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没编译成功... #1

Open
smarttang opened this issue Jan 13, 2020 · 0 comments
Open

没编译成功... #1

smarttang opened this issue Jan 13, 2020 · 0 comments

Comments

@smarttang
Copy link

[root@localhost BlackSword]# make
gcc -c -I include abuse/abuse.c -o abuse.o
gcc -c -I include abuse/abuse_http.c -o abuse_http.o
gcc -c -I include abuse/abuse_icmp.c -o abuse_icmp.o
abuse/abuse_icmp.c:5:23: 警告:‘struct icmpp’在形参表内部声明 [默认启用]
 int abuse_icmp(struct icmpp *icmp){
                       ^
abuse/abuse_icmp.c:5:23: 警告:它的作用域仅限于此定义或声明,这可能并不是您想要的 [默认启用]
gcc -c -I include abuse/abuse_tcp.c -o abuse_tcp.o
gcc -c -I include abuse/abuse_udp.c -o abuse_udp.o
abuse/abuse_udp.c:5:22: 警告:‘struct udpp’在形参表内部声明 [默认启用]
 int abuse_udp(struct udpp *udp){
                      ^
abuse/abuse_udp.c:5:22: 警告:它的作用域仅限于此定义或声明,这可能并不是您想要的 [默认启用]
gcc -c -I include analysis/derule.c -o derule.o
gcc -c -I include analysis/func.c -o func.o
gcc -c -I include analysis/http.c -o http.o
gcc -c -I include analysis/icmp.c -o icmp.o
gcc -c -I include analysis/ip.c -o ip.o
gcc -c -I include analysis/pdata.c -o pdata.o
gcc -c -I include analysis/sysconfig.c -o sysconfig.o
gcc -c -I include analysis/tcp.c -o tcp.o
gcc -c -I include analysis/udp.c -o udp.o
analysis/udp.c: 在函数‘udp_getstruct’中:
analysis/udp.c:12:5: 警告:从不兼容的指针类型赋值 [默认启用]
  udp=(struct tcpp *)((uchar*)ip+l);
     ^
gcc -c -I include main/main.c -o main.o
gcc -c -I include pcap/bspcap.c -o bspcap.o
pcap/bspcap.c: 在函数‘run’中:
pcap/bspcap.c:37:3: 警告:隐式声明与内建函数‘exit’不兼容 [默认启用]
   exit(1);
   ^
pcap/bspcap.c: 在函数‘packet_handler’中:
pcap/bspcap.c:119:2: 警告:隐式声明与内建函数‘memcpy’不兼容 [默认启用]
  memcpy(data,pkt_data,header->caplen);
  ^
ld -o bs abuse.o abuse_http.o abuse_icmp.o abuse_tcp.o abuse_udp.o derule.o func.o http.o icmp.o ip.o pdata.o sysconfig.o tcp.o udp.o main.o bspcap.o -lpcap
ld: derule.o: undefined reference to symbol 'strcpy@@GLIBC_2.2.5'
/usr/lib64/libc.so.6: error adding symbols: DSO missing from command line
make: *** [bs] 错误 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant