Comments (4)
But I cross compile libpcap successfully.
Did you put the tcpdump and libpcap source files in subdirectories of the same directory, so that, for example, you have, in that directory, libpcap-1.11.0-PRE-GIT and tcpdump-5.0.0-PRE-GIT source directories?
If not, after you cross-compiled libpcap, did you install it?
The errors from the configure script for tcpdump are:
configure:6027: riscv64-unknown-linux-gnu-gcc -o conftest -g -O2 conftest.c -lpcap >&5
/mnt/disk/ssw/toolchain/install/urgcc-3.11.74/linux/bin/../lib/gcc/riscv64-unknown-linux-gnu/11.1.0/../../../../riscv64-unknown-linux-gnu/bin/ld: cannot find -lpcap: No such file or directory
which means that the cross-compiler, when run by the configure script, didn't find libpcap in any of the directories in which it normally looks for libraries.
from tcpdump.
So,I should put the tcpdump and libpcap source file in the same directory.Such as:/home/user/code/tcpdump/(tcp source code) and /home/user/code/libpcap/(libpcap source code)? or /home/user/code/(tcpdump souce code and libcap source code) ?
from tcpdump.
So,I should put the tcpdump and libpcap source file in the same directory.Such as:/home/user/code/tcpdump/(tcp source code) and /home/user/code/libpcap/(libpcap source code)? or /home/user/code/(tcpdump souce code and libcap source code) ?
Do it as /home/user/code/(tcpdump source code and libpcap source code), for example, /home/user/code/tcpdump-5.0.0-PRE-GIT, with the tcpdump source code in the /home/user/code/tcpdump-5.0.0-PRE-GIT directory, and /home/user/code/libpcap-1.11.0-PRE-GIT, with the libpcap source code in the /home/user/code/libpcap-1.11.0-PRE-GIT directory.
If you are using autotools (the configure scripts) rather than CMake, there are two ways to build libpcap from source and then build tcpdump from source using that libpcap:
- put the two source file directories in the same parent directory, change to the libpcap source directory, run the configure script, run make, change to the tcpdump source directory, run the configure script, and run make;
- put them wherever you want, change to the libpcap source directory, run the configure script, run make, do a "make install", change to the tcpdump source directory, run the configure script, and run make.
from tcpdump.
Thanks very much!!Now I can cross compile tcpdump for riscv64 successfully.
from tcpdump.
Related Issues (20)
- print-ascii.c and '-DMAIN' HOT 3
- The -B option of tcpdump on my machine doesn't seem to have any effect HOT 9
- CMake 3.27 emits a deprecation warning HOT 7
- Potential memory leak in tcpdump.c HOT 2
- tcpdump with -i any shown invalid ip and bogus ipv4 in wireshark HOT 21
- How can grep the result in tcpdump with --version or -L(data-link-types) HOT 1
- tcpdump -r pcap file error HOT 4
- segmentation fault when using "-Z root" and "-w" HOT 2
- Missing support for L2TPv3 HOT 3
- tcpdump exits before completing the merge HOT 6
- tcpdump -n becomes very slow after some time if large number of IP addresses is present
- tcpdump apparmor denied open operation to /etc/pam_ldap.conf Ubuntu 22.04.3 LTS HOT 2
- [Bug] Infinite Loop Vulnerability in tcpdump leading to Potential DDoS Conditions HOT 9
- Issues building to Win x64 and errors in README.Win32.md HOT 20
- Update Sun RPC code to BSD-3-Clause copy
- Using an Android phone to grab the app, tcpdump has not shown any response. TCpdump is the latest version, with Android 8.1 system and Nexus5x phone HOT 4
- -G drops packets if not enough traffic is recorded HOT 7
- OpenBSD 7.5 build fails because EVP_add_cipher_alias() no longer exists in OpenBSD libcrypto HOT 1
- mkdep does not detect compiler failures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcpdump.