php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13501 --with-iodbc, --with-ibm-db2 doesn't work together when using ./configure
Submitted: 2001-10-01 16:27 UTC Modified: 2001-10-22 12:20 UTC
From: scott at abcoa dot com Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.0.6 OS: AIX 4.3.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: scott at abcoa dot com
New email:
PHP Version: OS:

 

 [2001-10-01 16:27 UTC] scott at abcoa dot com
  When proceeding to use the './configure' command and include the 2 options, '--with-iodbc' and '--with-ibm-db2'.  The configure only configure the IBM DB2 and does not do anything with the iODBC.  So, when compiling the PHP, it only include the IBM DB2 and that's it.  It doesn't include the iODBC.

  Here's the configure command I use

--clip begin--
./configure 
  --with-apache=../apache_1.3.20 
  --with-ibm-db2=/usr/lpp/db2_06_01 
  --with-iodbc=/usr/local/odbcsdk 
  --with-openssl=../openssl-0.9.6b 
  --with-mcrypt=../libmcrypt-2.4.15 
  --without-mysql 
  --with-config-file-path=/etc 
  --enable-track-vars
--clip end--

  Here's the copy of hte environment variable as result of the export command by typing in "export" and pressing enter.

--clip begin--
declare -x AUTHSTATE="compat"
declare -x CFLAGS="-O2 -I/usr/local/ssl/include -I/usr/local/odbcsdk/include"
declare -x CGI_DIRECTORY="/var/docsearch/cgi-bin"
declare -x DB2DIR="/usr/lpp/db2_06_01"
declare -x DB2INSTANCE="db2inst1"
declare -x DOCUMENT_DIRECTORY="/usr/docsearch/html"
declare -x DOCUMENT_SERVER_MACHINE_NAME="localhost"
declare -x DOCUMENT_SERVER_PORT="49213"
declare -x HOME="/"
declare -x HOSTNAME="test"
declare -x HOSTTYPE="powerpc"
declare -x IMQCONFIGCL="/etc/IMNSearch/dbcshelp"
declare -x IMQCONFIGSRV="/etc/IMNSearch"
declare -x INSTHOME="/home/db2inst1/sqllib/lib"
declare -x LANG="en_US"
declare -x LC__FASTMSG="true"
declare -x LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/odbcsdk/lib"
declare -x LD_LIBRARY_PATH="/home/db2inst1/sqllib/lib:/usr/local/lib"
declare -x LIBPATH="/usr/local/odbcsdk/lib"
declare -x LOCPATH="/usr/lib/nls/loc"
declare -x LOGIN="root"
declare -rx LOGNAME="root"
declare -x MACHTYPE="powerpc-ibm-aix4.3.2.0"
declare -x MAIL="/usr/spool/mail/root"
declare -x MAILMSG="[YOU HAVE NEW MAIL]"
declare -x MANPATH=":/usr/local/man:/usr/dt/man:usr/share/man"
declare -x NLSPATH="/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat"
declare -x ODBCINI="/usr/local/odbcsdk/doc/odbc.ini"
declare -x ODMDIR="/etc/objrepos"
declare -x OLDPWD="/usr/local/src"
declare -x OSTYPE="aix4.3.2.0"
declare -x PATH="/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin:/usr/local/apache/bin"
declare -x PS1="\\[\\e[00;33m\\]-=\\[\\e[00;33m\\][\\[\\e[01;33m\\]\\u@\\h\\[\\e[00;33m\\]]\\[\\e[00m\\]\\n\\[\\e[00;31m\\]-=\\[\\e[00;31m\\][\\[\\e[01;31m\\]\`pwd\`\\[\\e[00;31m\\]]\\[\\e[01;31m\\]==>\\[\\e[00m\\]"
declare -x PWD="/usr/local/src/php-4.0.6"
declare -x SHELL="/usr/local/bin/bash"
declare -x SHLVL="1"
declare -x SSL_APP_DIR="/usr/local/ssl/bin"
declare -x SSL_BASE="/usr/local/ssl"
declare -x SSL_LIB_DIR="/usr/local/ssl/lib"
declare -x TERM="vt220"
declare -x TZ="CST6CDT"
declare -x USER="root"
--clip end--

  Here's the result that are being displayed as result of using the configure command.

