Re: [Tracker] Problems with SSL
- From: Jamie McCracken <jamiemcc blueyonder co uk>
- To: Laurent Aguerreche <laurent aguerreche free fr>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] Problems with SSL
- Date: Tue, 01 Aug 2006 10:14:39 +0100
Laurent Aguerreche wrote:
Le lundi 31 juillet 2006 Ã 17:05 +0100, Jamie McCracken a Ãcrit :
Laurent Aguerreche wrote:
Le lundi 31 juillet 2006 Ã 10:47 +0100, Jamie McCracken a Ãcrit :
Laurent Aguerreche wrote:
Hello,
it seems that some modifications have been introduced to the build
system (configure.in at revision 1.8). Now, I cannot compile Tracker on
Debian Unstable anymore:
(the end)
/bin/sh ../../libtool --mode=link gcc -Wno-unused-parameter -o
trackerd trackerd.o tracker-inotify.o tracker-db.o tracker-dbus.o
tracker-dbus-files.o tracker-dbus-methods.o tracker-dbus-metadata.o
tracker-dbus-keywords.o tracker-dbus-search.o tracker-metadata.o
tracker-rdf-query.o tracker-utils.o xdgmime.o xdgmimealias.o
xdgmimecache.o xdgmimeglob.o xdgmimeint.o xdgmimemagic.o xdgmimeparent.o
-pthread -lgthread-2.0 -lglib-2.0 -ldbus-glib-1 -ldbus-1 -lglib-2.0
-L/usr/lib/mysql -lmysqld -lz -lpthread -lcrypt -lnsl -lm -lpthread
-lwrap -lrt -lssl -lcrypto -lstdc++
mkdir .libs
gcc -Wno-unused-parameter -o trackerd trackerd.o tracker-inotify.o
tracker-db.o tracker-dbus.o tracker-dbus-files.o tracker-dbus-methods.o
tracker-dbus-metadata.o tracker-dbus-keywords.o tracker-dbus-search.o
tracker-metadata.o tracker-rdf-query.o tracker-utils.o xdgmime.o
xdgmimealias.o xdgmimecache.o xdgmimeglob.o xdgmimeint.o xdgmimemagic.o
xdgmimeparent.o -pthread /usr/lib/libgthread-2.0.so -ldbus-glib-1
-ldbus-1 /usr/lib/libglib-2.0.so -L/usr/lib/mysql -lmysqld -lz -lcrypt
-lnsl -lm -lpthread -lwrap -lrt -lssl -lcrypto -lstdc++
/usr/lib/mysql/libmysqld.a(viosslfactories.o): In function
`new_VioSSLAcceptorFd':
(.text+0x282): undefined reference to `SSL_CTX_sess_set_cache_size'
/usr/lib/mysql/libmysqld.a(viosslfactories.o): In function
`new_VioSSLAcceptorFd':
(.text+0x2f9): undefined reference to `SSL_CTX_set_tmp_dh'
/usr/lib/mysql/libmysqld.a(viosslfactories.o): In function
`new_VioSSLAcceptorFd':
(.text+0x35d): undefined reference to `OpenSSL_add_all_algorithms'
/usr/lib/mysql/libmysqld.a(viosslfactories.o): In function
`new_VioSSLConnectorFd':
(.text+0x513): undefined reference to `SSL_CTX_set_tmp_dh'
/usr/lib/mysql/libmysqld.a(viosslfactories.o): In function
`new_VioSSLConnectorFd':
(.text+0x57e): undefined reference to `OpenSSL_add_all_algorithms'
collect2: ld returned 1 exit status
make[3]: *** [trackerd] Error 1
make[3]: Leaving directory
`/home/laurent/tracker/CVS/tracker/src/trackerd'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/laurent/tracker/CVS/tracker/src/trackerd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/laurent/tracker/CVS/tracker/src'
make: *** [all-recursive] Error 1
I tried to revert changes to revision 1.7 without any success...
Firstly make sure you have LibSSL and libSSL-dev packages installed (its
a bug in the deb that does not pull in this dependency)
I am using libssl and libssl-dev version 0.98 and its okay
If there is still a problem then let me know.
On my Debian Unstable, I have packages libssl-dev (0.9.8b-2) and
libssl0.9.8 (0.9.8b-2), but it doesn't work.
hmm.
I can suggest the following:
1) check all undefined refs are in ssl.h (/usr/openssl/ssl.h). (You
should have package openssl as well installed)
It is the case. But it is a problem with MySQL and SSl, not only SSL.
2) If so, check libopenssl.pc (in usr/lib/pkgconfig) it should look
something like:
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: OpenSSL
Description: Secure Sockets Layer and cryptography libraries and tools
Version: 0.9.8a
Requires:
Libs: -L${libdir} -lssl -lcrypto
Libs.private: -ldl -lz
Cflags: -I${includedir}
-lcrypto is in Libs.private on my box, but it doesn't do any difference
at compilation.
3) if problem still persists, modify configure.in to get flags from
libssl : PKG_CHECK_MODULES(SSL, [ libssl >= 0.9.6 ])
?
It is already in configure.in.
4) If all else fails,you can try removing the ssl stuff from the
configure.in (lines 90-92 and 98-99) and see if it works.
I already tried that without any success...
What parameters do you use at "./configure"?
just --prefix=/usr
I also tried the tarball of tracker-0.0.4 and get problems with SSL. I
always used CVS so I don't know if I would have problems with this
version before.
sounds like debian unstable is busted at the momemnt
If you have a Debian Unstable, can you update it and try? I suspect some
changes from an upgrade this week-end...
I only have dapper and FC5.
Can you report problems to Debian?
Also when I do a release in the next few days I will have a deb for
Dapper which should work on Debian (As we dont use sockets in mysql it
should never call those ssl functions)
Laurent.
--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]