Closed jordanauge closed 3 years ago
Is this on Ubuntu 20.04? I have not seen similar issues on 18.04 or 16.04.
Yes this appears to be related to Ubuntu 20 and the default libpcap-dev library being 1.9.1.
Reverting to using 1.8.1 fixes the problem.
This could be smited by the incantation:
prior to the class ProtoDispatcher declaration. I.e., something like
typedef int SOCKET;
I would prefer not to include the typedef unless it’s really needed as it is a bit presumptuous. But that typedef outside of the ProtoDispatcher scope should be compatible with the in-scope enum if it is needed where the pcap #define isn’t.
I don’t have an Ubuntu 20 handy to try this myself. Let me know if it works (preferably without the typedef) and I will roll it into the Protolib repo.
Sent from my iPhone
On Jul 17, 2020, at 3:15 PM, bharnden notifications@github.com wrote: Yes this appears to be related to Ubuntu 20 and the default libpcap-dev library being 1.9.1.
Reverting to using 1.8.1 fixes the problem.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
That typedef worked for me to build the latest checkout of mgen on Ubuntu20 using the default libpcap-dev version (1.9.1).
Hello,
I am facing a compilation issue with various releases of mgen on at least recent debian & ubuntu platforms:
which raises the following error:
This is due to the following line in pcap/socket.h:
Simply renaming the enum variable solves the issue. Some earlier versions of mgen (such as the one shipped in debian 5.02b) do not present the problem, likely because of a different include pattern in protolib.
Thanks