View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001876 | Xdebug | Installation | public | 2020-11-02 10:53 | 2021-03-17 08:37 |
| Reporter | dlr | Assigned To | |||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Product Version | 2.9.8 | ||||
| Summary | 0001876: ZEND_LONG_FMT error while installing xdebug on macos | ||||
| Description | When trying to install xdebug for php 7.4 on my mac : pecl install xdebug I get this error during make: cc -I. -I/private/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-dlrJPgTEe/xdebug-2.9.8/include -I/private/tmp/pear/temp/pear-build-dlrJPgTEe/xdebug-2.9.8/main -I/private/tmp/pear/temp/xdebug -I/usr/local/Cellar/php/7.4.11/include/php -I/usr/local/Cellar/php/7.4.11/include/php/main -I/usr/local/Cellar/php/7.4.11/include/php/TSRM -I/usr/local/Cellar/php/7.4.11/include/php/Zend -I/usr/local/Cellar/php/7.4.11/include/php/ext -I/usr/local/Cellar/php/7.4.11/include/php/ext/date/lib -I/private/tmp/pear/temp/xdebug/src -I/private/tmp/pear/temp/pear-build-dlrJPgTEe/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/xdebug/src/base/base.c -fno-common -DPIC -o src/base/.libs/base.o/private/tmp/pear/temp/xdebug/src/base/base.c:325:83: error: expected ')' define ZEND_LONG_FMT "%" PRId64 | ||||
| Additional Information | PHP 7.4.11 (cli) (built: Oct 1 2020 23:30:54) ( NTS ) | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.4.0-7.4.4 | ||||
|
|
I can't reproduce this, and my CI that I run on OSX also does not see this problem. Please add the full output (as a file, don't paste it) of the following commands:
|
|
|
Hello derick, Let me know if you need more informations/test/outputs. |
|
|
That's only the output from "make", not all the commands, which is what I asked for. |
|
|
Hello derick, Regards |
|
|
In the /tmp/xdebug-2.9.8 directory, can you run the following:
And then attach the output of /tmp/output.c.txt ? |
|
|
Hello derick, Regards |
|
|
FWIW, there is an Xdebug ticket for this too: https://bugs.xdebug.org/view.php?id=1876, but so far, I am puzzled on why this happens. The ZEND_LONG_FMT macro uses the PRId64 macro which your OS should define, through the In my case (on Linux) it is in
I can see from a debugging file that you have provided that it includes the file However, somebody else has stated that the Could In any case, I don't think this is a bug in either Xdebug (or PHP), but rather a broken header somewhere on OSX. |
|
|
Yes, thats make it ! |
|
|
That's alright. Let me know how you solved it please though? So that others that ran into this can refer back to your solution too. |
|
|
Just closing this out as there was no bug in Xdebug. |