[Bug 269253] devel/cmake-core: undefined symbol: nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 31 15:36:42 GMT 2023


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269253

Osamu Matsuda <omatsuda000 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |omatsuda000 at gmail.com

--- Comment #1 from Osamu Matsuda <omatsuda000 at gmail.com> ---
I had the same issue with my 13.1-RELEASE-p3 boxes.
During the bootstrap phase, cmake-core makes lib/libcmcurl.a with its own
nghttp2 in /usr/ports/devel/cmake-core/work/cmake-3.25.1/Utilities.  Its
version is 1.4.0.  But when libnghttp2-1.51.0 is installed through
www/libnghttp2, cmake-core try to use its header files in the actual building
phase.
nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation is defined in
/usr/local/include/nghttp2/nghttp2.h but not included in libcmcurl.a.  This
imcompatibility causes the said error.

A work around is to tell cmake-core to use libnghttp2 installed by ports
instead of its own by changing 
  --no-system-nghttp2
of CONFIGURE_ARGS in /usr/ports/devel/cmake-core/Makefile to
  --system-nghttp2

or by applying the following patch to /usr/ports/devel/cmake-core/Makefile 

*** Makefile.orig       Sat Dec 24 07:42:16 2022
--- Makefile    Wed Jan 25 11:54:05 2023
***************
*** 34,40 ****
                --system-librhash \
                --system-libuv \
                --no-system-curl \
!               --no-system-nghttp2 \
                --parallel=${MAKE_JOBS_NUMBER} \
                --init="${WRKSRC}/InitialCache.cmake"

--- 34,40 ----
                --system-librhash \
                --system-libuv \
                --no-system-curl \
!               --system-nghttp2 \
                --parallel=${MAKE_JOBS_NUMBER} \
                --init="${WRKSRC}/InitialCache.cmake"

Strangely, this confusion does not always happen.  Among almost simiar 3 hosts
of my possesion, two show this error, whereas the remaining one doesn't.  I
couldn't find why.

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


More information about the kde-freebsd mailing list