Background:
I'm running Mandrake 8.0. I'm trying to get php working using the openlink odbc driver manager to talk to MS SQL 2k on Win2k. I installed it and got it working with perl (yay! - see http://www.iodbc.org for the directions I used for this).
Here are the commands that I used:
When trying to build it into apache:
(in php directory)
./configure --without-mysql
--with-apache=/home/quintin/apache_1.3.24
--with-iodbc=/usr/openlink/odbcsdk
make
make install
(seems to work)
(first attempt in apache directory)
./configure
--activate-module=src/modules/php4/libphp4.a
make
(fails... returns following)
[insert a zillion undefined references here]
/home/quintin/php-4.1.2/ext/standard/array.c:419:
undefined reference to ts_resource_ex'
modules/php4/libphp4.a(array.lo):/home/quintin/php-4.1.2/ext/standard/array.c:448:
more undefined references tots_resource_ex' follow
collect2: ld returned 1 exit status
make[2]: [target_static] Error 1
make[2]: Leaving directory
/home/quintin/apache_1.3.24/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory/home/quintin/apache_1.3.24'
make: [build] Error 2
(second attempt to build apache)
./configure --add-module=src/modules/php4/mod_php4.c
--enable-shared=php4
make
(fails... returns🙂
gcc -c -I../../os/unix -I../../include -DLINUX=22
-DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite
../../apaci -fpic -DSHARED_MODULE mod_php4.c && mv
mod_php4.o mod_php4.lo
mod_php4.c:28:18: zend.h: No such file or directory
mod_php4.c:29:17: php.h: No such file or directory
mod_php4.c:30:27: php_variables.h: No such file or
directory
mod_php4.c:47:21: php_ini.h: No such file or directory
mod_php4.c:48:25: php_globals.h: No such file or
directory
mod_php4.c:49:18: SAPI.h: No such file or directory
mod_php4.c:50:22: php_main.h: No such file or
directory
mod_php4.c:52:26: zend_compile.h: No such file or
directory
mod_php4.c:53:26: zend_execute.h: No such file or
directory
mod_php4.c:54:28: zend_highlight.h: No such file or
directory
mod_php4.c:55:25: zend_indent.h: No such file or
directory
mod_php4.c:57:39: ext/standard/php_standard.h: No such
file or directory
mod_php4.c:61:22: mod_php4.h: No such file or
directory
make[4]: [mod_php4.so] Error 1
make[3]: [all] Error 1
make[2]: [subdirs] Error 1
make[2]: Leaving directory
/home/quintin/apache_1.3.24/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory/home/quintin/apache_1.3.24'
make: [build] Error 2
okay... that didn't work, so I try the DSO approach...
(in apache directory)
./configure --enable-shared=max
make
make install
(looks good)
(in php directory)
./configure --without-mysql
--with-openlink=/usr/openlink/odbcsdk
--with-apxs=/usr/local/apache/bin/apxs
make
make install
(looks good)
[root@localhost bin]# ./apachectl start
Syntax error on line 222 of
/usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so:
undefined symbol: sapi_globals
./apachectl start: httpd could not be started
(not good)
[root@localhost conf]# grep php httpd.conf
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
looks okay, but it doesn't work. I'm out of ideas. I tried similar stuff with apache2.0.35. Here's the link to that post:
http://www.phpbuilder.com/forum/read.php3?num=3&id=110233&thread=110228
My preference for getting php+openlink+apache working is stronger than my preference for apache or php version, or DSO vs. Static object.
If you made it here, then I appreciate your taking the time to read my post. Any help would be greatly appreciated.
Quintin