ID: 15436
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: RedHat 7.2
PHP Version: 4.0CVS-2002-02-07
New Comment:
Update the existing analyzed bug report and do NOT reopen this one
anymore.
Previous Comments:
------------------------------------------------------------------------
[2002-04-23 03:52:01] [EMAIL PROTECTED]
php 4.2.0 - compile failure.
------------------------------------------------------------------------
[2002-04-23 00:00:17] [EMAIL PROTECTED]
Please do _NOT_ report same issue many times!
------------------------------------------------------------------------
[2002-02-25 09:35:23] [EMAIL PROTECTED]
I doscivered, that PHP team does changes the way is how PHP compiled
with mysql. I probed php-4.0.5 and php-4.1.1 with the same installation
of mnogosearch, and php-4.0.5 compiles ok, and 4.1.1 produced the same
error. 8(
I does not know of how to correctly fix that.
To PHP team: any comments ?
------------------------------------------------------------------------
[2002-02-21 16:13:01] [EMAIL PROTECTED]
Check, after Gluke sugestion.
> MySQL
$ rpm -qa |grep MySQL
MySQL-devel-3.23.47-1
MySQL-shared-3.23.47-1
MySQL-client-3.23.47-1
MySQL-3.23.47-1
Info about some locations from rpm'ed mysql:
libmysqlclient.so is located in /usr/lib/
libmysqlclient.a in /usr/lib/mysql/
.h files in /usr/include/mysql/
> Apache
There is nothing to touch from previous instalation.
> Mnogosearch
; we are 100% sure that no old stuff left
$ rm -rf mnogosearch-3.1.19/ /usr/local/mnogosearch-3.1.19
$ tar zxfv mnogosearch-3.1.19.tar.gz ; cd mnogosearch-3.1.19/
; gluke config
$ ./configure --with-mysql --enable-shared \
--prefix=/usr/local/mnogosearch-3.1.19
$ make && make install
; done
$ cd ..
; lets check whats installed
$ ls /usr/local/mnogosearch-3.1.19/lib/
libudmsearch-3.1.so libudmsearch.a libudmsearch.la
libudmsearch.so
It's too easy, lets check something:
$ ldd /usr/local/mnogosearch-3.1.19/lib/libudmsearch.so
libm.so.6 => /lib/i686/libm.so.6 (0x40072000)
libz.so.1 => /usr/lib/libz.so.1 (0x40095000)
libc.so.6 => /lib/i686/libc.so.6 (0x400a3000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Where is link to dynamic lib of mysql?
Still no straight feedback from mnogosearch dev. team:
http://www.mnogosearch.org/board/message.php?id=4102
> Php
; let's try an up-to-date shap
$ tar zxfv php4-200202211200.tar.gz ; php4-200202211200/
; standard instalation
$ ./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr --with-zlib --enable-memory-limit \
--with-mnogosearch=/usr/local/mnogosearch-3.1.19
$ make
- error ----------------------------------------------
/bin/sh /root/php4-200202211200/libtool --silent --mode=link gcc
-I. -I/root/php4-200202211200/ -I/root/php4-200202211200/main
-I/root/php4-200202211200 -I/usr/local/apache/include
-I/root/php4-200202211200/Zend
-I/usr/local/mnogosearch-3.1.19/include -I/usr/include/mysql
-I/root/php4-200202211200/ext/xml/expat -DLINUX=22 -DUSE_HSREGEX
-I/root/php4-200202211200/TSRM -g -O2 -prefer-pic -o libphp4.la
-rpath /root/php4-200202211200/libs -avoid-version
-L/usr/lib/mysql -L/usr/local/mnogosearch-3.1.19/lib -R
/usr/lib/mysql -R /usr/local/mnogosearch-3.1.19/lib stub.lo
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/libregex.la /root/php4-200202211200/ext/zlib/libzlib.la
/root/php4-200202211200/ext/mnogosearch/libmnogosearch.la
/root/php4-200202211200/ext/mysql/libmysql.la
/root/php4-200202211200/ext/overload/liboverload.la
/root/php4-200202211200/ext/pcre/libpcre.la
/root/php4-200202211200/ext/posix/libposix.la
/root/php4-200202211200/ext/session/libsession.la
/root/php4-200202211200/ext/standard/libstandard.la
/root/php4-200202211200/ext/xml/libxml.la TSRM/libtsrm.la -lpam
-lmysqlclient -lz -ludmsearch -lz -lm -lmysqlclient -lz -lcrypt
-lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple
definition of `mysql_port'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): first
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): multiple
definition of `mysql_unix_port'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): first
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o): In function
`net_safe_read':
libmysql.o(.text+0x1cc): multiple definition of `net_safe_read'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x1cc): first
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o): In function
`simple_command':
libmysql.o(.text+0x2d4): multiple definition of `simple_command'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x2d4): first
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o): In function
`mysql_real_connect':
libmysql.o(.text+0xc6c): multiple definition of
`mysql_real_connect'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xc6c): first
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o): In function
`mysql_select_db':
libmysql.o(.text+0x2e68): multiple definition of
`mysql_select_db'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x2e68): first
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o): In function
`mysql_query':
libmysql.o(.text+0x2ef4): multiple definition of `mysql_query'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x2ef4): first
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o): In function
`mysql_use_result':
libmysql.o(.text+0x2338): multiple definition of
`mysql_use_result'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x2338): first
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o): In function
`mysql_close':
libmysql.o(.text+0x1ad0): multiple definition of `mysql_close'
[...]
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function
`_db_return_':
dbug.o(.text+0x9bc): multiple definition of `_db_return_'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x9bc): first
defined here
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function
`_db_pargs_':
dbug.o(.text+0xac8): multiple definition of `_db_pargs_'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xac8): first
defined here
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function
`_db_lock_file':
dbug.o(.text+0xae0): multiple definition of `_db_lock_file'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xae0): first
defined here
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function
`_db_unlock_file':
dbug.o(.text+0xaf4): multiple definition of `_db_unlock_file'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xaf4): first
defined here
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/root/php4-200202211200'
make: *** [all-recursive] Error 1
------------------------------------------------------
$ cd ..
:(
------------------------------------------------------------------------
[2002-02-21 03:47:27] [EMAIL PROTECTED]
You should recompile mnogosearch dynamically also after addimg mysql
shared libs.
./configure --with-mysql --enable-shared
It will produce mnogosearch dynamic library.
Then compile PHP dynamically.
./configure --with-mysql=DIR --with-mnogosearch=DIR
Please write feedback of what happen after that.
------------------------------------------------------------------------
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/15436
--
Edit this bug report at http://bugs.php.net/?id=15436&edit=1