smbsh and readdir on Redhat Linux 7.3
Stieglitz, Eric J. (DCSA)
EStieglitz at exchange.ml.com
Mon Jun 24 13:00:02 GMT 2002
Hi all,
I'm still trying to debug an issue with smbsh on a Redhat 7.3
configuration, using Samba 2.2.5.
When `smbsh` is run on the system, we see output like this:
[root at ejecllab01 bin]# ./smbsh
[2002/06/24 15:08:49, 0] smbwrapper/shared.c:smbw_setup_shared(52)
Username: <user>
Password: <pass>
smbsh$ pwd
/usr/src/redhat/BUILD/samba-2.2.5/source/bin
smbsh$ ls
ls: relocation error: /usr/local/samba-new/bin/smbwrapper.so: undefined symbol: real_readdir64
smbsh$
The symbol "real_readdir64" is actually found as a macro definition in
smbwrapper/realcalls.h:
#ifdef HAVE__READDIR64
#define real_readdir64(d) (_readdir64(d))
#elif HAVE___READDIR64
#define real_readdir64(d) (__readdir64(d))
#endif
So, I added " -DHAVE___READDIR64" to my Makefile and recompiled. When running
`smbsh` again, the error changed to:
ls: relocation error: /usr/local/samba-new/bin/smbwrapper.so: undefined symbol: __readdir64
Note that running ldd on `smbsh`, I found that it used the library /lib/i686/libc.so.6
which appears to contain the function __readdir64. I deduced this from the following
output of readelf:
Symbol table '.symtab' contains 4447 entries:
[...]
1827: 420b1634 184 FUNC LOCAL DEFAULT 11 __readdir64
Any ideas?
-=-=-=-=-
Eric J. Stieglitz
Senior Specialist / Unix Systems Administrator / DCSA
Merrill Lynch / 95 Greene Street / Jersey City / NJ
(201) 671-3176
More information about the samba-technical
mailing list