Hide Forgot
Created attachment 1191320 [details] configure.ac source for autoconf Description of problem: This might be a case of "if it hurts, don't do it", but... adding any of the following to CFLAGS causes breakage in php.h -D_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200112L -D_POSIX_C_SOURCE=200809L Version-Release number of selected component (if applicable): php-devel-5.6.24-2.fc24.x86_64 autoconf-2.69-22.fc24.noarch gcc-6.1.1-3.fc24.x86_64 How reproducible: 100% Steps to Reproduce: 1. (using the attached configure.ac) 2. autoconf 3. ./configure.ac Actual results: checking for unistd.h... yes checking php.h usability... no checking php.h presence... yes configure: WARNING: php.h: present but cannot be compiled configure: WARNING: php.h: check for missing prerequisite headers? configure: WARNING: php.h: see the Autoconf documentation configure: WARNING: php.h: section "Present But Cannot Be Compiled" configure: WARNING: php.h: proceeding with the compiler's result configure: WARNING: ## --------------------------------- ## configure: WARNING: ## Report this to BUG-REPORT-ADDRESS ## configure: WARNING: ## --------------------------------- ## checking for php.h... no Expected results: checking for php.h... yes Additional info:
I should have mentions that using -D_POSIX_C_SOURCE appears to make the use of "uint" and "ulong" illegal, resulting in compile errors that can be seen in the resulting config.log. e.g. In file included from /usr/include/php/Zend/zend.h:252:0, from /usr/include/php/main/php.h:35, from conftest.c:52: /usr/include/php/Zend/zend_alloc.h:48:2: error: unknown type name 'uint' uint lineno; ^~~~ It may be a bug in -D_POSIX_C_SOURCE that the use of uint is made into an error, instead of a warning. I think it is a bug for any modern software to be using "uint" and "ulong" instead of types defined in stdint.h.
This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.