delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/05/23:09:45

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
Message-ID: <4112F5AE.7000003@isonews2.com>
Date: Thu, 05 Aug 2004 23:06:22 -0400
From: Arturus Magi <sailorleo AT isonews2 DOT com>
Reply-To: sailorleo AT isonews2 DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 Mnenhy/0.6.0.104
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: "Povolotsky, Alexander" <Alexander DOT Povolotsky AT marconi DOT com>,
crossgcc AT sources DOT redhat DOT com
Subject: Re: problems with configuring ksh (pdksh) in Cygwin and following problems with Linux cross-compilation there
References: <313680C9A886D511A06000204840E1CF08F430AC AT whq-msgusr-02 DOT pit DOT comms DOT marconi DOT com> <Pine DOT GSO DOT 4 DOT 58 DOT 0408051817590 DOT 21641 AT slinky DOT cs DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.58.0408051817590.21641@slinky.cs.nyu.edu>
X-Enigmail-Version: 0.84.2.0
X-Enigmail-Supports: pgp-inline, pgp-mime
X-Scanned-By: MIMEDefang 2.43
X-Apparently-From: NHogue AT aol DOT com
X-AOL-IP: 205.188.118.18
X-IsSubscribed: yes

Igor Pechtchanski wrote:
{building of pdksh, modifying cygwin.bat}
>>: not foundrofile[2]:
>>: not foundrofile[8]:
>>: not foundrofile[11]:
>>: not foundrofile[14]:
>>: not foundrofile[17]:
>>: not foundrofile[20]:
>>: not foundrofile[23]:
>>: not foundrofile[26]:
>>: not foundrofile[30]:
>>: not foundrofile[36]:
>>ksh: /etc/profile[63]: syntax error: `done' unexpected
> 
> 
> Hmm, this is weird.  Do you have the default /etc/profile (as installed by
> the 'base-files' package), or did you customize yours?
> 
> 
>>$ ps -l
>>      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
>>     3852       1    3852       3852  con 91693 04:37:11 /usr/bin/ksh
>>      164    3852     164       2436  con 91693 04:37:22 /usr/bin/ps
>>
>>What do I need to do to get rid of ": not foundrofile" errors ?
> 
> 
> I suspect that the errors are actually '.......rofile[23]:^M:not found'
> (the ^M, or CR, is doing a carriage return).  It's possible that a
> bash-ism got into the default /etc/profile, or it may be a text/binary
> error.  I'll check it out if I can reproduce it.
> 
> 

9:1 that the text is 'ksh: /etc/profile[xx]: \n: not found', which does 
sound like a lineend problem.

I ran into this once, when I modified /etc/profile with a text editor 
that didn't understand Unix newlines without paying attention.  Assuming 
that this is the cause, and that /etc is mounted binary, dos2unix should 
fix it.

--
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