[PHP-DEV] Bug #15346 Updated: mysql mnogosearch - php static libs

2002-02-03 Thread gluke

ID:   15346
Updated by:   [EMAIL PROTECTED]
Reported By:  [EMAIL PROTECTED]
Old Status:   Open
Status:   Analyzed
Bug Type: Compile Failure
Operating System: Linux 2.2
PHP Version:  4.1.1
New Comment:

This is a bug in PHP as i think, i dont know why it
searches for static mysql library.

I suggest you to configure mnogosearch with --enable-static,
and configure PHP as usual , e.g --with-mysql=/usr

Such configuration works fine for me.



Previous Comments:


[2002-02-03 00:30:41] [EMAIL PROTECTED]

http://bugs.php.net/bug.php?id=14824

: This could happen for example if you compiled mnogosearcg
: statically with mysql and trying to compile it with php, which
: is also required mysql. So you are linking mysql twice. 
:
: To fix this - just compile mnogosearch and php with dynamic
: libs not static.

Lets play:

$ 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

No one finds static lib - no one use it:
$ cd /usr/lib/mysql/
$ mv libmysqlclient.a libmysqlclient.a_

Mnogosearch...
; no old stuff left here
$ 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/
; dynamic, be dynamic...
$ ./configure --with-mysql --prefix=/usr/local/mnogosearch-3.1.19 
--enable-shared --disable-static
$ make  make install
; compilation successfull
$ ldd /usr/local/mnogosearch-3.1.19/lib/libudmsearch-3.1.so
libmysqlclient.so.10 = /usr/lib/libmysqlclient.so.10 
(0x0014b000)
[...]
; did we win?

Php...
; no old stuff left here
$ rm -rf php4-200201261200/
$ tar zxfv php4-200201261200.tar.gz
$ cd php4-200201261200/
; minimum config for compile test
$ ./configure --with-mysql=shared,/usr --with-zlib 
--with-mnogosearch=/usr/local/mnogosearch-3.1.19
$ make
; ... ...
/bin/sh /root/php4-200201261200/libtool --silent --mode=link gcc 
-I. -I/root/php4-200201261200/sapi/cli 
-I/root/php4-200201261200/main -I/root/php4-200201261200 
-I/root/php4-200201261200/Zend 
-I/usr/local/mnogosearch-3.1.19/include -I/usr/include/mysql 
-I/root/php4-200201261200/ext/xml/expat  
-I/root/php4-200201261200/TSRM -g -O2   -o php -export-dynamic  
libphp4cli.la
gcc: /usr/lib/mysql/libmysqlclient.a: No such file or directory
make[2]: *** [php] Error 1
make[2]: Leaving directory `/root/php4-200201261200/sapi/cli'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php4-200201261200/sapi/cli'
make: *** [all-recursive] Error 1

 gcc: /usr/lib/mysql/libmysqlclient.a: No such file or directory

Where php found this static lib and decide to use it?







Edit this bug report at http://bugs.php.net/?id=15346edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Bug #15346 Updated: mysql mnogosearch - php static libs

2002-02-03 Thread gluke

ID:   15346
Updated by:   [EMAIL PROTECTED]
Reported By:  [EMAIL PROTECTED]
Status:   Analyzed
Bug Type: Compile Failure
Operating System: Linux 2.2
PHP Version:  4.1.1
New Comment:

This is a bug in PHP as i think, i dont know why it
searches for static mysql library.

I suggest you to configure mnogosearch with --enable-static,
and configure PHP as usual , e.g --with-mysql=/usr

Such configuration works fine for me.



Previous Comments:


[2002-02-03 11:55:24] [EMAIL PROTECTED]

This is a bug in PHP as i think, i dont know why it
searches for static mysql library.

I suggest you to configure mnogosearch with --enable-static,
and configure PHP as usual , e.g --with-mysql=/usr

Such configuration works fine for me.




[2002-02-03 00:30:41] [EMAIL PROTECTED]

http://bugs.php.net/bug.php?id=14824

: This could happen for example if you compiled mnogosearcg
: statically with mysql and trying to compile it with php, which
: is also required mysql. So you are linking mysql twice. 
:
: To fix this - just compile mnogosearch and php with dynamic
: libs not static.

Lets play:

$ 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

No one finds static lib - no one use it:
$ cd /usr/lib/mysql/
$ mv libmysqlclient.a libmysqlclient.a_

Mnogosearch...
; no old stuff left here
$ 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/
; dynamic, be dynamic...
$ ./configure --with-mysql --prefix=/usr/local/mnogosearch-3.1.19 
--enable-shared --disable-static
$ make  make install
; compilation successfull
$ ldd /usr/local/mnogosearch-3.1.19/lib/libudmsearch-3.1.so
libmysqlclient.so.10 = /usr/lib/libmysqlclient.so.10 
(0x0014b000)
[...]
; did we win?

Php...
; no old stuff left here
$ rm -rf php4-200201261200/
$ tar zxfv php4-200201261200.tar.gz
$ cd php4-200201261200/
; minimum config for compile test
$ ./configure --with-mysql=shared,/usr --with-zlib 
--with-mnogosearch=/usr/local/mnogosearch-3.1.19
$ make
; ... ...
/bin/sh /root/php4-200201261200/libtool --silent --mode=link gcc 
-I. -I/root/php4-200201261200/sapi/cli 
-I/root/php4-200201261200/main -I/root/php4-200201261200 
-I/root/php4-200201261200/Zend 
-I/usr/local/mnogosearch-3.1.19/include -I/usr/include/mysql 
-I/root/php4-200201261200/ext/xml/expat  
-I/root/php4-200201261200/TSRM -g -O2   -o php -export-dynamic  
libphp4cli.la
gcc: /usr/lib/mysql/libmysqlclient.a: No such file or directory
make[2]: *** [php] Error 1
make[2]: Leaving directory `/root/php4-200201261200/sapi/cli'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php4-200201261200/sapi/cli'
make: *** [all-recursive] Error 1

 gcc: /usr/lib/mysql/libmysqlclient.a: No such file or directory

Where php found this static lib and decide to use it?







Edit this bug report at http://bugs.php.net/?id=15346edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Bug #14824 Updated: libmysqlclient.a error at compile time

2002-02-02 Thread gluke

ID: 14824
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Compile Failure
Operating System: Red Hat Linux 7.2, kernel 2.4.7
PHP Version: 4.1.1
New Comment:

This could happen for example if you compiled mnogosearcg statically
with mysql and trying to compile it with php, which is also required
mysql. So you are linking mysql twice. 

To fix this - just compile mnogosearch and php with dynamic libs not
static.


Previous Comments:


[2002-01-25 11:28:33] [EMAIL PROTECTED]

Same issues but with RedHat 6.2.

Like the original poster, I also copied libtool from my 4.0.6
installation and it works fine.



[2002-01-18 06:39:03] [EMAIL PROTECTED]

/usr/lib/mysql/libmysqlclient.a(getvar.o)(.text+0x28c): first defined
here
/usr/lib/mysql/libmysqlclient.a(my_lib.o): In function `my_dir':
my_lib.o(.text+0x18): multiple definition of `my_dir'
/usr/lib/mysql/libmysqlclient.a(longlong2str.o)(.text+0x13c): first
defined here
/usr/lib/mysql/libmysqlclient.a(llstr.o): In function `llstr':
llstr.o(.text+0x0): multiple definition of `llstr'
/usr/lib/mysql/libmysqlclient.a(llstr.o)(.text+0x0): first defined
here
/usr/lib/mysql/libmysqlclient.a(ctype.o)(.data+0x0): multiple
definition of `ctype
_latin1'
/usr/lib/mysql/libmysqlclient.a(ctype-big5.o)(.data+0x301): multiple
definition of
 `sort_order_big5'
/usr/lib/mysql/libmysqlclient.a(ctype-big5.o)(.data+0x301): first
defined here
/usr/lib/mysql/libmysqlclient.a(ctype-big5.o): In function
`my_strcoll_big5':
ctype-big5.o(.text+0x51c): multiple definition of `my_strcoll_big5'
/usr/lib/mysql/libmysqlclient.a(ctype-tis620.o)(.text+0x4e4): first
defined here
/usr/lib/mysql/libmysqlclient.a(ctype-ujis.o)(.data+0x0): multiple
definition of `
ctype_ujis'
/usr/lib/mysql/libmysqlclient.a(ctype-ujis.o)(.data+0x0): first defined
here
/usr/lib/mysql/libmysqlclient.a(ctype-ujis.o)(.data+0x101): multiple
definition of
 `to_lower_ujis'
/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 `/usr/src/php-4.1.1'
make: *** [all-recursive] Error 1

:

I'm a bit tired of this problem.
It's a completely different machine, but the error is
the same.
So, it would be great if a PHP developer could help to us...

Regards,

Istvan



[2002-01-16 10:39:57] [EMAIL PROTECTED]

nope :(

mnogosearch 3.2.3 - errors at compile time:
In file included from 
/usr/local/mnogosearch-3.2.3/include/udmsearch.h:37,
 from 
/root/php-4.1.1/ext/mnogosearch/php_mnogo.h:31,
 from internal_functions.c:37:
/usr/local/mnogosearch-3.2.3/include/udm_doc.h:7: parse error 
before `1'
make[2]: *** [internal_functions.lo] Error 1

mnogosearch 3.1.19 - errors at linktool time:
/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(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



[2002-01-16 09:52:16] [EMAIL PROTECTED]

--with-mnogosearch

[PHP-DEV] Bug #12515 Updated: PHP-Compilation sucks: php_mnogo.h:76: Floating point numbers not allowed in #i

2001-08-15 Thread gluke

ID: 12515
Updated by: gluke
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: mnoGoSearch related
Operating System: Suse Linux 7.2, Kernel 2.4.x
PHP Version: 4.0.6
New Comment:

To be more exact i can tell that i will update mnogosearch php extenstion after 
release of mnogosearch-3.2.x, because of its fast API changes.

Previous Comments:


[2001-08-01 13:49:34] [EMAIL PROTECTED]

A development version of Mnogosearch won't work with PHP 4.0.6..you should use the 
3.1.3.5 version instead.

--Jani




[2001-08-01 11:39:43] [EMAIL PROTECTED]

Hi, 

I can't compile my PHP 4.0.6+Apache 1.3.20 with mnogosearch support. I get the 
followíng error: 

## 
/main -I/usr/local/src/php-4.0.6 -I/usr/local/apache/1.3.20/include 
-I/usr/local/src/php-4.0.6/Zend -I/usr/local/openssl/current/include 
-I/usr/include/freetype -I/usr/local/mnoGoSearch/current/include 
-I/usr/local/mysql/current/include/mysql -I/usr/lib/db2/db2inst1/sqllib/include 
-I/usr/local/lib/libswf/include -I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok 
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6/TSRM 
-DLINUX=22 -DDEV_RANDOM=/dev/random -DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT 
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c internal_functions.c 
In file included from internal_functions.c:37: 
/usr/local/src/php-4.0.6/ext/mnogosearch/php_mnogo.h:76: Floating point numbers not 
allowed in #if expressions 
In file included from /usr/lib/db2/db2inst1/sqllib/include/sqlcli1.h:42, 
from /usr/local/src/php-4.0.6/ext/odbc/php_odbc.h:170, 
from internal_functions.c:39: 
/usr/lib/db2/db2inst1/sqllib/include/sqlcli.h:718: warning: `ODBCVER' redefined 
/usr/local/src/php-4.0.6/ext/odbc/php_odbc.h:27: warning: this is the location of the 
previous definition 
make[2]: *** [internal_functions.lo] Error 1 
make[2]: Leaving directory `/usr/local/src/php-4.0.6/main' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/usr/local/src/php-4.0.6/main' 
make: *** [all-recursive] Error 1 
# 


Without mnogosearch support I can compile Apache with PHP. 
I have mnogosearch 3.2.0.b0. 

Can somebody help me? 

Thanks 

Stefan 





Edit this bug report at http://bugs.php.net/?id=12515edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11636 Updated: udm_set_agent_param($agent,UDM_PARAM_PAGE_NUM,$num) Doesn't set the active page

2001-07-04 Thread gluke

ID: 11636
Updated by: gluke
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

It is not the bug.

You should call Udm_Free_Res and then Udm_Find again to get other pages. Or you can 
set a big number at UDM_PARAM_PAGE_NUM before Udm_Find for example.

The search is very highly optimized to get only UDM_PARAM_PAGE_NUM results.

Previous Comments:
---

[2001-06-23 22:25:42] [EMAIL PROTECTED]

After calling udm_find( $agent,search string) ;

I can loop through the first 20 results (page size=20).
Then after that I cannot set the page using

udm_set_agent_param($agent,UDM_PARAM_PAGE_NUM,$num) 

It keeps returning the same page results (ie: 1-20).


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11636edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9670 Updated: udm_alloc_agent

2001-03-10 Thread gluke

ID: 9670
Updated by: gluke
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Assigned To: 
Comments:

mnoGoSearch extension is not available in php-4.0.4pl1.
It will be available in 4.0.5RC+

Previous Comments:
---

[2001-03-10 06:00:38] [EMAIL PROTECTED]
I am trying to use the mnogo (formerly udmsearch) functions within my app. Code below.

$nRet = udm_alloc_agent($dbaddr,"single");
udm_find($nRet,"sybase");

I get the following message:

Fatal error: Call to undefined function: udm_alloc_agent() in testudm.htm on line 4.

I compiled it with the option "--with-mnogosearch" and phpinfo shows that.


---

[2001-03-10 05:59:08] [EMAIL PROTECTED]
I am trying to use the mnogo (formerly udmsearch) functions within my app. Code below.

$nRet = udm_alloc_agent($dbaddr,"single");
udm_find($nRet,"sybase");

I get the following message:

Fatal error: Call to undefined function: udm_alloc_agent() in 
/home/www/computerstaff/docs/ncomputerstaff/testudm.htm on line 4.

I compiled it with the option "--with-mnogosearch" and phpinfo shows that.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9670edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]