Hello! I have been this problem around the bush for a while and need some help from everyone. I have a RedHat 7.1 box which I am using for development purposes. As such it is running, for one web project, MySQL (3.23.42) and for another web project PostgreSQL (7.1.3), along, of course, with Apache (1.13.20) and PHP (4.0.6). The problem is this: I cannot seem to compile PHP with both MySQL and PostgreSQL support at the same time. When I use the command
"./configure --with-apxs=/opt/www/bin/apxs --with-mysq=/usr/local/mysql --with-pgsql=/usr/local/pgsql ; make"
the configure process runs just fine, however the make process gets just so far and gives the message:
"/usr/src/php-4.0.6/ext/pgsql/pgsql.c:110: multiple definition of `get_module'
ext/mysql/.libs/libmysql.al(php_mysql.lo):/usr/src/php-4.0.6/ext/mysql/php_mysql.c:188: first defined here
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.6'
make: *** [all-recursive] Error 1"
So I cannot compile PHP. Has anyone else seen this problem? What I would really like to do is duplicate the RH distribution method, where the core PHP product is compiled as one entity and support for imap, mysql, postgresql, ldap, etc. are each compiled as their own modules. Can anyone point me in the right direction?
Thanks in advance...
Justin Spies