RE: File format - UNIX/DOS while installing cygwin ?

2004-09-13 Thread Hughes, Bill
Robert Menschel wrote:
...
> 
> If the original file is on Unix, and everything (including the FTP) is
> under Cygwin, use the Unix format.

Also look at the d2u and u2d commands as well, in case you use the 'wrong'
ftp to copy your files. NB use 'd2u --help' , not man/info.

Bill
-- 
   ___
  oo  // \\  "De Chelonian Mobile"
 (_,\/ \_/ \ TortoiseSVN
   \ \_/_\_/>The coolest Interface to (Sub)Version Control
   /_/   \_\ http://tortoisesvn.tigris.org

This e-mail transmission is strictly confidential and intended solely
for the person or organisation to whom it is addressed. It may contain
privileged and confidential information and if you are not the intended
recipient, you must not copy, distribute or take any action in reliance
on it. If you have received this email in error, please reply to the
sender as soon as possible and delete the message. Please note that we
are able to, and reserve the right to, monitor e-mail communications
passing through our network.

The views expressed in this email are not that of the company unless
specified within the message.

The inclusion of this footnote indicates that the mail message and any
attachments have been checked for the presence of known viruses.

If you have any comments regarding our policy please direct them to
[EMAIL PROTECTED]

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



Re: cygserver problem max 5 connections

2004-09-13 Thread Corinna Vinschen
On Sep 12 18:26, Reini Urban wrote:
> Corinna Vinschen schrieb:
> >On Sep 12 14:05, Reini Urban wrote:
> >
> >>I have a postgres user claiming that cygserver cannot serve more than 5 
> >>concurrent connections with postgres.
> >
> >Did you already play with the /etc/cygserver.conf parameters?
> 
> Sure. I only see a 10 semaphore id limit, but not the reported 5.
> And I didn't see where postgresql needs 2 id's per connection.
> 
> # kern.ipc.semmni: Maximum no. of semaphore identifiers hold concurrently.
> # Default: 10, Min: 1, Max: 1024
> kern.ipc.semmni 10
> # kern.ipc.semmns: Maximum no. of semaphores hold concurrently.
> # Default: 60, Min: 1, Max: 1024
> kern.ipc.semmns 200

Dunno how many concurrent connections a running postgresql system needs
so I was wondering if raising kern.srv.request_threads could help.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: rsync - file size differences

2004-09-13 Thread Henry S. Thompson
"Ryan Brothers" <[EMAIL PROTECTED]> writes:

> I'm running into an issue using rsync-2.6.2-2 on cygwin on Win2k SP4 where
> after I rsync a directory, the binary files rsync'ed have a different size
> and thus are corrupt if I try to open them in the program they were created
> in (pdf's, jpg's, etc) - text files remain identical.

. . .

> Also, using rsync-2.6.2-1 gives identical files regardless of the text file
> option selected - this problem just started for me after upgrading to
> rsync-2.6.2-2.

This sounds like the same problem I reported last week, where recently
on text-mount volumes rsync can't recognise its own results.

The only change from 2.6.2-1 to 2.6.2-2 was 'a SECURITY FIX', seems
unlikely to provoke a problem in this area . . .

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
 Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED]
   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]

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



Compilation problems

2004-09-13 Thread Kostadin Cholakov
Hi

I have problems with compiling Java and C++ programs.
I have installed Cygwin version 2.427 with all
packages provided in Setup.exe. When I use Xemacs to
write my programs, everything seems to be normal-
correct formatting, there are the necessarry tools
such as JDE for Java, for example, and so on. But when
I try to compile a program, Xemacs blows up the
message "Searching for program: No such file or
directory, java". When I try in BASH by typing javac
the message, of course, is: "No such command". The
same happens when I type java -version. I have tried
only with C++ and Java but I suspect that the
situation will be the same with other languages. I am
sending the result from cygcheck. Please, have a look
and if possible, help me! Thanks!


Cygwin Configuration Diagnostics
Current System Time: Mon Sep 13 12:45:54 2004

Windows 98 Ver 4.10 Build 1998 

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS
c:\WINDOWS\COMMAND
c:\PROGRA~1\COMMON~1\AUTODE~1

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 856(pirinlion) GID: 544(all)
544(all)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 856(pirinlion) GID: 544(all)
544(all)

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

Here's some environment variables that may affect
cygwin:
HOME = `C:\cygwin\home\pirinlion'
MAKE_MODE = `unix'
PWD = `/'
USER = `pirinlion'

Here's the rest of your environment variables:
BLASTER = `A220 I7 D1 H7 P330 T6'
CMDLINE = `bash --login -i'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
CVS_RSH = `/bin/ssh'
INFOPATH =
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
MANPATH =
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man:/usr/X11R6/man'
OLDPWD = `/home/pirinlion'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
PROMPT = `$p$g'
PS1 = `$ '
SBPCI = `C:\SBPCI'
SHLVL = `1'
TEMP = `C:\WINDOWS\TEMP'
TERM = `cygwin'
TEXMF = `{/usr/share/lilypond/2.2.2,/usr/share/texmf}'
TMP = `C:\WINDOWS\TEMP'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

