Neil Aggarwal
2002-May-01 12:27 UTC
[Samba] Still need help linking samba on Redhat 7.2 -- ANYONE?
Hello: I am trying to compile sambe with SSL on my RedHat 7.2 machine. The Redhat installation is a fresh install. Here is what I did: Made sure that samba was not previously installed by typing rpm -q samba cd /usr/local lynx ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.psy.uq.oz.au/ssleay/SSLeay-0.9.0b.t ar.gz tar zxf SSLeay-0.9.0b.tar.gz cd SSLeay-0.9.0b vi Configure Made the first line look like this: #!/usr/bin/perl ./Configure linux-elf make make install cat >/tmp/private.txt Now, I typed a bunch of random characters and hit Ctrl-D. /usr/local/ssl/bin/ssleay genrsa -rand /tmp/private.txt >/dev/null rm -f /tmp/private.txt cd /usr/local lynx ftp://us1.samba.org/pub/samba/samba-latest.tar.gz tar zxf samba-latest.tar.gz cd samba-2.2.3a/source ./configure --with-ssl make When it is trying to link, I get these errors: Linking bin/smbd smbd/ssl.o: In function `sslutil_init': smbd/ssl.o(.text+0x23f): undefined reference to `SSL_library_init' smbd/ssl.o(.text+0x256): undefined reference to `RAND_egd' smbd/ssl.o(.text+0x3ce): undefined reference to `SSL_CTX_use_certificate_chain_file' smbd/ssl.o(.text+0x577): undefined reference to `SSL_CTX_set_tmp_rsa_callback' collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 Any ideas? Thanks, Neil. -- Neil Aggarwal JAMM Consulting, Inc. (972) 612-6056, http://www.JAMMConsulting.com Custom Internet Development Websites, Ecommerce, Java, databases
Gerald Carter
2002-May-01 15:20 UTC
[Samba] Still need help linking samba on Redhat 7.2 -- ANYONE?
On Wed, 1 May 2002, Neil Aggarwal wrote:> When it is trying to link, I get these errors: > > Linking bin/smbd > smbd/ssl.o: In function `sslutil_init': > smbd/ssl.o(.text+0x23f): undefined reference to `SSL_library_init' > smbd/ssl.o(.text+0x256): undefined reference to `RAND_egd' > smbd/ssl.o(.text+0x3ce): undefined reference to > `SSL_CTX_use_certificate_chain_file' > smbd/ssl.o(.text+0x577): undefined reference to > `SSL_CTX_set_tmp_rsa_callback' > collect2: ld returned 1 exit status > make: *** [bin/smbd] Error 1The current Samba code (for the 2.2.2 release?) uses the openssl package instead of ssleay cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
abartlet@samba.org
2002-May-02 00:44 UTC
[Samba] Still need help linking samba on Redhat 7.2 -- ANYONE?
On Wed, May 01, 2002 at 02:25:13PM -0500, Neil Aggarwal wrote:> Hello: > > I am trying to compile sambe with SSL on my RedHat 7.2 machine. > The Redhat installation is a fresh install. > > Here is what I did: > Made sure that samba was not previously installed by typing > rpm -q samba > > cd /usr/local > lynx > ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.psy.uq.oz.au/ssleay/SSLeay-0.9.0b.t > ar.gz > tar zxf SSLeay-0.9.0b.tar.gz > cd SSLeay-0.9.0bSamba's SSL support (soon to be killed) only works with OpenSSL, not SSLeay as in previous versions. There is little reason for samba to use SSL. NO windows client supports it, and the job is much better done using stunnell and inetd (for the server side, see the stunnel documentation on how to 'add' SSL to arbitary deamons) and by using (untested): LIBSMB_PROG="stunnel -r remote.host:139" smbclient //remote/share for the client side. Andrew Bartlett