Skip to content

Error while compiling on macOS #1482

Open
@tgalopin

Description

@tgalopin

Hi!

Following @jmikola's feedback on #1463 (thanks for it!) I tried to compile the extension manually. I stumble a problem I'm not able to find online:

$ ./configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-apple-darwin22.2.0
checking host system type... x86_64-apple-darwin22.2.0
checking target system type... x86_64-apple-darwin22.2.0
checking for PHP prefix... /usr/local/Cellar/[email protected]/5.6.40_9
checking for PHP includes... -I/usr/local/Cellar/[email protected]/5.6.40_9/include/php -I/usr/local/Cellar/[email protected]/5.6.40_9/include/php/main -I/usr/local/Cellar/[email protected]/5.6.40_9/include/php/TSRM -I/usr/local/Cellar/[email protected]/5.6.40_9/include/php/Zend -I/usr/local/Cellar/[email protected]/5.6.40_9/include/php/ext -I/usr/local/Cellar/[email protected]/5.6.40_9/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/[email protected]/5.6.40_9/pecl/20131226
checking for PHP installed headers prefix... /usr/local/Cellar/[email protected]/5.6.40_9/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable MongoDB support... yes, shared
./configure: line 5242: syntax error near unexpected token `-Wmissing-format-attribute,'
./configure: line 5242: `        AX_CHECK_COMPILE_FLAG(-Wmissing-format-attribute,       _MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS -Wmissing-format-attribute"     ,, -Werror)'

I'm not sure whether this may be due to master not being compilable right now or if it's an actual issue. Any idea?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions