Open soxrok2212 opened 11 months ago
I did get this to work, though it was a bit convoluted. In the end, my build command was:
CC=mips64-linux-gnuabi64-gcc ./configure --host=mips64-linux-gnuabi64 --with-pcap-includes=/path/to/compiled/libpcap --with-libnet-includes=/path/to/compiled/libnet/include --disable-gtk --disable-admin --with-ncurses=/path/to/compiled/ncurses
Some caveats:
include
directory when built from source, so the --with-pcap-includes
points to the libpcap root directory. src/.libs/
, the contents of that directory should be copied into the libnet root directoryconfigure
, I changed the have_libnet=no
to have_libnet=yes
line below checking if libnet is at least version 1.1.2
, my exact line number may be off as I put some extra debug prints but for me, its around line 5482
.CFLAGS=-static
seemed to be ignored; I had to add it to the Makefile
in src
after configure completedAnd then, it successfully built a statically linked binary that worked. So if there are any authors still working on this lovely project, there's a little bit of work needed to make cross compiling work effectively. I'm not very familiar with autoconf, else I'd make a PR of my own. Perhaps I'll try when I get some more time.
Good work @soxrok2212
Hi!
I'm trying make a statically linked mips64 binary. I've built libpcap and libnet with mips64-linux-gnuabi64- cross compiler just fine and specified the paths, as well as added the
-static
flag. 2 problems arise.If I don't specify the includes path, the pcap version check fails:
If I specify it the includes, it seems to fail during testing? or something with Berkeley Packet Filters, understandable since its being building on an arm64 system.
Any ideas?