Bug 182240 - MySQL support missing in dovecot on x86_64
Summary: MySQL support missing in dovecot on x86_64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: dovecot
Version: 4.0
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Petr Rockai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 181409 181448
TreeView+ depends on / blocked
 
Reported: 2006-02-21 10:56 UTC by Matthias Saou
Modified: 2007-11-30 22:07 UTC (History)
3 users (show)

Fixed In Version: RHBA-2006-0439
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-10 21:37:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0439 0 normal SHIPPED_LIVE dovecot bug fix update 2006-08-09 04:00:00 UTC

Description Matthias Saou 2006-02-21 10:56:27 UTC
It seems like dovecot's configure script doesn't detect the MySQL libraries
when they're in /usr/lib64, so the current (0.99.11-2.EL4.1) RHEL4 dovecot
package has MySQL support properly built-in on i386, but missing on x86_64.

A quick workaround would be adding this before %configure :
export CFLAGS="%{optflags} `mysql_config --libs` -fPIC"

Please note I've just checked, and this is also true in FC development
(1.0-0.beta2.4.1).

Comment 1 Matthias Saou 2006-02-21 11:01:02 UTC
Following my attempts to get dovecot with MySQL running, I also noticed that
the example LDAP and SQL configurations referenced in the docs are missing
from the package. This should be added to %files :

%doc doc/*.conf

The files are :
doc/dovecot-ldap.conf
doc/dovecot-sql.conf

Comment 2 Petr Rockai 2006-03-01 16:58:20 UTC
Fixed both issues in rawhide. 

Comment 4 Paul Howarth 2006-03-03 12:37:21 UTC
Looking at the patch that fixes this, I noticed in the sqlite library detection
part of configure (which says it's stolen from the mysql code above), the sqlite
headers and libraries are found but then the variables that are set are
MYSQL_INCLUDE and MYSQL_LIBDIR rather than SQLITE_INCLUDE and SQLITE_LIBDIR.
Looks wrong to me!

This is also now the only patch that affects autotools input files. Why not edit
configure directly and skip running the autotools altogether?

Comment 5 Petr Rockai 2006-03-03 12:43:47 UTC
> This is also now the only patch that affects autotools input files.  
> Why not edit configure directly and skip running the autotools  
> altogether?  
Why yes? 
 
For the other issue, it indeed looks wrong, i'll check it. 

Comment 6 Matthias Saou 2006-03-09 09:46:28 UTC
Indeed, the MYSQL_LIBDIR setting for sqlite seems wrong, but that's an upstream
mistake apparently.

Thanks for the fix that will go in FC5.

But now, would it be possible to also add a similar patch to the RHEL4 package?
This is really a nasty bug, since the i386 and x86_64 packages end up having
different functionnalities.

Comment 7 Petr Rockai 2006-03-17 10:51:48 UTC
Fixed also the sqlite detection, will go into next release. When some more 
issues collect for fc5, will release an update.

Comment 9 Petr Rockai 2006-04-05 06:48:11 UTC
Adding devel ACK, see comment #8.

Comment 11 Ignacio Vazquez-Abrams 2006-04-13 10:20:20 UTC
This has been fixed upstream in 1.0beta6.

Comment 15 Red Hat Bugzilla 2006-08-10 21:37:21 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0439.html



Note You need to log in before you can comment on or make changes to this bug.