Repository navigation
mod_http3: Fix the static build of the QUIC transport sources - #1068
Open
arturobernalg wants to merge 1 commit into
Open
arturobernalg wants to merge 1 commit into
arturobernalg wants to merge 1 commit into
Conversation
The QUIC transport sources under quic/ and quic/detail/ were only reachable through %.slo pattern rules, so a static build (--enable-http3=static), which needs .lo objects, failed with "No rule to make target 'h3q_tls.lo'". Use vpath so the stock .c.lo and .c.slo rules find them for both builds, and add the C99 flags to LT_COMPILE as well as SH_COMPILE so static objects are compiled the same way as shared ones. PR: 70368 Reported by: Pierre Brochard
Contributor
|
Oops I have forgotten to commit a bunch of files for the --with-http3-quic=openssl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The QUIC transport sources under
quic/andquic/detail/were only reachable through%.slopattern rules. A static build (--enable-http3=static) needs.loobjects, so it stops with:This uses
vpathso the stock.c.loand.c.slorules find those sources in both builds, and adds the C99 flags toLT_COMPILEas well asSH_COMPILE, so static objects are compiled the same way as shared ones (until now none of the static compiles carried-std=c99).Tested from clean builds with nghttp3 1.18, ngtcp2 1.25 and OpenSSL 3.6. Static: fails on trunk; with this change all 18 sources build with
-std=c99and httpd links with mod_http3 compiled in. Shared: builds before and after, all 18 sources with-std=c99. An out-of-tree static build works as well.Bugzilla: https://bz.apache.org/bugzilla/show_bug.cgi?id=70368 (reported by Pierre Brochard). The patch attached there switches the rules to
%.lo, which fixes the static build but breaks the default shared one, hencevpath.Not addressed here: the
mod_http3CI job builds the module shared only, which is why the static failure went unnoticed; a--enable-http3=staticentry would cover it. Separately, with--with-http3-quic=openssl,config2.m4listsh3q_ossl*.loobjects whose sources are not in the tree.@jfclere this is your Makefile, would you take a look?