[NTLUG:Discuss] Cant link samba. Any ideas?

kbrannen@gte.net kbrannen at gte.net
Fri May 3 17:57:32 CDT 2002


Neil Aggarwal wrote:
> Hello:
> 
> I posted this to the samba mailing list with no help.  Does
> anyone here have any ideas?
> 
> I am trying to compile sambe with SSL on my RedHat 7.2 machine.
> The Redhat installation is a fresh install.
...
> 
> 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?

Just the obvious one, they expect you to have different versions of the libs 
than you have. :-/  Check the README/INSTALL doc very carefully for lib or 
package versions and make sure that's what you have.

Also, I just did a "nm -pog /usr/lib/libssl.so.0.9.6 | grep SSL_library_init"
and got "/usr/lib/libssl.so.0.9.6:00024850 T SSL_library_init", so at least 
that version of the lib has it.

Now that I think about it, the error message may be trying to tell you that 
the code is missing an include file which would give the compiler the proper 
prototype.  I don't know what header you need, or the code may be missing a 
#define which would pull in the proper header.  These things can be "fun" to 
track down.

Good Luck!
Kevin





More information about the Discuss mailing list