ID: 20928 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: RH 7.2 PHP Version: 4.3.0 New Comment:
Uh..please DO NOT PASTE that much. You can easily cut off some.. This will work: # ./configure --with-ibm-db2=/home/db2inst1/sqllib/ --disable-all Or # ./configure --with-ibm-db2 Not a bug. Previous Comments: ------------------------------------------------------------------------ [2003-01-17 21:26:24] [EMAIL PROTECTED] I noticed that you do /home/db2inst1/lib...All DB2 instance home directories have "sqllib" as a subdirectory which "lib" is located in. You will want to add that to configure so that if someone says --with-ibm-db2=/home/db2inst1, it knows that everything is under /home/db2inst1/sqllib (include dirs, lib dirs, etc.). Thats how it used to work anyway. It must have gotten changed at some point. Nope, I get the following after "make": [root@voyager php4-STABLE-200212200030]# make gcc -I -Isapi/cgi/ -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/sapi/cgi/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/include -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/main -I/usr/src/redhat/BUILD/php4-STABLE-200212200030 -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/Zend -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/TSRM -g -O2 -c /usr/src/redhat/BUILD/php4-STABLE-200212200030/sapi/cgi/cgi_main.c -o sapi/cgi/cgi_main.o && echo > sapi/cgi/cgi_main.lo /usr/src/redhat/BUILD/php4-STABLE-200212200030/sapi/cgi/cgi_main.c: In function `main': /usr/src/redhat/BUILD/php4-STABLE-200212200030/sapi/cgi/cgi_main.c:1000: warning: passing arg 2 of `cfg_get_long' from incompatible pointer type gcc -I -Isapi/cgi/ -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/sapi/cgi/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/include -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/main -I/usr/src/redhat/BUILD/php4-STABLE-200212200030 -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/Zend -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/TSRM -g -O2 -c /usr/src/redhat/BUILD/php4-STABLE-200212200030/sapi/cgi/getopt.c -o sapi/cgi/getopt.o && echo > sapi/cgi/getopt.lo gcc -Imain/ -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/main/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/include -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/main -I/usr/src/redhat/BUILD/php4-STABLE-200212200030 -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/Zend -I/usr/src/redhat/BUILD/php4-STABLE-200212200030/TSRM -g -O2 -c main/internal_functions.c -o main/internal_functions.o && echo > main/internal_functions.lo /bin/sh libtool --silent --mode=link gcc -export-dynamic -g -O2 -L/home/db2inst1/lib ext/odbc/php_odbc.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo main/internal_functions.lo -ldb2 -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -o sapi/cgi/php /usr/bin/ld: cannot find -ldb2 collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Error 1 [root@voyager php4-STABLE-200212200030]# ================================= [root@voyager php4-STABLE-200212200030]# ls /home/db2inst1/sqllib/lib/ db2fs.jar libcatcp.a libdb2jwsup.so libdb2sqlj.so db2fsmri.jar libdb2apie.so libdb2jwsup.so.1 libddcs.a db2fstep libdb2apie.so.1 libdb2licm.so libdfcm.a db2jddba libdb2ar.so libdb2licm.so.1 libdpdcf.a db2jrt libdb2ccai.so.1 libdb2psmd.so libdrda.so db2mkrts.args libdb2ccsup.so.1 libdb2psmd.so.1 libibmosse.so db2rexx libdb2e.so.1 libdb2qp.so libibmosse.so.1 db2scedu libdb2gmf.a libdb2scedu.so.1 libmsrvs.so.1 libadsm.a libdb2jdbc.so libdb2si.so.1 libasnlib.a libdb2jdsup.so.1 libdb2.so libcapro.so.1 libdb2jext.so libdb2.so.1 ------------------------------------------------------------------------ [2003-01-17 20:49:41] [EMAIL PROTECTED] So it does COMPILE fine when you compile PHP as DSO? Did you try the configure line I gave? ------------------------------------------------------------------------ [2003-01-17 20:46:50] [EMAIL PROTECTED] I havn't been able to get it to work at all as a DSO as something conflicts with mod_ssl and apache crashes. ------------------------------------------------------------------------ [2003-01-17 20:30:31] [EMAIL PROTECTED] One thing I forgot to ask: Does it work if you compile PHP as DSO ? (--with-apxs) And try this too: # rm config.cache # ./configure --with-ibm-db2=/home/db2inst1 --disable-all # make ------------------------------------------------------------------------ [2003-01-16 10:53:20] [EMAIL PROTECTED] This isn't an ODBC issue per say, but rather a compile issue. Moving this to the compile category. Also updating version. ------------------------------------------------------------------------ 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/20928 -- Edit this bug report at http://bugs.php.net/?id=20928&edit=1