Compiling postfix with the mta-mysql USE variable doesn't work. cc -DHAS_MYSQL -I/usr/include -DHAS_PCRE -DUSE_SASL_AUTH -DHAS_DBM -DPATH_NDBM_H='<gdbm/ndbm.h>' -mcpu=i686 -march=i686 -O3 -pipe -I. -DLINUX2 -c dict_mysql.c dict_mysql.c:76: mysql.h: No such file or directory dict_mysql.c:90: parse error before `MYSQL' dict_mysql.c:90: warning: no semicolon at end of struct or union dict_mysql.c:95: parse error before `}' [snip] dict_mysql.c: In function `plmysql_dealloc': dict_mysql.c:545: `PLDB' undeclared (first use in this function) make: *** [dict_mysql.o] Error 1 make: *** [update] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 1, Exitcode 2 !!! compile problem !!! emerge aborting on /usr/portage/net-mail/postfix/postfix-1.1.3-r2.ebuild .
possible fix in ebuild (file: postfix-1.1.3-r2.ebuild) Change: if [ "`use mta-mysql`" ] ; then CCARGS="${CCARGS} -DHAS_MYSQL" AUXLIBS="${AUXLIBS} -lmysqlclient -lm" fi To: if [ "`use mta-mysql`" ] ; then CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql" AUXLIBS="${AUXLIBS} -lmysqlclient -lm" fi
thanks for the heads up. fixed.