Scanning registry for keys with `Cygnus' in them...
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\Software\Cygnus
Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\Software\Cygnus
Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\Software\Cygnus
Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\Software\Cygnus
Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\Software\Cygnus
Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x000a
HKEY_LOCAL_MACHINE\Software\Cygnus
Solutions\Cygwin\Program Options

Listing available drives...
Drv TypeSize   Free Flags  Name
a:  fd   N/AN/A
c:  hd  FAT32   9772Mb  67% CPUN   KOTCE
d:  cd   N/AN/A
fd=floppy, hd=hard drive, cd=CD-ROM, net=Network Share
CP=Case Preserving, CS=Case Sensitive, UN=Unicode
PA=Persistent ACLS, FC=File Compression, VC=Volume
Compression

Mount entries: these map POSIX directories to your NT
drives.
-NT-   -POSIX-
  -Type-  -Flags-
C:\cygwin  /  
  system  binmode
C:\cygwin/bin  /usr/bin   
  system  binmode
C:\cygwin/lib  /usr/lib   
  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts 
/usr/X11R6/lib/X11/fonts  system  binmode
.  /cygdrive  
  system  binmode,cygdrive

Looking to see where common programs can be found, if
at all...
Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: C:\cygwin\bin\find.exe hides
c:\WINDOWS\COMMAND\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

Looking for various Cygnus DLLs...  (-v gives version
info)
   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0
img=1.0 sys=4.0
  "cygbz2-1.dll" v0.0 ts=2003/8/9 8:35
   19k 200

Re: rsync - file size differences

2004-09-13 Thread Igor Pechtchanski
On Mon, 13 Sep 2004, Henry S. Thompson wrote:

> "Ryan Brothers" <[EMAIL PROTECTED]> writes:
>
> > I'm running into an issue using rsync-2.6.2-2 on cygwin on Win2k SP4 where
> > after I rsync a directory, the binary files rsync'ed have a different size
> > and thus are corrupt if I try to open them in the program they were created
> > in (pdf's, jpg's, etc) - text files remain identical.
>
> . . .
>
> > Also, using rsync-2.6.2-1 gives identical files regardless of the text file
> > option selected - this problem just started for me after upgrading to
> > rsync-2.6.2-2.
>
> This sounds like the same problem I reported last week, where recently
> on text-mount volumes rsync can't recognise its own results.
>
> The only change from 2.6.2-1 to 2.6.2-2 was 'a SECURITY FIX', seems
> unlikely to provoke a problem in this area . . .

...unless 2.6.2-2 was compiled/built differently (e.g., with different
libraries, on a different machine, etc).  That was a WAG, BTW.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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



Re: BUG: Bad call to GetFileSze in ext2fsprogs lib/ext2fs/getsize.c

2004-09-13 Thread Christopher Faylor
On Sun, Sep 12, 2004 at 10:40:39PM -0700, Earl Chew wrote:
>The call to GetFileSize() doesn't match the Microsoft documentation,
>and invariably mis-sizes the disk image as zero.

That's odd.  Why would a cygwin program be calling GetFileSize?  e2fsprogs
should be using statfs and stat.

cgf

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



Re: rsync - file size differences

2004-09-13 Thread Christopher Faylor
On Mon, Sep 13, 2004 at 10:13:50AM -0400, Igor Pechtchanski wrote:
>On Mon, 13 Sep 2004, Henry S. Thompson wrote:
>
>> "Ryan Brothers" <[EMAIL PROTECTED]> writes:
>>
>> > I'm running into an issue using rsync-2.6.2-2 on cygwin on Win2k SP4 where
>> > after I rsync a directory, the binary files rsync'ed have a different size
>> > and thus are corrupt if I try to open them in the program they were created
>> > in (pdf's, jpg's, etc) - text files remain identical.
>>
>> . . .
>>
>> > Also, using rsync-2.6.2-1 gives identical files regardless of the text file
>> > option selected - this problem just started for me after upgrading to
>> > rsync-2.6.2-2.
>>
>> This sounds like the same problem I reported last week, where recently
>> on text-mount volumes rsync can't recognise its own results.
>>
>> The only change from 2.6.2-1 to 2.6.2-2 was 'a SECURITY FIX', seems
>> unlikely to provoke a problem in this area . . .
>
>...unless 2.6.2-2 was compiled/built differently (e.g., with different
>libraries, on a different machine, etc).  That was a WAG, BTW.

Lapo?  Can you weigh in here, please?

cgf

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



Re: rsync - file size differences

2004-09-13 Thread Henry S. Thompson
Igor Pechtchanski <[EMAIL PROTECTED]> writes:

> On Mon, 13 Sep 2004, Henry S. Thompson wrote:
>
>> "Ryan Brothers" <[EMAIL PROTECTED]> writes:
>>
>> > I'm running into an issue using rsync-2.6.2-2 on cygwin on Win2k
>> > SP4 . . .  Also, using rsync-2.6.2-1 gives identical files
>> > regardless of the text file option selected - this problem just
>> > started for me after upgrading to rsync-2.6.2-2.
>>
>> This sounds like the same problem I reported last week, where recently
>> on text-mount volumes rsync can't recognise its own results.
>>
>> The only change from 2.6.2-1 to 2.6.2-2 was 'a SECURITY FIX', seems
>> unlikely to provoke a problem in this area . . .
>
> ...unless 2.6.2-2 was compiled/built differently (e.g., with different
> libraries, on a different machine, etc).  That was a WAG, BTW.

Indeed, so I tried rebuilding 2.6.3 locally, same problem :-(

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
 Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED]
   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]

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



Re: rsync - file size differences

2004-09-13 Thread Christopher Faylor
On Mon, Sep 13, 2004 at 03:44:47PM +0100, Henry S. Thompson wrote:
>Igor Pechtchanski <[EMAIL PROTECTED]> writes:
>
>> On Mon, 13 Sep 2004, Henry S. Thompson wrote:
>>
>>> "Ryan Brothers" <[EMAIL PROTECTED]> writes:
>>>
>>> > I'm running into an issue using rsync-2.6.2-2 on cygwin on Win2k
>>> > SP4 . . .  Also, using rsync-2.6.2-1 gives identical files
>>> > regardless of the text file option selected - this problem just
>>> > started for me after upgrading to rsync-2.6.2-2.
>>>
>>> This sounds like the same problem I reported last week, where recently
>>> on text-mount volumes rsync can't recognise its own results.
>>>
>>> The only change from 2.6.2-1 to 2.6.2-2 was 'a SECURITY FIX', seems
>>> unlikely to provoke a problem in this area . . .
>>
>> ...unless 2.6.2-2 was compiled/built differently (e.g., with different
>> libraries, on a different machine, etc).  That was a WAG, BTW.
>
>Indeed, so I tried rebuilding 2.6.3 locally, same problem :-(

It seems as though rsync should probably be linked with
/usr/lib/binmode.o .

cgf

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



Re: rsync - file size differences

2004-09-13 Thread Henry S. Thompson
Christopher Faylor <[EMAIL PROTECTED]> writes:

> On Mon, Sep 13, 2004 at 03:44:47PM +0100, Henry S. Thompson wrote:
>>Igor Pechtchanski <[EMAIL PROTECTED]> writes:
>>
>>> On Mon, 13 Sep 2004, Henry S. Thompson wrote:
>>>
 "Ryan Brothers" <[EMAIL PROTECTED]> writes:

 > I'm running into an issue using rsync-2.6.2-2 on cygwin on Win2k
 > SP4 . . .  Also, using rsync-2.6.2-1 gives identical files
 > regardless of the text file option selected - this problem just
 > started for me after upgrading to rsync-2.6.2-2.

 This sounds like the same problem I reported last week, where recently
 on text-mount volumes rsync can't recognise its own results.

 The only change from 2.6.2-1 to 2.6.2-2 was 'a SECURITY FIX', seems
 unlikely to provoke a problem in this area . . .
>>>
>>> ...unless 2.6.2-2 was compiled/built differently (e.g., with different
>>> libraries, on a different machine, etc).  That was a WAG, BTW.
>>
>>Indeed, so I tried rebuilding 2.6.3 locally, same problem :-(
>
> It seems as though rsync should probably be linked with
> /usr/lib/binmode.o .
>
> cgf

That did indeed fix (my version of) the problem.

As usual, you rock.

Thanks

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
 Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED]
   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]

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



Re: Crash in setup 2.427

2004-09-13 Thread Michael D. Crawford
(A stream of consciousness transcript in which Mike gets a clue about 
using Setup...)

Larry Hall wrote:
You might be getting caught by some arcane setup logic with dependencies.
I'd recommend uninstalling all gcc packages and then reinstall all the ones
you need together.  That should get you the versions you want.
That made sense, and I tried it, but I was unable to get all the gcc 
packages uninstalled.  I could remove most of them, but upon trying to 
remove the last one, setup would crash.

What I tried was to get all the components at version 3.3.3-3, which 
worked ok, and then to replace them all with version 3.4.1-1.  I could 
get most of it, but I could not get rid of this error message:

$ gcj Hello.java
/usr/lib/gcc/i686-pc-cygwin/3.4.1/../../../../i686-pc-cygwin/bin/ld: 
cannot find -lgcc

Looking through gcj --help, I found the following option:
$ gcj -print-libgcc-file-name
libgcc.a
Doing a search for libgcc.a at http://cygwin.com/packages/ I found that 
it should be in one of the following packages:

gcc/gcc-3.3.1-1
gcc/gcc-3.3.1-3
gcc-core/gcc-core-3.3.3-3
gcc-core/gcc-core-3.4.1-1
The only 3.4.1-1 version there is the package gcc-core.  But it looks 
like gcc-core is only source files.  In any case, installing it doesn't 
product libgcc.a.

However, look closely at the path in the error message:
/usr/lib/gcc/i686-pc-cygwin/3.4.1/
I don't think i686-pc-cygwin is what I want.  I'm trying to create a 
win32 binary.  I need to use -mno-cygwin on the gcj command line!  Now I 
get:

$ gcj -mno-cygwin Hello.java
/usr/lib/gcc/i686-pc-mingw32/3.4.1/../../../../i686-pc-mingw32/bin/ld: 
cannot find -lgcc

At some point I had libgcj.a installed in i686-pc-mingw32. 
Unfortunately, it went away.  Now let me see if I can get it back.

Just now I see that Yitzchak Scott-Thoennes wrote:
Don't mess with the version numbers it shows you.  Use the ones it shows
when the Curr(ent) radio button is selected or the ones it shows when
the Exp(erimental) radio button is selected.
That looks like it might work.  Before I saw that, I had dropped back 
again to 3.3.3-3.  With the experimental button selected, I setup wants 
to install version 3.4.1-1 for gcc, gcc-core, gcc-g++ and gcc-java. 
gcc-mingw it wants to keep at 20040810-1.  It wants to install 
20040822-1 for gcc-mingw-core, gcc-mingw-g++, and gcc-mingw-java.

(Hopefully, he presses the Next button...  Installation complete...)
$ gcj -mno-cygwin Hello.java
/usr/lib/gcc/i686-pc-mingw32/3.4.1/../../../../i686-pc-mingw32/lib/libmingw32.a(
main.o)(.text+0x106):main.c: undefined reference to [EMAIL PROTECTED]'
Well that's progress.
$ gcj -mno-cygwin Hello.java -lm
Nope.  Try "man gcj":
$ gcj -mno-cygwin --main=Hello Hello.java
gcj: installation problem, cannot exec 'cc1': No such file or directory
I did "download from internet", selected the Exp button, and now the 
installer wants to download the binary for gcc-core 3.4.1-1.  I thought 
there was just source. Must have missed that before...

$ gcj -mno-cygwin --main=Hello Hello.java
[EMAIL PROTECTED] ~/IrateDev/Hello
$ ls
Hello.java  a.exe
[EMAIL PROTECTED] ~/IrateDev/Hello
$ ./a.exe
Hello, World!
Now to checkout the iRATE sources.  Taras Glek managed to built iRATE 
with gcj for Win32 last night, but I think he was doing the builds on 
Linux.

Success!
Thanks for your help, I appreciate it.
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com/
[EMAIL PROTECTED]
Tilting at Windmills for a Better Tomorrow.
--
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/


Re: Shifting to a new user created

2004-09-13 Thread Larry Hall
At 01:19 AM 9/13/2004, you wrote:
>Hi,
>
>i am using cygwin on windows 2000.
>Problem: unable to shift to desirable user like from user: vkgupta to user: qa
>
>I have done
>
>$mkpasswd -d > /etc/passwd 
>
>This had given me all the users in the domain now i want to shift from user: vkgupt 
>to user:qa who are in my domain.


Please read and follow the guidelines of 
for any follow-up report to this one (and any future reports as well).  It 
will help those here on the list understand what you're doing and where you 
see a problem. 

In the absence of this information, I'll recommend that you look into 
and install and configure the 'openssh' package.  It has a facility that 
will allow you to log into a machine as a different user.



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


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



Re: ssmtp.exe doesn't authenticate against exchange

2004-09-13 Thread Robert R Schneck
Alex wrote:
> it works against sendmail+cyrus but not against the latest
> exchange server. Any patches on the horizon?

ssmtp authentication certainly used to work with MS exchange; an old man 
page says "only tested with MS exchange" of those options, in fact.

Do you know what has changed in the latest versions?  
Giving the error messages would be a start.

Robert


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



Re: Crash in setup 2.427

2004-09-13 Thread Larry Hall
At 11:21 AM 9/13/2004, you wrote:

>Just now I see that Yitzchak Scott-Thoennes wrote:
>
>>Don't mess with the version numbers it shows you.  Use the ones it shows
>>when the Curr(ent) radio button is selected or the ones it shows when
>>the Exp(erimental) radio button is selected.
>
>That looks like it might work.  Before I saw that, I had dropped back again to 
>3.3.3-3.  With the experimental button selected, I setup wants to install version 
>3.4.1-1 for gcc, gcc-core, gcc-g++ and gcc-java. gcc-mingw it wants to keep at 
>20040810-1.  It wants to install 20040822-1 for gcc-mingw-core, gcc-mingw-g++, and 
>gcc-mingw-java.
>
>(Hopefully, he presses the Next button...  Installation complete...)
>
>$ gcj -mno-cygwin Hello.java
>/usr/lib/gcc/i686-pc-mingw32/3.4.1/../../../../i686-pc-mingw32/lib/libmingw32.a(
>main.o)(.text+0x106):main.c: undefined reference to [EMAIL PROTECTED]'
>
>Well that's progress.
>


Sorry Michael.  I forgot that gcc 3.4 is currently in the experimental 
category. :-(  What out for that in future upgrades.  Setup will "downgrade"
you if you install something else from "Current" and don't toggle to "Keep"
for these packages.



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


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



Re: fork fails

2004-09-13 Thread Tero Niemela
> >440 [main] zsh 1432 fork_copy: linked dll
> data/bss
> >pass 0 failed,
> >0x542000..
> >0x5427F0, done 0, windows pid 1960, Win32 error 487
> >/etc/profile:33: fork failed: resource temporarily
> >unavailable
> 
> Apparently you don't remember this error on the
> Windows
> 2000 machine and what you did to fix it then. ;-)

I didn't; it worked there from the beginning.

> I should point out that this is a perfect question
> for 
> the email archives.  You would have seen plenty of
> references
> and the likely solution.
> 
> Install the 'rebase' package.  Run 'rebaseall'.  A
> simpler 
> fix you couldn't ask for. :-)

Thanks, this solved my problem! I *did* search with
google but unfortunately I used also 'zsh' as a search
term so only hit was Japanese Slashdot...



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: Compilation problems

2004-09-13 Thread Larry Hall
At 08:27 AM 9/13/2004, you wrote:
>Hi
>
>I have problems with compiling Java and C++ programs.
>I have installed Cygwin version 2.427 with all
>packages provided in Setup.exe. When I use Xemacs to
>write my programs, everything seems to be normal-
>correct formatting, there are the necessarry tools
>such as JDE for Java, for example, and so on. But when
>I try to compile a program, Xemacs blows up the
>message "Searching for program: No such file or
>directory, java". When I try in BASH by typing javac
>the message, of course, is: "No such command". The
>same happens when I type java -version. I have tried
>only with C++ and Java but I suspect that the
>situation will be the same with other languages. I am
>sending the result from cygcheck. Please, have a look
>and if possible, help me! Thanks!

Is 'java' in your path?  It doesn't look like it to me 
but I'm not sure where you put it.  I'm also unclear as to
from where and how the messages you report are generated.
If you're still having trouble with this, providing specific
steps that show the problem would be helpful.

Keep in mind that 'java' is not a Cygwin program, so using
it with Cygwin paths directly will cause problems.  You may
want to create wrappers for your use that employ 'cygpath' to
do path conversion.  Cygwin's Java compiler is 'gcj', FWIW.
It understands all Cygwin's nice extras.  

There has been lots of discussion in the past about using Sun's 
Java with Cygwin and ways to integrate it more completely.  You 
may want to check out some of that previous discussion too.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


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



Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Jan Nieuwenhuizen
Igor Pechtchanski writes:

>> I found that it was a conflict with my existing fpTeX installation
>> (fpTeX is a TeTeX port to Windows) that defined an environment
>> variable TEXMFCNF to one of Windows directories.

I feel that setup.exe should not use an unclean environment.

>> The script post-texmf.sh diagnosted that and asked for user's
>> reaction.

Actually, it is texconfig which does that.

Thanks for reporting this.

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

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



HELP: How to disable killing of Bash Shell window with mouse?

2004-09-13 Thread Pekka Niiranen
Hi there,
Killing Cygwin Shell Window with mouse leaves bash.exe running.
which can be seen from W2K task manager. How can I disable
X -button from the Shell Windows so that the user is forced
to TYPE "exit" on command prompt? Recompiling?
-pekka-
--
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/


Re: 1.5.11-1: sftp performance problem

2004-09-13 Thread Bob Byrnes
On Sep 9,  1:46pm, Peter Siebold wrote:
-- Subject: 1.5.11-1: sftp performance problem
>
> I updated to the newest version of cygwin dll on 9/7/4 and after sftp
> suffered performance issues when issuing a get on a large file.  File
> transfers now stall and do not complete.  After downgrading to version
> of 1.5.10-3 of cygwin sftp then it works fine.
> 
-- End of excerpt from Peter Siebold

Hi Peter ...

I am continuing to investigate this issue (see the cygwin-patches mailing
list for ongoing discussions if you're interested).

The problem was triggered by ...

On Sep 4, 11:51pm, Christopher Faylor wrote:
-- Subject: [ANNOUNCEMENT] Updated: cygwin-1.5.11-1
>
> Changes since 1.5.10-3:
> 
> ...
> 
> - Fix some problems with rsync hangs on Windows NT class systems. (Bob Byrnes)
> 
-- End of excerpt from Christopher Faylor

Here are some work-arounds that you can use until we have a real fix,
listed in order of most- to least-recommended:

--  Use slightly smaller buffers with sftp.
"sftp -B 8192" or even "sftp -B 12288" should work.
The default buffer size seems to be 16k (in spite of the manpage,
which claims it is 32k).

--  Use scp or some other file transfer protocol over ssh,
like rsync or tar.  The problem seems to affect sftp more
than other programs.

--  Downgrade to a version of cygwin before 1.5.11-1.

I hope this helps.

--
Bob

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



Re: 1.5.11-1: sftp performance problem

2004-09-13 Thread Christopher Faylor
On Mon, Sep 13, 2004 at 01:45:17PM -0400, Bob Byrnes wrote:
>On Sep 9,  1:46pm, Peter Siebold wrote:
>-- Subject: 1.5.11-1: sftp performance problem
>> I updated to the newest version of cygwin dll on 9/7/4 and after sftp
>> suffered performance issues when issuing a get on a large file.  File
>> transfers now stall and do not complete.  After downgrading to version
>> of 1.5.10-3 of cygwin sftp then it works fine.
>> 
>-- End of excerpt from Peter Siebold
>
>Hi Peter ...
>
>I am continuing to investigate this issue (see the cygwin-patches mailing
>list for ongoing discussions if you're interested).

Thanks for looking at this, Bob.

Your efforts in improving this part of cygwin are much appreciated.  It's
not surprising that there would be a few problems given the complexity
of the interface you're trying to use and just the general square pegness
of the NT API that you're trying to fit into the linux round hole.

cgf

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



Re: ssmtp.exe doesn't authenticate against exchange

2004-09-13 Thread Olaf Foellinger
On Sun, Sep 12, 2004 at 10:22:42PM -0700, Alex wrote:
> it works against sendmail+cyrus but not against the latest
> exchange server. Any patches on the horizon?

The question is: Which authentication method does the exchange server
support? I've tried it first with firebird and then I've moved the
configuration to cygwin.

If e.g. the exchange server needs ssl, then I doubt that ssmtp will do
the job. I've installed and configured exim for this suppose.
 

Gruss Olaf Föllinger

--
Olaf Föllinger
Senior Consultant IT Solutions
S.E.S.A. Software und Systeme AG


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



Setup and environment of postinstall scripts (was: Installation hangs because asks for input from terminal)

2004-09-13 Thread Max Bowsher
Jan Nieuwenhuizen wrote:
Igor Pechtchanski writes:
I found that it was a conflict with my existing fpTeX installation
(fpTeX is a TeTeX port to Windows) that defined an environment
variable TEXMFCNF to one of Windows directories.
I feel that setup.exe should not use an unclean environment.
I'm not sure that's true.
Since there is nothing cleaning up the normal environment in which cygwin 
programs run, I don't see why postinstall scripts should be different.

Does that make sense?
Max.
--
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/


Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Igor Pechtchanski
On Mon, 13 Sep 2004, Jan Nieuwenhuizen wrote:

> Igor Pechtchanski writes:

FWIW, it was the original poster who wrote the below -- all of my comments
got snipped out.

> >> I found that it was a conflict with my existing fpTeX installation
> >> (fpTeX is a TeTeX port to Windows) that defined an environment
> >> variable TEXMFCNF to one of Windows directories.
>
> I feel that setup.exe should not use an unclean environment.

If an empty environment is needed, why not use "env -i" in the postinstall
script?

> >> The script post-texmf.sh diagnosted that and asked for user's
> >> reaction.
>
> Actually, it is texconfig which does that.
>
> Thanks for reporting this.
> Jan.

Ok, I think it's unreasonable to require that none of the tools called
from postinstall scripts read stdin -- there's just no way maintainers are
going to be able to ensure that.  I'll submit a patch to setup.exe that
redirects stdin from /dev/null.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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



Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Jan Nieuwenhuizen
Igor Pechtchanski writes:

> FWIW, it was the original poster who wrote the below -- all of my comments
> got snipped out.

Sorry.

> If an empty environment is needed, why not use "env -i" in the postinstall
> script?

Because that's a bit like fixing the bug inside-out?

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

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



Re: ssmtp.exe doesn't authenticate against exchange

2004-09-13 Thread Robert R Schneck
Olaf Foellinger wrote:
> On Sun, Sep 12, 2004 at 10:22:42PM -0700, Alex wrote:
>> it works against sendmail+cyrus but not against the latest
>> exchange server. Any patches on the horizon?
>
> The question is: Which authentication method does the exchange server
> support? I've tried it first with firebird and then I've moved the
> configuration to cygwin.
>
> If e.g. the exchange server needs ssl, then I doubt that ssmtp will do
> the job. I've installed and configured exim for this suppose.

ssmtp can be configured to use ssl, but it has to be re-compiled for 
that purpose.  Some instructions are available in the relevant places
under /usr/share/doc/.

Perhaps I should make the ssmtp binary package ssl-capable...

Robert


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



Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Igor Pechtchanski
On Mon, 13 Sep 2004, Jan Nieuwenhuizen wrote:

> Igor Pechtchanski writes:
>
> > FWIW, it was the original poster who wrote the below -- all of my comments
> > got snipped out.
>
> Sorry.

No problem, just pointing out the correct attribution. :-)

> > If an empty environment is needed, why not use "env -i" in the postinstall
> > script?
>
> Because that's a bit like fixing the bug inside-out?

Not really.  As Max said, the environment in which the postinstall scripts
run is the same as the one you'd get when you run them on the command line
(albeit from a non-login /bin/sh).  That environment will contain all of
the Windows-set environment variables.  If the tools require that some
variables be unset (because they might throw the tools off, for example),
the variables have to be unset in the postinstall script -- setup.exe
can't be expected to know all of the variables potentially conflicting
with all of the packages.

OTOH, I've already submitted the patch to setup.exe that kills stdin in
postinstall scripts, so that even if some tool asks for input, it'll just
get EOF.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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



Re: HELP: How to disable killing of Bash Shell window with mouse?

2004-09-13 Thread Thorsten Kampe
* Pekka Niiranen (2004-09-13 18:19 +0200)
> Killing Cygwin Shell Window with mouse leaves bash.exe running.
> which can be seen from W2K task manager. How can I disable
> X -button from the Shell Windows so that the user is forced
> to TYPE "exit" on command prompt? Recompiling?

Recompile what? Cmd exe? Bash is a shell and knows nothing about the
Windows Console "X" button.

Show them [Ctrl-d] which is anyway faster than grabbing the mouse. If
they still do it - hit 'em on the head with a stick and let them write
a thousand time "I won't ever try to close a shell with my mouse".

Thorsten


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



Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Jan Nieuwenhuizen
Igor Pechtchanski writes:

> Not really.  As Max said, the environment in which the postinstall scripts
> run is the same as the one you'd get when you run them on the command line
> (albeit from a non-login /bin/sh).  That environment will contain all of
> the Windows-set environment variables.  If the tools require that some
> variables be unset (because they might throw the tools off, for example),
> the variables have to be unset in the postinstall script -- setup.exe
> can't be expected to know all of the variables potentially conflicting
> with all of the packages.

No, of course.  That's why I'd like to have an empty (rather than a
cleaned) environment, isn't that possible?  That sounds cleaner than
fixing all scripts?

FWIW, the way teTeX works, most variables set in texmf.cnf are
overridden by the environment; it would be next to impossible to
guarantee a successful teTeX environment after logging in if variables
from the WINDOWS are allowed to silently enter the Cygwin
environment...

> OTOH, I've already submitted the patch to setup.exe that kills stdin in
> postinstall scripts, so that even if some tool asks for input, it'll just
> get EOF.

That's great, but it will mean that with the current post-texmf.sh
(without resetting of the enviroment), the resulting teTeX setup will
be broken.

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

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



RE: Bad call to GetFileSze in ext2fsprogs lib/ext2fs/getsize.c

2004-09-13 Thread Robb, Sam
> The call to GetFileSize() doesn't match the Microsoft documentation,
> and invariably mis-sizes the disk image as zero.

Earl,

  I've made some updated packages for e2fsprogs and e2fsimage
available at http://www.oneparticularharbor.net/cygwin/.  I'd
appreciate it if you would take a look at them and let me know
if the changes I've made fix the problems you encountered.

  e2fsprogs:
http://www.oneparticularharbor.net/cygwin/e2fsprogs/e2fsprogs-1.35-3-src.tar.bz2
http://www.oneparticularharbor.net/cygwin/e2fsprogs/e2fsprogs-1.35-3.tar.bz2
http://www.oneparticularharbor.net/cygwin/e2fsprogs/setup.hint

  e2fsimage:
http://www.oneparticularharbor.net/cygwin/e2fsimage/e2fsimage-0.2.0-2-src.tar.bz2
http://www.oneparticularharbor.net/cygwin/e2fsimage/e2fsimage-0.2.0-2.tar.bz2
http://www.oneparticularharbor.net/cygwin/e2fsimage/setup.hint

-Samrobb

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



Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Christopher Faylor
On Mon, Sep 13, 2004 at 08:54:11PM +0200, Jan Nieuwenhuizen wrote:
>Igor Pechtchanski writes:
>
>> Not really.  As Max said, the environment in which the postinstall scripts
>> run is the same as the one you'd get when you run them on the command line
>> (albeit from a non-login /bin/sh).  That environment will contain all of
>> the Windows-set environment variables.  If the tools require that some
>> variables be unset (because they might throw the tools off, for example),
>> the variables have to be unset in the postinstall script -- setup.exe
>> can't be expected to know all of the variables potentially conflicting
>> with all of the packages.
>
>No, of course.  That's why I'd like to have an empty (rather than a
>cleaned) environment, isn't that possible?  That sounds cleaner than
>fixing all scripts?

No, you can't have a completely empty environment on Windows.  There
are some environment variables that really have to be there.

cgf

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



Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Jan Nieuwenhuizen
Christopher Faylor writes:

> No, you can't have a completely empty environment on Windows.  There
> are some environment variables that really have to be there.

I understand that, can't we make a list of those essential variables,
and wouldn't it be nice if setup.exe copied those essential variables only?

And if so, what about /etc/profile?

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

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



Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Igor Pechtchanski
On Mon, 13 Sep 2004, Jan Nieuwenhuizen wrote:

> Igor Pechtchanski writes:
>
> > Not really.  As Max said, the environment in which the postinstall scripts
> > run is the same as the one you'd get when you run them on the command line
> > (albeit from a non-login /bin/sh).  That environment will contain all of
> > the Windows-set environment variables.  If the tools require that some
> > variables be unset (because they might throw the tools off, for example),
> > the variables have to be unset in the postinstall script -- setup.exe
> > can't be expected to know all of the variables potentially conflicting
> > with all of the packages.
>
> No, of course.  That's why I'd like to have an empty (rather than a
> cleaned) environment, isn't that possible?  That sounds cleaner than
> fixing all scripts?

Most scripts don't need an empty environment.

> FWIW, the way teTeX works, most variables set in texmf.cnf are
> overridden by the environment; it would be next to impossible to
> guarantee a successful teTeX environment after logging in if variables
> from the WINDOWS are allowed to silently enter the Cygwin
> environment...

Well, if you install teTeX with an empty environment, and then attempt to
run it from a user shell (which *will* inherit the Windows settings),
wouldn't it still be broken?

(Yes, you can play games with /etc/profile.d scripts, but that can only
take you so far...)

BTW, as CGF said, you can't have a completely empty environment, or
Cygwin won't work.  I recall there was a thread a while ago about patching
"env -i" to keep some of the necessary variables, but I just checked env
on my system, and looks like that thread didn't result in any changes to
sh-utils.

Why not just unset offending variables for now?  You can kill anything
starting with "TEX", for example, with something like

eval "`env | sed -n '/^TEX/s/=.*$/=/ p'`"

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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



[ANNOUNCEMENT] Updated: naim-0.11.7.2-1

2004-09-13 Thread Daniel Reed
naim 0.11.7.2 is now available through the Cygwin package system.

naim is a console client for AOL Instant Messenger (AIM), AOL I Seek You (ICQ),
Internet Relay Chat (IRC), and The lily CMC.
* naim includes unique features like zero-configuration peer to peer
  encryption, automatic message queueing, and incoming message modification
  (to correct common spelling mistakes).
* naim also includes powerful dynamic module support, allowing plug-ins to
  modify all major aspects of its behavior. The naim-modules package
  (distributed separately) includes several example plug-ins, including a
  telnet server (nsocket), an interactive bot (naimusers), and a simple
  anti-spam measure (nantispam).
* When combined with GNU Screen, naim is a great way to stay online
  constantly, allowing for instant communication when the user is attached
  and acting as an answering machine when detached. The user can detach from
  naim, log out, pack up and go home, then log in again from anywhere on the
  Internet to resume the naim session.
naim is maintained by an OPEN, DIRECTED COMMUNITY, and has been in
development since October, 1998. More information is available from:
http://naim.n.ml.org/


,--.
| To install or upgrade this package, run the Cygwin Net Release Setup |
| Program, available from [http://cygwin.com/setup.exe]. Answer all of the |
| questions to reach the Select Packages screen. You will find naim listed |
| in the "Net" category.   |
`--'


The 0.11.7 series offers substantial code and design improvements with the
target of increased user-visible interaction speed. The 0.11.7.2 release is
considered the latest stable release, and all users are encouraged to
upgrade to experience its benefits.


If there is any questionable behaviour at all, please contact me directly at
<[EMAIL PROTECTED]>, on AIM as "naim help," or on EFnet or Undernet IRC in #naim. If
you are interested in the use and development of naim, feel free to
subscribe to the naim-users mailing list. Just send a blank email to
<[EMAIL PROTECTED]> and reply to the confirmation message.

-- 
Daniel Reed <[EMAIL PROTECTED]> http://people.redhat.com/djr/   http://naim.n.ml.org/
The pursuit of pretty formulas and neat theorems can no doubt quickly
degenerate into a silly vice, but so can the quest for austere
generalities which are so very general indeed that they are incapable
of application to any particular. -- Eric Temple Bell, Mathematician


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



Re: Installation hangs because asks for input from terminal (Attn: tetex maintainer, setup maintainer)

2004-09-13 Thread Jan Nieuwenhuizen
Igor Pechtchanski writes:


>> FWIW, the way teTeX works, most variables set in texmf.cnf are
>> overridden by the environment; it would be next to impossible to
>> guarantee a successful teTeX environment after logging in if variables
>> from the WINDOWS are allowed to silently enter the Cygwin
>> environment...
>
> Well, if you install teTeX with an empty environment, and then attempt to
> run it from a user shell (which *will* inherit the Windows settings),
> wouldn't it still be broken?

Yes, that's exactly what I meant: it makes little sense to make sure
that setup.exe does the right thing (it should not hang of course),
when after user login running latex still doesn't work.

> (Yes, you can play games with /etc/profile.d scripts, but that can only
> take you so far...)

Indeed, I don't want to go that way.

> Why not just unset offending variables for now?

Because I do not like to make the wrong fix.  In this case, it will
probably hurt very few people, so it would make sense to think a bit
and do it correctly, if possible.

See, I can easily add unsetting bunch of variables to post-texmf.mf, eg

   unset MFINPUTS TEXINPUTS TEXMF TEXMFCNF TFMFONTS VARTEXFONTS

but it makes little sense unless I also do that in a profile.d script
(ugh).

Then, just pick a variable from texmf.cnf and set it to a silly value
in Windows, eg

   pool_size=2

and your tetex setup will be broken again.

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

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



Undifined reference to _WinMain@16

2004-09-13 Thread Kostadin Cholakov
Hi

I am using for a first time GCJ compiler (and I find
it strange) but it seems to work properly. I have my
first error message :). It is Undifined reference to
[EMAIL PROTECTED] I checked the FAQ but the explanation
there doesn't help. In fact, it refers to GCC compiler
and the example was an Object C file. Anyway, I tried
by putting the -lm flag and it didn't work. So,
please, can somebody tell me 2 simple commands in
order to compile and then to run a Java program using
GCJ! Should I make some additional changes in path or
something else? Thanks



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Undifined reference to _WinMain@16

