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

libdaq error build #25

Open
xx-zhang opened this issue Nov 6, 2023 · 0 comments
Open

libdaq error build #25

xx-zhang opened this issue Nov 6, 2023 · 0 comments

Comments

@xx-zhang
Copy link

xx-zhang commented Nov 6, 2023

mv -f .deps/libdaq_la-daq_instance_api_defaults.Tpo .deps/libdaq_la-daq_instance_api_defaults.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c -o libdaq_la-daq_mod_ops.lo `test -f 'daq_mod_ops.c' || echo './'`daq_mod_ops.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c daq_mod_ops.c  -fPIC -DPIC -o .libs/libdaq_la-daq_mod_ops.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT libdaq_la-daq_mod_ops.lo -MD -MP -MF .deps/libdaq_la-daq_mod_ops.Tpo -c daq_mod_ops.c -o libdaq_la-daq_mod_ops.o >/dev/null 2>&1
mv -f .deps/libdaq_la-daq_mod_ops.Tpo .deps/libdaq_la-daq_mod_ops.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs  -g -O2  -version-info 3:0:0  -o libdaq.la -rpath /usr/local/lib libdaq_la-daq_base.lo libdaq_la-daq_base_api.lo libdaq_la-daq_config.lo libdaq_la-daq_instance_api_defaults.lo libdaq_la-daq_mod_ops.lo -ldl
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libdaq_la-daq_base.o .libs/libdaq_la-daq_base_api.o .libs/libdaq_la-daq_config.o .libs/libdaq_la-daq_instance_api_defaults.o .libs/libdaq_la-daq_mod_ops.o   -ldl  -g -O2   -Wl,-soname -Wl,libdaq.so.3 -o .libs/libdaq.so.3.0.0
libtool: link: (cd ".libs" && rm -f "libdaq.so.3" && ln -s "libdaq.so.3.0.0" "libdaq.so.3")
libtool: link: (cd ".libs" && rm -f "libdaq.so" && ln -s "libdaq.so.3.0.0" "libdaq.so")
libtool: link: ar cru .libs/libdaq.a  libdaq_la-daq_base.o libdaq_la-daq_base_api.o libdaq_la-daq_config.o libdaq_la-daq_instance_api_defaults.o libdaq_la-daq_mod_ops.o
libtool: link: ranlib .libs/libdaq.a
libtool: link: ( cd ".libs" && rm -f "libdaq.la" && ln -s "../libdaq.la" "libdaq.la" )
make[2]: Leaving directory `/root/libdaq/api'
Making all in modules
make[2]: Entering directory `/root/libdaq/modules'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c -o bpf/libdaq_static_bpf_la-daq_bpf.lo `test -f 'bpf/daq_bpf.c' || echo './'`bpf/daq_bpf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c bpf/daq_bpf.c  -fPIC -DPIC -o bpf/.libs/libdaq_static_bpf_la-daq_bpf.o
bpf/daq_bpf.c: In function ‘bpf_daq_set_filter’:
bpf/daq_bpf.c:131:5: warning: ‘pcap_compile_nopcap’ is deprecated: use pcap_open_dead(), pcap_compile() and pcap_close() [-Wdeprecated-declarations]
     if (pcap_compile_nopcap(bc->snaplen, DLT_EN10MB, &fcode, bc->filter, 1, PCAP_NETMASK_UNKNOWN) == -1)
     ^~
In file included from /usr/local/include/pcap.h:43:0,
                 from bpf/daq_bpf.c:25:
/usr/local/include/pcap/pcap.h:618:14: note: declared here
 PCAP_API int pcap_compile_nopcap(int, int, struct bpf_program *,
              ^~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT bpf/libdaq_static_bpf_la-daq_bpf.lo -MD -MP -MF bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo -c bpf/daq_bpf.c -o bpf/libdaq_static_bpf_la-daq_bpf.o >/dev/null 2>&1
mv -f bpf/.deps/libdaq_static_bpf_la-daq_bpf.Tpo bpf/.deps/libdaq_static_bpf_la-daq_bpf.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o bpf/libdaq_static_bpf.la -rpath /usr/local/lib bpf/libdaq_static_bpf_la-daq_bpf.lo
libtool: link: ar cru bpf/.libs/libdaq_static_bpf.a  bpf/libdaq_static_bpf_la-daq_bpf.o
libtool: link: ranlib bpf/.libs/libdaq_static_bpf.a
libtool: link: ( cd "bpf/.libs" && rm -f "libdaq_static_bpf.la" && ln -s "../libdaq_static_bpf.la" "libdaq_static_bpf.la" )
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api   -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c -o dump/libdaq_static_dump_la-daq_dump.lo `test -f 'dump/daq_dump.c' || echo './'`dump/daq_dump.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c dump/daq_dump.c  -fPIC -DPIC -o dump/.libs/libdaq_static_dump_la-daq_dump.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -MT dump/libdaq_static_dump_la-daq_dump.lo -MD -MP -MF dump/.deps/libdaq_static_dump_la-daq_dump.Tpo -c dump/daq_dump.c -o dump/libdaq_static_dump_la-daq_dump.o >/dev/null 2>&1
mv -f dump/.deps/libdaq_static_dump_la-daq_dump.Tpo dump/.deps/libdaq_static_dump_la-daq_dump.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -g -O2 -static -avoid-version  -o dump/libdaq_static_dump.la -rpath /usr/local/lib dump/libdaq_static_dump_la-daq_dump.lo
libtool: link: ar cru dump/.libs/libdaq_static_dump.a  dump/libdaq_static_dump_la-daq_dump.o
libtool: link: ranlib dump/.libs/libdaq_static_dump.a
libtool: link: ( cd "dump/.libs" && rm -f "libdaq_static_dump.la" && ln -s "../libdaq_static_dump.la" "libdaq_static_dump.la" )
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example   -g -O2 -MT fst/libdaq_static_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-daq_fst.Tpo -c -o fst/libdaq_static_fst_la-daq_fst.lo `test -f 'fst/daq_fst.cc' || echo './'`fst/daq_fst.cc
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -I../api -I../example -g -O2 -MT fst/libdaq_static_fst_la-daq_fst.lo -MD -MP -MF fst/.deps/libdaq_static_fst_la-daq_fst.Tpo -c fst/daq_fst.cc  -fPIC -DPIC -o fst/.libs/libdaq_static_fst_la-daq_fst.o
In file included from fst/fst.h:30:0,
                 from fst/daq_fst.cc:32:
../example/decode.h: In function ‘bool decode_tcp(const uint8_t*, uint32_t, DecodeData*)’:
../example/decode.h:291:26: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_off’; did you mean ‘doff’?
     uint16_t hlen = tcp->th_off * 4;
                          ^~~~~~
                          doff
In file included from /usr/local/include/bits/byteswap.h:34:0,
                 from /usr/local/include/endian.h:60,
                 from /usr/local/include/sys/types.h:216,
                 from /usr/local/include/sys/uio.h:24,
                 from /usr/local/include/sys/socket.h:27,
                 from /usr/local/include/netinet/in.h:24,
                 from ../api/daq_common.h:29,
                 from ../api/daq_module_api.h:29,
                 from fst/daq_fst.cc:31:
../example/decode.h: In function ‘bool decode_udp(const uint8_t*, uint32_t, DecodeData*)’:
../example/decode.h:341:32: error: ‘const UdpHdr {aka const struct udphdr}’ has no member named ‘uh_ulen’
     uint16_t ulen = ntohs(udp->uh_ulen);
                                ^
In file included from fst/daq_fst.cc:32:0:
fst/fst.h: In function ‘bool is_tcp_flag_set(const TcpHdr*, uint8_t)’:
fst/fst.h:178:16: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_flags’
 { return (tcp->th_flags & flag) == flag; }
                ^~~~~~~~
fst/fst.h: In member function ‘void FstTcpTracker::eval(const DecodeData&, bool)’:
fst/fst.h:187:45: error: ‘TH_SYN’ was not declared in this scope
             if (c2s && is_tcp_flag_set(tcp, TH_SYN) && !is_tcp_flag_set(tcp, TH_ACK))
                                             ^~~~~~
fst/fst.h:187:45: note: suggested alternative: ‘MSG_SYN’
             if (c2s && is_tcp_flag_set(tcp, TH_SYN) && !is_tcp_flag_set(tcp, TH_ACK))
                                             ^~~~~~
                                             MSG_SYN
fst/fst.h:187:78: error: ‘TH_ACK’ was not declared in this scope
             if (c2s && is_tcp_flag_set(tcp, TH_SYN) && !is_tcp_flag_set(tcp, TH_ACK))
                                                                              ^~~~~~
fst/fst.h:192:46: error: ‘TH_SYN’ was not declared in this scope
             if (!c2s && is_tcp_flag_set(tcp, TH_SYN | TH_ACK))
                                              ^~~~~~
fst/fst.h:192:46: note: suggested alternative: ‘MSG_SYN’
             if (!c2s && is_tcp_flag_set(tcp, TH_SYN | TH_ACK))
                                              ^~~~~~
                                              MSG_SYN
fst/fst.h:192:55: error: ‘TH_ACK’ was not declared in this scope
             if (!c2s && is_tcp_flag_set(tcp, TH_SYN | TH_ACK))
                                                       ^~~~~~
fst/fst.h:197:45: error: ‘TH_ACK’ was not declared in this scope
             if (c2s && is_tcp_flag_set(tcp, TH_ACK) && !is_tcp_flag_set(tcp, TH_SYN))
                                             ^~~~~~
fst/fst.h:197:78: error: ‘TH_SYN’ was not declared in this scope
             if (c2s && is_tcp_flag_set(tcp, TH_ACK) && !is_tcp_flag_set(tcp, TH_SYN))
                                                                              ^~~~~~
fst/fst.h:197:78: note: suggested alternative: ‘MSG_SYN’
             if (c2s && is_tcp_flag_set(tcp, TH_ACK) && !is_tcp_flag_set(tcp, TH_SYN))
                                                                              ^~~~~~
                                                                              MSG_SYN
fst/fst.h:206:38: error: ‘TH_FIN’ was not declared in this scope
             if (is_tcp_flag_set(tcp, TH_FIN))
                                      ^~~~~~
fst/fst.h:206:38: note: suggested alternative: ‘MSG_FIN’
             if (is_tcp_flag_set(tcp, TH_FIN))
                                      ^~~~~~
                                      MSG_FIN
fst/fst.h: In member function ‘bool FstTcpTracker::process_bare_ack(const DecodeData&, bool)’:
fst/fst.h:222:63: error: ‘TH_ACK’ was not declared in this scope
     if (tcp_state != TTS_ESTABLISHED || !is_tcp_flag_set(tcp, TH_ACK) || dd.tcp_data_segment)
                                                               ^~~~~~
fst/fst.h:226:27: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_ack’; did you mean ‘ack’?
     if (SEQ_GT(ntohl(tcp->th_ack), ntohl(meta_ack_data.tcp_ack_seq_num)))
                           ^
fst/fst.h:33:30: note: in definition of macro ‘SEQ_GT’
 #define SEQ_GT(a,b)  ((int)((a) - (b)) >  0)
                              ^
fst/fst.h:228:46: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_ack’; did you mean ‘ack’?
         meta_ack_data.tcp_ack_seq_num = tcp->th_ack;
                                              ^~~~~~
                                              ack
fst/fst.h:229:46: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_win’
         meta_ack_data.tcp_window_size = tcp->th_win;
                                              ^~~~~~
fst/fst.h: In member function ‘bool FstKey::populate(const DAQ_PktHdr_t*, const DecodeData*)’:
fst/fst.h:546:29: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_sport’
         src_port = dd->tcp->th_sport;
                             ^~~~~~~~
fst/fst.h:547:29: error: ‘const TcpHdr {aka const struct tcphdr}’ has no member named ‘th_dport’
         dst_port = dd->tcp->th_dport;
                             ^~~~~~~~
fst/fst.h:552:29: error: ‘const UdpHdr {aka const struct udphdr}’ has no member named ‘uh_sport’
         src_port = dd->udp->uh_sport;
                             ^~~~~~~~
fst/fst.h:553:29: error: ‘const UdpHdr {aka const struct udphdr}’ has no member named ‘uh_dport’
         dst_port = dd->udp->uh_dport;
                             ^~~~~~~~
make[2]: *** [fst/libdaq_static_fst_la-daq_fst.lo] Error 1
make[2]: Leaving directory `/root/libdaq/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/libdaq'
make: *** [all] Error 2
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