--clip begin--
creating cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
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.2.0
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for bison... bison -y
checking bison version... 1.25 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -I/usr/local/ssl/include -I/usr/local/odbcsdk/include -L/usr/local/ssl/lib -L/usr/local/odbcsdk/lib) works... yes
checking whether the C compiler (gcc -O2 -I/usr/local/ssl/include -I/usr/local/odbcsdk/include -L/usr/local/ssl/lib -L/usr/local/odbcsdk/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 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... -mthreads
checking for pthreads_lib... 

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... no
checking for Apache module support... yes - Apache 1.3.x
checking for mod_charset compatibility option... no
checking whether gcc supports -rdynamic... 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 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 chosen SAPI module... apache

Running system checks
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 dlopen in -ldl... yes
checking for sin in -lm... yes
checking for inet_aton in -lresolv... no
checking for inet_aton in -lbind... yes
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 alloca.h... no
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for crypt.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 netinet/in.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/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/sysexits.h... no
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 unistd.h... yes
checking for unix.h... no
checking for utime.h... 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... yes
checking for uid_t in sys/types.h... 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 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 putenv... 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... 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 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... yes
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking for OpenSSL support... yes
checking for OpenSSL version... >= 0.9.5
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... yes
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 PIC for shared objects... yes
checking whether to enable dmalloc... no
checking whether to enable php streams... no
checking for crypt in -lcrypt... yes

Configuring extensions
checking if the location of ZLIB install directory is defined... no
checking whether to include ZLIB support... no
checking for ASPELL support... no
checking for bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking CCVS Support... no
checking whether to include cpdflib support... no
checking whether to include crack support... no
checking whether to enable ctype support... no
checking for CURL support... no
checking for CyberCash support... no
checking for cybermut support... no
checking whether to include old 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 the bundled dbase library... no
checking whether to enable dbx support... no
checking for DOM support... no
checking whether to enable exif support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for fdftk support... no
checking whether to enable the bundled filePro support... no
checking whether to add fribidi support... no
checking whether to enable FTP support... no
checking whether to include GD support... no
checking whether to include GNU gettext support... no
checking for gmp 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 whether to include LDAP support... no
checking whether to enable multibyte string support... no
checking whether to enable japanese encoding translation... no
checking for MCAL support... no
checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... yes
checking for mhash support... no
checking whether to include ming support... no
checking for mnoGoSearch support... no
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL 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... yes
checking for Oracle-ORACLE support... no
checking for Ovrimos SQL Server support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include PDFlib support... no
checking whether to include Verisign Payflow Pro support... no
checking for PostgreSQL support... no
checking whether to include 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 ctermid... yes
checking for mkfifo... yes
checking for getrlimit... yes
checking whether to include 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 for Sablotron XSL support... no
checking libexpat dir for Sablotron 0.50... no
checking whether to enable CORBA support via Satellite... no
checking for mm support... no
checking whether to enable transparent session id propagation... no
checking whether to enable session support... 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... 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 whether flush should be called explicitly after a bufferered io... yes
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 for vpopmail support... no
checking for WDDX support... no
checking whether byte ordering is bigendian... yes
checking for XML support... yes
checking external libexpat install dir... no
checking whether to enable xslt support... no
checking whether to enable the XSLT Sablotron backend... no
checking libexpat dir for Sablotron XSL support... no
checking for YAZ support... no
checking whether to include YP support... no
checking whether to include zziplib support... no
checking whether to enable versioning... no
checking which regex library to use... php

Configuring Zend
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 signal.h... (cached) yes
checking for unix.h... (cached) no
checking for dlfcn.h... 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 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... 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

Configuring libtool
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 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.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
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache

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 TSRM/Makefile
creating sapi/apache/libphp4.module
creating main/php_config.h
creating sapi/Makefile
creating ext/Makefile
creating Makefile
creating pear/Makefile
creating main/Makefile
creating ext/mcrypt/Makefile
creating ext/odbc/Makefile
creating ext/openssl/Makefile
creating ext/pcre/Makefile
creating ext/pcre/pcrelib/Makefile
creating ext/posix/Makefile
creating ext/session/Makefile
creating ext/standard/Makefile
creating ext/xml/Makefile
creating ext/xml/expat/Makefile
creating ext/xml/expat/xmlparse/Makefile
creating ext/xml/expat/xmltok/Makefile
creating sapi/apache/Makefile
creating regex/Makefile
creating main/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.
--clip end--

  I tried delete the config.cache file and tried again.  Doesn't work.  I tried the configure command without using the "--with-ibm-db2" option and it can see the iODBC.  I tried it again with this option and it can not see the iODBC.  Thanks!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-20 19:51 UTC] sniper@php.net
Please include the part of config.log which might
show why iodbc check fails.

--Jani

 [2001-10-22 04:32 UTC] kara@php.net
You can't use iodbc and ibm-db2 (or any other uodbc combination) together.
Just use iodbc and db2 as driver for iodbc.
 [2001-10-22 09:34 UTC] ahill@php.net
It's your LD_LIBRARY_PATH.
Modify it to indclude the libpath stuff after the db2 ld_library_path stuff.

Best regards,
Andrew Hill
OpenLink Software
 [2001-10-22 12:20 UTC] scott at abcoa dot com
  Yes you can use both the "--iodbc" and "--with-ibm-db2" option when configuring.  Other PHP users told me they had it configure and compiled without a problem.

  For now, I'm not going to reconfigure and test it 'cause I'm out of time with it and is moving on with the other projects.  

  One of you mentioned about the libpath and ld_library_path.  Last time I remembered, I just include the full path in both the ld_library_path and libpath to see if whether it work or not.  So far, it doesn't!  

  Sorry, I cannot help you all any further.

Scott F.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC