Compiling PHP 4.0.0 on AIX 4.3.3

From: Date: Thu, 01 Jun 2000 04:56:38 +0000
Subject: Compiling PHP 4.0.0 on AIX 4.3.3
Groups: php.general 
Request: Send a blank email to php-general+get-770@lists.php.net to get a copy of this message
I've currently got PHP 3.0.15 installed with Apache 1.3.12 on AIX 4.3.3, all compiled with gcc version egcs-2.91.66. I'm trying to upgrade to PHP 4.0.0 (release version) on the same machine and haven't been able to get very far at all. There seems to be a problem with the libtool script, although I'm not entirely sure. Has anyone successfully built PHP 4.0.0 under AIX as an Apache DSO yet or am I bleeding edge? If so, what compiler, compiler flags or hacks where required to make it happen? Here is a log from start to premature finish. There are a two things here that don't look right to me, although they probably don't have anything to do with my fatal error at the end: 1) 5 lines during configure like: configure[1149]: pwd: cannot access parent directories 2) 4 lines in the "generating files" phase of configure like: cat: cannot open /w1/src/web/php-4.0.0/./pcrelib/Makefile.in > configure \ --with-apxs=/w1/local/apache_1.3.12/sbin/apxs \ --with-config-file-path=/w1/local/php/lib \ --with-exec-dir=/w1/local/php/bin \ --with-mysql=/w1/local/mysql \ --with-oracle=/a9/oracle1 \ --enable-debug=no \ --enable-safe-mode=yes \ --enable-track-vars=yes \ --enable-short-tags=no creating cache ./config.cache configure[1149]: pwd: cannot access parent directories checking for a BSD compatible install... ./install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes configure[1355]: pwd: cannot access parent directories checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... missing checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... powerpc-ibm-aix4.3.3.0 checking for bison... bison -y checking bison version... 1.28 (ok) checking for gcc... gcc checking whether the C compiler (gcc -L/w1/local/mysql/lib) works... yes checking whether the C compiler (gcc -L/w1/local/mysql/lib) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for AIX... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib checking whether gcc and cc understand -c and -o together... yes checking whether ln -s works... yes checking for flex... flex checking for flex... (cached) 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... checking for pthreads_lib... 00Configuring SAPI modules00 checking for AOLserver support... no checking for Apache module support via DSO through APXS... yes checking for mod_charset compatibility option... no checking for fhttpd module support... no checking for Zeus ISAPI support... no checking for NSAPI support... no checking for PHTTPD support... no checking for Roxen/Pike support... no checking for Servlet support... no checking for thttpd... no checking for chosen SAPI module... apache 00Running system checks00 checking for missing declarations of reentrant functions... done checking whether compiler supports -R... no checking whether compiler supports -Wl,-rpath,... no checking for sendmail... /usr/sbin/sendmail checking whether system uses EBCDIC... no checking for socket in -lsocket... no checking for htonl in -lsocket... no checking for yp_get_default_domain... yes checking for crypt in -lcrypt... yes checking for dlopen in -ldl... yes checking for sin in -lm... yes checking for inet_aton in -lbind... yes checking for inet_aton in -lresolv... no checking for res_search in -lsocket... no checking for res_search in -lresolv... no checking for dn_skipname in -lresolv... no checking for __dn_skipname in -lresolv... no 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 arpa/inet.h... yes checking for crypt.h... yes checking for dlfcn.h... yes checking for fcntl.h... yes checking for grp.h... yes checking for ieeefp.h... no checking for limits.h... yes checking for locale.h... yes checking for memory.h... yes checking for netinet/in.h... yes checking for pwd.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdlib.h... yes checking for string.h... yes checking for sys/file.h... yes checking for sys/mman.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/time.h... yes checking for sys/types.h... yes checking for sys/varargs.h... no checking for sys/wait.h... yes checking for sys/resource.h... yes checking for syslog.h... yes checking for unistd.h... yes checking for unix.h... no 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... yes checking for uid_t in sys/types.h... yes checking for vprintf... yes checking for asctime_r... yes checking for crypt... yes checking for ctime_r... yes checking for cuserid... yes checking for flock... no checking for gcvt... yes checking for getlogin... yes checking for gethostbyaddr... yes checking for getrusage... yes checking for gettimeofday... yes checking for gmtime_r... yes checking for inet_aton... 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 mmap... yes checking for putenv... yes checking for random... yes checking for rand_r... yes checking for regcomp... yes checking for setitimer... yes checking for setlocale... 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 strcasecmp... 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 strlcat... no checking for strlcpy... no checking for getopt... yes checking whether utime accepts a null argument... yes checking for working alloca.h... no checking for alloca... yes checking whether sprintf is broken... no checking for declared timezone... yes checking for *time_r type... SUSV2 configure[6405]: pwd: cannot access parent directories checking whether to use a configuration file... yes checking whether to include debugging symbols... no checking whether to enable safe mode by default... yes checking for safe mode exec dir... /w1/local/php/bin checking whether to enable PHP's own SIGCHLD handler... no checking whether to enable track_vars variables by default... yes 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... no checking whether to enable the URL-aware fopen wrapper... yes checking whether to enable PIC for shared objects... yes checking whether to enable dmalloc... no checking whether to install PEAR... yes 00Configuring extensions00 checking for ASPELL support... no checking whether to enable bc style precision math functions... no checking whether to enable calendar conversion support... no checking whether to include cpdflib support... no checking for CyberCash support... no checking whether to enable DAV support through mod_dav... no checking for db1/ndbm.h... no checking for gdbm_open in -lgdbm... no checking for dbm_open in -ldb... no checking for dbm_open in -lc... yes checking preferred dbm library... ndbm chosen 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 the bundled dbase library... no checking whether to include DOM support... no checking whether to include fdftk support... no checking whether to enable the bundled filePro support... no checking whether to enable FTP support... no checking whether to include GD support... checking for gdImageLine in -lgd... no checking for gdImageString16 in -lgd... no checking whether to include GNU gettext support... no checking for Hyperwave support... no checking for ICAP support... no checking for IMAP support... no checking for Informix support... no checking for InterBase support... no checking for Java support... no checking for LDAP support... no checking for MCAL support... no checking for mcrypt support... no checking for mhash support... no checking for mSQL support... no checking for MySQL support... yes checking for Oracle-OCI8 support... no checking for Adabas support... no checking for Solid support... no checking for IBM DB2 support... no checking for Empress support... no checking for Velocis 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... yes checking Oracle Install-Dir... /a9/oracle1 +--------------------------------------------------------------------+ | Notice: | | If you encounter <defunc> processes when using a local Oracle-DB | | please recompile PHP and specify --enable-sigchild when configuring| | (This problem has been reported un Linux using Oracle >= 8.1.5) | +--------------------------------------------------------------------+ checking Oracle version... 7.3 checking whether to include PCRE support... yes checking for memmove... (cached) yes checking whether to include Pdflib 3.x support... no checking for PostgresSQL support... no checking whether to include POSIX-like functions... yes checking for readline support... no checking for recode support... no checking for mm support... no checking whether to enable transparent session id propagation... no checking whether to enable session support... yes checking for SNMP support... no checking whether to enable UCD SNMP hack... no checking for dlopen... yes checking for pam_start in -lpam... no 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 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 WDDX support... no checking whether byte ordering is bigendian... yes checking for XML support... yes checking whether to include YP support... no checking whether to include zlib support... no checking whether to enable versioning... no checking which regex library to use... php 00Configuring Zend00 checking bison version... 1.28 (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 signal.h... (cached) yes checking for unix.h... (cached) no checking for dlfcn.h... (cached) yes checking for size_t... (cached) yes checking return type of signal handlers... void checking for dlopen in -ldl... (cached) yes checking for dlopen... (cached) yes 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 whether sprintf is broken... (cached) 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 configure[32644]: pwd: cannot access parent directories configure[32646]: pwd: cannot access parent directories 00Configuring libtool00 checking build system type... powerpc-ibm-aix4.3.3.0 checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for BSD-compatible nm... /usr/bin/nm -B updating cache ./config.cache loading cache ./config.cache within ltconfig checking for object suffix... o checking for executable suffix... no checking for gcc option to produce PIC... none 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 if gcc static flag -static -Wl,-lC works... none checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... relink checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... aix4.3.3.0 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for objdir... .libs creating libtool updating cache ./config.cache loading cache ./config.cache 00Generating files00 checking for working mkdir -p... yes creating config_vars.mk creating sapi/Makefile creating ext/Makefile creating Makefile creating pear/Makefile creating ./Makefile creating ./Makefile creating ./Makefile creating ./Makefile creating ./pcrelib/Makefile cat: cannot open /w1/src/web/php-4.0.0/./pcrelib/Makefile.in creating ./Makefile creating ./Makefile creating ./Makefile creating ./Makefile creating ./expat/Makefile cat: cannot open /w1/src/web/php-4.0.0/./expat/Makefile.in creating ./expat/xmlparse/Makefile cat: cannot open /w1/src/web/php-4.0.0/./expat/xmlparse/Makefile.in creating ./expat/xmltok/Makefile cat: cannot open /w1/src/web/php-4.0.0/./expat/xmltok/Makefile.in creating sapi/apache/Makefile creating regex/Makefile updating cache ./config.cache creating ./config.status creating php4.spec creating Zend/Makefile creating build-defs.h creating php_config.h creating internal_functions.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. > make Making all in Zend make[1]: Entering directory `/w1/src/web/php-4.0.0/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend-scanner.c /bin/sh ../libtool --silent --mode=link gcc -O2 -o libZend_c.la zend-scanner.lo /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend-parser.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_alloc.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_compile.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_constants.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_dynamic_array.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -c ./zend_execute.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_execute_API.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_highlight.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_llist.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_opcode.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_operators.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_ptr_stack.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_stack.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_variables.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_API.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_extensions.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_hash.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_list.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_indent.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_builtin_functions.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEAPI=1 -DXML_BYTE_ORDER=21 -O2 -c zend_sprintf.c /bin/sh ../libtool --silent --mode=link gcc -O2 -o libZend.la -ldl -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lc3v6 -lnlsrtl3 -lcore3 -lld -lm -lmysqlclient -lbind -lm -ldl -lcrypt -nostdlib /lib/crt0_r.o /usr/lib/libpthreads.a /usr/lib/libc_r.a -lgcc zend-parser.lo zend_alloc.lo zend_compile.lo zend_constants.lo zend_dynamic_array.lo zend_execute.lo zend_execute_API.lo zend_highlight.lo zend_llist.lo zend_opcode.lo zend_operators.lo zend_ptr_stack.lo zend_stack.lo zend_variables.lo zend.lo zend_API.lo zend_extensions.lo zend_hash.lo zend_list.lo zend_indent.lo zend_builtin_functions.lo zend_sprintf.lo libZend_c.la libtool: link: cannot build libtool library `libZend.la' from non-libtool objects: /lib/crt0_r.o /usr/lib/libpthreads.a /usr/lib/libc_r.a make[1]: *** [libZend.la] Error 1 make[1]: Leaving directory `/w1/src/web/php-4.0.0/Zend' make: *** [all-recursive] Error 1 -- Brandon

« previous php.general (#770) next »