2004-09-13 Thread Kostadin Cholakov
Hi

I am using for a first time GCJ compiler (and I find
it strange) but it seems to work properly. I have my
first error message :). It is Undifined reference to
[EMAIL PROTECTED] I checked the FAQ but the explanation
there doesn't help. In fact, it refers to GCC compiler
and the example is an Object C file. Anyway, I tried
by putting the -lm flag and it didn't work. So,
please, can somebody tell me 2 simple commands in
order to compile and then to run a Java program using
GCJ! Should I make some additional changes in path or
something else? Thanks!



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Undifined reference to _WinMain@16

2004-09-13 Thread Kostadin Cholakov
Hi

I am using for a first time GCJ compiler (and I find
it strange) but it seems to work properly. I have my
first error message :). It is Undifined reference to
[EMAIL PROTECTED] I checked the FAQ but the explanation
there doesn't help. In fact, it refers to GCC compiler
and the example is an Object C file. Anyway, I tried
by putting the -lm flag and it didn't work. I read all
stuff provided by man to see if there are some special
flags which I should put but I think there was nothing
which could help me. So, please, can somebody tell me
2 simple commands in order to compile and then to run
a Java program using GCJ! Should I make some
additional changes in path or something else? Thanks!



__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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



Re: cygwin Cron on Windows 2003 Server Issues

