Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1328 - Postfix with MySQL compile error
Summary: Postfix with MySQL compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-24 06:47 UTC by F. Kooman
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description F. Kooman 2002-03-24 06:47:10 UTC
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 .
Comment 1 F. Kooman 2002-03-24 07:07:29 UTC
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
Comment 2 Donny Davies (RETIRED) gentoo-dev 2002-03-24 14:00:37 UTC
thanks for the heads up.  fixed.