public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: sweinberger <sarahmarci@jmr.com>
To: cygwin@cygwin.com
Subject: Cygwin and Windows Paths Leaking Through
Date: Thu, 26 May 2011 19:33:00 -0000	[thread overview]
Message-ID: <31711163.post@talk.nabble.com> (raw)


Hi,

I am using Cygwin 1.7.9-1 on my Windows desktop.  I ran into a problem a few
weeks ago using the dmake.exe uiliy, wherein dmake wanted the project that I
was builing to be not in Linu convetion, but rather in a Windows notation.  
Since ":" and "\" are not acceptable characters in a Linux path, I had to
work around the problem.  I just put "/folder1/folder2/filename.extension". 
This "trick" worked, so long as everything is on drive C, which in my case
it is.

I should have tried to solve the problem, but I worked around it and got
past the issue, so I left well enough alone, till yesterday.

Yesterday, I downloaded the source for binutils-2.21 and attempted to make
the project.  I got as far as line 2374 of /ld/makefile.in.  I got a
"missing file or directory" error, which threw me until I figured out that
the problem is not that the file is not there, it is, but rather that
./genscripts.sh expects a Windows path, which is not posslbe to give it and
would conflict with gcc and everything else.

For posterity sake, the binary utiliities source is available at:

ftp://ftp.gnu.org/gnu/binutils/binutils-2.21.tar.bz2

Cygwin is supposed to provide an isolated environment totally shielding
applications that run on the inside from even knowing that a Windows
anything exists.  That dmake and now something in genscripts does not, means
that the Cygwin wall has some holes.

How do I get around this problem and more importantly how to I put up a
shield such that things on the inside do not see the outside world. 
/usr/local should be just that, not C:/cygwin/usr/local.  Yes,
/cygwin/usr/local should work too, if on drive C to start.  Just in case
anyone is interested, /cygdrive/c/... in these errors does not work.  The
offending applets really want windows paths.  Thankfully, Windows supports
both \ and / as the same thing.

My posting is on how to fix Cygwin, such that Cygwin acts like it was a real
Linux box and does not have "holes" to the outside world, but as an FYI,
here is the latest error capture:

mv -f .deps/ldmain.Tpo .deps/ldmain.Po
gcc -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./../bfd -I./../include  -g -O2
-DENABLE_PLUGINS -DLOCALEDIR="\"/usr/local/share/locale\""  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT
ldemul.o -MD -MP -MF .deps/ldemul.Tp
o -c -o ldemul.o ldemul.c
mv -f .deps/ldemul.Tpo .deps/ldemul.Po
gcc -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./../bfd -I./../include  -g -O2
-DENABLE_PLUGINS -DLOCALEDIR="\"/usr/local/share/locale\""  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT
ldfile.o -MD -MP -MF .deps/ldfile.Tp
o -c -o ldfile.o \
        -DSCRIPTDIR='"/usr/local/mips-elf/lib"' -DBINDIR='"/usr/local/bin"'
-DTOOLBINDIR='"/usr/local/mips-elf/bin"' \
         ./ldfile.c
mv -f .deps/ldfile.Tpo .deps/ldfile.Po
LIB_PATH='' /bin/sh ./genscripts.sh "." "/usr/local/lib" "/usr/local"
"/usr/local" i686-pc-cygwin mips-unknown-elf mips-elf "elf32ebmip"
"/usr/local/lib /lib /usr/lib" no elf32ebmip "mips-elf"
: No such file or directory line 2: ./emulparams/elf32bmip.sh
make[4]: *** [eelf32ebmip.c] Error 1
make[4]: Leaving directory `/usr/local/binutils-2.21/ld'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/binutils-2.21/ld'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/binutils-2.21/ld'
make[1]: *** [all-ld] Error 2
make[1]: Leaving directory `/usr/local/binutils-2.21'
make: *** [all] Error 2

Thanks in advance,

Sarah
-- 
View this message in context: http://old.nabble.com/Cygwin-and-Windows-Paths-Leaking-Through-tp31711163p31711163.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2011-05-26 19:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-26 19:33 sweinberger [this message]
2011-05-26 20:05 ` Charles Wilson
2011-05-26 20:17   ` sweinberger
2011-05-26 20:24     ` Charles Wilson
2011-05-26 21:21       ` sweinberger
2011-06-01  0:09 ` allowed Linux characters (and windows substitutes) Linda Walsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=31711163.post@talk.nabble.com \
    --to=sarahmarci@jmr.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).