2004-09-13 Thread Shankar Unni
Christopher Faylor wrote:
The main cygwin page provides a link that should make things pretty
clear about how to subscribe to the cygwin lists.
BTW: For those who don't want to fill up their mailboxes with 100+ 
messages a day, you can also go through the NNTP gateway at 
news.gmane.org, which carries this list with a 2-way gateway as the 
newsgroup "gmane.os.cygwin".

But if you have any trouble posting via this route, you're on your own. 
The recommended mechanism is still subscribing to the mailing list. Use 
filtering or an alternate mailbox to help manage the traffic..

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


RE: Undifined reference to _WinMain@16

2004-09-13 Thread Buchbinder, Barry (NIH/NIAID)
http://sources.redhat.com/cygwin/faq/faq.html#SEC91

-Original Message-
From: Kostadin Cholakov 
Sent: Monday, September 13, 2004 4:25 PM
To: [EMAIL PROTECTED]
Subject: Undifined reference to [EMAIL PROTECTED]

Hi

I am using for a first time GCJ compiler (and I find
it strange) but it seems to work properly. I have my
first error message :). It is Undifined reference to
[EMAIL PROTECTED] I checked the FAQ but the explanation
there doesn't help. In fact, it refers to GCC compiler
and the example is an Object C file. Anyway, I tried
by putting the -lm flag and it didn't work. I read all
stuff provided by man to see if there are some special
flags which I should put but I think there was nothing
which could help me. So, please, can somebody tell me
2 simple commands in order to compile and then to run
a Java program using GCJ! Should I make some
additional changes in path or something else? Thanks!

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



