Scoured the list archives and found the solution:

The mysql_connect function is depreciated and has apparently been
dropped entirely from mysql.  The new function is mysql_real_connect.

Change all instanes of mysql_connect with mysql_real_connect

Redo the configure from the top level install dir with the appropriate
config options, for example:

PATH=/services/db/mysql/bin:$PATH
CPPFLAGS="-I/services/db/mysql/include/mysql"
LDFLAGS="-L/services/db/mysql/lib/mysql"
export PATH
export CPPFLAGS
export LDFLAGS

./configure \
        --prefix=/services/mail/courier \
        --sysconfdir=/services/mail/conf \
        --mandir=/usr/local/man \
        --without-authldap \
        --without-authpgsql \
        --without-userdb \
        --with-authmysql \
        --localstatedir=/services/mail/var \
        --with-mysql-libs=/services/db/mysql/lib/mysql \
        --with-mysql-includes=/services/db/mysql/include/mysql

It will work.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:courier-users-admin@;lists.sourceforge.net] On Behalf 
> Of Jason Lixfeld
> Sent: Friday, October 18, 2002 4:48 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Courier compile with authmysql
> 
> 
> I've scoured the docs and have tried everything to try to get 
> courier to
> compile authmysql, but everytime I run the configure script, 
> the authlib
> portion never finds the mysql libraries:
> 
> checking for mysql_config... no
> checking for mysql_connect... no
> 
> My sql libraries and includes aren't in the default location 
> (/usr/lib,
> /usr/include) so I tried declaring the variables as per the FAQ.  With
> that failing aswell, I tried to symlink the non-default mysql libs and
> includes to the default locations.  I've included every 
> single option I
> can think of in my pre-configure script, which looks like this,
> currently:
> 
> CPPFLAGS="-I/usr/include/mysql -I/services/db/mysql/include/mysql"
> LDFLAGS="-L/usr/lib/mysql -L/services/db/mysql/lib/mysql 
> -lmysqlclient"
> export CPPFLAGS
> export LDFLAGS
> 
> ./configure \
>         --prefix=/services/mail/courier \
>         --sysconfdir=/services/mail/conf \
>         --mandir=/usr/local/man \
>         --without-authldap \
>         --with-authmysql=yes \
>         --enable-authmysql=yes \
>         --localstatedir=/services/mail/var \
>         --with-mysql-libs=/services/db/mysql/lib/mysql \
>         --with-mysql-includes=/services/db/mysql/include/mysql
> 
> The latest error is one that halts the configure script 
> because it can't
> find mysqlclient.so so I know that at least now, it's trying to look:
> 
> checking for mysql_config... no
> checking for mysql_connect... no
> configure: error: --with-authmysql specified but no mysqlclient.so
> configure: error: /bin/sh './configure' failed for authlib
> 
> Mysqlclient.so doesn't exist anywhere, so I assume it means
> libmysqlclient.so, which is located in a place where the LDFLAGS have
> been configured to look for it in:
> 
> [jlixfeld@industry imap]$ ls -al
> /services/db/mysql/lib/mysql/libmysqlclient.so*
> lrwxrwxrwx    1 root     root           24 Oct 18 01:35
> /services/db/mysql/lib/mysql/libmysqlclient.so ->
> libmysqlclient.so.11.0.0
> lrwxrwxrwx    1 root     root           24 Oct 18 01:35
> /services/db/mysql/lib/mysql/libmysqlclient.so.11 ->
> libmysqlclient.so.11.0.0
> -rwxr-xr-x    1 root     root       162784 Oct 18 01:35
> /services/db/mysql/lib/mysql/libmysqlclient.so.11.0.0
> [jlixfeld@industry imap]$
> 
> Any advice would be appreciated.
> 
> Running:
> 
> rh7.1
> Gcc 2.96 20000731
> courier-imap-1.5.3.20021014.RC2
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: 
> https://lists.sourceforge.net/lists/listinfo/c> ourier-users
> 



-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to