php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77748 ./configure fails to make
Submitted: 2019-03-15 16:52 UTC Modified: 2021-08-25 14:43 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: bob dot terrell at acordex dot com Assigned: cmb (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.3.3 OS: macOS 10.14.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bob dot terrell at acordex dot com
New email:
PHP Version: OS:

 

 [2019-03-15 16:52 UTC] bob dot terrell at acordex dot com
Description:
------------
I'm experiencing this with 7.1.27, 7.2.16, and 7.3.3.

Running a simple ./configure followed by make results in a compile failure.
xCode 10.1 dev tools for macOS 10.14 are installed.

It configures fine, but it fails on build.

Test script:
---------------
./configure && make

Expected result:
----------------
It compiles.

Actual result:
--------------
It fails with the following:


/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:364:2: error: use
      of undeclared identifier 'dns_handle_t'
        dns_handle_t handle;
        ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:402:2: error: use
      of undeclared identifier 'handle'
        handle = dns_open(NULL);
        ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:402:11: warning: 
      implicit declaration of function 'dns_open' is invalid in C99
      [-Wimplicit-function-declaration]
        handle = dns_open(NULL);
                 ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:403:6: error: use
      of undeclared identifier 'handle'
        if (handle == NULL) {
            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:416:6: warning: 
      implicit declaration of function 'dns_search' is invalid in C99
      [-Wimplicit-function-declaration]
        i = php_dns_search(handle, hostname, C_IN, type, ans, sizeof(ans));
            ^
ext/standard/php_dns.h:28:12: note: expanded from macro 'php_dns_search'
        ((int)dns_search(res, dname, class, type, answer, anslen, (struc...
              ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:416:21: error: use
      of undeclared identifier 'handle'
        i = php_dns_search(handle, hostname, C_IN, type, ans, sizeof(ans));
                           ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:422:2: warning: 
      implicit declaration of function 'dns_free' is invalid in C99
      [-Wimplicit-function-declaration]
        php_dns_free_handle(handle);
        ^
ext/standard/php_dns.h:30:3: note: expanded from macro 'php_dns_free_handle'
                dns_free(res)
                ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:422:22: error: use
      of undeclared identifier 'handle'
        php_dns_free_handle(handle);
                            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:805:2: error: use
      of undeclared identifier 'dns_handle_t'
        dns_handle_t handle;
        ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:929:4: error: use
      of undeclared identifier 'handle'
                        handle = dns_open(NULL);
                        ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:929:13: warning: 
      implicit declaration of function 'dns_open' is invalid in C99
      [-Wimplicit-function-declaration]
                        handle = dns_open(NULL);
                                 ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:930:8: error: use
      of undeclared identifier 'handle'
                        if (handle == NULL) {
                            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:944:8: warning: 
      implicit declaration of function 'dns_search' is invalid in C99
      [-Wimplicit-function-declaration]
                        n = php_dns_search(handle, hostname, C_IN, type_...
                            ^
ext/standard/php_dns.h:28:12: note: expanded from macro 'php_dns_search'
        ((int)dns_search(res, dname, class, type, answer, anslen, (struc...
              ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:944:23: error: use
      of undeclared identifier 'handle'
                        n = php_dns_search(handle, hostname, C_IN, type_...
                                           ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:947:5: warning: 
      implicit declaration of function 'dns_free' is invalid in C99
      [-Wimplicit-function-declaration]
                                php_dns_free_handle(handle);
                                ^
ext/standard/php_dns.h:30:3: note: expanded from macro 'php_dns_free_handle'
                dns_free(res)
                ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:947:25: error: use
      of undeclared identifier 'handle'
                                php_dns_free_handle(handle);
                                                    ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:982:6: warning: 
      implicit declaration of function 'dns_free' is invalid in C99
      [-Wimplicit-function-declaration]
                                        php_dns_free_handle(handle);
                                        ^
ext/standard/php_dns.h:30:3: note: expanded from macro 'php_dns_free_handle'
                dns_free(res)
                ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:982:26: error: use
      of undeclared identifier 'handle'
                                        php_dns_free_handle(handle);
                                                            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1023:4: warning: 
      implicit declaration of function 'dns_free' is invalid in C99
      [-Wimplicit-function-declaration]
                        php_dns_free_handle(handle);
                        ^
ext/standard/php_dns.h:30:3: note: expanded from macro 'php_dns_free_handle'
                dns_free(res)
                ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1023:24: error: 
      use of undeclared identifier 'handle'
                        php_dns_free_handle(handle);
                                            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1046:2: error: use
      of undeclared identifier 'dns_handle_t'
        dns_handle_t handle;
        ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1068:2: error: use
      of undeclared identifier 'handle'
        handle = dns_open(NULL);
        ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1068:11: warning: 
      implicit declaration of function 'dns_open' is invalid in C99
      [-Wimplicit-function-declaration]
        handle = dns_open(NULL);
                 ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1069:6: error: use
      of undeclared identifier 'handle'
        if (handle == NULL) {
            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1081:6: warning: 
      implicit declaration of function 'dns_search' is invalid in C99
      [-Wimplicit-function-declaration]
        i = php_dns_search(handle, hostname, C_IN, DNS_T_MX, (u_char *)&...
            ^
ext/standard/php_dns.h:28:12: note: expanded from macro 'php_dns_search'
        ((int)dns_search(res, dname, class, type, answer, anslen, (struc...
              ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1081:21: error: 
      use of undeclared identifier 'handle'
        i = php_dns_search(handle, hostname, C_IN, DNS_T_MX, (u_char *)&...
                           ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1093:4: warning: 
      implicit declaration of function 'dns_free' is invalid in C99
      [-Wimplicit-function-declaration]
                        php_dns_free_handle(handle);
                        ^
ext/standard/php_dns.h:30:3: note: expanded from macro 'php_dns_free_handle'
                dns_free(res)
                ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1093:24: error: 
      use of undeclared identifier 'handle'
                        php_dns_free_handle(handle);
                                            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1100:4: warning: 
      implicit declaration of function 'dns_free' is invalid in C99
      [-Wimplicit-function-declaration]
                        php_dns_free_handle(handle);
                        ^
ext/standard/php_dns.h:30:3: note: expanded from macro 'php_dns_free_handle'
                dns_free(res)
                ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1100:24: error: 
      use of undeclared identifier 'handle'
                        php_dns_free_handle(handle);
                                            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1113:4: warning: 
      implicit declaration of function 'dns_free' is invalid in C99
      [-Wimplicit-function-declaration]
                        php_dns_free_handle(handle);
                        ^
ext/standard/php_dns.h:30:3: note: expanded from macro 'php_dns_free_handle'
                dns_free(res)
                ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1113:24: error: 
      use of undeclared identifier 'handle'
                        php_dns_free_handle(handle);
                                            ^
/Users/me/Desktop/dev/php/php-7.2.16/ext/standard/dns.c:1122:2: warning: 
      implicit declaration of function 'dns_free' is invalid in C99
      [-Wimplicit-function-declaration]
        php_dns_free_handle(handle);
        ^
ext/standard/php_dns.h:30:3: note: expanded from macro 'php_dns_free_handle'
                dns_free(res)
                ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
14 warnings and 20 errors generated.
make: *** [ext/standard/dns.lo] Error 1



----

In case it helps, here is what configure returns:

./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 build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking target system type... x86_64-apple-darwin18.2.0
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 we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... 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 how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether ln -s works... yes
checking for system library directory... lib
checking whether to enable runpaths... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for bison... bison -y
checking for bison version... invalid
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 2.3, min: 204, excluded: ).
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking whether to enable computed goto gcc extension with re2c... no
checking whether C compiler accepts -fvisibility=hidden... yes
checking whether cc supports -no-cpp-precomp... yes
checking whether to force non-PIC code in shared modules... no
checking whether /dev/urandom exists... yes
checking whether /dev/arandom exists... no
checking for global register variables support... no
checking whether atof() accepts NAN... no
checking whether atof() accepts INF... no
checking whether HUGE_VAL == INF... yes
checking whether HUGE_VAL + -HUGEVAL == NAN... no
checking for pthreads_cflags... -pthread
checking for pthreads_lib... pthread

Configuring SAPI modules
checking for Apache 2.0 handler-module support via DSO through APXS... no
checking for setproctitle... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking for PS_STRINGS... no
checking for CLI build... yes
checking for embedded SAPI library support... no
checking for FPM build... no
checking for LiteSpeed support... no
checking for phpdbg support... yes
checking for phpdbg web SAPI support... no
checking for phpdbg debug build... no
checking whether termios.h defines TIOCGWINSZ... yes
checking for CGI build... yes
checking for socklen_t in sys/socket.h... yes
checking for sun_len in sys/un.h... yes
checking whether cross-process locking is required by accept()... no
checking for chosen SAPI module... none
checking for executable SAPI binaries...  cli phpdbg cgi

Running system checks
checking for sendmail... /usr/sbin/sendmail
checking whether system uses EBCDIC... no
checking whether byte ordering is bigendian... no
checking whether writing to stdout works... This is the test message -- yes
checking for socket... yes
checking for socketpair... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... yes
checking for yp_get_default_domain... yes
checking for dlopen... yes
checking for sin in -lm... yes
checking for inet_aton... yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for dirent.h... yes
checking for ApplicationServices/ApplicationServices.h... no
checking for sys/param.h... yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... yes
checking for netinet/in.h... yes
checking for alloca.h... yes
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for assert.h... yes
checking for crypt.h... no
checking for dns.h... no
checking for fcntl.h... yes
checking for grp.h... yes
checking for ieeefp.h... no
checking for langinfo.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for monetary.h... yes
checking for netdb.h... yes
checking for poll.h... yes
checking for pwd.h... yes
checking for resolv.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for syslog.h... yes
checking for sysexits.h... yes
checking for sys/ioctl.h... yes
checking for sys/file.h... yes
checking for sys/mman.h... yes
checking for sys/mount.h... yes
checking for sys/poll.h... yes
checking for sys/resource.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/statfs.h... no
checking for sys/statvfs.h... yes
checking for sys/vfs.h... no
checking for sys/sysexits.h... no
checking for sys/varargs.h... no
checking for sys/wait.h... yes
checking for sys/loadavg.h... no
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for unix.h... no
checking for utime.h... yes
checking for sys/utsname.h... yes
checking for sys/ipc.h... yes
checking for dlfcn.h... yes
checking for assert.h... (cached) yes
checking for fopencookie... no
checking for broken getcwd... no
checking for broken libc stdio... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for missing declarations of reentrant functions... done
checking for fclose declaration... ok
checking for tm_gmtoff in struct tm... yes
checking for struct flock... yes
checking for socklen_t... yes
checking size of size_t... 8
checking size of long long... 8
checking size of long long int... 8
checking size of long... 8
checking size of int... 4
checking size of intmax_t... 8
checking size of ssize_t... 8
checking size of ptrdiff_t... 8
checking size of short... 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking for int8... no
checking for int16... no
checking for int32... no
checking for int64... no
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8... no
checking for uint16... no
checking for uint32... no
checking for uint64... no
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for __builtin_expect... yes
checking for __builtin_clz... yes
checking for __builtin_ctzl... yes
checking for __builtin_ctzll... yes
checking for __builtin_smull_overflow... yes
checking for __builtin_smulll_overflow... yes
checking for __builtin_saddl_overflow... yes
checking for __builtin_saddll_overflow... yes
checking for __builtin_ssubl_overflow... yes
checking for __builtin_ssubll_overflow... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for struct sockaddr_storage... yes
checking for field sa_len in struct sockaddr... yes
checking for IPv6 support... yes
checking for vprintf... yes
checking for _doprnt... no
checking for alphasort... yes
checking for asctime_r... yes
checking for chroot... yes
checking for ctime_r... yes
checking for cuserid... no
checking for crypt... yes
checking for flock... yes
checking for ftok... yes
checking for funopen... yes
checking for gai_strerror... yes
checking for gcvt... yes
checking for getloadavg... yes
checking for getlogin... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getservbyname... yes
checking for getservbyport... yes
checking for gethostname... (cached) yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for getpwnam_r... yes
checking for getgrnam_r... yes
checking for getpwuid_r... yes
checking for grantpt... yes
checking for inet_ntoa... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for isascii... yes
checking for link... yes
checking for localtime_r... yes
checking for lockf... yes
checking for lchown... yes
checking for lrand48... yes
checking for memcpy... yes
checking for memmove... yes
checking for mkstemp... yes
checking for mmap... yes
checking for nl_langinfo... yes
checking for perror... yes
checking for poll... yes
checking for ptsname... yes
checking for putenv... yes
checking for realpath... yes
checking for random... yes
checking for rand_r... yes
checking for scandir... yes
checking for setitimer... yes
checking for setlocale... yes
checking for localeconv... yes
checking for setenv... yes
checking for setpgid... yes
checking for setsockopt... yes
checking for setvbuf... yes
checking for shutdown... yes
checking for sin... yes
checking for snprintf... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for statvfs... yes
checking for std_syslog... no
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strnlen... yes
checking for strptime... yes
checking for strstr... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unlockpt... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for vasprintf... yes
checking for asprintf... yes
checking for nanosleep... yes
checking for nanosleep in -lrt... no
checking for __nanosleep in -lrt... no
checking for getaddrinfo... yes
checking for __sync_fetch_and_add... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for explicit_bzero... no
checking for getopt... yes
checking for utime.h... (cached) yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
checking for readdir_r... yes
checking for type of readdir_r... POSIX
checking for in_addr_t... yes
checking for crypt_r... no
checking whether to enable valgrind support... yes
checking for valgrind header... not found

General settings
checking whether to include gcov symbols... no
checking whether to include debugging symbols... no
checking layout of installed files... PHP
checking path to configuration file... DEFAULT
checking where to scan for configuration files... 
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable dmalloc... no
checking whether to enable IPv6 support... yes
checking whether to enable DTrace support... no
checking how big to make fd sets... using system default

Configuring extensions
checking for strings.h... (cached) yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking for strtoll... yes
checking for atoll... yes
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... no
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for PCRE library to use... bundled
checking whether to enable PCRE JIT functionality... yes
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... no
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... no
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for TCADB support... no
checking for LMDB support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DB1 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable DOM support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for ENCHANT support... no
checking whether to enable EXIF (metadata from images) support... no
checking for fileinfo support... yes
checking for strcasestr... yes
checking for utimes... yes
checking for strndup... yes
checking whether to enable input filter support... yes
checking pcre install prefix... no
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... no
checking for GD support... no
checking for the location of libwebp... no
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 2... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for GNU gettext support... no
checking for GNU MP support... no
checking for mhash support... no
checking whether to enable hash support... yes
checking whether byte ordering is bigendian... (cached) no
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking size of long int... 8
checking checking if we're at 64-bit platform... yes
checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... yes
checking if iconv is glibc's... no
checking if using GNU libiconv... 271yes
checking if iconv supports errno... yes
checking if iconv supports //IGNORE... yes
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... no
checking for IMAP Kerberos support... no
checking for IMAP SSL support... no
checking for Firebird support... no
checking whether to enable internationalization support... no
checking whether to enable JavaScript Object Serialization support... yes
checking for ANSI C header files... (cached) yes
checking for LDAP support... no
checking for LDAP Cyrus SASL support... no
checking whether to enable multibyte string support... no
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for external oniguruma... no
checking for MySQLi support... no
checking whether to enable embedded MySQLi support... no
checking for specified location of the MySQL UNIX socket... no
checking for Oracle Database OCI8 support... no
checking for Adabas support... no
checking for SAP DB support... no
checking for Solid support... no
checking for IBM DB2 support... no
checking for ODBCRouter.com support... no
checking for Empress support... no
checking for Empress local access support... no
checking for Birdstep support... no
checking for a custom ODBC support... no
checking for iODBC support... no
checking for Easysoft ODBC-ODBC Bridge support... no
checking for unixODBC support... no
checking for DBMaker support... no
checking for any ODBC driver support... no
checking whether to enable Zend OPcache support... yes
checking whether to enable file based caching... yes
checking whether to enable copying PHP CODE pages into HUGE PAGES... yes
checking for mprotect... yes
checking for unistd.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for sysvipc shared memory support... yes
checking for mmap() using MAP_ANON shared memory support... yes
checking for mmap() using /dev/zero shared memory support... no
checking for mmap() using shm_open() shared memory support... yes
checking for mmap() using regular file shared memory support... yes
checking whether to enable pcntl support... no
checking whether to enable PDO support... yes
checking for PDO_DBLIB support via FreeTDS... no
checking for Firebird support for PDO... no
checking for MySQL support for PDO... no
checking Oracle OCI support for PDO... no
checking for ODBC v3 support for PDO... no
checking for PostgreSQL support for PDO... no
checking for sqlite 3 support for PDO... yes
checking for PDO includes... checking for PDO includes... /Users/me/Desktop/dev/php/php-7.2.16/ext
checking for usleep... (cached) yes
checking for nanosleep... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for fdatasync in -lrt... no
checking for PostgreSQL support... no
checking for phar archive support... yes
checking for phar openssl support... no
checking whether to enable POSIX-like functions... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... no
checking sys/sysmacros.h presence... no
checking for sys/sysmacros.h... no
checking for seteuid... yes
checking for setegid... yes
checking for setsid... yes
checking for getsid... yes
checking for setpgid... (cached) yes
checking for getpgid... yes
checking for ctermid... yes
checking for mkfifo... yes
checking for mknod... yes
checking for setrlimit... yes
checking for getrlimit... yes
checking for getlogin... (cached) yes
checking for getgroups... yes
checking for makedev... no
checking for initgroups... yes
checking for getpwuid_r... (cached) yes
checking for getgrgid_r... yes
checking for working ttyname_r() implementation... yes
checking for utsname.domainname... no
checking for PSPELL support... no
checking for libedit readline replacement... no
checking for readline support... no
checking for recode support... no
checking whether to enable PHP sessions... yes
checking for mm support... no
checking whether pwrite works... yes
checking whether pread works... yes
checking whether to enable shmop support... no
checking whether to enable SimpleXML support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for SNMP support... no
checking OpenSSL dir for SNMP... no
checking whether to enable SOAP support... no
checking whether to enable sockets support... no
checking for sodium support... no
checking whether flush should be called explicitly after a buffered io... yes
checking for standard DES crypt... yes
checking for extended DES crypt... yes
checking for MD5 crypt... no
checking for Blowfish crypt... no
checking for SHA512 crypt... no
checking for SHA256 crypt... no
checking whether the compiler supports __alignof__... yes
checking whether the compiler supports aligned attribute... yes
checking for getcwd... yes
checking for getwd... yes
checking for asinh... yes
checking for acosh... yes
checking for atanh... yes
checking for log1p... yes
checking for hypot... yes
checking for glob... yes
checking for strfmon... yes
checking for nice... yes
checking for fpclass... no
checking for mempcpy... no
checking for strpncpy... no
checking for working POSIX fnmatch... yes
checking for fork... yes
checking if your OS can spawn processes with inherited handles... yes
checking for res_nsearch... no
checking for __res_nsearch... no
checking for res_nsearch in -lresolv... no
checking for __res_nsearch in -lresolv... no
checking for res_nsearch in -lbind... no
checking for __res_nsearch in -lbind... no
checking for res_nsearch in -lsocket... no
checking for __res_nsearch in -lsocket... no
checking for res_ndestroy... no
checking for __res_ndestroy... no
checking for res_ndestroy in -lresolv... no
checking for __res_ndestroy in -lresolv... no
checking for res_ndestroy in -lbind... no
checking for __res_ndestroy in -lbind... no
checking for res_ndestroy in -lsocket... no
checking for __res_ndestroy in -lsocket... no
checking for dns_search... no
checking for __dns_search... no
checking for dns_search in -lresolv... yes
checking for dn_expand... yes
checking for dn_skipname... no
checking for __dn_skipname... yes
checking for res_search... yes
checking whether strptime() declaration fails... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for mblen... yes
checking for mbrlen... yes
checking for mbsinit... yes
checking for mbstate_t... yes
checking atomic.h usability... no
checking atomic.h presence... no
checking for atomic.h... no
checking whether arc4random_buf is declared... yes
checking for Argon2 support... no
checking whether to enable System V IPC support... no
checking whether to enable System V semaphore support... no
checking whether to enable System V shared memory support... no
checking for TIDY support... no
checking whether to enable tokenizer support... yes
checking whether to enable WDDX support... no
checking libexpat dir for WDDX... no
checking whether to enable XML support... yes
checking libexpat install dir... no
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking whether to enable XMLReader support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for XMLRPC-EPI support... no
checking libexpat dir for XMLRPC-EPI... no
checking iconv dir for XMLRPC-EPI... no
checking whether to enable XMLWriter support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for XSL support... no
checking whether to enable zend-test extension... no
checking for zip archive read/writesupport... no
checking pcre install prefix... no
checking libzip... no
checking whether to enable mysqlnd... no
checking whether to disable compressed protocol support in mysqlnd... yes

Configuring PEAR
checking whether to install PEAR... yes

Configuring Zend
checking for bison version... (cached) invalid
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: ).
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for limits.h... (cached) yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for signal.h... (cached) yes
checking for unix.h... (cached) no
checking for stdlib.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... void
checking for uint... yes
checking for ulong... no
checking for int32_t... yes
checking for uint32_t... yes
checking for vprintf... (cached) yes
checking for _doprnt... (cached) no
checking for working memcmp... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for memcpy... (cached) yes
checking for strdup... (cached) yes
checking for getpid... yes
checking for kill... yes
checking for strtod... yes
checking for strtol... yes
checking for finite... yes
checking for fpclass... (cached) no
checking for sigsetjmp... yes
checking whether sprintf is broken... no
checking whether isfinite is declared... yes
checking whether isnan is declared... yes
checking whether isinf is declared... yes
checking whether fp_except is defined... no
checking for usable _FPU_SETCW... no
checking for usable fpsetprec... no
checking for usable _controlfp... no
checking for usable _controlfp_s... no
checking whether FPU control word can be manipulated by inline assembler... yes
checking whether double cast to long preserves least significant bits... no
checking for dlfcn.h... (cached) yes
checking whether dlsym() requires a leading underscore in symbol names... no
checking whether to enable thread-safety... no
checking whether to enable inline optimization for GCC... yes
checking whether to enable Zend debugging... no
checking for inline... inline
checking target system is Darwin... yes
checking for MM alignment and log values... done
checking for memory allocation using mmap(MAP_ANON)... yes
checking for memory allocation using mmap("/dev/zero")... no
checking for mremap... no
checking for sigaction... yes
checking whether to enable zend signal handling... yes

Configuring TSRM
checking for stdarg.h... (cached) yes
checking for sigprocmask... yes
checking how many arguments gethostbyname_r() takes... cannot find function declaration in netdb.h

Configuring libtool
checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognize dependent libraries... pass_all
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin18.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes

creating libtool
appending configuration tag "CXX" to libtool

Generating files
configure: creating ./config.status
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-03-16 22:18 UTC] petk@php.net
Maybe some headers are missing. These undeclared identifiers are defined in the system header files.

Try also installing this:
  sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

and then:
  xcode-select --install

also run Software updates to have latest and greatest versions installed.

Then it should go through ok.

Solution found here:
https://donatstudios.com/MojaveMissingHeaderFiles

Please report back if this helps.
 [2019-03-17 17:40 UTC] petk@php.net
-Status: Open +Status: Feedback
 [2019-03-18 15:03 UTC] bob dot terrell at acordex dot com
I followed your instructions. The package installer took some time to run, but the xcode-select informed me the tools were already installed. (I had already installed them, but followed your suggestion anyway.) Software Update likewise decleared nothing was able to be updated. Unfortunately, that doesn't seem to have changed anything in the build process either.
 [2019-03-19 23:26 UTC] petk@php.net
-Status: Feedback +Status: Open
 [2021-08-11 13:45 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-11 13:45 UTC] cmb@php.net
> checking for dns.h... no

That might be the problem.  Anyhow, is this still an issue with
any of the actively supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-08-22 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2021-08-25 14:43 UTC] bob dot terrell at acordex dot com
-Status: No Feedback +Status: Closed
 [2021-08-25 14:43 UTC] bob dot terrell at acordex dot com
Well, it's been two years. I don't remember how I resolved this, whether I simply ended up using the built-in version of PHP or resolved it using a Homebrew download. I'm no longer on macOS 10.14. I'm using 11.5 now, and now a fresh install complains that pkg-config is missing. I should be able to fix that, but I'm not going to bother.

It used to be really easy to get PHP set up and running on a Mac, 10-15 years ago. Unfortunately, Apple has gradually made it more difficult over time as they remove pieces of the underlying *nix environment that used to be standard, and they're going to eventually remove PHP as a built-in thing in the OS.

When that happens, Homebrew will be the last refuge for Mac PHP developers, so, I guess instead of working on this issues specifically, do your best to make things as easy as possible for them.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC