-
Notifications
You must be signed in to change notification settings - Fork 349
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
Undefined Reference on Ubuntu 23.10 #902
Comments
I am not a cmake expert, however I see compilation is failing because it cannot find symbols from libpcap |
Hi @cardigliano Before creating this issue, I tried with a static link to [ 50%] Building CXX object CMakeFiles/test.dir/src/main.cpp.o
In file included from /usr/include/linux/posix_types.h:5,
from /usr/include/asm-generic/socket.h:5,
from /usr/include/aarch64-linux-gnu/asm/socket.h:1,
from /usr/include/aarch64-linux-gnu/bits/socket.h:385,
from /usr/include/aarch64-linux-gnu/sys/socket.h:33,
from /usr/local/include/pfring.h:41,
from /home/raspberry1/Documents/kevin/test/src/main.cpp:3:
/usr/include/linux/if_packet.h:24:17: error: flexible array member ‘sockaddr_ll::<unnamed union>::<unnamed struct>::sll_addr_flex’ not at end of ‘struct __pfring’
24 | __DECLARE_FLEX_ARRAY(unsigned char, sll_addr_flex);
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pfring.h:364:11: note: next member ‘pfring* __pfring::reflector_socket’ declared here
364 | pfring *reflector_socket;
| ^~~~~~~~~~~~~~~~
/usr/local/include/pfring.h:193:8: note: in the definition of ‘struct __pfring’
193 | struct __pfring {
| ^~~~~~~~
make[2]: *** [CMakeFiles/test.dir/build.make:76: CMakeFiles/test.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/test.dir/all] Error 2
make: *** [Makefile:91: all] Error 2 Regards! |
Hello
I'm in the process of integrating the PF_RING library into a CMake project, but I'm facing compilation errors. I've followed the steps described in this guide to install PF_RING.
Please let me know if you need more information.
P.S.: I didn't have any issues installing the PF_RING library, and compiling the examples
Environment:
Compilation errors:
CMake file:
The text was updated successfully, but these errors were encountered: