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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010808/5484682c/attachment.html
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 > >
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
mouring at etoh.eviladmin.org
2001-Aug-09 13:04 UTC
openssh-2.9p2 Config - undefined references
[,,]> > 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 >Is there any way we can detect openssl-engine independant of openssl and add -ldl in? I think more people are going to start to use openssl-engine as more crypto cards are supported. - Ben