Hi Andy,

It is Binc 1.2.6final that is having trouble finding my openssl libs. Configure bombs out saying that it cannot find the SSL libraries.

If I do cat config.log | grep lssl after the ./configure script bombs out, I get this output:

configure:8196: g++ -o conftest -g -O2 -Wall -fno-exceptions -O2 -Lfound -lssl -lcrypto conftest.cc >&5
configure:8196: g++ -o conftest -g -O2 -Wall -fno-exceptions -O2 -L/usr/lib -lssl -lcrypto conftest.cc >&5
configure:8196: g++ -o conftest -g -O2 -Wall -fno-exceptions -O2 -L/usr/local/lib -lssl -lcrypto conftest.cc >&5
configure:8196: g++ -o conftest -g -O2 -Wall -fno-exceptions -O2 -L/usr/local/ssl/lib -lssl -lcrypto conftest.cc >&5
configure:8196: g++ -o conftest -g -O2 -Wall -fno-exceptions -O2 -L/usr/local/openssl/lib -lssl -lcrypto conftest.cc >&5
configure:8196: g++ -o conftest -g -O2 -Wall -fno-exceptions -O2 -L/opt/ssl/lib -lssl -lcrypto conftest.cc >&5
configure:8196: g++ -o conftest -g -O2 -Wall -fno-exceptions -O2 -L/opt/openssl/lib -lssl -lcrypto conftest.cc >&5
LDFLAGS='-L/opt/openssl/lib -lssl -lcrypto'


The LDFLAGS here don't look correct as there is no such directory as /opt/openssl so I don't know where that came from?

Many thanks,

Adam

On Thu, 19 Feb 2004 09:01:59 +0100 (CET), Andreas Aardal Hanssen <[EMAIL PROTECTED]> wrote:

On Wed, 18 Feb 2004, Adam Henson wrote:
Hi All,
I have been trying desperately to get Binc compiling with SSL under Sol9
for hours now..
I have installed openssl, with its libs under /usr/local/lib and
includes in /usr/local/include/openssl . I fed these paths into
./configure with --with-openssl-include and --with-openssl-lib but to no
avail.
Is there anything else I can try?

1) Which version of Binc IMAP are you trying to compile? 2) Did configure succeed, or did it complain that it couldn't find OpenSSL? 3) What does config.log say? Try deleting it, then do a configure, then open config.log and search for -lssl; that should give a clue. You can also post this to this list.

Does this compile for you? Save this as "main.cc":

#include <openssl/ssl.h>

int main(void)
{
  SSL_read(0, 0, 0);
  return 0;
}

Compile with this string:

g++ main.cc -I/usr/local/include/ssl/ -L/usr/local/lib/ -lssl -lcrypto

It should produce an "a.out".

Andy :-)

--
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."






-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Reply via email to