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

[Compile] v1.9 version compile failed #118

Open
QuincyGao opened this issue Dec 25, 2024 · 1 comment
Open

[Compile] v1.9 version compile failed #118

QuincyGao opened this issue Dec 25, 2024 · 1 comment

Comments

@QuincyGao
Copy link

Hi, my system verion is :

cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

run ./build.sh compile failed, can't find "netinet/tcp_req.h"

ls /usr/include/netinet
ether.h icmp6.h if_ether.h if_fddi.h if_tr.h igmp.h in.h in_systm.h ip6.h ip.h ip_icmp.h sctp.h tcp.h udp.h


-- The C compiler identification is GNU 4.8.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found OpenSSL: /usr/local/lib64/libcrypto.so (found version "3.2.1")
-- Found PCAP: /usr/lib64/libpcap.so
-- Performing Test PCAP_LINKS_SOLO
-- Performing Test PCAP_LINKS_SOLO - Success
-- Looking for pcap_get_pfring_id
-- Looking for pcap_get_pfring_id - not found
-- Looking for pcap_dump_open_append
-- Looking for pcap_dump_open_append - not found
-- Found LIBNET: /usr/lib64/libnet.so
-- Found JSONC: /usr/lib64/libjson-c.so
-- Looking for strdup
-- Looking for strdup - found
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/test/ssldump/build
ninja: Entering directory `build'
[1/21] Building C object CMakeFiles/ssldump.dir/base/tcpconn.c.o
FAILED: CMakeFiles/ssldump.dir/base/tcpconn.c.o
/usr/bin/cc -DHAVE_STRDUP -DLINUX -DOPENSSL -D_DEFAULT_SOURCE=1 -I/home/test/ssldump/common/include -I/home/test/ssldump/common/lib -I/home/test/ssldump/null -I/home/test/ssldump/ssl -I/home/test/ssldump/base -I/home/test/ssldump/pcap -I/usr/include/json-c -g -O2 -MD -MT CMakeFiles/ssldump.dir/base/tcpconn.c.o -MF CMakeFiles/ssldump.dir/base/tcpconn.c.o.d -o CMakeFiles/ssldump.dir/base/tcpconn.c.o -c /home/test/ssldump/base/tcpconn.c
In file included from /home/test/ssldump/base/network.h:120:0,
from /home/test/ssldump/base/tcpconn.c:47:
/home/test/ssldump/base/tcpconn.h:53:3: 错误:未知的类型名‘tcp_seq’
tcp_seq s_seq;
^
/home/test/ssldump/base/tcpconn.h:59:3: 错误:未知的类型名‘tcp_seq’
tcp_seq seq;
^
/home/test/ssldump/base/tcpconn.h:60:3: 错误:未知的类型名‘tcp_seq’
tcp_seq ack;
^
[2/21] Building C object CMakeFiles/ssldump.dir/null/null_analyze.c.o
FAILED: CMakeFiles/ssldump.dir/null/null_analyze.c.o
/usr/bin/cc -DHAVE_STRDUP -DLINUX -DOPENSSL -D_DEFAULT_SOURCE=1 -I/home/test/ssldump/common/include -I/home/test/ssldump/common/lib -I/home/test/ssldump/null -I/home/test/ssldump/ssl -I/home/test/ssldump/base -I/home/test/ssldump/pcap -I/usr/include/json-c -g -O2 -MD -MT CMakeFiles/ssldump.dir/null/null_analyze.c.o -MF CMakeFiles/ssldump.dir/null/null_analyze.c.o.d -o CMakeFiles/ssldump.dir/null/null_analyze.c.o -c /home/test/ssldump/null/null_analyze.c
In file included from /home/test/ssldump/base/network.h:120:0,
from /home/test/ssldump/null/null_analyze.c:48:
/home/test/ssldump/base/tcpconn.h:53:3: 错误:未知的类型名‘tcp_seq’
tcp_seq s_seq;
^
/home/test/ssldump/base/tcpconn.h:59:3: 错误:未知的类型名‘tcp_seq’
tcp_seq seq;
^
/home/test/ssldump/base/tcpconn.h:60:3: 错误:未知的类型名‘tcp_seq’
tcp_seq ack;
^
[3/21] Building C object CMakeFiles/ssldump.dir/base/proto_mod.c.o
FAILED: CMakeFiles/ssldump.dir/base/proto_mod.c.o

@QuincyGao
Copy link
Author

my kernel-version is: uname -r
3.10.0-1160.118.1.el7.x86_64

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