The configure script fails to detect that ld version 2.9.5 do not support --allow-shlib-undefined. This might be true to other versions of ld. This was tested on a SuSE Linux 7.0 runing kernel 2.2.16. Output from ld -v was: GNU ld version 2.9.5 (with BFD 2.9.5.0.24)
when compiling with ld options LDSHFLAGS="-shared -Wl,-Bsymbolic" the following happens: Linking bin/smbd modules/vfs_default.o: In function `vfswrap_linux_setlease': modules/vfs_default.o(.text+0x100c): undefined reference to `linux_set_lease_sighandler' modules/vfs_default.o(.text+0x1021): undefined reference to `linux_setlease' collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1