X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Ken Cecka Subject: Re: make $(wildcard) not working with samba shares Date: Fri, 05 May 2006 16:16:12 -0700 Lines: 51 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.9.2 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Fri, 21 Apr 2006, Eric Blake wrote: > >> I'm having a problem with cygwin make and the $(wildcard) function. I've >> attached a Makefile which demonstrates the problem. The gnu make >> documentation indicates that the wildcard function should only return files >> or directories that exist, but in certain circumstances it is returning >> paths that do not exist. This appears to be a bug introduced in the base >> cygwin package. Specifically, >> >> using base/cygwin 1.5.19-4: >> - fails when building from linux samba share (version 3.0.20) >> - fails when building from solaris samba share (version 2.2.8a) >> - succeeds when building from local hard drive > > There are known issues with 1.5.19 and older samba servers that had > buggy file id numbers. Try the latest snapshot, and see if the problem > has been fixed due to the samba file id workarounds added since then: > http://cygwin.com/faq/faq-nochunks.html#faq.setup.snapshots > > Sorry I'm so late in responding to this - got distracted on some other issues. I just tried updating to the 20060427 snapshot of cygwin1.dll, and I'm still seeing the same failure: $ uname -a CYGWIN_NT-5.1 R63324-11 1.5.20s(0.155/4/2) 20060427 13:16:59 i686 Cygwin $ make echo "root file1" > file1.txt mkdir -p sub1 echo "sub1 file2" > sub1/file2.txt echo "sub1 file3" > sub1/file3.txt mkdir -p sub2 echo "sub2 file4" > sub2/file4.txt echo "sub2 file5" > sub2/file5.txt make print_files make[1]: Entering directory `/cygdrive/g/projects/cyg_smb_make_bug' make[1]: *** No rule to make target `sub1/file3.txt/file1.txt', needed by `print_files'. Stop. make[1]: Leaving directory `/cygdrive/g/projects/cyg_smb_make_bug' make: *** [test] Error 2 $ Any other suggestions? For reference, the sample Makefile is attached here: http://www.cygwin.com/ml/cygwin/2006-04/msg00592.html Ken -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/