Discussion:
[bug-mailutils] mailutils (dev snaphots and git) does not build with mysql support enabled
Oleg Vinichenko
2015-08-23 18:48:03 UTC
Permalink
fatal error: mysql/plugin_auth_common.h: No such file or directory

In file included from /usr/include/mysql/mysql.h:64:0,
from mysql.c:26:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
#include <mysql/plugin_auth_common.h>
^
compilation terminated.
Makefile:1242: recipe for target 'mysql.lo' failed
make[2]: *** [mysql.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/net-mail/mailutils-2.99.99/work/mailutils-2.99.99/sql'
Makefile:1304: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-mail/mailutils-2.99.99/work/mailutils-2.99.99'
Makefile:1188: recipe for target 'all' failed
Eray Aslan
2015-08-25 10:51:10 UTC
Permalink
Post by Oleg Vinichenko
fatal error: mysql/plugin_auth_common.h: No such file or directory
Looks like the build system does not explicitly include the mysql
include directory (such as mysql_config --include output) in
sql/Makefile.am
--
Eray>
Sergey Poznyakoff
2015-08-26 21:29:27 UTC
Permalink
Post by Eray Aslan
Post by Oleg Vinichenko
fatal error: mysql/plugin_auth_common.h: No such file or directory
Looks like the build system does not explicitly include the mysql
include directory
The README file states clearly that:

Note that depending on how your MySQL system is installed, this
may require adding appropriate directories to the library and
include paths, e.g.:

./configure LDFLAGS='-L/usr/local/mysql/lib' \
CPPFLAGS='-I/usr/local/mysql/include' --with-mysql

Regards,
Sergey

Loading...