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

Having problems compiling #4

Open
ghost opened this issue Jun 11, 2021 · 1 comment
Open

Having problems compiling #4

ghost opened this issue Jun 11, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 11, 2021

I'm hoping to try out the OAM loopback functionality on this, but I can't get it to compile.
I setup a Debian 9 box to run it in.

When I run make I get these errors:

[ 20%] Built target xutl
[ 20%] Linking CXX executable ../../test_xdev
libxutl.a(xutl_dev.cpp.o): In function `_xdev_rx_loop(struct_xdev*)':
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:130: undefined reference to `pcap_get_selectable_fd'
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:155: undefined reference to `pcap_next_ex'
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:180: undefined reference to `pcap_geterr'
libxutl.a(xutl_dev.cpp.o): In function `_xdev_close_pcap(struct_xdev*)':
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:212: undefined reference to `pcap_freecode'
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:216: undefined reference to `pcap_close'
libxutl.a(xutl_dev.cpp.o): In function `_xdev_setup_pcap(struct_xdev*, char*)':
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:236: undefined reference to `pcap_open_live'
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:251: undefined reference to `pcap_compile'
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:257: undefined reference to `pcap_perror'
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:262: undefined reference to `pcap_setfilter'
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:265: undefined reference to `pcap_perror'
libxutl.a(xutl_dev.cpp.o): In function `xdev_open':
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:368: undefined reference to `pcap_lookupdev'
libxutl.a(xutl_dev.cpp.o): In function `xdev_send':
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:493: undefined reference to `pcap_sendpacket'
/home/username/eoam-master/src/xutl/src/xutl_dev.cpp:496: undefined reference to `pcap_perror'
collect2: error: ld returned 1 exit status
src/xutl/CMakeFiles/test_xdev.dir/build.make:95: recipe for target 'test_xdev' failed
make[2]: *** [test_xdev] Error 1
CMakeFiles/Makefile2:99: recipe for target 'src/xutl/CMakeFiles/test_xdev.dir/all' failed
make[1]: *** [src/xutl/CMakeFiles/test_xdev.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
@Ed-Yang
Copy link
Owner

Ed-Yang commented Jun 11, 2021

I re-arrange the lib link order, please pull the latest version.

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