Bug #68563 [Opn]: Fails to see DB

From: Date: Fri, 30 Dec 2016 15:02:25 +0000
Subject: Bug #68563 [Opn]: Fails to see DB
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206242@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68563&edit=1 ID: 68563 Updated by: cmb@php.net Reported by: root at nk dot ca Summary: Fails to see DB Status: Open Type: Bug Package: Compile Failure Operating System: BSD/OS 4.3.1 PHP Version: 5.6.4RC1 Block user comment: N Private report: N New Comment: It seems that the paths of the DB4 headers default to /usr/local, and ignore the configured value, see <https://github.com/php/php-src/blob/PHP-7.1.0/ext/dba/config.m4#L312-L313>. Previous Comments: ------------------------------------------------------------------------ [2014-12-08 01:54:03] root at nk dot ca Description: ------------ DB not found correctly Test script: --------------- Script started on Sun Dec 7 18:45:41 2014 doctor.nl2k.ab.ca//usr/source/php-5.6.4RC1$ less configphp  ./configure \ --prefix=/usr/contrib \ --localstatedir=/var \ --htmldir=/var/www/docs/php \ --enable-re2c-cgoto \ --with-apxs2=/usr/contrib/bin/apxs \ --with-libxml-dir=/usr/contrib \ --with-openssl=/usr/contrib \ --with-zlib=/usr \ --with-bz2=shared,/usr/contrib \ --enable-bcmath \ --with-ldap=/usr/contrib \ --with-ldap-sasl=/usr/contrib \ --enable-calendar \ --with-curl=/usr/contrib \ --with-db4=shared,/usr/contrib \ --with-pcre-dir=/usr/contrib \ --with-openssl-dir=/usr/contrib \ --with-gd --enable-fpm \ --with-gettext=/usr \ --with-gmp=shared,/usr \ --with-mhash=/usr \ --with-imap-ssl=/usr/source/imap-2007f \ configphp --enable-mbstring \ --with-onig=/usr/contrib \ --with-mcrypt=shared,/usr/contrib \ --with-mysql=/usr/contrib \ --with-mysqli=/usr/contrib/bin/mysql_config \ --with-mysql-sock=/tmp/mysql.sock \ --with-zlib-dir=/usr \ --with-iodbc=shared,/usr/contrib \ --with-unixODBC=shared,/usr/contrib \ --enable-opcache \ --enable-pcntl \ --with-pdo-mysql=/usr/contrib \ --with-pdo-pgsql=/usr/contrib/pgsql/bin \ --with-pgsql=/usr/contrib/pgdql \ --without-mm \ --disable-sockets \ --enable-soap \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --with-xsl=shared,/usr/contrib \ --enable-zip \ --with-pcre-dir=/usr/contrib \ : --with-pear=/usr/contrib \ --with-tsrm-pthreads \ --enable-shared=yes \ --enable-static=no \ --with-readline=/usr \ --with-gnu-ld \ --with-pic (END)doctor.nl2k.ab.ca//usr/source/php-5.6.4RC1$ /bin/sh ./cofnigphp       nfigphp checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking build system type... i386-pc-bsdi4.3.1 checking host system type... i386-pc-bsdi4.3.1 checking target system type... i386-pc-bsdi4.3.1 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... yes checking for gawk... gawk 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: 3.0, min: 204, excluded: 3.0). checking for re2c... re2c checking for re2c version... 0.13.5 (ok) checking whether to enable computed goto gcc extension with re2c... yes checking whether re2c -g works... yes checking whether to force non-PIC code in shared modules... no checking whether /dev/urandom exists... no checking whether /dev/arandom exists... no checking for pthreads_cflags... checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... no checking for Apache 1.x module support... no checking whether to enable Apache charset compatibility option... no checking for Apache 2.0 filter-module support via DSO through APXS... no checking for Apache 2.0 handler-module support via DSO through APXS... yes checking for Apache 1.x (hooks) module support via DSO through APXS... no checking for Apache 1.x (hooks) module support... no checking whether to enable Apache charset compatibility option... no checking for Caudium support... 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 Continuity support... no checking for embedded SAPI library support... no checking for FPM build... yes checking for setenv... yes checking for clearenv... no checking for setproctitle... (cached) no checking for library containing socket... none required checking for library containing inet_addr... none required checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) 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 sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sysexits.h usability... yes checking sysexits.h presence... yes checking for sysexits.h... yes checking for prctl... no checking for clock_gettime... no checking for clock_gettime in -lrt... no checking for clock_get_time... no checking for ptrace... yes checking whether ptrace works... yes checking if gcc supports __sync_bool_compare_and_swap... no checking for TCP_INFO... no checking for SO_LISTENQLEN... no checking for sysconf... yes checking for times... yes checking for kqueue... no checking for port framework... no checking for /dev/poll... no checking for epoll... no checking for poll... yes checking for select... yes checking for apparmor... no checking for Zeus ISAPI support... no checking for LiteSpeed support... no checking for Milter support... no checking for NSAPI support... no checking for phpdbg support... no checking for phpdbg debug build... no checking for PHTTPD support... no checking for Pi3Web support... no checking whether Roxen module is build using ZTS... no checking for Roxen/Pike support... checking for thttpd... no checking for TUX... no checking for webjames... no 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... apache2handler checking for executable SAPI binaries... cli fpm 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... no checking for __dlopen... no checking for dlopen in -ldl... 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... (cached) yes checking for netinet/in.h... (cached) yes checking for alloca.h... no checking for arpa/inet.h... (cached) 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... (cached) yes checking for grp.h... yes checking for ieeefp.h... yes checking for langinfo.h... no checking for limits.h... yes checking for locale.h... yes checking for monetary.h... no checking for netdb.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... (cached) 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... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/statfs.h... no checking for sys/statvfs.h... no 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... yes 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... 4 checking size of long long... 8 checking size of long long int... 8 checking size of long... 4 checking size of int... 4 checking size of intmax_t... 0 checking size of ssize_t... 4 checking size of ptrdiff_t... 4 checking size of short... 2 checking size of int... (cached) 4 checking size of long... (cached) 4 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 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... no 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... no 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... no checking for lchown... no checking for lrand48... yes checking for memcpy... yes checking for memmove... yes checking for mkstemp... yes checking for mmap... yes checking for nl_langinfo... no checking for perror... yes checking for poll... no checking for ptsname... no 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... (cached) 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... no 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... no checking for strptime... no checking for strstr... yes checking for strtok_r... yes checking for symlink... yes checking for tempnam... yes checking for tzset... yes checking for unlockpt... no checking for unsetenv... yes checking for usleep... yes checking for utime... yes checking for vsnprintf... yes checking for vasprintf... no checking for asprintf... no 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... no checking for strlcat... yes checking for strlcpy... yes checking for getopt... yes checking for utime.h... (cached) yes checking whether utime accepts a null argument... yes checking for working alloca.h... no 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 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 size of long... (cached) 4 checking size of int... (cached) 4 checking for int32_t... yes checking for uint32_t... yes checking for sys/types.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for strtoll... yes checking for atoll... no checking for strftime... (cached) yes checking which regex library to use... php checking whether to enable LIBXML support... yes checking libxml2 install dir... /usr/contrib checking for xml2-config path... /usr/contrib/bin/xml2-config checking whether libxml build works... yes checking for OpenSSL support... yes checking for Kerberos support... no checking whether to use system default cipher list instead of hardcoded value... no checking for DSA_get_default_method in -lssl... yes checking for X509_free in -lcrypto... yes checking for pkg-config... /usr/bin/pkg-config checking for OpenSSL version... >= 0.9.6 checking for CRYPTO_free in -lcrypto... yes checking for SSL_CTX_set_ssl_version in -lssl... yes checking for PCRE library to use... bundled checking whether to enable the SQLite3 extension... yes checking bundled sqlite3 library... yes checking for ZLIB support... yes checking if the location of ZLIB install directory is defined... /usr checking for zlib version >= 1.2.0.4... 1.2.8 checking for gzgets in -lz... yes checking whether to enable bc style precision math functions... yes checking for BZip2 support... yes, shared checking for BZ2_bzerror in -lbz2... yes checking whether to enable calendar conversion support... yes checking whether to enable ctype functions... yes checking for cURL support... yes checking for cURL 7.10.5 or greater... libcurl 7.38.0 checking for SSL support in libcurl... yes checking how to run the C preprocessor... cc -E checking for openssl support in libcurl... yes checking openssl/crypto.h usability... yes checking openssl/crypto.h presence... yes checking for openssl/crypto.h... yes checking for gnutls support in libcurl... no checking for curl_easy_perform in -lcurl... yes checking for curl_easy_strerror in -lcurl... yes checking for curl_multi_strerror in -lcurl... yes checking for QDBM support... no checking for GDBM support... no checking for NDBM support... no checking for TCADB support... no checking for DB4 major version... configure: error: Header contains different version You have new mail in /var/mail/doctor doctor.nl2k.ab.ca//usr/source/php-5.6.4RC1$ exit exit Script done on Sun Dec 7 18:50:08 2014 Expected result: ---------------- a Makefile Actual result: -------------- crash this also happens in the recent 5.5.20RC1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68563&edit=1

« previous php.bugs (#206242) next »