# #24005 [Opn->Asn]: Distributions version of mnoGoSearch extension does not work with MySQL 4

- Thread: https://externals.io/message/2198
- Original archive: https://news-web.php.net/php.internals/2198
- Started by Sergey Kartashoff on 2003-06-06T12:12:51+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2198 — Sergey Kartashoff — 2003-06-06T12:12:51+00:00

URL: https://externals.io/message/2198#2198

Hi!

Friday, June 6, 2003, 2:32:33 PM, you wrote:

spn> gluke@php.net you have just been assigned to this bug by sniper@php.net

spn> ./configure --with-mysql=/usr --with-gd --with-ttf --enable-track-vars
spn> --with-apxs2=/usr/local/apache2/bin/apxs --with-mnogosearch
spn> --with-jpeg-dir=/root/source/jpeg-6b/ 
spn> --with-png-dir=/usr/local/lib/libpng.a
spn> --with-zlib-dir=/usr/local/lib/zlib.a
spn> --with-tiff-dir=/usr/local/lib/libtiff.a --with-mnogosearch 

spn> It failed complaining about "ext/mysql/phpmysql.c: undefined reference
spn> to mysql_create_db". I downloaded the latest php-extension from
spn> www.mnogosearch.org (mnogosearch-php-extension-1.7.3.tar.gz) and
spn> replaced the contents of ext/mnogosearch with the files in this archive
spn> and it all worked a treat (with a quick edit to remove the second
spn> reference to -lmysqlclient in the EXTRA_LIBS line the PHP Makefile...
spn> but I think that mnoGo's fault!)

spn> Sergey, deal with this.

Could you please help me with this ?
Could it be because of twice --with-mnogosearch string in configure ?
I thought that error could be caused by buggy linker, since gcc does
support multiple references to the same library. The second reference
to libmysqlclient come from udmconfig script while configuring php.
It return compiler swithes that used to compile mnogosearch.
E.g. -lmysqlclient -L/usr. It worked for many users for years,
and i really dont understand how to fix this at now.

-- 
Regards, Sergey aka gluke.

---

## #2200 — Jani Taskinen — 2003-06-06T14:30:49+00:00

URL: https://externals.io/message/2198#2200 · In reply to: #2198

>spn> It failed complaining about "ext/mysql/phpmysql.c: undefined reference
>spn> to mysql_create_db". I downloaded the latest php-extension from
>spn> www.mnogosearch.org (mnogosearch-php-extension-1.7.3.tar.gz) and
>spn> replaced the contents of ext/mnogosearch with the files in this archive
>spn> and it all worked a treat (with a quick edit to remove the second
>spn> reference to -lmysqlclient in the EXTRA_LIBS line the PHP Makefile...
>spn> but I think that mnoGo's fault!)
>
>Could it be because of twice --with-mnogosearch string in configure ?

    No.
    
> I thought that error could be
>caused by buggy linker, since gcc does support multiple references to the
>same library. The second reference to libmysqlclient come from udmconfig
>script while configuring php. It return compiler swithes that used to
>compile mnogosearch. E.g. -lmysqlclient -L/usr. It worked for many users

    It should return the -L/path/to/dir where it thinks libmysqlclient is.
    Doesn't it?
        
    --Jani

---

## #2247 — Sergey Kartashoff — 2003-06-09T06:47:10+00:00

URL: https://externals.io/message/2198#2247 · In reply to: #2200

Hi!

> > […]

JT>     No.

But user says thats the error.
    
> > […]

JT>     It should return the -L/path/to/dir where it thinks libmysqlclient is.
JT>     Doesn't it?
        
Yes, i show just an example. It returns the path to mysql libraries.

-- 
Regards, Sergey aka gluke.
