Hi!

My versions:

mysql-3.23.52-44
mysql-client-3.23.52-44
mysql-devel-3.23.52-44
mysql-shared-3.23.52-44
gcc-3.2-39
gcc-c++-3.2-39
courier-imap-1.7.0

The mysql server is run.

./configure --enable-unicode --without-authpgsql --enable-workarounds-
for-imap-client-bugs --with-mysql

checking for mysql_config... /usr/bin/mysql_config
checking for mysql_connect... no
checking for mysql_real_connect... no

./make
./make check
./make install  (as root)


I found some line in {src}/authlib/config.log:

configure:6248: checking for mysql_config
configure:6266: found /usr/bin/mysql_config
configure:6278: result: /usr/bin/mysql_config
configure:6302: checking for mysql_connect
configure:6345: gcc -o conftest -g -O2 -Wall -I.. -I./..   conftest.c -
L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm  >&5
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld: 
cannot find -lz
collect2: ld returned 1 exit status
configure:6348: $? = 1
configure: failed program was:
#line 6307 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few 
prototypes,
    which can conflict with char mysql_connect (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mysql_connect ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mysql_connect) || defined 
(__stub___mysql_connect)
choke me
#else
f = mysql_connect;
#endif

  ;
  return 0;
}
configure:6364: result: no
configure:6371: checking for mysql_real_connect
configure:6414: gcc -o conftest -g -O2 -Wall -I.. -I./..   conftest.c -
L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm  >&5
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld: 
cannot find -lz
collect2: ld returned 1 exit status
configure:6417: $? = 1
configure: failed program was:
#line 6376 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few 
prototypes,
    which can conflict with char mysql_real_connect (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mysql_real_connect ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mysql_real_connect) || defined 
(__stub___mysql_real_connect)
choke me
#else
f = mysql_real_connect;
#endif

  ;
  return 0;
}
configure:6433: result: no


In /usr/lib/courier-imap/libexec/authlib nohing any *.mysql file
What should I do to compile?

best regads,
Andras




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to