[Dovecot] 1.1beta9 'make' fails on osx/Tiger, but OK on osx/Leopard (multiple definitions of symbol _hash_create)

snowcrash schneecrash+dovecot at gmail.com
Wed Nov 28 16:18:49 EET 2007


hi timo,

> > it's _not_ broken on Leopard, it was "broken" on Tiger
>
> Oh, interesting. I guess I won't add this workaround to Dovecot sources
> then. People have been building Dovecot on OSX for a long time and
> no-one's complained about this before.

so have i ...

but, i'd gather they've _not_ been using 1.1.b9 & 'new' gcc 4.2.1 ...
especially on Tiger.  v421 is a different beast, with more rigorous
checking, and some different option support ... i'd bet it's related.
but not sure atm :-|

> > > Why is it linking any of -lreadline -lncurses -lpthread anyway? What
> > > line do they exist in Makefile? Does config.log say something about
> > > them?
> ..
> > coming along from sqlite3, i believe ...
>
> So, the next question: Why is sqlite3 linked to anything else than
> dovecot-auth? :)

probably a pickup from LDFLAGS, as i config/build as:


patch -p1 < /usr/ports/dovecot/patch-hash-dovecot.txt

# find libmysqlclient_r
perl -pi -e 's/AC_CHECK_LIB\(mysqlclient,/AC_CHECK_LIB\(mysqlclient_r,/g'
configure.in
perl -pi -e 's/mysql_lib=\"\-lmysqlclient \-lz
\-lm"/mysql_lib=\"\-lmysqlclient_r \-lz \-lm\"/g' configure.in

setenv LDFLAGS "-L/usr/local/db46/lib -L/usr/local/sqlite/lib
-lsqlite3 -L/usr/local/mysql/lib/mysql -L/usr/local/lib -liconv"

setenv CPPFLAGS "-I/usr/local/db46/include -I/usr/local/sqlite/include
-I/usr/local/mysql/include/mysql -I/usr/local/include"

./configure \
--config-cache \
--prefix=/usr/local/dovecot \
 --with-moduledir=/usr/local/dovecot-plugins \
--with-libiconv-prefix=/usr/local \
--with-ssl=openssl \
--with-ssldir=/var/CERTS \
 --enable-maintainer-mode \
 --disable-debug \
--enable-ipv6 \
--disable-static --enable-shared \
--with-ioloop=best \
--with-db \
--with-mysql \
--with-sqlite \
--with-sql-drivers=mysql,sqlite \
--with-deliver \
--with-pop3d \
--with-storages=maildir,mbox,dbox,cydir,raw


iirc, the "--with-sqlite" config option does not take a DIR arg.  so
to tell it where, LDFLAGS are req'd.

i might suggest DIR options for spec'n of non-standard install loc'ns
for each opt. no?

hth.


More information about the dovecot mailing list