Problem compiling openssh-4.3p2 w/ openssl.0.9.8a on FC3

Dan Yefimov dan at D00M.lightwave.net.ru
Wed Mar 15 05:42:32 EST 2006


On Tue, 14 Mar 2006, Colin Dick wrote:

> Hi there,
> 	I have tried compiling OpenSSH 4.3p2 using the following steps:
> 
> Upgrade OpenSSL
> 	tar xvfz openssl-0.9.8a.tar.gz
> 	cd openssl-0.9.8a
> 	./config
> 	make
> 	make install
> 
> Upgrade zlib
> 	tar xvfz zlib-1.2.3.tar.gz
> 	./configure
> 	make test
> 	make install
> 
> Upgrade OpenSSH
> 	tar xvfz openssh-4.3p2.tar.gz
> 	cd openssh-4.3p2.tar.gz
> 	./configure --with-tcp-wrappers --with-ssl-dir=/usr/local/ssl 
> --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/ssh --with-md5 
> --with-rand-helper 
> 	make
> 
> 	Unfortunately, the make fails with the following error:
> 
> gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o 
> sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib  
> -lssh -lopenbsd-compat -lresolv -lcrypto -lutil -lz -lnsl  -lcrypt
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x38): In function 
> `dlfcn_load':
> : undefined reference to `dlopen'
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xa0): In function 
> `dlfcn_load':
> : undefined reference to `dlclose'
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xc9): In function 
> `dlfcn_load':
> : undefined reference to `dlerror'
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x13e): In function 
> `dlfcn_unload':
> : undefined reference to `dlclose'
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x1f5): In function 
> `dlfcn_bind_var':
> : undefined reference to `dlsym'
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x241): In function 
> `dlfcn_bind_var':
> : undefined reference to `dlerror'
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x2d5): In function 
> `dlfcn_bind_func':
> : undefined reference to `dlsym'
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x321): In function 
> `dlfcn_bind_func':
> : undefined reference to `dlerror'
> collect2: ld returned 1 exit status
> make: *** [ssh] Error 1
> 
> 	Any ideas?  It looks like an incompatibility between OpenSSH and 
> OpenSSL.  Thanks in advance for any information or suggestions you can 
> provide.
> 
It seems you forgot to add -ldl to the list of libraries in the linker command 
line. All undefined references you meantioned are resolved against that library.
-- 

    Sincerely Your, Dan.




More information about the openssh-unix-dev mailing list