Re: Build error of centerim on x86_64 (gentoo) (was Re: Segmentation fault)

Andreas Niederl <[email protected]> Tue, 20 Feb 2007 21:15:13 +0100
Newsgroups gmane.network.centericq
Message-ID <[email protected]>
Stéphane Bisinger wrote:
> On 18/02/07, Andreas Niederl <[email protected]> wrote:
>> I can reproduce this with Gentoo on x86 and x86_64 doing a plain
>> './autogen.sh && ./configure && make' on current git.
>> It's the same with --without-ssl and --with-ssl.
> 
> Do you have openssl installed? And what about gnutls?

openssl-0.9.8d and gnutls-1.4.4 are both installed.


> What is the output when you configure without ssl support?

I just compiled cicq on a fresh git clone without ssl support and it
worked. I must have forgotten to do a 'make distclean'.

Now the interesting part are the differences in configure output of the
$topdir script and those in the subdirectories. I just compared them
without any options to ./configure:
$topdir/configure:
checking for SSL...
disabled (use --with-ssl=DIR to enable)

connwrap/configure and libgadu/configure:
checking for OpenSSL... found in /usr
checking for main in -lcrypto... yes
checking for SSLeay_add_all_algorithms in -lcrypto... no
checking for main in -lssl... yes

I think this behaviour could be fixed by supplying the default option
with_ssl=no to those two configure.in files like it is done in the
$topdir/configure.ac.
What makes me wonder is, that AC_CHECK_LIB(ssl, main) succeeds and
should prepend -lssl to the compiler flags

> For both you and TigerP: try to configure with:
> ./configure --with-ssl --without-openssl

Fails with undefined references to ssl. Relevant output of
connwrap/configure:
configure: running /bin/sh ./configure '--prefix=/usr/local'
'--with-ssl' '--without-openssl' --cache-file=/dev/null --srcdir=.
[...]
checking for OpenSSL... not found or disabled
checking for libgnutls-extra-config... /usr/bin/libgnutls-extra-config
checking for libgnutls - version >= 0.0.1... yes

libgadu has the same output but the configure script in the top
directory worries me:
checking for SSL...
checking for OpenSSL... checking for libgnutls-extra-config...
/usr/bin/libgnutls-extra-config
checking for libgnutls - version >= 0.0.1... yes
not found or disabled

I also get this in the top directory when i do a ./configure --with-ssl
while connwrap/configure and libgadu/configure report:
checking for OpenSSL... found in /usr
checking for main in -lcrypto... yes
checking for SSLeay_add_all_algorithms in -lcrypto... no
checking for main in -lssl... yes

By the way, I just found a typo in $topdir/configure.ac:
AC_ARG_WITH(openssl,  [  --with-gpgme=[PATH]   path to gpgme-config
(auto)], [with_gpgme=$withval], [with_gpgme=no])


Regards,
Andi
_______________________________________________
Cicq mailing list
[email protected]
http://mailman.linuxpl.org/mailman/listinfo/cicq
Questions? Check the FAQ first: http://centericq.de/faq/