cyrus-sasl + libsql + mysql ...
Helio Luchtenberg Junior
hlj at viamidia.com
Tue Apr 25 09:18:53 EDT 2006
Hello,
I want to use cyrus-sasl compiled with the "--enable-sql" and
"--with-mysql=/usr/local/mysql" for MySQL authentication. The complete
configure line is:
./configure --disable-krb4 --enable-plain --enable-login --with-dblib=berkeley
--with-bdb-libdir=/usr/local/BerkeleyDB.4.4/lib
--with-bdb-incdir=/usr/local/BerkeleyDB.4.4/include --enable-sql
--with-mysql=/usr/local/mysql
I have compiled/installed cyrus-sasl and after linking it with cyrus-imapd I
start the imapd daemon but it says:
pop3[43583]: Could not find a dlname line in .la file: libsql.la
Then I have found that in the /usr/local/lib/sasl2/libsql.la file there is no
"dlname" set. In my old installations (in FreeBSD 4.x) the "libsql.la" file
used to have "dlname='libsql.so" inside it. In fact, the old installation
really created "libsql.so". In my new installation this file (libsql.so) is NOT
generated.
I have investigated a little and found that during the "configure" it says:
--------------------------------------------------------------
checking dynamic linker characteristics... freebsd5.4 ld.so
checking if libtool supports shared libraries... yes
*** Warning: the command libtool uses to detect shared libraries,
*** /usr/bin/file, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such. This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem. Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool at gnu.org
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
--------------------------------------------------------------
It is interesting that this very same version 2.1.21 DO generate a "libsql.so"
file when compiled in FreeBSD 4.x.
How can this be fixed? It seems that the new linker present on FreeBSD 5.4
can't generate the ".so" file. Only the ".a" library is being generated.
Maybe this is mysql-related, the contents of the libsql.la:
--------------------------------------------------------------
# libsql.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.3.5 (1.385.2.206 2000/05/27 11:12:27)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname=''
# Names of this library.
library_names=''
# The name of the static archive.
old_library='libsql.a'
# Libraries that this one depends upon.
dependency_libs=' -R/usr/local/mysql/lib -L/usr/local/mysql/lib -lmysqlclient'
# Version information for libsql.
current=2
age=0
revision=21
# Is this an already installed library?
installed=yes
# Directory that this library needs to be installed in:
libdir='/usr/lib/sasl2'
--------------------------------------------------------------
Thanks,
Helio Luchtenberg Junior
----------------------------------
E-Mail: Helio Luchtenberg Junior <hlj at viamidia.com>
Date: 25-Apr-2006
Time: 10:18:05
"Essa mensagem é destinada exclusivamente ao seu destinatário e pode
conter informações confidenciais, protegidas por sigilo profissional ou
cuja divulgação seja proibida por lei. O uso não autorizado de tais
informações é proibido e está sujeito às penalidades cabíveis.
This message is intended exclusively for its addressee and may contain
information that is confidential, protected by a professional
privilege or which disclosure is prohibited by law. Unauthorized use of
such information is prohibited and subject to applicable penalties."
----------------------------------
More information about the Cyrus-sasl
mailing list