slirp/cksum.cc: In function 'int cksum(mbuf*, int)':
slirp/cksum.cc:83:12: error: 'uintptr_t' was not declared in this scope
if ((1 & (uintptr_t)w) && (mlen > 0)) {
^~~~~~~~~
slirp/cksum.cc:83:12: note: suggested alternative: 'intptr_t'
if ((1 & (uintptr_t)w) && (mlen > 0)) {
^~~~~~~~~
intptr_t
slirp/cksum.cc:83:22: error: expected ')' before 'w'
if ((1 & (uintptr_t)w) && (mlen > 0)) {
^
slirp/cksum.cc:95:2: error: expected ')' before 'while'
while ((mlen -= 32) >= 0) {
^~~~~
make[1]: *** [Makefile:116: slirp/cksum.lo] Error 1
https://paste.pound-python.org/show/SjlkYypzKhpKvKRY3T2W/
I can confirm this.
I use GCC 7.1.0.
This fix worked for me:
sed -i iodev/network/slirp/cksum.cc -e 's@uintptr_t@int)(uint8_t *@'
but I don't know if it results in the correct runtime behavior.
Same issue on Ubuntu 17.10. Above fix results in compiler error about truncating a value.
Happens on Ubuntu Bionic 18.04LTS.
iodev/network/slirp/slirp.h line 48 needs to add
|| (__linux__):#if defined(__OpenBSD__) || (__linux__)It's lust looking for that line:
#include <stdint.h>Last edit: noa body 2018-07-30
The patch works for me on Mint 19. Didn't compile otherwise. Is there a way to get this into the repository?
Same here with gcc-9.1.1 on a Fedora 30 system:
The fix mentioned above indeed works:
Fixed in SVN now.