|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-01 15:32 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 08:00:01 2025 UTC |
Hello, I am having great troubles getting PHP3 to compile with IBM DB2. I am trying to compile PHP-3.0.16 with IMBdb2 V6.1, Fixpack 3, all on Red Hat 6.1 with the latest patches. Thanks for any help you can give me! Tom Here is the configure options I am trying to use: [root@happy php-3.0.16]# cat /root/makephp3 #!/bin/sh ./configure \ --x-libraries=/usr/local/lib \ --with-apxs=/usr/sbin/apxs \ --prefix=/usr \ --enable-safe-mode \ --with-exec-dir=/usr/bin \ --with-zlib \ --with-dbase \ --with-filepro \ --with-config-file-path=/etc/php3/apache \ --disable-debug \ --enable-magic-quotes \ --enable-debugger \ --enable-bcmath \ --enable-track-vars \ --with-imap \ --with-system-regex \ --without-gd \ --with-yp \ --with-informix \ --with-mysql \ --with-ldap \ --with-pdflib=/usr/local \ --with-pdflib-dir=/usr/local \ --with-jpeg-dir=/usr \ --with-zlib-dir=/usr \ --with-tiff-dir=/usr \ --with-png-dir=/usr \ --with-ibm-db2 Here is the errors for everything and the output of all the commands I am trying to use: [root@happy php-3.0.16]# /root/makephp3 creating cache ./config.cache checking whether build environment is sane... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for bison... bison -y checking bison version... 1.28 (ok) 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 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 perl... /usr/bin/perl checking for sh... /bin/sh checking for working const... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking if compiler supports -Wl,--version-script... yes checking size of long... 4 checking size of int... 4 checking for sendmail... /usr/sbin/sendmail checking for gethostent... yes checking for socket in -lc... yes checking for gethostbyaddr in -lc... yes checking for crypt in -lc... no checking for crypt in -lcrypt... yes checking for dlopen in -lc... no checking for dlopen in -ldl... yes checking for sin in -lc... no checking for sin in -lm... yes checking for res_search in -lsocket... no checking for res_search in -lresolv... yes checking for pam_start in -lpam... yes checking for inet_aton in -lbind... no checking how to run the C preprocessor... gcc -E 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 fcntl.h... yes checking for unistd.h... yes checking for crypt.h... yes checking for sys/file.h... yes checking for memory.h... yes checking for pwd.h... yes checking for grp.h... yes checking for sys/socket.h... yes checking for sys/wait.h... yes checking for syslog.h... yes checking for string.h... yes checking for sys/varargs.h... no checking for stdarg.h... yes checking for sys/resource.h... yes checking for sys/time.h... yes checking for signal.h... yes checking for netinet/in.h... yes checking for dlfcn.h... yes checking for limits.h... yes checking for sys/types.h... yes checking for sys/statvfs.h... yes checking for sys/statfs.h... yes checking for unix.h... no checking for db.h... yes checking for dbm.h... no checking for ndbm.h... no checking for db1/ndbm.h... yes checking for locale.h... yes checking for features.h... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for tm_zone in struct tm... yes checking for tm_gmtoff in struct tm... yes checking for struct flock... yes 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 uint... yes checking for ushort... yes checking for ulong... yes checking for ptrdiff_t... yes checking for vprintf... yes checking for memcpy... yes checking for memmove... yes checking for strdup... yes checking for strerror... yes checking for strcasecmp... yes checking for strstr... yes checking for flock... yes checking for lockf... yes checking for putenv... yes checking for tempnam... yes checking for usleep... yes checking for setlocale... yes checking for gettimeofday... yes checking for setvbuf... yes checking for srand48... yes checking for lrand48... yes checking for srandom... yes checking for random... yes checking for link... yes checking for symlink... yes checking for regcomp... yes checking for getlogin... yes checking for cuserid... yes checking for vsnprintf... yes checking for gcvt... yes checking for utime... yes checking for crypt... yes checking for setitimer... yes checking for rint... yes checking for unsetenv... yes checking for strftime... yes checking for setsockopt... yes checking for tzset... yes checking for statvfs... yes checking for statfs... yes checking for inet_aton... yes checking for shutdown... yes checking for truncate... yes checking for getpgid... yes checking for getsid... yes checking for getrlimit... yes checking for snprintf... yes checking for ctermid... yes checking for setsid... yes checking for mkfifo... yes checking for getrusage... yes checking whether utime accepts a null argument... yes checking for working alloca.h... yes checking for alloca... yes checking for broken sprintf... ok checking for getopt... yes checking for declared timezone... yes checking for standard DES crypt... yes checking for extended DES crypt... no checking for MD5 crypt... yes checking for Blowfish crypt... no checking for Apache module support via DSO through APXS... yes checking whether to enable versioning... no checking whether to use bundled regex library... no checking for gdbm_open in -lgdbm... yes checking preferred dbm library... gdbm chosen checking for gdbm.h... yes checking for mod_charset compatibility option... no checking for fhttpd module support... no checking for IMAP support... yes checking for IMSP support... no checking for ASPELL support... no checking for MCAL support... no checking for ftp support... no checking whether to include GD support... no checking whether to include FreeType support... yes configure: warning: No gd support found. Skipping FreeType Configuration checking whether to enable t1lib support... no checking whether to include GNU gettext support... no checking whether to include ImageMagick support... no checking for Oracle support... no checking for iODBC support... no checking for OpenLink ODBC support... no checking for Adabas support... no checking for Sybase support... no checking for Sybase-CT support... no checking for MySQL support... yes checking for errmsg.h... yes checking for mysql.h... yes checking for mSQL support... no checking for PostgresSQL support... no checking for IBM DB2 support... yes checking for Solid support... no checking for Empress support... no checking for LDAP support... yes checking for Cybercash MCK support... no checking for SNMP support... no checking whether to enable UCD SNMP hack... no checking for Velocis support... no checking for Informix support... checking Informix version... yes checking for InterBase support... no checking for a custom ODBC support... no checking for Hyperwave support... no checking for XML support... no checking whether to include YP support... yes checking whether to include zlib support... yes checking for gzgets in -lz... yes checking whether to include pdflib support... yes checking for libz needed by pdflib 2.0... already zlib support checking for libjpeg (needed by pdflib 2.0)... yes checking for jpeg_read_header in -ljpeg... yes checking for libtiff (needed by pdflib 2.0)... yes checking for TIFFOpen in -ltiff... yes checking for PDF_new in -lpdf... yes checking whether to include cpdflib support... no checking whether to include fdftk support... no checking whether to include the bundled dbase library... yes checking whether to include the bundled filePro support... yes checking whether to enable DAV support through mod_dav... no checking whether to enable unified ODBC support... yes 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... /usr/bin checking whether to enable track_vars variables by default... yes checking whether to enable magic quotes by default... yes checking whether to enable remote debugger support... yes checking whether to enable bc style precision math functions... yes checking whether to enable a memory limit... no checking whether to enable short tags by default... yes checking whether to enable the URL-aware fopen wrapper... yes checking whether to enable System V semaphore support... no checking whether to enable System V shared memory support... no checking whether to enable displaying source support... yes checking for GDBM support... no checking for NDBM support... no checking for Berkeley DB2 support... no checking for DBM support... no checking for CDB support... no checking whether to enable DBA interface... no checking for mcrypt support... no checking for mhash support... no checking whether to include PCRE support... yes checking for memmove... (cached) yes checking whether to include POSIX support... yes checking whether to include GNU recode support... no checking whether to enable dmalloc support... no checking for __dn_skipname in -lbind... no updating cache ./config.cache creating ./config.status creating Makefile creating build-defs.h creating stamp-h creating libphp3.module creating extra/gd/bdf2gdfont creating regex/Makefile creating pcrelib/Makefile creating dbase/Makefile creating config.h [root@happy php-3.0.16]# make bison -y -p php -v -d ./language-parser.y -o language-parser.tab.c gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -c language-parser.tab.c -o l anguage-parser.tab.o flex -Pphp -olanguage-scanner.c -i ./language-scanner.lex gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -w -DYY_USE_CONST -c language -scanner.c gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -c main.c -o main.o gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -c php3_hash.c -o php3_hash.o gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -c operators.c -o operators.o gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -c variables.c -o variables.o gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -c token_cache.c -o token_cac he.o gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -c stack.c -o stack.o gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DTARGET="httpsd" -DMOD_SSL= 204105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -I/usr/local/Informix/in cl/esql -O2 -fpic -DSHARED_MODULE -I. -I. -I/usr/include/apache -I /usr/local/include -I/usr/local/Informix/incl/esql -I/usr/include/imap -I/us r/include/mysql -I/home/db2inst1/sqllib/include -c internal_functions.c -o in ternal_functions.o In file included from /home/db2inst1/sqllib/include/sqlcli1.h:41, from functions/php3_unified_odbc.h:218, from internal_functions.c:89: /home/db2inst1/sqllib/include/sqlcli.h:307: parse error before `7' /home/db2inst1/sqllib/include/sqlcli.h:310: parse error before `5' /home/db2inst1/sqllib/include/sqlcli.h:333: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:339: parse error before `3' /home/db2inst1/sqllib/include/sqlcli.h:473: parse error before `14' /home/db2inst1/sqllib/include/sqlcli.h:492: parse error before `14' /home/db2inst1/sqllib/include/sqlcli.h:492: warning: no semicolon at end of stru ct or union /home/db2inst1/sqllib/include/sqlcli.h:499: parse error before `}' /home/db2inst1/sqllib/include/sqlcli.h:499: warning: data definition has no type or storage class /home/db2inst1/sqllib/include/sqlcli.h:508: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:508: warning: no semicolon at end of stru ct or union /home/db2inst1/sqllib/include/sqlcli.h:510: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:512: warning: data definition has no type or storage class /home/db2inst1/sqllib/include/sqlcli.h:552: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:561: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:574: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:581: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:598: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:613: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:620: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:646: parse error before `0' /home/db2inst1/sqllib/include/sqlcli.h:669: parse error before `0' In file included from /home/db2inst1/sqllib/include/sqlcli.h:709, from /home/db2inst1/sqllib/include/sqlcli1.h:41, from functions/php3_unified_odbc.h:218, from internal_functions.c:89: /home/db2inst1/sqllib/include/sqlext.h:1679: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1789: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1812: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1838: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1856: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1873: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1882: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1893: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1908: parse error before `0' /home/db2inst1/sqllib/include/sqlext.h:1918: parse error before `0' In file included from functions/php3_unified_odbc.h:218, from internal_functions.c:89: /home/db2inst1/sqllib/include/sqlcli1.h:637: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:648: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:720: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:730: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:740: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:1073: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:1083: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:1099: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:1124: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:1166: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:1178: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:1189: parse error before `0' /home/db2inst1/sqllib/include/sqlcli1.h:1222: parse error before `0' make: *** [internal_functions.o] Error 1