Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1328

Summary: Postfix with MySQL compile error
Product: Gentoo Linux Reporter: F. Kooman <fkooman>
Component: New packagesAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.