adulau / ssldump

ssldump - (de-facto repository gathering patches around the cyberspace)
http://adulau.github.io/ssldump/
Other
238 stars 90 forks source link

pcap-snoop.c:98: error: initializer element is not constant #62

Open unixchina opened 2 years ago

unixchina commented 2 years ago

I am trying to run make, some error occured:

make all-am make[1]: Entering directory /root/ssldump-1.5' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I./common/include -I./common/lib -I./null -I./ssl -I./base -I./pcap -D_DEFAULT_SOURCE=1 -DLINUX -DOPENSSL -D_BSD_SOURCE=1 -O2 -MT base/ssldump-pcap-snoop.o -MD -MP -MF base/.deps/ssldump-pcap-snoop.Tpo -c -o base/ssldump-pcap-snoop.otest -f 'base/pcap-snoop.c' || echo './'base/pcap-snoop.c base/pcap-snoop.c:98: error: initializer element is not constant make[1]: *** [base/ssldump-pcap-snoop.o] Error 1 make[1]: Leaving directory/root/ssldump-1.5' make: *** [all] Error 2

here are configure info

################################################ SSLDump build setup Host system: linux-gnu Host architecture: x86_64 Compiler: gcc -std=gnu99 Installation prefix: /usr/local CFLAGS: -O2 LDFLAGS:
LIBS: -ljson-c -lnet -lssl -lpcap Optimizations enabled: yes Debug info enabled: no ASAN enabled: no ################################################

wllm-rbnt commented 2 years ago

I can't reproduce this error on Debian 11. Which Linux distribution are you using ?