This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

pwd problem with GNU make



I have updated all my cygwin packages as of
13:00 PST on December 21, 2000 from freesoftware.com.

It seems like GNU make gets confused about the current working
directory (indicated by the fact that included files are not found)
when I cd into a directory using a drive letter and a trailing /. For
example running "make" works fine after cd'ing using "/tmp", "/tmp/",
or "c:/p/cygwin/tmp". However GNU make gets confused when
"c:/p/cygwin/tmp/" is used with a trailing slash.

I reported a similar problem with pwd in cygwin a few weeks ago
which was followed by a flurry of discussion on getcwd() function.

    http://sources.redhat.com/ml/cygwin/2000-11/msg00590.html

The problem is demonstrate by the following.  Note that /tmp/Makefile
includes "../Maketarg" file which is a blank file.

bash-2.04$ cygpath -w /
C:\p\cygwin
bash-2.04$ cat c:/p/cygwin/tmp/Makefile
include ../Maketarg

all :
	@echo hello
bash-2.04$ cat c:/p/cygwin/Maketarg
bash-2.04$ cd /tmp; make
hello
bash-2.04$ cd /tmp/; make
hello
bash-2.04$ cd c:/p/cygwin/tmp; make
hello
bash-2.04$ cd c:/p/cygwin/tmp/; make
Makefile:1: ../Maketarg: No such file or directory
make: *** No rule to make target `../Maketarg'.  Stop.


bash-2.04$ cygcheck.exe -v -s

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Thu Dec 21 13:16:42 2000

WinNT Ver 5.0 build 2195 Service Pack 1

Path:	/cygdrive/c/WINNT/system32
	/cygdrive/c/WINNT
	/cygdrive/c/WINNT/system32/WBEM
	/usr/bin
	/usr/local/bin
	/cygdrive/c/Program Files/Resource Pro Kit/
	/cygdrive/c/p/Adabas/bin
	/cygdrive/c/p/Adabas/pgm

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/tmp/'
CYGWIN = `binmode'
USER = `ryk'
MAKE_MODE = `unix'
HOME = `/cygdrive/c/ryk'

NUMBER_OF_PROCESSORS = `1'
DBROOT = `C:\p\Adabas'
LOGONSERVER = `\\RYKLAPTOP'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
TZ = `PST8PDT'
TMPDIR = `/cygdrive/c/Temp'
COMSPEC = `C:\WINNT\system32\cmd.exe'
DOMAINNAME = `dspwiz.com'
DBWORK = `C:\p\Adabas\sql'
SYSTEMDRIVE = `C:'
HOSTNAME = `RYKLAPTOP'
PROCESSOR_REVISION = `0803'
EMACSLOCKDIR = `C:/p/emacs-20.7/lock'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
COMPUTERNAME = `RYKLAPTOP'
CLASSPATH = `C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables'
WINDIR = `C:\WINNT'
USERPROFILE = `C:\Documents and Settings\ryk'
EMACSPATH = `C:/p/emacs-20.7/bin'
EMACSDOC = `C:/p/emacs-20.7/etc'
PROGRAMFILES = `C:\Program Files'
SMTPSERVER = `dspwiz.com'
MACHTYPE = `i686-pc-cygwin'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 3, GenuineIntel'
EMACS = `t'
OS = `Windows_NT'
CVS_RSH = `ssh'
OLDPWD = `/tmp'
NNTP = `news.coho.net'
PROCESSOR_ARCHITECTURE = `x86'
TEMP = `/cygdrive/c/Temp'
TERMCAP = `emacs:co#85:tc=unknown:'
PROCESSOR_LEVEL = `6'
SYSTEMROOT = `C:\WINNT'
TMP = `/cygdrive/c/tmp'
HOMEDRIVE = `c:'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
EMACS_DIR = `C:/p/emacs-20.7'
EMACSDATA = `C:/p/emacs-20.7/etc'
SSH_AGENT_PID = `464'
SHLVL = `1'
APPDATA = `C:\Documents and Settings\ryk\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
HOMEPATH = `\ryk'
USERDOMAIN = `RYKLAPTOP'
SHELL = `c:/p/cygwin/bin/bash.exe'
USERNAME = `ryk'
CVSROOT = `:ext:ryk@rykserver2:/var/cvs/ryk'
EM_PARENT_PROCESS_ID = `784'
HOSTTYPE = `i686'
EMACSLOADPATH = `C:/p/emacs-20.7/site-lisp;C:/p/emacs-20.7/lisp;C:/p/emacs-20.7/leim'
OSTYPE = `cygwin'
DBCONFIG = `C:\p\Adabas\sql'
SSH_AUTH_SOCK = `/tmp/ssh-Hxem1000/agent.1000'
TERM = `emacs'
_ = `/usr/bin/cygcheck.exe'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  NTFS    9007Mb  61% CP CS UN PA FC     
y:  cd           N/A    N/A                    

C:\p\cygwin\bin  /usr/bin  system  textmode
C:\p\cygwin\lib  /usr/lib  system  textmode
C:\p\cygwin  /        system  textmode

Found: C:\p\cygwin\bin\bash.exe
Found: C:\p\cygwin\bin\cat.exe
Found: C:\p\cygwin\bin\cpp.exe
Found: C:\p\cygwin\bin\find.exe
Found: C:\p\cygwin\bin\gcc.exe
Found: C:\p\cygwin\bin\gdb.exe
Found: C:\p\cygwin\bin\ld.exe
Found: C:\p\cygwin\bin\ls.exe
Found: C:\p\cygwin\bin\make.exe
Found: C:\p\cygwin\bin\sh.exe

   56k 2000/12/03 C:\p\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2000/11/20 15:53
   45k 2000/12/07 C:\p\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2000/12/6 22:41
   18k 2000/10/23 C:\p\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2000/10/22 19:26
   17k 2000/11/30 C:\p\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2000/11/29 18:28
   14k 2000/10/23 C:\p\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2000/10/23 12:02
   81k 2000/12/05 C:\p\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/11/25 17:43
   35k 2000/12/05 C:\p\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/11/25 17:43
   45k 2000/10/22 C:\p\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
                  "cygjbig1.dll" v0.0 ts=2000/10/22 16:06
  119k 2000/10/23 C:\p\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2000/10/22 17:58
   26k 2000/12/07 C:\p\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2000/12/6 22:40
  159k 2000/12/07 C:\p\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2000/12/6 22:42
  225k 2000/12/07 C:\p\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2000/12/6 22:39
   15k 2000/12/07 C:\p\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2000/12/6 22:40
  162k 2000/10/23 C:\p\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2000/10/22 17:40
  108k 2000/11/30 C:\p\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2000/11/29 18:28
  390k 2000/12/05 C:\p\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/11/25 17:39
    5k 2000/12/05 C:\p\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/12/05 C:\p\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/11/25 17:39
  243k 2000/10/23 C:\p\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2000/10/22 18:14
  623k 2000/12/05 C:\p\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/11/25 17:43
   41k 2000/11/20 C:\p\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-noX4.dll" v0.0 ts=2000/11/19 18:41
   45k 2000/11/20 C:\p\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-X4.dll" v0.0 ts=2000/11/19 18:45
   49k 2000/10/23 C:\p\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2000/10/22 17:22
  609k 2000/11/22 C:\p\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/11/21 18:00
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 6
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 30
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Tue Nov 21 21:00:16 EST 2000
        shared id: cygwin1S3

Use -h to see help about each section
bash-2.04$ 


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]