Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Dec 2017 04:42:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 224072] ftp/curl would not build if archivers/brotli is installed
Message-ID:  <bug-224072-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224072

            Bug ID: 224072
           Summary: ftp/curl would not build if archivers/brotli is
                    installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: mi@ALDAN.algebra.com
                CC: osa@FreeBSD.org, sunpoet@FreeBSD.org
                CC: sunpoet@FreeBSD.org

The curl port does not mention brotli, but the configure finds and enables =
it:

configure:21151: checking for BrotliDecoderDecompress in -lbrotlidec
configure:21173: cc -o conftest -isystem /usr/include -O2 -pipe -march=3Dco=
re2
-fs
tack-protector -isystem /opt/include -fno-strict-aliasing -Qunused-arguments
-is
ystem /usr/include -isystem /usr/include -isystem /opt/include   -L/usr/lib=
=20
-L/
usr/lib -L/usr/lib -L/usr/lib -fstack-protector   conftest.c -lbrotlidec   =
-lz
-
lkrb5 -lgssapi -lgssapi_krb5 -lcrypto -lkrb5 -lgssapi -lgssapi_krb5 -L/opt/=
lib
>
&5
configure:21173: $? =3D 0
configure:21182: result: yes
configure:21196: checking brotli/decode.h usability
configure:21196: cc -c -isystem /usr/include -O2 -pipe -march=3Dcore2
-fstack-prot
ector -isystem /opt/include -fno-strict-aliasing -Qunused-arguments -isystem
/us
r/include -isystem /usr/include -isystem /opt/include   conftest.c >&5
configure:21196: $? =3D 0
configure:21196: result: yes
configure:21196: checking brotli/decode.h presence
configure:21196: cpp -isystem /usr/include -isystem /usr/include -isystem
/opt/i
nclude   conftest.c
configure:21196: $? =3D 0
configure:21196: result: yes
configure:21196: checking for brotli/decode.h
configure:21196: result: yes

Then, when curl is compiled, things break:

libtool: compile:  cc -DHAVE_CONFIG_H -I../include -I../lib -I../lib
-DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -isystem /usr/include -isystem
/usr/include -isystem /opt/include -I/usr/include -I/usr/include/openssl
-I/opt/include -I/opt/include -I/opt/include -I/opt/include -fvisibility=3D=
hidden
-isystem /usr/include -O2 -pipe -march=3Dcore2 -fstack-protector -isystem
/opt/include -fno-strict-aliasing -Qunused-arguments -MT
libcurl_la-content_encoding.lo -MD -MP -MF
.deps/libcurl_la-content_encoding.Tpo -c content_encoding.c  -fPIC -DPIC -o
.libs/libcurl_la-content_encoding.o
content_encoding.c:549:8: error: use of undeclared identifier
      'BROTLI_DECODER_ERROR_COMPOUND_DICTIONARY'; did you mean
      'BROTLI_DECODER_ERROR_FORMAT_DICTIONARY'?
  case BROTLI_DECODER_ERROR_COMPOUND_DICTIONARY:
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       BROTLI_DECODER_ERROR_FORMAT_DICTIONARY
/opt/include/brotli/decode.h:114:35: note:=20
      'BROTLI_DECODER_ERROR_FORMAT_DICTIONARY' declared here
  BROTLI_DECODER_ERROR_CODES_LIST(BROTLI_ERROR_CODE_ENUM_ITEM_, BROTLI_COMM=
A_)
                                  ^
/opt/include/brotli/decode.h:82:3: note: expanded from macro
      'BROTLI_DECODER_ERROR_CODES_LIST'
...

I guess, either brotli needs upgrading, or curl needs patching... In either
case, brotli should become another option for curl.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224072-13>