Skip to content
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

Add AC_PROG_CPP to configure.ac #1481

Merged
merged 2 commits into from
Mar 8, 2021

Conversation

alexandre-janniaux
Copy link
Contributor

The C preprocessor is not correctly detected in some cases, leading to failures in type detection for la_TYPE_UID_T, which triggers failure in all subsequents tests as uid_t is redefined.

Calling AC_PROG_CPP macro ensure that the preprocessor is correctly detected or at least called as $(CC) -E whenever the environment needs it and fix those failures.

This is needed to continue to build libarchive in videolan/vlc.

Otherwise, the preprocessor is not detected and it leads to failure with
empty $CPP variable being used on la_TYPE_UID_T, leading to a cascade of
detection errors and redefinition of some types.
vlc-mirrorer pushed a commit to videolan/vlc that referenced this pull request Jan 13, 2021
The preprocessor is not detected and it leads to failure with empty
$CPP variable being used on la_TYPE_UID_T, leading to a cascade of
detection errors and redefinition of some types.

PR sent upstream as libarchive/libarchive#1481.
@alexandre-janniaux
Copy link
Contributor Author

Note that the breakage on CPP detection probably comes from autoconf update (hurray!) adding a more conformant behaviour.

vlc-mirrorer pushed a commit to videolan/vlc-3.0 that referenced this pull request Jan 30, 2021
The preprocessor is not detected and it leads to failure with empty
$CPP variable being used on la_TYPE_UID_T, leading to a cascade of
detection errors and redefinition of some types.

PR sent upstream as libarchive/libarchive#1481.

Cherry-picked from 17652505b49e98721a6351102c8fd7b026bc61dc.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
@mmatuska mmatuska merged commit bc2e773 into libarchive:master Mar 8, 2021
chrisroberts added a commit to chrisroberts/vagrant-installers that referenced this pull request Mar 30, 2021
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.

2 participants