Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding missing files from recent pcre2 library #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

thierryba
Copy link
Contributor

Proposed changes

I tried to build nginx on windows with msvc. Everything went relatively well except it failed to link because of a missing symbol.
That symbol is defined in a missing file from the list of pcre2 sources.

@arut
Copy link
Contributor

arut commented Oct 10, 2024

Thanks for reporting this. This file was added recently. However we want to support old pcre2 versions as well. And there's another variable which should be used for files like this: ngx_pcre_test. Please try using that variable.

@thierryba
Copy link
Contributor Author

@arut thanks for pointing this out. I fixed the PR to use the right variable. I tested locally and it just works.

@thierryba thierryba force-pushed the msvc_pcre_build_fix branch from 6a854dc to f7f0c66 Compare October 10, 2024 12:51
Copy link
Contributor

@pluknet pluknet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch looks good.

The commit message needs to be adjusted, it lacks a proper prefix and a trailing dot.
Also, it doesn't mention the specific PCRE library version the change aims to fix building with, nor that it is specific to MSVC.

Something like this should work:

Configure: MSVC compatibility with PCRE2 10.43.

Please force-push with the updated commit log, then I will approve&merge.

@thierryba thierryba force-pushed the msvc_pcre_build_fix branch from f7f0c66 to a1ffcb1 Compare October 15, 2024 13:58
@thierryba
Copy link
Contributor Author

@pluknet thanks. Force-pushed.

@pluknet
Copy link
Contributor

pluknet commented Oct 15, 2024

pcre2_convert.c was added in PCRE2 10.43, not 10.44, so please record exactly this version in the commit log.
This may be useful later for archaeologic purposes.

@thierryba thierryba force-pushed the msvc_pcre_build_fix branch from a1ffcb1 to 04d7528 Compare October 15, 2024 14:04
@thierryba
Copy link
Contributor Author

@pluknet done.

@pluknet pluknet merged commit b394d44 into nginx:master Oct 15, 2024
1 check passed
@thierryba thierryba deleted the msvc_pcre_build_fix branch October 15, 2024 14:52
@Maryna-f5 Maryna-f5 added this to the nginx-1.27.3 milestone Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants