https://bugs.winehq.org/show_bug.cgi?id=54795
Bug ID: 54795 Summary: configure fails to find pcap development libraries with libpcap <1.9.0 present Product: Wine Version: 8.2 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: wpcap Assignee: wine-bugs@winehq.org Reporter: o.dierick@piezo-forte.be Distribution: ---
Hello,
In my case, Debian 8 "Jessie" ships libpcap 1.6.2.
According to the man page, pcap_init was introduced in libpcap 1.9.0. https://man7.org/linux/man-pages/man3/pcap_init.3pcap.html
The ~regression~ commit modifies configure to check for pcap_init() in lieu of pcap_create(), which fails on such old OS.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54795
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |032e8d9c362b881a4213c819d1c | |c6262f2df4b35 Keywords| |regression Distribution|--- |Debian
https://bugs.winehq.org/show_bug.cgi?id=54795
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- pcap_init() is needed to make wpcap work with the new wow64 setup. I would suggest building libpcap yourself if you really need it on Debian 8.
https://bugs.winehq.org/show_bug.cgi?id=54795
--- Comment #2 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Created attachment 74429 --> https://bugs.winehq.org/attachment.cgi?id=74429 wpcap tests terminal output on Wine 8.7 under Debian 8 with custom libpcap
Hello,
I built libpcap and could build Wine 8.7 with it, but running the wpcap tests fails.
I copied wpcap_test-stripped.exe in ~/.wine/drive_c and ran: cd ~/.wine/drive_c LD_LIBRARY_PATH="/usr/local/lib" wine wpcap_tests-stripped.exe
It says 'No pcap support, expect problems' and crashes. Terminal output is attached. The libpcap custom build is installed in the default destination /usr/local/ bin, lib, etc.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54795
--- Comment #3 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
I tried LD_PRELOAD="/usr/local/lib/libpcap.so" wine wpcap_tests-stripped.exe
It says "ERROR: ld.so: object '/usr/local/lib/libpcap.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.".
So now I need to find how to have 32-bit libpcap library along the 64-bit one.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54795
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- (In reply to Olivier F. R. Dierick from comment #3)
I tried LD_PRELOAD="/usr/local/lib/libpcap.so" wine wpcap_tests-stripped.exe
It says "ERROR: ld.so: object '/usr/local/lib/libpcap.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.".
So now I need to find how to have 32-bit libpcap library along the 64-bit one.
Note that running the 32-bit test will require the new wow64 setup. Alternatively you could try the 64-bit test.
https://bugs.winehq.org/show_bug.cgi?id=54795
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED
--- Comment #5 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Hans Leidekker from comment #4)
Alternatively you could try the 64-bit test.
Hello,
I tried the 64-bit test and it works, even without setting any LD_* variable.
So it means I could build Wine with pcap support and use the custom libpcap on Debian 8.
Marking invalid.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54795
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Gijs Vermeulen gijsvrm@gmail.com --- Closing.