Menu

#348 Build error on FreeBSD at 1.31.1

1.30.x
closed-fixed
nobody
None
5
2023-01-14
2022-12-19
Hiroki Mori
No

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

Discussion

  • Hiroki Mori

    Hiroki Mori - 2022-12-19

    no option is fine. sorry.

     
  • Thomas Orgis

    Thomas Orgis - 2022-12-19

    Thanks for reporting. This is indeed a bug in the configure logic. It committed the fix with revision 5205:

    --- configure.ac    (revisión: 5204)
    +++ configure.ac    (copia de trabajo)
    @@ -2639,7 +2639,7 @@
     fi
    
     # new net123
    -if test x$network_type != xinternal -a x$network_type != xdisabled; then
    +if test x$network_type != xdisabled; then
       AC_DEFINE([NET123], [1], [ Define to for new net123 network stack. ])
     fi
     if test x$network_type = xexec -a x$have_fork != xyes; then
    

    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.

     
  • Thomas Orgis

    Thomas Orgis - 2023-01-14
    • status: open --> closed-fixed
     

Log in to post a comment.