[tpop3d-discuss] auth-mysql config error

Prune prune at lecentre.net
Tue, 09 Apr 2002 09:28:36 +0200


--------------080101010607070601070606
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

try to add

/usr/local/mysql/include

or

/usr/local/mysql/include/mysql

to the CFLAGS (or CPPFLAGS) with -I :


export CFLAGS="-I/usr/local/mysql/include"

...
I saw configure add the -L flag. also add to LDFLAGS : 
export LDFLAGS="-L/usr/local/mysql/lib/mysql -R/usr/local/mysql/lib/mysql"          (solaris only)
also add it to LD_LIBRARY_PATH variable.

Cheers,

Prune



Robert Hough wrote:

>Apologies if this has been a repeated question, but I didn't have much
>luck finding my answer in the archives.
>
>I'm attempting to configure and build tpop3d with the auth-mysql
>enabled, but have been running into some problems.  The configure
>script keeps telling me that it is unable to find the libmysqlclient
>library, yet it exists. I'm not too familiar with Solaris, so I suppose
>it could easily be my ignorance with the OS. I had no problems getting
>this built under FreeBSD. It builds fine if I remove auth_mysql, but
>we want to use the sql support.
>
>[rch@cenote]$ uname -a
>SunOS cenote 5.7 Generic_106541-19 sun4m sparc SUNW,SPARCstation-4
>
>[rch@cenote tpop3d-1.3.5]$ ./configure --enable-auth-mysql \
>
>>--with-mysql-root=/usr/local/mysql \
>>--disable-cclient-locking
>>
>
>creating cache ./config.cache
>checking for a BSD compatible install... config/install-sh -c
>checking whether build environment is sane... yes
>checking whether make sets ${MAKE}... yes
>checking for working aclocal... missing
>checking for working autoconf... missing
>checking for working automake... missing
>checking for working autoheader... missing
>checking for working makeinfo... missing
>checking for gcc... gcc
>checking whether the C compiler (gcc   -L/usr/local/mysql/lib/mysql)
>works... yes
>checking whether the C compiler (gcc   -L/usr/local/mysql/lib/mysql) is
>a cross-compiler... no
>checking whether we are using GNU C... yes
>checking whether gcc accepts -g... yes
>checking for library containing socket... -lsocket
>checking for gethostbyname... no
>checking for gethostbyname in -lnsl... yes
>checking for crypt in -lcrypt... yes
>checking for dlopen in -ldl... yes
>checking for pam_start in -lpam... yes
>checking for main in -lmysqlclient... no
>configure: error: vmail-sql authentication enabled, but can't find
>libmysqlclient
>
>[rch@cenote tpop3d-1.3.5]$ ls -1 /usr/local/mysql/lib/mysql/libmysqlclient*
>/usr/local/mysql/lib/mysql/libmysqlclient.a
>/usr/local/mysql/lib/mysql/libmysqlclient.la
>/usr/local/mysql/lib/mysql/libmysqlclient.so
>/usr/local/mysql/lib/mysql/libmysqlclient.so.10
>/usr/local/mysql/lib/mysql/libmysqlclient.so.10.0.0
>
>[rch@cenote tpop3d-1.3.5]$ ls -1 /usr/local/mysql/include/mysql/mysql.h
>/usr/local/mysql/include/mysql/mysql.h
>


--------------080101010607070601070606
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
Hi,<br>
<br>
try to add 
<pre wrap="">/usr/local/mysql/include</pre>
or<br>
<pre wrap="">/usr/local/mysql/include/mysql<br><br>to the CFLAGS (or CPPFLAGS) with -I :<br><br><br>export CFLAGS="-I/usr/local/mysql/include"<br><br>...<br>I saw configure add the -L flag. also add to LDFLAGS : <br>export LDFLAGS="-L/usr/local/mysql/lib/mysql -R/usr/local/mysql/lib/mysql"          (solaris only)<br>also add it to LD_LIBRARY_PATH variable.<br><br>Cheers,<br><br>Prune<br></pre>
<br>
<br>
Robert Hough wrote:<br>
<blockquote type="cite" cite="mid:20020408154430.C6519@acidpit.org">
  <pre wrap="">Apologies if this has been a repeated question, but I didn't have much<br>luck finding my answer in the archives.<br><br>I'm attempting to configure and build tpop3d with the auth-mysql<br>enabled, but have been running into some problems.  The configure<br>script keeps telling me that it is unable to find the libmysqlclient<br>library, yet it exists. I'm not too familiar with Solaris, so I suppose<br>it could easily be my ignorance with the OS. I had no problems getting<br>this built under FreeBSD. It builds fine if I remove auth_mysql, but<br>we want to use the sql support.<br><br>[rch@cenote]$ uname -a<br>SunOS cenote 5.7 Generic_106541-19 sun4m sparc SUNW,SPARCstation-4<br><br>[rch@cenote tpop3d-1.3.5]$ ./configure --enable-auth-mysql \<br></pre>
  <blockquote type="cite">
    <pre wrap="">--with-mysql-root=/usr/local/mysql \<br>--disable-cclient-locking<br></pre>
    </blockquote>
    <pre wrap=""><!----><br>creating cache ./config.cache<br>checking for a BSD compatible install... config/install-sh -c<br>checking whether build environment is sane... yes<br>checking whether make sets ${MAKE}... yes<br>checking for working aclocal... missing<br>checking for working autoconf... missing<br>checking for working automake... missing<br>checking for working autoheader... missing<br>checking for working makeinfo... missing<br>checking for gcc... gcc<br>checking whether the C compiler (gcc   -L/usr/local/mysql/lib/mysql)<br>works... yes<br>checking whether the C compiler (gcc   -L/usr/local/mysql/lib/mysql) is<br>a cross-compiler... no<br>checking whether we are using GNU C... yes<br>checking whether gcc accepts -g... yes<br>checking for library containing socket... -lsocket<br>checking for gethostbyname... no<br>checking for gethostbyname in -lnsl... yes<br>checking for crypt in -lcrypt... yes<br>checking for dlopen in -ldl... yes<br>checking for pam_start in -
lpam... yes<br>checking for main in -lmysqlclient... no<br>configure: error: vmail-sql authentication enabled, but can't find<br>libmysqlclient<br><br>[rch@cenote tpop3d-1.3.5]$ ls -1 /usr/local/mysql/lib/mysql/libmysqlclient*<br>/usr/local/mysql/lib/mysql/libmysqlclient.a<br>/usr/local/mysql/lib/mysql/libmysqlclient.la<br>/usr/local/mysql/lib/mysql/libmysqlclient.so<br>/usr/local/mysql/lib/mysql/libmysqlclient.so.10<br>/usr/local/mysql/lib/mysql/libmysqlclient.so.10.0.0<br><br>[rch@cenote tpop3d-1.3.5]$ ls -1 /usr/local/mysql/include/mysql/mysql.h<br>/usr/local/mysql/include/mysql/mysql.h<br><br></pre>
    </blockquote>
    <br>
    </body>
    </html>

--------------080101010607070601070606--