Will Sappington wrote:
While STFLA for a problem I’m having building with Cygwin I came across a somewhat lengthy thread between Dave and Thomas Porschberg regarding exactly the problem I’m having. Was this problem ever resolved? The last post ended with Thomas having modified a makefile to contain a hard-coded windows form of a path and removing something involving XLIFF_FILE_NAME. I’m not going to get into all that, there has to be a more general solution. BTW, I would have replied to the thread on the archive list (if you can do that) but a banner at the top of the page said the site was read-only while some problems were being resolved.
As to the problem, it is the same as Thomas’, “multiple targets” message when 
make runs.  I recognize that message as having something to do with EOL issues. 
 At first I thought the problem might be that I untarred the file from a DOS 
window and CR’s were added courtesy of MS.  So I deleted everything except the 
tarball, opened a Cygwin shell, untarred again, set everything again, and got 
the same error again.  I’m pretty sure I’m following everything to the letter, 
but I’ve captured the screen text of my session which I’ll paste in below.  I 
can say that I also know first hand about the bash problems in recent Cygwin 
updates, they screwed me up royally for a few days.  The gist of it is they 
changed something about how bash handles CR/LF sequences in scripts and after a 
certain version, any script with CR/LFs in it would fail unless you put “shopt 
-s igncr;#” at the top.  About a month and a half ago, maybe 2, I went to 
download a new package and my whole installation got
updated.  I didn’t realize they’d be so kind.  And that’s when everything 
started breaking.  So like Dave’s when he was involved in this issue, my 
installation is pretty new too.  Here’s the transcript of my session, starting 
with a new shell and a freshly unzipped tarball.  Any ideas?

Strangely enough, I just tried the build, and now I have the same problem, even though I was unable to reproduce it before.

It turns out the new version of gnumake doesn't like mixed cygwin paths. Here's a patch you can apply:

Index: src/xalanc/Utils/Makefile.in
===================================================================
--- src/xalanc/Utils/Makefile.in        (revision 505617)
+++ src/xalanc/Utils/Makefile.in        (working copy)
@@ -35,7 +35,7 @@
 CATALOG_NAME=$(MSGFILENAME)$(LOCALE)

 ifeq ($(PLATFORM), CYGWIN)
-XLIFF_FILE_NAME=$(shell cygpath -m $(XSL_NLS_SRC_DIR)/$(LOCALE)/$(MSGFILENAME)$(LOCALE).xlf) +XLIFF_FILE_NAME=$(shell cygpath -u $(XSL_NLS_SRC_DIR)/$(LOCALE)/$(MSGFILENAME)$(LOCALE).xlf)
 else
 XLIFF_FILE_NAME=$(XSL_NLS_SRC_DIR)/$(LOCALE)/$(MSGFILENAME)$(LOCALE).xlf
 endif

(basically, change the -m option for shell cygpath to -u)

Dave

Reply via email to