resolving symbols/relocations errors
Brian Haney
nautix at u.washington.edu
Mon Aug 23 20:12:11 GMT 2004
I'm building Samba 3.0.5 for a bootable Linux CD. Everything seems to
work well (not that I've tested thoroughly, though) except for ntlm_auth.
When I run
ntlm_auth --username=joesixpack
I get
ntlm_auth: relocation error: /usr/lib/samba/charset/CP850.so:
undefined symbol: smb_register_charset
I found the missing function (smb_register_charset) in libsmbclient.so,
but cannot find the right incantation to have CP850.so link to it.
Now if I preload libsmbclient.so with
export LD_PRELOAD=/usr/lib/libsmbclient.so
then execute
ntlm_auth --username=joesixpack
I get a bunch of complaints on stderr like
[2004/8/23 12:49:40, 0] lib/charcnv.c:init_iconv(134)
init_iconv: Conversion from CP850 to UTF8 not supported
but with a variety of character sets in addition to UTF8. I do finally
get the proper "password:" prompt and ntlm_auth correctly authenticates
against the PDC (also Samba 3.0.5).
Lastly, here is my ./configure command line:
./configure --prefix=/usr \
--localstatedir=/var \
--with-configdir=/etc/samba \
--with-privatedir=/etc/samba \
--with-lockdir=/etc/samba/lock \
--with-fhs \
--with-smbmount \
--with-libsmbclient \
--with-ssl \
--with-syslog \
--with-utmp \
--with-msdfs \
--with-acl-support \
--with-winbind \
--with-quotas \
--with-vfs \
--with-smbwrapper \
--with-swatdir=/usr/share/samba/swat \
--with-logfilebase=/var/log
make proto
make
make install DESTDIR=/path/to/working/directory
I then copy the executables, libraries, etc into the CD tree for later
burning.
The bootable CD is for some in-house dedicated local master browsers in
our distributed domain. It seems to work fine for that, but I'd still
like to solve this nuisance problem.
Any help appreciated.
TIA.
--
Brian Haney, nautix at u.washington.edu
Software Engineer & UNIX Systems Administrator
Univ. of Washington, Dept. of Biostatistics
More information about the samba-technical
mailing list