Michael Goth
2005-Mar-31 17:17 UTC
[Dovecot] dovecot-1.0-test65 + mysql build problem (sha1_result)
Hello all!
When trying to build dovecot-1.0-test65 with mysql support I get the
following error:
...
/usr/local/mysql/lib/libmysqlclient.a(sha1.o)(.text+0x5c): In function
`sha1_result':
: multiple definition of `sha1_result'
../lib/liblib.a(sha1.o)(.text+0x830):/usr/local/src/dovecot/dovecot-1.0-test65/src/lib/sha1.c:242:
first defined here
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld:
Warning: size of symbol `sha1_result' changed from 158 in
../lib/liblib.a(sha1.o) to 126 in ../lib/liblib.a(sha1.o)
collect2: ld returned 1 exit status
make[3]: *** [dovecot-auth] Error 1
make[3]: Leaving directory
`/usr/local/src/dovecot/dovecot-1.0-test65/src/auth'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/local/src/dovecot/dovecot-1.0-test65/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/dovecot/dovecot-1.0-test65'
make: *** [all] Error 2
The version of mysql I'm using is 4.1.10a. Could this mean that dovecot
uses a function ('sha1_result') that already exists in libmysqlclient.a?
If not, can someone perhaps point me into the right direction where to
look for the error? I can provide more details about my setup, if
needed, of course.
Regards,
Michael
Timo Sirainen
2005-Apr-02 22:13 UTC
[Dovecot] dovecot-1.0-test65 + mysql build problem (sha1_result)
On Thu, 2005-03-31 at 19:17 +0200, Michael Goth wrote:> The version of mysql I'm using is 4.1.10a. Could this mean that dovecot > uses a function ('sha1_result') that already exists in libmysqlclient.a?Yes, and I'm not going to change it. Mysql is a library, and it's library's job to keep the exported functions in a namespace that is unlikely to conflict with the actual program that's trying to use the library. Maybe this is fixed in newer versions? I don't know. If not, I'd suggest telling Mysql people to fix it. Dovecot won't be the only program having trouble with it. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050403/f19ac6b6/attachment-0001.bin>