openssh-2.9p2 Config - undefined references
Lutz Jaenicke
Lutz.Jaenicke at aet.TU-Cottbus.DE
Thu Aug 9 19:05:06 EST 2001
On Wed, Aug 08, 2001 at 10:58:04PM +0200, John van der Ploeg wrote:
> configure:4433: gcc -o conftest -g -O2 -Wall -I/opt/openssl/include
> -L/opt/open
> ssl/lib conftest.c -lz -lnsl -lutil -lcrypto 1>&5
> /opt/openssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
> dso_dlfcn.o(.text+0x8e): undefined reference to `dlopen'
> dso_dlfcn.o(.text+0xa4): undefined reference to `dlopen'
> dso_dlfcn.o(.text+0x10a): undefined reference to `dlclose'
> /opt/openssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
> dso_dlfcn.o(.text+0x1d2): undefined reference to `dlclose'
> /opt/openssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
>
> dso_dlfcn.o(.text+0x283): undefined reference to `dlsym'
> /opt/openssl/lib/libcrypto.a(dso_dlfcn.o): In function
> `dlfcn_bind_func':
> dso_dlfcn.o(.text+0x353): undefined reference to `dlsym'
> configure: failed program was:
> #line 4419 "configure"
> #include "confdefs.h"
>
> #include <string.h>
> #include <openssl/rand.h>
> int main(void)
> {
> char a[2048];
> memset(a, 0, sizeof(a));
> RAND_add(a, sizeof(a), sizeof(a));
> return(RAND_status() <= 0);
> }
>
>
>
> I use it with openssl-engine-0.9.6b and openssl-0.9.6b installed
> to /opt/openssl and /usr/local/ssl (ln -s). When running the
> make test option of openssl, it reports no problems (which kind
> of indicates the problem is not with openssl I hope)
The use of the openssl-engine modules implies loading shared libraries
at runtime. To provide this functionality, you have to link against
libdl by supplying "-ldl" after linking against -lcrypto.
LIBS="-ldl" ./configure --other-options
Best regards,
Lutz
--
Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
More information about the openssh-unix-dev
mailing list