Re: Undifined reference to _WinMain@16

2004-09-13 Thread Gerrit P. Haase
Hello Kostadin,

Am Montag, 13. September 2004 um 22:25 schriebst du:

> I am using for a first time GCJ compiler (and I find
> it strange) but it seems to work properly. I have my
> first error message :). It is Undifined reference to
> [EMAIL PROTECTED] I checked the FAQ but the explanation
> there doesn't help. In fact, it refers to GCC compiler
> and the example is an Object C file. Anyway, I tried
> by putting the -lm flag and it didn't work. I read all
> stuff provided by man to see if there are some special
> flags which I should put but I think there was nothing
> which could help me. So, please, can somebody tell me
> 2 simple commands in order to compile and then to run
> a Java program using GCJ! Should I make some
> additional changes in path or something else? Thanks!

$ cat hello.java
public class hello {
public static void main(String[] args) {
System.out.println("Just another Java hacker,");
}
}
$ gcj --main=hello hello.java -o hello
$ ./hello


-- 
=^..^=



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



RE: Undifined reference to _WinMain@16 (Attn: FAQ maintainer)

2004-09-13 Thread Igor Pechtchanski
On Mon, 13 Sep 2004, Buchbinder, Barry (NIH/NIAID) wrote:

> > -Original Message-
> > From: Kostadin Cholakov
> > Sent: Monday, September 13, 2004 4:25 PM
> > To: [EMAIL PROTECTED]

.

> > Subject: Undifined reference to [EMAIL PROTECTED]
> >
> > Hi
> >
> > I am using for a first time GCJ compiler (and I find
> > it strange) but it seems to work properly. I have my
> > first error message :). It is Undifined reference to
> > [EMAIL PROTECTED] I checked the FAQ but the explanation
> > there doesn't help. In fact, it refers to GCC compiler
> > and the example is an Object C file. Anyway, I tried
> > by putting the -lm flag and it didn't work. I read all
> > stuff provided by man to see if there are some special
> > flags which I should put but I think there was nothing
> > which could help me. So, please, can somebody tell me
> > 2 simple commands in order to compile and then to run
> > a Java program using GCJ! Should I make some
> > additional changes in path or something else? Thanks!
>
> http://sources.redhat.com/cygwin/faq/faq.html#SEC91

This won't work with gcj.  You need to pass a "--main" flag, e.g.,

gcj --main=Hello Hello.java

Would it be possible to add this to the above FAQ entry?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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



WinXP compressed dirs will work?

2004-09-13 Thread electa
If i compress a dir in the home directory using WinXP native compressing,
will it work with cygwin???




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



Re: WinXP compressed dirs will work?

2004-09-13 Thread Larry Hall
At 05:01 PM 9/13/2004, you wrote:
>If i compress a dir in the home directory using WinXP native compressing,
>will it work with cygwin???


Yes.  Compression is taken care of by Windows at a very low level.  Cygwin 
is a layer over Windows.  Cygwin will never know the difference.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


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



RE: Undifined reference to _WinMain@16 (Attn: FAQ maintainer)

2004-09-13 Thread Buchbinder, Barry (NIH/NIAID)
Sorry.  I deleted one but missed the other.

-Original Message-
From: Igor Pechtchanski
Sent: Monday, September 13, 2004 4:51 PM
Subject: RE: Undifined reference to [EMAIL PROTECTED] (Attn: FAQ maintainer)

On Mon, 13 Sep 2004, Buchbinder, Barry (NIH/NIAID) wrote:

> > -Original Message-
> > From: Kostadin Cholakov
> > Sent: Monday, September 13, 2004 4:25 PM
> > To: [EMAIL PROTECTED]

.

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



RE: HELP: How to disable killing of Bash Shell window with mouse?

2004-09-13 Thread Bogdan Vacaliuc
Hi Pekka,

http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=%2Bdisable+%2Bclose+%2Bwindow

The first hit is:

http://www.handyarchive.com/Desktop/Shell-Enhancements/4-WinTopMost-Site-License.html

Which is a link to a commercial product, but perhaps it will satisfy you or perhaps 
more searching will give the answer you seek.

Best Regards,

-bogdan


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Pekka Niiranen
> Sent: Monday, September 13, 2004 12:20 PM
> To: [EMAIL PROTECTED]
> Subject: HELP: How to disable killing of Bash Shell window with mouse?
> 
> 
> Hi there,
> 
> Killing Cygwin Shell Window with mouse leaves bash.exe 
> running. which can be seen from W2K task manager. How can I 
> disable X -button from the Shell Windows so that the user is 
> forced to TYPE "exit" on command prompt? Recompiling?
> 
> -pekka-
> 
> 
> --
> 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/
> 
> 


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



Re: Crash in setup 2.427

2004-09-13 Thread Arturus Magi
Michael D. Crawford wrote:
Unfortunately, gcc-java is 3.4.1, but under "New" it says 3.3.3-3.  If I 
let the installer proceed, it will remove gcj 3.4.1 (cygming special) 
and replace it with gcj 3.3.3 (cygwin special).  I've experienced this 
several times.  So I click in the New column for gcj-java to try to 
change it to keep:

   Program Error
   setup.exe has generated erros and will be closed by Windows.
   You will need to restart the program.
   An error log is being created.
I couldn't find an error log.  I used the Find Files Windoze tool to 
look for one.  Do you know where it might be?

The log file referred to by that dialog box is stuffed into an arcane 
location in the Windows directory (or the Documents and 
Settings/%USERNAME% directory, depending on the version of Windows and 
Windows settings) with a less than obvious name.

The setup log itself may contain messages of a similar nature, though, 
and should be found at /var/setup.log (or /var/setup.log.full).

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


Re: HELP: How to disable killing of Bash Shell window with mouse?

2004-09-13 Thread Brian Dessent
Thorsten Kampe wrote:
> 
> * Pekka Niiranen (2004-09-13 18:19 +0200)
> > Killing Cygwin Shell Window with mouse leaves bash.exe running.
> > which can be seen from W2K task manager. How can I disable
> > X -button from the Shell Windows so that the user is forced
> > to TYPE "exit" on command prompt? Recompiling?
> 
> Recompile what? Cmd exe? Bash is a shell and knows nothing about the
> Windows Console "X" button.
> 
> Show them [Ctrl-d] which is anyway faster than grabbing the mouse. If
> they still do it - hit 'em on the head with a stick and let them write
> a thousand time "I won't ever try to close a shell with my mouse".

Configure rxvt to look like cmd.exe and use that instead.  Good luck
trying to modify the behavior of cmd.exe.

Brian

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



Re: 1.5.10: expr + configure failure + testcase (also on 1.5.11-1)

2004-09-13 Thread Pierre A. Humblet
On Sun, Sep 12, 2004 at 09:42:07PM -0400, Bogdan Vacaliuc wrote:
> Hello again,
> 
> After (finally?!) noticing that a new release of the cygwin.dll was made on Sept. 4 
> and being encouraged by the line:
> 
> "- Fix mysterious configure script premature exit.  (Pierre Humblet)"
> 
> I decided to check against the latest public release.  The problem continues to 
> persist, unfortunately.
> 
> I created a simplified testcase, by realizing that a simple configure.ac will let 
> autoconf generate a suitable configure script.
> This auto-generated configure script exhibits the argument parsing failure as 
> readily as any script taken from a build environment.
> It is also attached (as text this time, sorry for all the compressed business I 
> mucked with previously).
> 
> Here is the configure.ac file needed for autoconf:
>

Bogdan,

The reason the mysterious configure script premature exit got fixed is that
we got a SIMPLE test case. Running a long configure script myriad times,
looking for an elusive error, won't lead to fast progress.
So try to isolate the error and produce a small test case.

I looked at the bashstracesnip2 trace provided by Peter Ekberg in
http://cygwin.com/ml/cygwin/2004-08/msg01329.html
I believe he is chasing the same problem as you.

The error occurs in the snippet
 -with-* | --with-*)
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
 
The surprise is that the error message:
"configure: error: invalid package name: extra-includes"
is produced at time 29722848 by bash 2624 (the main script pid).
This is BEFORE the second expr is exec'ed. This occurs only at
time 29725911 by a forked child 2656 of 2624
Following the output of the error message, 2624 proceeds to fork
2384, which apparently does nothing. 2624 then waits for
2656 and 2384 and exits.

In other words the control flow seems to be seriously screwed up.
It may be linked to the pid reuse problem in bash, but I know very
little about it. Looking at the full trace available from 
Peter may help.

Pierre

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



Re: 1.5.10: expr + configure failure + testcase (also on 1.5.11-1)

2004-09-13 Thread Christopher Faylor
On Mon, Sep 13, 2004 at 09:54:29PM -0400, Pierre A. Humblet wrote:
>The surprise is that the error message:
>"configure: error: invalid package name: extra-includes"
>is produced at time 29722848 by bash 2624 (the main script pid).  This
>is BEFORE the second expr is exec'ed.  This occurs only at time
>29725911 by a forked child 2656 of 2624 Following the output of the
>error message, 2624 proceeds to fork 2384, which apparently does
>nothing.  2624 then waits for 2656 and 2384 and exits.
>
>In other words the control flow seems to be seriously screwed up.  It
>may be linked to the pid reuse problem in bash, but I know very little
>about it.  Looking at the full trace available from Peter may help.

I was thinking the same thing but AFAIK, ash doesn't have the pid
recycling problem.

IIRC there is a problem with normal bash where it could be confused by
repeating pids even when the pids are separated by a large number.  It
can even happen on linux.

I will create a snapshot with double the number of pids cached in
cygwin.  This will cause the last 8 pids to be held from reuse by
windows.

Wasn't there a registry value that controlled how pids were allocated?
I can't find anything appropriate in google.

cgf

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



RE: 1.5.10: expr + configure failure + testcase (also on 1.5.11-1)

2004-09-13 Thread Peter Ekberg
Christopher Faylor wrote:

> On Mon, Sep 13, 2004 at 09:54:29PM -0400, Pierre A. Humblet wrote:
> >The surprise is that the error message:
> >"configure: error: invalid package name: extra-includes"
> >is produced at time 29722848 by bash 2624 (the main script 
> pid).  This
> >is BEFORE the second expr is exec'ed.  This occurs only at time
> >29725911 by a forked child 2656 of 2624 Following the output of the
> >error message, 2624 proceeds to fork 2384, which apparently does
> >nothing.  2624 then waits for 2656 and 2384 and exits.
> >
> >In other words the control flow seems to be seriously screwed up.  It
> >may be linked to the pid reuse problem in bash, but I know 
> very little
> >about it.  Looking at the full trace available from Peter may help.

I forgot I had that trace and accidentally deleted it. However, creating
a new one is not difficult, so one is available at:
http://www.lysator.liu.se/~peda/bashstrace.bz2

This one is created with "strace -o ..." as suggested by Igor.

> I was thinking the same thing but AFAIK, ash doesn't have the pid
> recycling problem.

Don't know where ash comes into play, the script is executed by bash. I
must have missed some other test case...

Cheers,
Peter

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



RE: 1.5.10: expr + configure failure + testcase (also on 1.5.11-1)

2004-09-13 Thread Bogdan Vacaliuc
Chris, Pierre,

> I was thinking the same thing but AFAIK, ash doesn't have the 
> pid recycling problem.

In my failure cases, configure is run under bash.

I have also captured (finally?) an strace under the ~current cygwin (attached).  The 
details are largely the same as Peter's last
attachment, to which Igor remarked "FWIW, expr.exe does seem to exit with the right 
exit code, but is later zombified, which doesn't
sound quite right."

Actually, its ok for it to be zombified, because the parent didn't happen to be 
waiting for the child at the time that the child
exited.

>>> Pierre's observation that error text is output by the parent shell *before* the 
>>> expr command even executes was an inspiration.

So it seems like the parent shell decides its going to exit after forking but before 
waiting on the expr process.  This is
consistent across all my straces as well as Peter's.  In my attached trace, this is 
between lines 582 and 750; I also noticed the
following:

   84 16461744 [main] bash 1048 close: close (1)
 1378 16461829 [main] bash 2028 close: close (1)

On line 725 and 726.  By the time my trace got to line 750, the parent shell had 
stated to output the error text (53 characters in
my case).  I have another trace that exhibits this too.  Peter's trace does not have 
this.

In my trace (not Peter's) there are also some lines like:

  324 16458452 [main] bash 1048 fhandler_base::set_no_inheritance: DuplicateHandle 
failed, The parameter is incorrect.
  237 16458689 [main] bash 1048 fhandler_base::set_close_on_exec: set close_on_exec 
for /dev/console to 1

In the time between the fork and the beginning of the error write, but this is not 
unique to the trace and it was handled apparently
ok previously in the script.


> Wasn't there a registry value that controlled how pids were 
> allocated? I can't find anything appropriate in google.

I looked for something about this in M$ knowledge base.  I didn't find that, but I 
found this:

"BUG: Registry access from multiple threads might fail" (WinNT, Win2K)
http://support.microsoft.com/default.aspx?scid=kb;en-us;176906


-bogdan


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