Re: Install Issue

From: Daniel Black <daniel.subs_at_internode.on.net>
Date: Wed, 11 Nov 2009 18:43:47 +1100

On Wednesday 11 November 2009 16:17:11 Roman Gelfand wrote:
> Version 1.1.2
>
> Debian Lenny
>
> OpenSSL 1.0.0-beta4 - Do you think that perhaps the problemn is here.

> Should I get 0.98 version?
>
> libssl.a in /usr/lib and /usr/local/ssl/lib but couldn't find
> ERR_peek_error and SSL_library_init symbols.
>
> Yes, I do. It is in
> /usr/lib/pkgconfig/libssl.pc
> /usr/local/ssl/lib/pkgconfig/libssl.pc
> /usr/local/src/openssl/libssl.pc
>
> Thanks for your help

experimenting with openssl-1.0.0-beta4 I can reproduce this problem.

from config.log:

configure:14214: gcc -std=gnu99 -o conftest -I/tmp/openssl/usr/local/ssl//include -g -O2 -pthread -L/tmp/openssl/usr/local/ssl//lib conftest.c >&5
/tmp/ccQ8mkfo.o: In function `main':
/home/dan/software_projects/opendkim-cvs/conftest.c:87: undefined reference to `ERR_peek_error'

(this doesn't actually specify the library ssl here)

configure:14264: checking for library containing SSL_library_init
configure:14305: gcc -std=gnu99 -o conftest -I/tmp/openssl/usr/local/ssl//include -g -O2 -pthread -L/tmp/openssl/usr/local/ssl//lib conftest.c -lcrypto
>&5
/tmp/cceIj1WD.o: In function `main':
/home/dan/software_projects/opendkim-cvs/conftest.c:87: undefined reference to `SSL_library_init'

To get past this I needed to:

1. compile openssl with shared libraries so: ./config shared threads
because one of the apps failed to compile with shared libraries use the DIRS below on your install line.
sudo make -j1 DIRS="crypto ssl engines test tools" install

2. opendkim

because openssl now seems to need libresolv with opendkim do the following:
./configure --with-openssl=(openssl path)
make LIBS=-lresolv

after that it works (compiles at leasts and "make check" works)

I'll take a look how static openssl and openssl-1.0.0-beta4 detection can be improved.

Thanks for the bug report. This is a good testcase.
Received on Wed Nov 11 2009 - 07:44:33 PST

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wed Nov 11 2009 - 14:50:00 PST