smbmount problem with GNU make on RedHat Linux

Grosen, Mark Mark.Grosen at
Wed Apr 5 21:47:59 GMT 2000

I have a problem with GNU make running on a SMB share from a Win NT 4 server
mounted on a RedHat Linux 6.0 box. The following makefile exhibits the

O,LINU = .olinud

all :
	rm -rf $(O,LINU)

$(O,LINU)/%.a : $(O,LINU)/%.o
	@touch $@

If the directory (.olinud) exists when the makefile is run, the following
error results:

rm: cannot remove directory '.olinud': Device or resource busy

It's like the dependency rule has caused make to "open" the directory and
"somebody" (NT? smbmnt?) thinks it is still open?

This same makefile works fine on a local (disk) filesystem as well as on an
NT client (using the NT version of GNU make) mounting the same NT share.

Software involved:

RedHat Linux 6.0 Kernel 2.2.5
Samba 2.0.6 (installed from the binary rpm on
Windows NT 4 SP3 Server
GNU make 3.78

Mark Grosen
Dialogic Corporation, an Intel Company
mark.grosen at
805 964-5083

More information about the samba mailing list