From: [EMAIL PROTECTED] Operating system: Solaris 8 PHP version: 4.2.1 PHP Bug Type: Compile Failure Bug description: configure error "grep: can't open conftest.out"
Configure fails to find some header files. Configure reports that grep can't open conftest.out, but then says the headers are there. Then make fails on including the files... 4.2.0 compiles fine. # ./configure --with-mysql=/usr/local/mysql --enable-track-vars --with-gd=/usr/local --with-zlib=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-bcmath --enable-trans-sid --with-xpm-dir=/usr/X11R6 --with-apxs=/usr/local/apache/bin/apxs creating cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking host system type... sparc-sun-solaris2.8 checking for a BSD compatible install... ./install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets ${MAKE}... yes checking whether to enable maintainer-specific portions of Makefiles... no checking how to run the C preprocessor... grep: can't open conftest.out cc -E checking for AIX... no checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for style of include used by make... GNU checking dependency style of gcc... none checking whether gcc and cc understand -c and -o together... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... cc -E checking whether compiler supports -R... yes checking for ranlib... ranlib checking whether ln -s works... yes checking for gawk... (cached) nawk checking for bison... bison -y checking bison version... 1.28 (ok) checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for working const... yes checking for pthreads_cflags... -pthreads checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... yes checking for mod_charset compatibility option... no checking for Apache 2.0 module support via DSO through APXS... no checking for Caudium support... no checking for fhttpd module support... no checking for CLI build... no checking for FastCGI support... no checking for Zeus ISAPI support... no checking for NSAPI support... no checking for PHTTPD support... no checking for Pi3Web Support... no checking for Roxen/Pike support... no checking for Servlet support... no checking for thttpd... no checking for TUX... no checking for webjames... no checking for chosen SAPI module... apache Running system checks checking for missing declarations of reentrant functions... done checking for sendmail... /usr/lib/sendmail checking whether system uses EBCDIC... no checking for socket in -lsocket... yes checking for yp_get_default_domain... no checking for gethostname in -lnsl... yes checking for dlopen in -ldl... yes checking for sin in -lm... yes checking for inet_aton in -lresolv... yes checking for res_search in -lsocket... yes checking for dn_skipname in -lresolv... yes checking for __dn_skipname in -lresolv... yes checking for ANSI C header files... grep: can't open conftest.out no checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for fclose declaration... ok checking for ApplicationServices/ApplicationServices.h... grep: can't open conftest.out yes checking for alloca.h... grep: can't open conftest.out yes checking for arpa/inet.h... grep: can't open conftest.out yes checking for arpa/nameser.h... grep: can't open conftest.out yes checking for crypt.h... grep: can't open conftest.out yes checking for fcntl.h... grep: can't open conftest.out yes checking for grp.h... grep: can't open conftest.out yes checking for ieeefp.h... grep: can't open conftest.out yes checking for langinfo.h... grep: can't open conftest.out yes checking for limits.h... grep: can't open conftest.out yes checking for locale.h... grep: can't open conftest.out yes checking for netinet/in.h... grep: can't open conftest.out yes checking for pwd.h... grep: can't open conftest.out yes checking for resolv.h... grep: can't open conftest.out yes checking for signal.h... grep: can't open conftest.out yes checking for stdarg.h... grep: can't open conftest.out yes checking for stdlib.h... grep: can't open conftest.out yes checking for string.h... grep: can't open conftest.out yes checking for syslog.h... grep: can't open conftest.out yes checking for sysexits.h... grep: can't open conftest.out yes checking for sys/file.h... grep: can't open conftest.out yes checking for sys/mman.h... grep: can't open conftest.out yes checking for sys/mount.h... grep: can't open conftest.out yes checking for sys/resource.h... grep: can't open conftest.out yes checking for sys/select.h... grep: can't open conftest.out yes checking for sys/socket.h... grep: can't open conftest.out yes checking for sys/statfs.h... grep: can't open conftest.out yes checking for sys/statvfs.h... grep: can't open conftest.out yes checking for sys/vfs.h... grep: can't open conftest.out yes checking for sys/sysexits.h... grep: can't open conftest.out yes checking for sys/time.h... grep: can't open conftest.out yes checking for sys/types.h... grep: can't open conftest.out yes checking for sys/varargs.h... grep: can't open conftest.out yes checking for sys/wait.h... grep: can't open conftest.out yes checking for unistd.h... grep: can't open conftest.out yes checking for unix.h... grep: can't open conftest.out yes checking for utime.h... grep: can't open conftest.out yes checking whether struct tm is in sys/time.h or time.h... time.h checking for tm_zone in struct tm... no checking for tzname... yes checking for tm_gmtoff in struct tm... no checking for struct flock... yes checking for socklen_t... yes checking size of long... 4 checking size of int... 4 checking for st_blksize in struct stat... yes checking for st_blocks in struct stat... yes checking for st_rdev in struct stat... yes checking for size_t... no checking for uid_t in sys/types.h... no checking for struct sockaddr_storage... yes checking for IPv6 support... yes checking for vprintf... yes checking for asctime_r... yes checking for chroot... yes checking for ctime_r... yes checking for cuserid... yes checking for crypt... yes checking for flock... no checking for gai_strerror... yes checking for gcvt... yes checking for getlogin... yes checking for gethostbyaddr... yes checking for getprotobyname... yes checking for getprotobynumber... yes checking for getservbyname... yes checking for getservbyport... yes checking for getrusage... yes checking for gettimeofday... yes checking for gmtime_r... yes checking for inet_aton... yes checking for isascii... yes checking for link... yes checking for localtime_r... yes checking for lockf... 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 putenv... yes checking for realpath... yes checking for random... yes checking for rand_r... yes checking for regcomp... yes checking for res_search... yes checking for setitimer... yes checking for setlocale... yes checking for localeconv... 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 strstr... yes checking for strtok_r... yes checking for symlink... yes checking for tempnam... yes checking for tzset... yes checking for unsetenv... no checking for usleep... yes checking for utime... yes checking for vsnprintf... yes checking for getaddrinfo... yes checking for strlcat... yes checking for strlcpy... yes checking for getopt... yes checking whether utime accepts a null argument... yes checking for working alloca.h... (cached) yes checking for alloca... yes checking whether sprintf is broken... no 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 whether to include debugging symbols... no checking layout of installed files... yes checking path to configuration file... yes checking whether to install PEAR, and where... yes checking whether to enable safe mode by default... no checking for safe mode exec dir... /usr/local/php/bin checking for OpenSSL support... no checking whether to enable PHP's own SIGCHLD handler... no checking whether to enable magic quotes by default... no checking whether to enable runpaths... yes checking whether to explicitly link against libgcc... no checking whether to enable short tags by default... yes checking whether to enable dmalloc... no checking for crypt in -lcrypt... yes Configuring extensions checking if the location of ZLIB install directory is defined... no checking for ZLIB support... yes checking for gzgets in -lz... yes checking for fopencookie... no checking for ASPELL support... 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 for CCVS support... no checking for cpdflib support... no checking for CRACKlib support... no checking whether to enable ctype functions... yes checking for CURL support... no checking for CyberCash support... no checking for cybermut support... no checking for cyrus imap support... no checking for xDBM support... no checking whether to enable DBA... no checking for GDBM support... no checking for NDBM support... no checking for Berkeley DB2 support... no checking for Berkeley DB3 support... no checking for DBM support... no checking for CDB support... no checking whether to enable DBA interface... no checking whether to enable dbase support... no checking for dbplus support... no checking whether to enable dbx support... no checking whether to enable direct I/O support... no checking for DOM support... no checking for DOM XSLT support... no checking for DOM EXSLT support... no checking whether to enable EXIF support... no checking for FrontBase SQL92 (fbsql) support... no checking for FDF support... no checking whether to enable the bundled filePro support... no checking for FriBidi support... no checking whether to enable FTP support... no checking for GD support... yes checking whether to enable truetype string function in GD... no checking for the location of libjpeg... yes checking for jpeg_read_header in -ljpeg... yes checking for the location of libpng... yes checking for png_write_image in -lpng... yes checking for the location of libXpm... yes checking for XpmFreeXpmImage in -lXpm... yes checking for freetype(2)... no If configure fails try --with-freetype-dir=<DIR> checking for FreeType 1.x support... no checking for T1lib support... no checking for gdImageString16 in -lgd... yes checking for gdImagePaletteCopy in -lgd... yes checking for gdImageCreateFromPng in -lgd... yes checking for gdImageCreateFromGif in -lgd... no checking for gdImageGif in -lgd... no checking for gdImageWBMP in -lgd... no checking for gdImageCreateFromJpeg in -lgd... no checking for gdImageCreateFromXpm in -lgd... no checking for gdImageCreateFromGd2 in -lgd... yes checking for gdImageCreateTrueColor in -lgd... no checking for gdImageSetTile in -lgd... yes checking for gdImageSetBrush in -lgd... yes checking for gdImageStringTTF in -lgd... yes checking for gdImageStringFT in -lgd... no checking for gdImageStringFTEx in -lgd... no checking for gdImageColorClosestHWB in -lgd... no checking for gdImageColorResolve in -lgd... yes checking for gdImageGifCtx in -lgd... no checking for GNU gettext support... no checking for GNU MP support... no checking for Hyperwave support... no checking for ICAP support... no checking for iconv support... no checking for IMAP support... no checking for Informix support... no checking for Ingres II support... no checking for InterBase support... no checking for IRCG support... no checking for Java support... no checking for LDAP support... no checking whether to enable multibyte string support... no checking whether to enable japanese encoding translation... no checking whether to enable multibyte regex support... no checking for MCAL support... no checking for mcrypt support... no checking for MCVE support... no checking for mhash support... no checking for MING support... no checking for mnoGoSearch support... no checking for msession support... no checking for mSQL support... no checking for Muscat support... no checking for MySQL support... yes checking size of char... 1 checking size of int... (cached) 4 checking size of long... (cached) 4 checking size of long long... 8 checking for size_t... (cached) no checking whether time.h and sys/time.h may both be included... yes checking for uid_t in sys/types.h... (cached) no checking for type ulong... yes checking for type uchar... no checking for type uint... yes checking for type ushort... yes checking for int8... no checking base type of last arg to accept... int checking return type of qsort... void checking for mysql_close in -lmysqlclient... yes checking for MySQL UNIX socket... /tmp/mysql.sock checking for ncurses support... no checking for Oracle-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 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 OpenLink ODBC support... no checking for DBMaker support... no checking for Oracle-ORACLE support... no checking whether to enable user-space object overloading support... no checking for Ovrimos SQL Server support... no checking whether to enable pcntl support... no checking for PCRE support... yes checking for memmove... (cached) yes checking for PDFlib support... no checking for Verisign Payflow Pro support... no checking for PostgreSQL support... no checking whether to enable POSIX-like functions... yes checking for seteuid... yes checking for setegid... yes checking for setsid... yes checking for getsid... yes checking for setpgid... yes checking for getpgid... yes checking for ctermid... yes checking for mkfifo... yes checking for getrlimit... yes checking for PSPELL support... no checking whether to include QDOM 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 for pread... yes checking for pwrite... yes checking whether pwrite works without custom declaration... yes checking whether pread works without custom declaration... yes checking whether to enable shmop support... no checking for SNMP support... no checking whether to enable UCD SNMP hack... no checking whether to enable sockets support... no checking for dlopen... yes checking for pam_start in -lpam... yes checking for getcwd... yes checking for getwd... yes checking for standard DES crypt... yes checking for extended DES crypt... no checking for MD5 crypt... no checking for Blowfish crypt... no checking whether flush should be called explicitly after a bufferered io... yes checking whether to enable aggregation support... no checking for libswf support... no checking for Sybase support... no checking for Sybase-CT support... no checking whether to enable System V semaphore support... no checking whether to enable System V shared memory support... no checking whether to enable tokenizer support... no checking for vpopmail support... no checking whether to enable WDDX support... no checking whether byte ordering is bigendian... yes checking whether to enable XML support... yes checking external libexpat install dir... no checking for XMLRPC-EPI support... no checking libexpat dir for XMLRPC-EPI... no checking whether to enable xslt support... no checking for XSLT Sablotron backend... no checking libexpat dir for Sablotron XSL support... no checking enable JavaScript for Sablotron... no checking for YAZ support... no checking whether to include YP support... no checking for ZIP support... no checking whether to enable versioning... no checking which regex library to use... php Configuring Zend checking build system type... sparc-sun-solaris2.8 checking for ld used by GCC... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/local/bin/nm -B checking how to recognise dependant libraries... pass_all checking for object suffix... o checking for executable suffix... no checking command to parse /usr/local/bin/nm -B output... ok checking for dlfcn.h... grep: can't open conftest.out yes checking for ranlib... (cached) ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... *** Warning: Releases of GCC earlier than version 3.0 cannot reliably *** create self contained shared libraries on Solaris systems, without *** introducing a dependency on libgcc.a. Therefore, libtool is disabling *** -no-undefined support, which will at least allow you to build shared *** libraries. However, you may find that when you link such libraries *** into an application without using GCC, you have to manually add *** `gcc --print-libgcc-file-name` to the link command. We urge you to *** upgrade to a newer version of GCC. Another option is to rebuild your *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... solaris2.8 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool checking bison version... 1.28 (ok) checking for limits.h... (cached) yes checking for malloc.h... grep: can't open conftest.out yes 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) yes checking for dlfcn.h... (cached) yes checking for size_t... (cached) no checking return type of signal handlers... void checking for dlopen in -ldl... (cached) yes checking for dlopen... (cached) yes checking whether dlsym() requires a leading underscore in symbol names... no checking for uint... no checking for ulong... no checking for vprintf... (cached) yes checking for 8-bit clean 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... yes checking whether sprintf is broken... (cached) no checking for finite... (cached) yes checking for isfinite... no checking for isinf... no checking for isnan... yes checking whether fp_except is defined... no checking whether to enable experimental ZTS... no checking whether to enable inline optimization for GCC... no checking whether to enable a memory limit... no checking whether to enable Zend debugging... no checking for inline... inline Configuring TSRM checking for stdarg.h... (cached) yes Generating files checking for working mkdir -p... yes creating config_vars.mk updating cache ./config.cache creating ./config.status creating php4.spec creating Zend/Makefile creating main/build-defs.h creating pear/scripts/pear creating pear/scripts/phpize creating pear/scripts/php-config creating pear/scripts/pearize creating pear/scripts/phptar creating TSRM/Makefile creating main/php_config.h main/php_config.h is unchanged fastgen.sh: creating sapi/Makefile fastgen.sh: creating ext/Makefile fastgen.sh: creating Makefile fastgen.sh: creating pear/Makefile fastgen.sh: creating main/Makefile fastgen.sh: creating sapi/cli/Makefile fastgen.sh: creating ext/zlib/Makefile fastgen.sh: creating ext/ctype/Makefile fastgen.sh: creating ext/gd/Makefile fastgen.sh: creating ext/mysql/Makefile fastgen.sh: creating ext/pcre/Makefile fastgen.sh: creating ext/pcre/pcrelib/Makefile fastgen.sh: creating ext/posix/Makefile fastgen.sh: creating ext/session/Makefile fastgen.sh: creating ext/standard/Makefile fastgen.sh: creating ext/xml/Makefile fastgen.sh: creating ext/xml/expat/Makefile fastgen.sh: creating sapi/apache/Makefile fastgen.sh: creating regex/Makefile 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. | +--------------------------------------------------------------------+ | *** NOTE *** | | The default for register_globals is now OFF! | | | | If your application relies on register_globals being ON, you | | should explicitly set it to on in your php.ini file. | | Note that you are strongly encouraged to read | | http://www.php.net/manual/en/security.registerglobals.php | | about the implications of having register_globals set to on, and | | avoid using it if possible. | +--------------------------------------------------------------------+ Thank you for using PHP. # make Making all in Zend make[1]: Entering directory `/u00/local/src/php-4.2.1/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208108 -DEAPI -DUSE_EXPAT -I../TSRM -g -O2 -prefer-pic -c -o zend_language_parser.lo `test -f zend_language_parser.c || echo './'`zend_language_parser.c In file included from zend_compile.h:24, from zend_language_parser.c:147: zend.h:55: unix.h: No such file or directory make[1]: *** [zend_language_parser.lo] Error 1 make[1]: Leaving directory `/u00/local/src/php-4.2.1/Zend' make: *** [all-recursive] Error 1 # -- Edit bug report at http://bugs.php.net/?id=17292&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17292&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17292&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17292&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17292&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17292&r=support Expected behavior: http://bugs.php.net/fix.php?id=17292&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17292&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17292&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17292&r=globals