ID: 27509 User updated by: scott at abcoa dot com Reported By: scott at abcoa dot com -Status: Feedback +Status: Open Bug Type: Sockets related Operating System: AIX 4.3.3 PHP Version: 4.3.4 New Comment:
I did mentioned that I have been doing this for a month. Compiling is no stranger to me because of doing this for 5 years. To avoid getting myself from going insane here, I decided to take your advice about trying it again. This time I'm putting down all of the steps I did and post the configure's responses here. After compiling/installing, I still get this same fsockopen() error message, "268976720" Snip #1 --snip- Typed: "cd /usr/local/src3/php-5.0.0b4" Typed: "make clean" Typed: "rm config.cache" Typed: "rm config.log" Typed: "./configure --disable-ipv6 --disable-libxml" Typed: "make" Typed: "make install" --snip-- Snip #2 --snip-- Response: creating cache ./config.cache checking host system type... powerpc-ibm-aix4.3.2.0 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 whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for AIX... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... no checking for re2c... exit 0; checking for ranlib... ranlib checking whether ln -s works... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking for bison... bison -y checking bison version... configure: warning: You will need bison 1.28, 1.35, 1.75 or 1.875 if you want to regenerate the Zend parser (found 1.25). 1.25 (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 flex version... 2.5.4 (ok) checking for pthreads_cflags... -mthreads checking for pthreads_lib... 00Configuring SAPI modules00 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 for member fd in BUFF *... no checking for mod_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... no checking for Apache 1.x (hooks) module support via DSO through APXS... no checking for Apache 1.x (hooks) module support... no checking for mod_charset compatibility option... no checking for Caudium support... no checking for CLI build... yes checking for Continuity support... no checking for embedded SAPI library support... no checking for Zeus ISAPI support... no checking for Milter 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 thttpd... no checking for TUX... no checking for webjames... no checking for CGI build... yes checking whether writing to stdout works... This is the test message -- yes checking whether to force Apache CGI redirect... no checking whether to discard path_info + path_translated... no checking whether to enable path info checking... yes checking whether to enable fastcgi support... no checking for chosen SAPI module... cgi 00Running system checks00 checking for missing declarations of reentrant functions... done checking for sendmail... /usr/sbin/sendmail checking whether system uses EBCDIC... no checking for socket... 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 res_search... yes checking for inet_aton... yes checking for dn_skipname... yes checking for ANSI C header files... yes checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for fclose declaration... ok checking for dirent.h... yes checking for ApplicationServices/ApplicationServices.h... no checking for sys/param.h... yes checking for sys/types.h... yes checking for sys/time.h... yes checking for netinet/in.h... yes checking for alloca.h... no checking for arpa/inet.h... yes checking for arpa/nameser.h... yes checking for assert.h... yes checking for crypt.h... yes 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 mach-o/dyld.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... yes checking for string.h... yes checking for syslog.h... yes checking for sysexits.h... yes checking for sys/file.h... yes checking for sys/mman.h... yes checking for sys/mount.h... no 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/statfs.h... yes checking for sys/statvfs.h... yes checking for sys/vfs.h... yes checking for sys/sysexits.h... no checking for sys/varargs.h... no checking for sys/wait.h... yes checking for unistd.h... 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 inttypes.h... yes checking for fopencookie... no checking for broken getcwd... no checking for broken libc stdio... 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 intmax_t... 8 checking size of size_t... 4 checking size of ssize_t... 4 checking size of ptrdiff_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 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... yes checking for uid_t in sys/types.h... yes checking for struct sockaddr_storage... no checking for IPv6 support... yes checking for vprintf... yes checking for alphasort... 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 ftok... yes checking for funopen... no checking for gai_strerror... yes checking for gcvt... yes checking for getlogin... 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_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 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 putenv... yes checking for realpath... yes checking for random... yes checking for rand_r... yes checking for regcomp... yes checking for res_search... (cached) yes checking for scandir... 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 nanosleep... yes checking for utime... yes checking for vsnprintf... yes checking for getaddrinfo... yes checking for strlcat... no checking for strlcpy... no checking for getopt... yes checking whether utime accepts a null argument... yes checking for working alloca.h... (cached) no checking for alloca... yes checking whether sprintf is broken... no checking whether snprintf is broken... 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 00General settings00 checking whether to include debugging symbols... no checking layout of installed files... PHP checking path to configuration file... DEFAULT checking directory to be scanned for configuration files... DEFAULT checking whether to enable safe mode by default... no checking for safe mode exec dir... /usr/local/php/bin 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 whether to enable IPv6 support... no checking whether to enable versioning... no 00Configuring extensions00 checking whether to enable LIBXML support... no checking libxml2 install dir... no checking for OpenSSL support... no 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 for cpdflib support... no checking whether to enable ctype functions... yes checking for CURL support... no checking if we should use CURL for url streams... no checking whether to enable DBA... no checking for QDBM support... no checking for GDBM support... no checking for NDBM support... no checking for Berkeley DB4 support... no checking for Berkeley DB3 support... no checking for Berkeley DB2 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 dbase support... no checking whether to enable dbx support... no checking whether to enable direct I/O support... no checking whether to enable DOM support... yes checking whether to enable EXIF (metadata from images) support... no checking for fam support... no checking for FrontBase SQL92 (fbsql) support... no checking for FDF support... no checking whether to enable the bundled filePro support... no checking whether to enable FTP support... no checking for GD support... 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 1.x support... no checking for FreeType 2... no checking for T1lib support... no checking whether to enable truetype string function in GD... 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 hwapi 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 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 for external libmbfl... no checking for mcrypt support... no checking for MCVE support... no checking OpenSSL dir for MCVE... no checking for mhash support... no checking whether to include mime_magic support... no checking for MING support... no checking for mnoGoSearch support... no checking for mono support... no checking for msession support... no checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... no checking for specified location of the MySQL UNIX socket... no checking for MySQLi support... no checking whether to enable embedded MySQLi support... no 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 DBMaker support... no checking for Oracle-ORACLE support... no checking for Ovrimos SQL Server support... no checking whether to enable pcntl support... no checking for PCRE support... yes checking for PDFlib support... no checking for the location of libtiff... 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 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 SNMP support... no checking OpenSSL dir for SNMP... no checking whether to enable UCD SNMP hack... no checking whether to enable soap support... no checking whether to enable sockets support... no checking for gethostbyname2... yes checking enable SPL suppport... yes checking whether to enable UTF-8 support in sqlite (default: ISO-8859-1)... no checking for sqlite support... yes checking size of char *... 4 checking for lemon... no checking for usleep... (cached) yes checking for nanosleep... (cached) yes checking for time.h... 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 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 buffered io... yes checking which regex library to use... php checking for working fnmatch... yes checking whether rounding works as expected... yes checking for fork... yes checking if your OS can spawn processes with inherited handles... yes checking for glob... yes checking for strfmon... yes checking for nice... yes checking for res_nmkquery... no checking for __res_nmkquery... no checking for res_nmkquery in -lresolv... no checking for __res_nmkquery in -lresolv... no checking for res_nmkquery in -lbind... no checking for __res_nmkquery in -lbind... no checking for res_nmkquery in -lsocket... no checking for __res_nmkquery in -lsocket... no checking for res_nsend... no checking for __res_nsend... no checking for res_nsend in -lresolv... no checking for __res_nsend in -lresolv... no checking for res_nsend in -lbind... no checking for __res_nsend in -lbind... no checking for res_nsend in -lsocket... no checking for __res_nsend in -lsocket... no checking for dn_expand... yes checking for wchar.h... yes checking for mblen... yes checking for mbrlen... yes checking for mbsinit... yes checking for mbstate_t... yes checking for Sybase support... no checking for Sybase-CT 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 whether to enable XML support... yes checking libexpat install dir... no checking for XMLRPC-EPI support... no checking libexpat dir for XMLRPC-EPI... no checking iconv dir for XMLRPC-EPI... no checking for XSL support... no checking for YAZ support... no checking whether to include YP support... no 00Configuring PEAR00 checking whether to install PEAR... yes 00Configuring Zend00 checking bison version... configure: warning: You will need bison 1.28 if you want to regenerate the Zend parser (found 1.25). 1.25 (ok) checking for limits.h... (cached) yes checking for malloc.h... 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) no checking for stdlib.h... (cached) yes checking for mach-o/dyld.h... (cached) no 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... yes checking for vprintf... (cached) yes checking for 8-bit clean memcmp... yes checking for working alloca.h... (cached) no 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... no checking whether sprintf is broken... (cached) no checking for finite... (cached) yes checking for isfinite... no checking for isinf... no checking for isnan... no checking whether fp_except is defined... 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 a memory limit... no checking whether to enable Zend debugging... no checking whether to enable Zend multibyte... no checking for inline... inline checking for MM alignment and log values... done 00Configuring TSRM00 checking for stdarg.h... (cached) yes 00Configuring libtool00 checking for Cygwin environment... no checking for mingw32 environment... no checking build system type... powerpc-ibm-aix4.3.2.0 checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking for a sed that does not truncate output... /usr/bin/sed checking how to recognise dependent libraries... pass_all checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for ranlib... (cached) ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... none checking if gcc static flag -static -Wl,-lC works... no 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/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... aix4.3.2.0 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes creating libtool 00Generating files00 updating cache ./config.cache creating ./config.status creating php5.spec creating main/build-defs.h creating scripts/phpize creating scripts/php-config creating sapi/cli/php.1 creating main/php_config.h main/php_config.h is unchanged creating main/internal_functions.c creating main/internal_functions_cli.c +--------------------------------------------------------------------+ | *** WARNING *** | | | | You will be compiling the CGI version of PHP without any | | redirection checking. By putting this cgi binary somewhere in | | your web space, users may be able to circumvent existing .htaccess | | security by loading files directly through the parser. See | | http://www.php.net/manual/security.php for more details. | +--------------------------------------------------------------------+ | 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. --snip-- Previous Comments: ------------------------------------------------------------------------ [2004-03-09 08:17:24] [EMAIL PROTECTED] You have to delete config.cache when you reconfigure. Otherwise the change will NOT be noted. So please try again.. ------------------------------------------------------------------------ [2004-03-08 16:51:22] scott at abcoa dot com Further notice... I noticed the PHP version 4.3.1 on an another AIX machine does have this same problem with the fsockopen(). So, it could be between 4.2.3 and 4.3.1 when it all of a sudden just don't work. ------------------------------------------------------------------------ [2004-03-08 13:09:01] scott at abcoa dot com Yea, it is a clean build. Tried it again with php5 beta 4 from the php.net website. Don't see any CVS links for that. Still get the error but it's a different errors. I can not make sense out of this one. --snip-- Content-type: text/html X-Powered-By: PHP/5.0.0b4 !#/usr/local/bin/php <br /> <b>Warning</b>: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to www.google.com:80 (Unknown error) in <b><<file path omitted by me>></b> on line <b>7</b><br /> 268976720 --snip-- The output, "268976720" is the output by $errstr... Oddly, no displayed $errno... I tried the --disable-ipv6 option and ran the configure, it showed that IP V6 Support is found during the configuration. Thought you may want to know because I'm not sure if this may help. ------------------------------------------------------------------------ [2004-03-08 11:52:38] [EMAIL PROTECTED] Are you 100% sure you made a clean build after reconfiguring php ? (make clean ; make) If yes, please try building latest php5 snapshot as a cli to test your script; it has some runtime intelligence to detect systems with broken network stacks. ------------------------------------------------------------------------ [2004-03-08 10:06:30] scott at abcoa dot com In reply to the 3 comments since my last reply. 1) Excuse my typo, so tried again on the tcp with "//" and got an errno with "0" and errstr with "Error 0". The fsockopen() instruction at php.net showed that this meant an error had occur before the fsockopen(). So, tried the "127.0.0.1" without the "tcp://" and got the original error, with "66" and "Addr family not supported by protocol". You know, I did this one test by using the terminal emulator and use the telnet command, "telnet www.google.com 80" and was able to connected successfully and receive data from it. 2) Recompiled the latest CVS snapshot and still get the same error message. 3) Again, recompiled the latest CVS snapshot with "--disable-ipv6" option and still get this same error message. Now I'm a little concern about how much of a time will be spend on this or whether would this be dragged on like months and months or something. Scott ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27509 -- Edit this bug report at http://bugs.php.net/?id=27509&edit=1