openssh-2.9p2 Config - undefined references

Markus Friedl markus.friedl at informatik.uni-erlangen.de
Thu Aug 9 18:33:59 EST 2001


you can:
	1) build openssl w/o DSO support
	2) add -ldl to the LDFLAGS

-m

On Wed, Aug 08, 2001 at 10:58:04PM +0200, John van der Ploeg wrote:
> Hi Damien,
> 
> I have a problem getting openssh-2.9p2 properly configured.
> 
> This is the problem:
> 
> 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 machine is a Linux version 2.2.5 kernel, gcc version 2.7.2.3
> 
> Any idea what could be wrong here?
> 
> Regards,
> 
>     - John
> 
> --
> John van der Ploeg
> http://home.planet.nl/~jvdploe
> j.ploeg at planet.nl
> 
> 



More information about the openssh-unix-dev mailing list