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
libpcap "_pcap_version" #5
Comments
Problem solved with Even though i symlinked libpcap from homebrew with I guess tcptraceroute doesn't like the libpcap version from Xcode, is there any way installing tcptraceroute from homebrew and providing libpcap this way? thanks in advance |
Seems tcpreplay folks found a similar problem and solved it if anyone wants to check it out the link is below. |
@begsthehessian thanks, i also checked the pcap_ver with nm like he did, same version, same problem
|
Same problem for me in 10.12.4. For now i just added inreplace "capture.h", "extern char pcap_version[]", "char *pcap_version" in homebrew to make it run. |
Thanks for the catch! Googling around a little, it looks like we shouldn't be using the symbol |
(y) Also is there any reason to define it in capture.h? maybe just a use a local variable in main.c inside the function where the debug is logged. |
Hello, i have a problem compiling tcptraceroute, although there is a libpcap on my system, i dont get what is going wrong at the compilation process.
gcc -g -O2 -Wall -o tcptraceroute main.o datalink.o util.o probe.o capture.o -lnet -lpcap Undefined symbols for architecture x86_64: "_pcap_version", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [tcptraceroute] Error 1
And also with homebrew after successful installation and "sudo tcptraceroute"
dyld: Symbol not found: _pcap_version Referenced from: /usr/local/bin/tcptraceroute Expected in: /usr/lib/libpcap.A.dylib in /usr/local/bin/tcptraceroute Abort trap: 6
Im on macOS Sierra 10.12.4 version
The text was updated successfully, but these errors were encountered: