Santiago Romero wrote:
CCARGS='-DUSE_SASL_AUTH \
-DUSE_CYRUS_SASL'
When Dovecot authentication was introduced the arguments were changed.
Now you have to use -DUSE_CYRUS_SASL explicitely in order to compile
support for Cyrus sasl in.
It does not compile this way:
(...)
gcc -Wmissing-prototypes -Wformat -DUSE_SASL_AUTH -DUSE_CYRUS_SASL
-DNO_EPOLL -DHAS_PCRE -g -O -I. -I../../include -DLINUX2 -o smtpd smtpd.o
smtpd_token.o smtpd_check.o smtpd_chat.o smtpd_state.o smtpd_peer.o
smtpd_sasl_proto.o smtpd_sasl_glue.o smtpd_proxy.o smtpd_xforward.o
smtpd_dsn_fix.o smtpd_milter.o ../../lib/libmaster.a ../../lib/libtls.a
../../lib/libdns.a
../../lib/libxsasl.a ../../lib/libmilter.a ../../lib/libglobal.a
../../lib/libutil.a -lpcre
-ldb -lnsl -lresolv
../../lib/libxsasl.a(xsasl_cyrus_server.o): In function
`xsasl_cyrus_server_init':
/root/sources/postfix/postfix-2.5.4/src/xsasl/xsasl_cyrus_server.c:235:
undefined reference to `sasl_server_init'
/root/sources/postfix/postfix-2.5.4/src/xsasl/xsasl_cyrus_server.c:236:
undefined reference to `sasl_errstring'
(...)
But 2.5.1 compiles and works perfectly without -DUSE_CYRUS_SASL, and:
# postconf -a
cyrus
dovecot
(in my 2.5.1 without the -DUSE_CYRUS_SASL)
Any idea?
At the moment I am scratching my head. Something is apparently different in
the sasl implementation. I assume that you compile both versions in the same
environment?
Did you start the compilation from a clean extracted tarball? "make clean"
sometimes wasn't enough to get rid of some previous build remains.
--
Sandy
List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com