[prev in list] [next in list] [prev in thread] [next in thread] 

List:       stunnel-users
Subject:    Re:Error compiling Stunnel...
From:       "Diarmuid O'Neill" <Diarmuid.ONeill () aepsystems ! com>
Date:       2003-04-23 16:53:40
[Download RAW message or body]


Hi,
One thing I don't understand...if you're trying to build with the engine
version, there are problems with the header files that you should have
run into already.  Did you disable stunells' default no-dh?  If not, I
think that the header files that it's finding are not those of an engine
version of OpenSSL.
The problem you're seeing is that the engine version of OSSL uses the
various dl functions to open the third party shared libraries used below
the engines. Your stunnel is not linking with -ldl. Did you build
OpenSSL yourself? If so, did you build with the -shared option to build
the shared libraries?  Did you tell stunnel where to look for your
freshly built OpenSSL via --with-ssl?
I'm building OpenSSL shared objects and when I build an tunnel with
--with-ssl pointed to it, it links automatically with -ldl.  
A quick fix is to stick a -ldl in your makefile........
Diarmuid.

Hello all, I'm trying to compile stunnel into my linux but next error
appears when i do "make": gcc -g -O2 -Wall -Wshadow -Wcast-align
-Wpointer-arith -I/usr/local/ssl/incl ude -o stunnel client.o log.o
options.o protocol.o sselect.o ssl.o sthreads.o stunnel.o pty.o -lutil
-lpthread -lnsl -L/usr/local/ssl/lib -lssl -lcrypto
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.o(.text+0xa2): undefined reference to `dlopen'
dso_dlfcn.o(.text+0xb7): undefined reference to `dlopen'
dso_dlfcn.o(.text+0x11b): undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_bind_var': dso_dlfcn.o(.text+0x1da): undefined reference to
`dlsym' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_bind_func': dso_dlfcn.o(.text+0x2aa): undefined reference to
`dlsym' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_unload': dso_dlfcn.o(.text+0x3a7): undefined reference to
`dlclose' collect2: ld returned 1 exit status make[1]: *** [stunnel]
Error 1 make[1]: Leaving directory `/usr/src/stunnel-4.04/src' make: ***
[all-recursive] Error 1 The output of uname -a is : Linux bestia 2.4.10
#1 Mon Oct 8 16:16:33 CEST 2001 i686 unknown My libc version is 2.2.5
The ouput of gcc -v is : Reading specs from
/usr/lib/gcc-lib/i386-linux/2.95.4/specs gcc version 2.95.4 20011002
(Debian prerelease) My openssl version is OpenSSL 0.9.6g [engine] 9 Aug
2002. Can anyone help me with this error ? Thanks in advance, Ramon. 



.



********************************************************************
This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email
in error please notify the postmaster at the address below.
     ITS-Support@aepsystems.com
This footnote also confirms that this email message has been
checked for the presence of computer viruses.
**********************************************************************



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic