delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/05/19:16:43

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Ken Cecka <ceckak AT alumni DOT washington DOT edu>
Subject: Re: make $(wildcard) not working with samba shares
Date: Fri, 05 May 2006 16:16:12 -0700
Lines: 51
Message-ID: <e3gmbt$cmi$1@sea.gmane.org>
Mime-Version: 1.0
User-Agent: KNode/0.9.2
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019