Build error on FreeBSD at 1.31.1
Brought to you by:
sobukus
I have build error on FreeBSD 13.1R with " ./configure --with-network=internal"
cc: warning: optimization flag '-funroll-all-loops' is not supported [-Wignored-optimization-argument]
src/streamdump.c:30:2: error: "NETWORK only with NET123 from now on!"
#error "NETWORK only with NET123 from now on!"
^
src/streamdump.c:114:41: error: no member named 'network_backend' in 'struct parameter'
int autochoose = !strcmp("auto", param.network_backend);
~~~~~ ^
src/streamdump.c:137:34: error: no member named 'network_backend' in 'struct parameter'
|| !strcmp("internal", param.network_backend) )
~~~~~ ^
src/streamdump.c:172:9: error: no member named 'nh' in 'struct stream'
if(sd->nh)
~~ ^
src/streamdump.c:173:23: error: no member named 'nh' in 'struct stream'
ret = (ssize_t) sd->nh->read(sd->nh, buf, count);
~~ ^
src/streamdump.c:173:36: error: no member named 'nh' in 'struct stream'
ret = (ssize_t) sd->nh->read(sd->nh, buf, count);
~~ ^
src/streamdump.c:551:8: error: no member named 'nh' in 'struct stream'
sd->nh = net123_open(url, client_head, &sd->htd);
~~ ^
src/streamdump.c:552:12: error: no member named 'nh' in 'struct stream'
if(!sd->nh)
~~ ^
8 errors generated.
*** Error code 1
no option is fine. sorry.
Thanks for reporting. This is indeed a bug in the configure logic. It committed the fix with revision 5205:
Of course, on FreeBSD, using the default network, which is a combination of internal for HTTP and calling out to wget/curl for HTTPS should fine. It was suggested to me to also add calls to the
ftp
tool found on some BSDs, but I'd need someone to test that properly.