Re: [BUG] mprotect() on Windows NT 5+

2004-07-19 Thread Corinna Vinschen
On Jul 18 18:55, Igor Pechtchanski wrote:
> On Sun, 18 Jul 2004, Xavier Joubert wrote:
> > I thought a daily Cygwin snapshot was automatically generated (when I
> > looked at the page, I saw one from the previous day...). I see that's
> > not the way it's done. I hope you didn't generate one only because of
> > me...
> 
> She did.  Don't you feel special? ;-)

Erm... cgf did.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project 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: Problem with echo in tcsh 6.13.00-2 in Cygwin 1.5.10 (fwd)

2004-07-19 Thread Corinna Vinschen
On Jul 16 15:41, David Mastronarde wrote:
> I already indicated that the problem will not appear when the program is 
> compiled with g77.  I would be glad to send you the program compiled with 
> the Intel compiler, but a statically linked version of even such a simple 
> program is 245K and only compresses to 115K, so I was not able to send it 
> to this list.  Is there another address that will accept this file?

So it's a native Windows application which fails, not a Cygwin application.
I missed that detail.  Consequentially I tried to call notepad and write
in that script instead of calling ./fortopen.  Works nicely.  So I'm
wondering why you think that this is a bug in tcsh and not a bug in the
intel fortran libs.

However, you could try a recent Cygwin snapshot from
http://cygwin.com/snapshots/ and see if the problem is solved.  If not,
you'll probably have to debug that problem.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project 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: MapViewOfFileEx errors disappeared with cygwin1-20040716 snapshot

2004-07-19 Thread Dr. Volker Zell
> Christopher Faylor writes:

> On Sun, Jul 18, 2004 at 03:11:18PM +0200, Dr. Volker Zell wrote:
>> I just want to note that all of my MapViewOfFileEx errors which I saw
>> with a lot of my gnome1 apps dissapeared after installing the latest
>> snapshot.
>> 
>> It must be this change:
>> 
>> 2004-07-16  Christopher Faylor  <[EMAIL PROTECTED]>
>> 
>> * pinfo.cc (pinfo::init): Guard against MapViewOfFileEx failure.
>> 
>> Thanks a lot

> No, that would not change anything.  I just added a fatal error message.

You are right. I just checked my XWin.log and it again said

 MIT-SHM extension disabled due to lack of kernel support

also ipcs gives me

 Bad system call

I start my cygserver as a service and a process listing shows that it's
still running, hmmm.

When I start cygserver after a reboot from a bash shell I get the
following (cygwin1.dll and cygserver both from the Jul 17 snapshot):

12:19 PM [505]> cygserver --version
cygserver: (cygwin) 1.10
API version 1.5.11(0.116/4/1)-(3.0.0.2) 20040717 00:34:52SNP
Copyright 2001, 2002, 2003 Red Hat, Inc.
Compiled on Jul 17 2004
Default configuration file is /etc/cygserver.conf
12:21 PM [506]> cygserver -e -l 7 -d
cygserver: daemon starting up
cygserver: /netrel/src/cygwin-snapshot-20040717-1/winsup/cygserver/threaded_queue.cc, 
line 112: starting all queue submission loops
assertion "!_hThread" failed: file 
"/netrel/src/cygwin-snapshot-20040717-1/winsup/cygserver/threaded_queue.cc", line 321

The only good thing, my gnome apps doesn't show the MapViewOfFileEx failure.

Reverting cygwin1.dll and cygserver back to 1.5.10-3, cygserver works
just fine, but now my gnome apps show again the MapViewOfFileEx failure

> cgf

Ciao
  Volker


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



ncurses not found when compiling various packages

2004-07-19 Thread Thorsten Kampe
Hi,

I often get the message from configure scripts for applications that
are curses-based that no ncurses could be found (although it actually
is installed[1] and many applications happily use it)

What's going wrong and how can I point the configure script to my
"ncurses" dlls? Any environment variable or something like that?


Thorsten

[1] cygcheck -c
libncurses5  5.2-1 OK
libncurses6  5.2-8 OK
libncurses7  5.3-4 OK
ncurses  5.3-4 OK
ncurses-demo 5.3-4 OK


--
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: ncurses not found when compiling various packages

2004-07-19 Thread Corinna Vinschen
On Jul 19 13:47, Thorsten Kampe wrote:
> Hi,
> 
> I often get the message from configure scripts for applications that
> are curses-based that no ncurses could be found (although it actually
> is installed[1] and many applications happily use it)
> 
> What's going wrong and how can I point the configure script to my
> "ncurses" dlls? Any environment variable or something like that?

Installing libncurses-devel might help.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project 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: ncurses not found when compiling various packages

2004-07-19 Thread bertrand marquis
you should ckeck if there is links between ncurses and curses files.
ex: curses.h -> ncurses.h etc
if not you should reinstall libncurses
bertrand
Thorsten Kampe a écrit:
Hi,
I often get the message from configure scripts for applications that
are curses-based that no ncurses could be found (although it actually
is installed[1] and many applications happily use it)
What's going wrong and how can I point the configure script to my
"ncurses" dlls? Any environment variable or something like that?
Thorsten
[1] cygcheck -c
libncurses5  5.2-1 OK
libncurses6  5.2-8 OK
libncurses7  5.3-4 OK
ncurses  5.3-4 OK
ncurses-demo 5.3-4 OK
--
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: ncurses not found when compiling various packages

2004-07-19 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Thorsten Kampe
> Sent: 19 July 2004 12:48

> Hi,
> 
> I often get the message from configure scripts for applications that
> are curses-based that no ncurses could be found (although it actually
> is installed[1] and many applications happily use it)
> 
> What's going wrong 

  Dunno, but I have some generic autoconf advice:  Take a look at the
config.log file generated by configure.  It'll contain output from the
attempt to test curses that should show what the test tried to do and why it
failed; then you'll have a clearer idea what's up.

> and how can I point the configure script to my
> "ncurses" dlls? Any environment variable or something like that?

...always assuming that is the problem, of course.  And the answer is, we'll
have to look at config.log to see why the configure script isn't already
finding your ncurses install before we can figure out how to point it at the
relevant files...

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
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 man page (Was: Re: sending email from cygwin)

2004-07-19 Thread Christopher Faylor
On Sun, Jul 18, 2004 at 01:43:18PM +0100, Dave Korn wrote:
>>Another possible place to mention the Cygwin-specific READMEs is in the
>>"man cygwin" page.  :-)
>
>Another possibility would be for the very last dialog in setup.exe, the
>one that says "download/install complete", to also say in very big
>letters "For Cygwin-specific documentation, see /usr/share/doc/Cygwin".
>It could maybe even have a tickbox to automatically open that window in
>explorer...

I think this is a subset of something that's already in the setup.exe
wishlist:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/README?cvsroot=cygwin-apps&rev=2

So, PGA, I'm sure.

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: [BUG] mprotect() on Windows NT 5+

2004-07-19 Thread Christopher Faylor
On Mon, Jul 19, 2004 at 10:12:57AM +0200, Corinna Vinschen wrote:
>On Jul 18 18:55, Igor Pechtchanski wrote:
>>On Sun, 18 Jul 2004, Xavier Joubert wrote:
>>>I thought a daily Cygwin snapshot was automatically generated (when I
>>>looked at the page, I saw one from the previous day...).  I see that's
>>>not the way it's done.  I hope you didn't generate one only because of
>>>me...
>>
>>She did.  Don't you feel special?  ;-)
>
>Erm...  cgf did.

Yeah, and for the record, typing "mksnap&" when it looks like a snapshot
is needed is no big deal.  I do it whenever it seems like there may be
a fix in cvs that could solve a reported problem.

Btw, Volker, if you're reading this, could you try the latest snapshot?
Corinna has a theory on what's causing your problem and I'd like to see
if the cygserver problem is gone now.

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: Subversion eol-corrupting jar files on update

2004-07-19 Thread Christopher Faylor
On Mon, Jul 19, 2004 at 07:47:12AM +0100, Max Bowsher wrote:
>Karr, David wrote:
>>> I'm having trouble with the svn in Cygwin corrupting jar
>>> files on update or checkout.  It's doing an eol translation.
>>> I've specified ".jar" in my svn properties, to indicate that
>>> it should use the "eol-type" of "native".  My "mount" table
>>> shows everything in "textmode".  Do I have to change to
>>> binary in order for this to work?  I would have thought the
>>> eol-type setting in the subversion config should deal with this.
>> If the Cygwin port of subversion is really just using the mount mode to
>> determine this, then that seems like a bug to me.  Someone else pointed
>> out to me that subversion is able to determine that the "mime-type" of
>> ".jar" is "application/octet-stream", and that should imply that it
>> should do no file conversion.
>
>Ugh, textmode. Been so long since I've used it, I'd forgotten about it.
>
>/me mentally prepares himself for adding a slew of binary flags.

Can't you just link everything 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: MapViewOfFileEx errors disappeared with cygwin1-20040716 snapshot

2004-07-19 Thread Christopher Faylor
On Mon, Jul 19, 2004 at 12:36:55PM +0200, Dr. Volker Zell wrote:
>> Christopher Faylor writes:
>
>> On Sun, Jul 18, 2004 at 03:11:18PM +0200, Dr. Volker Zell wrote:
>>> I just want to note that all of my MapViewOfFileEx errors which I saw
>>> with a lot of my gnome1 apps dissapeared after installing the latest
>>> snapshot.
>>> 
>>> It must be this change:
>>> 
>>> 2004-07-16  Christopher Faylor  <[EMAIL PROTECTED]>
>>> 
>>> * pinfo.cc (pinfo::init): Guard against MapViewOfFileEx failure.
>>> 
>>> Thanks a lot
>
>> No, that would not change anything.  I just added a fatal error message.
>
>You are right. I just checked my XWin.log and it again said
>
> MIT-SHM extension disabled due to lack of kernel support
>
>also ipcs gives me
>
> Bad system call

That's not the fatal error message that I was talking about.

Does the latest snapshot work any better?

Corinna and I noticed some strangeness with cygserver earlier this year
when it was compiled with gcc 3.3.2.  She reminded me of this problem
earlier today.  I had previously reverted my main system to gcc 3.3.1 a
but neglected to revert one of the other systems that I use for building
snapshots via distcc.  So, it was pure chance as to whether cygserver
was compiled with gcc 3.3.2 or gcc 3.3.1.

Now all three of the systems that I use to build snapshots should be in
sync, so I'm hoping your cygserver problem is now gone.

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: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs

2004-07-19 Thread Chris January
> However, the fix is not as simple as inserting a "size = 
> bufalloc;" just before the RegQueryValueEx.  When I do that, 
> I get a SIGSEGV in the guts of iasperf.dll, which I have yet 
> to track down.  This happens on the second iteration, FWIW, 
> with buffer increment of 1000.  I'm going to investigate some 
> more, but I'd say that with the above bug, this key was never 
> tested, so I have no idea what's going on.  Hopefully Chris
> (January) can use this to help him track down the problem.

I'm back from my honeymoon (!) and I've just been catching up on this
thread. Are you still seeing the segfault Igor? If so I'll try to track
it down if I have any spare time.

As you can probably tell I never tested the HKEY_PERFORMANCE_DATA key.
Increasing the buffer size in increments is of course boilerplate code
but I managed to cod it up regardless. Sigh.

Chris January


--
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: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs

2004-07-19 Thread Igor Pechtchanski
On Mon, 19 Jul 2004, Chris January wrote:

> > However, the fix is not as simple as inserting a "size =
> > bufalloc;" just before the RegQueryValueEx.  When I do that,
> > I get a SIGSEGV in the guts of iasperf.dll, which I have yet
> > to track down.  This happens on the second iteration, FWIW,
> > with buffer increment of 1000.  I'm going to investigate some
> > more, but I'd say that with the above bug, this key was never
> > tested, so I have no idea what's going on.  Hopefully Chris
> > (January) can use this to help him track down the problem.
>
> I'm back from my honeymoon (!)

Great, hope you enjoyed it...

> and I've just been catching up on this thread.

...and I'm sure you didn't enjoy this. :-)

> Are you still seeing the segfault Igor? If so I'll try to track it down
> if I have any spare time.

Yes, I'm still seeing the segfault in the latest snapshot, but only when
run under gdb or strace.  Here are some sample tests:

$ cat /proc/registry/HKEY_PERFORMANCE_DATA/\@ > e.out
cat: /proc/registry/HKEY_PERFORMANCE_DATA/@: No such file or directory
$ # no segfault
$ strace -o cat_HKPD.strace cat /proc/registry/HKEY_PERFORMANCE_DATA/\@ > e.out
2262669 [main] cat 2400 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
2264445 [main] cat 2400 open_stackdumpfile: Dumping stack trace to cat.exe.stackdump
$

I can also send you cat_HKPD.strace, but it's not very informative.  Let
me know if you can't reproduce this and need me to debug this locally.
FWIW, I have a working piece of Win32 code that does read this key
correctly (essentially a stripped down MS example).  Let me know if you
need it.

> As you can probably tell I never tested the HKEY_PERFORMANCE_DATA key.

Yep, so I surmised.

> Increasing the buffer size in increments is of course boilerplate code
> but I managed to cod it up regardless. Sigh.
>
> Chris January

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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Problem with automatic logon using sshd

2004-07-19 Thread Volker Vöcking
Hi,

I want to trigger an automated build on a windows box from a unix box.
I’ve setup cygwin with sshd. The build command that is executed runs 
devenv.exe (Visual Studio .NET 2003) with a solution file and build target.

Two scenarios that show different results:

#1
User must enter a password when logging on using ssh.
-> In this case the build command succeeds.

#2
The user’s public key is added to the authorized_keys file. 
Now no password is needed.
-> The build command fails with ”Microsoft Visual C++ Runtime Library :
Runtime Error!” (found in the Windows “System Log”)


#1 and #2 are done with the same user and the same ssh client from the same
Unix machine.

I have compared the env after logon, they are identical.

Apparently there is a difference between #1 and #2 in how the user gets
impersonated though cygwin.

Any hint is welcome!

Thanks in advance,

Volker

 

 

Versions:

Windows 2000 Server SP4 (stand-alone, not a domain member or controller)

Openssh 3.8.1p1-1

Openssl 0.9.7d-1

Cygrunsrv 1.0-1

Cywin 1.5.10-3




--
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: Problem with automatic logon using sshd

2004-07-19 Thread Larry Hall
At 03:49 PM 7/19/2004, you wrote:
>Hi,
>
>I want to trigger an automated build on a windows box from a unix box.
>I’ve setup cygwin with sshd. The build command that is executed runs 
>devenv.exe (Visual Studio .NET 2003) with a solution file and build target.
>
>Two scenarios that show different results:
>
>#1
>User must enter a password when logging on using ssh.
>-> In this case the build command succeeds.
>
>#2
>The user’s public key is added to the authorized_keys file. 
>Now no password is needed.
>-> The build command fails with ”Microsoft Visual C++ Runtime Library :
>Runtime Error!” (found in the Windows “System Log”)
>
>
>#1 and #2 are done with the same user and the same ssh client from the same
>Unix machine.
>
>I have compared the env after logon, they are identical.
>
>Apparently there is a difference between #1 and #2 in how the user gets
>impersonated though cygwin.
>
>Any hint is welcome!


The runtime error isn't very helpful, since it specifies very little about
what went wrong.  However, if you're seeing different behavior depending on 
whether you use password or pubkey auth, then the problem is most certainly
because VC++ is looking for access to some shared resource for which you 
have not been authenticated by Windows with ssh.  Typically, that's a 
Windows share of some kind.  Your choices are:

  1. Make the share available to everyone.

  2. Run the sshd service as the user who will use ssh.  You'll need to 
 add more permissions to that user to make this work.  See the openssh 
 README for more info.

Either should work, although (2) is considered far less secure.

The email archives has volumes on the ssh password vs pubkey authentication
issue, if you're looking for more details/variations.



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



tcsh terminate unexpectedly

2004-07-19 Thread bobmills1
I'm running cygwin on a WIN2k server and have the following trouble with a tcsh 
executable script.

*When run from an login shell (tcsh -l) the script runs without error.

*I recently attempted to run the script from the WIN scheduler and the script 
terminated unexpectedly. The Properties of the shortcut program used in the scheduler 
was "tcsh name_of_script".

*The script always terminates at the same point so it is not a random error.

My questions are;
1. Why would a script that runs normally when run 
   interactively, terminate
   when run in the scheduler.
2. What would be the best way to debug (tcsh -xn 
   name_of_script)?
   Because is shuts down unexpectedly and the shell 
   disappears these techniques would be difficult to 
   utilize.

Bob Mills
Engineering Services Manager
Akron Brass Company



--
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: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs

2004-07-19 Thread Robert Pendell
I have no clue if anyone thought to bring this up but how about
telling us what combination shell and console that you use.

Example:
I use rxvt and bash combination (rxvt is console / bash is shell) and
there are no problems -- it just echos what I typed if it can't access
what I want.  If I start up sh though within that session and run the
same command 'cat' will show the same problem as what started this
thread from the start.

On Mon, 19 Jul 2004 14:36:40 -0400 (EDT), Igor Pechtchanski
<[EMAIL PROTECTED]> wrote:
> On Mon, 19 Jul 2004, Chris January wrote:
> 
> > > However, the fix is not as simple as inserting a "size =
> > > bufalloc;" just before the RegQueryValueEx.  When I do that,
> > > I get a SIGSEGV in the guts of iasperf.dll, which I have yet
> > > to track down.  This happens on the second iteration, FWIW,
> > > with buffer increment of 1000.  I'm going to investigate some
> > > more, but I'd say that with the above bug, this key was never
> > > tested, so I have no idea what's going on.  Hopefully Chris
> > > (January) can use this to help him track down the problem.
> >
> > I'm back from my honeymoon (!)
> 
> Great, hope you enjoyed it...
> 
> > and I've just been catching up on this thread.
> 
> ...and I'm sure you didn't enjoy this. :-)
> 
> > Are you still seeing the segfault Igor? If so I'll try to track it down
> > if I have any spare time.
> 
> Yes, I'm still seeing the segfault in the latest snapshot, but only when
> run under gdb or strace.  Here are some sample tests:
> 
> $ cat /proc/registry/HKEY_PERFORMANCE_DATA/\@ > e.out
> cat: /proc/registry/HKEY_PERFORMANCE_DATA/@: No such file or directory
> $ # no segfault
> $ strace -o cat_HKPD.strace cat /proc/registry/HKEY_PERFORMANCE_DATA/\@ > e.out
> 2262669 [main] cat 2400 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
> 2264445 [main] cat 2400 open_stackdumpfile: Dumping stack trace to cat.exe.stackdump
> $
> 
> I can also send you cat_HKPD.strace, but it's not very informative.  Let
> me know if you can't reproduce this and need me to debug this locally.
> FWIW, I have a working piece of Win32 code that does read this key
> correctly (essentially a stripped down MS example).  Let me know if you
> need it.
> 
> > As you can probably tell I never tested the HKEY_PERFORMANCE_DATA key.
> 
> Yep, so I surmised.
> 
> > Increasing the buffer size in increments is of course boilerplate code
> > but I managed to cod it up regardless. Sigh.
> >
> > Chris January
> 
> 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!
> 
> "I have since come to realize that being between your mentor and his route
> to the bathroom is a major career booster."  -- Patrick Naughton
> 
> --
> 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/
> 
> 


-- 
Robert Pendell
[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: Subversion eol-corrupting jar files on update

2004-07-19 Thread Max Bowsher
Christopher Faylor wrote:
> On Mon, Jul 19, 2004 at 07:47:12AM +0100, Max Bowsher wrote:
>> Karr, David wrote:
 I'm having trouble with the svn in Cygwin corrupting jar
 files on update or checkout.  It's doing an eol translation.
 I've specified ".jar" in my svn properties, to indicate that
 it should use the "eol-type" of "native".  My "mount" table
 shows everything in "textmode".  Do I have to change to
 binary in order for this to work?  I would have thought the
 eol-type setting in the subversion config should deal with this.
>>> If the Cygwin port of subversion is really just using the mount mode to
>>> determine this, then that seems like a bug to me.  Someone else pointed
>>> out to me that subversion is able to determine that the "mime-type" of
>>> ".jar" is "application/octet-stream", and that should imply that it
>>> should do no file conversion.
>>
>> Ugh, textmode. Been so long since I've used it, I'd forgotten about it.
>>
>> /me mentally prepares himself for adding a slew of binary flags.
>
> Can't you just link everything with /usr/lib/binmode.o ?

I'll need to research how that interacts with open calls in DLLs. It might
be a solution.

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: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs

2004-07-19 Thread Igor Pechtchanski
I don't think it matters.  I get the same exact results with both sh and
bash in any one of the cmd window, xterm, or rxvt.  FWIW, the output below
was with cmd/bash.  You *are* trying the latest snapshot, right?

I'm not sure I understand what "there are no problems -- it just echos
what I typed if it can't access what I want" means, either.  The point is
that it's *supposed* to be able to access that registry key.
Igor
P.S. .

On Mon, 19 Jul 2004, Robert Pendell wrote:

> I have no clue if anyone thought to bring this up but how about
> telling us what combination shell and console that you use.
>
> Example:
> I use rxvt and bash combination (rxvt is console / bash is shell) and
> there are no problems -- it just echos what I typed if it can't access
> what I want.  If I start up sh though within that session and run the
> same command 'cat' will show the same problem as what started this
> thread from the start.
>
> On Mon, 19 Jul 2004 14:36:40 -0400 (EDT), Igor Pechtchanski <[EMAIL PROTECTED]> 
> wrote:
> > On Mon, 19 Jul 2004, Chris January wrote:
> >
> > > > However, the fix is not as simple as inserting a "size =
> > > > bufalloc;" just before the RegQueryValueEx.  When I do that,
> > > > I get a SIGSEGV in the guts of iasperf.dll, which I have yet
> > > > to track down.  This happens on the second iteration, FWIW,
> > > > with buffer increment of 1000.  I'm going to investigate some
> > > > more, but I'd say that with the above bug, this key was never
> > > > tested, so I have no idea what's going on.  Hopefully Chris
> > > > (January) can use this to help him track down the problem.
> > >
> > > I'm back from my honeymoon (!)
> >
> > Great, hope you enjoyed it...
> >
> > > and I've just been catching up on this thread.
> >
> > ...and I'm sure you didn't enjoy this. :-)
> >
> > > Are you still seeing the segfault Igor? If so I'll try to track it down
> > > if I have any spare time.
> >
> > Yes, I'm still seeing the segfault in the latest snapshot, but only when
> > run under gdb or strace.  Here are some sample tests:
> >
> > $ cat /proc/registry/HKEY_PERFORMANCE_DATA/\@ > e.out
> > cat: /proc/registry/HKEY_PERFORMANCE_DATA/@: No such file or directory
> > $ # no segfault
> > $ strace -o cat_HKPD.strace cat /proc/registry/HKEY_PERFORMANCE_DATA/\@ > e.out
> > 2262669 [main] cat 2400 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
> > 2264445 [main] cat 2400 open_stackdumpfile: Dumping stack trace to 
> > cat.exe.stackdump
> > $
> >
> > I can also send you cat_HKPD.strace, but it's not very informative.  Let
> > me know if you can't reproduce this and need me to debug this locally.
> > FWIW, I have a working piece of Win32 code that does read this key
> > correctly (essentially a stripped down MS example).  Let me know if you
> > need it.
> >
> > > As you can probably tell I never tested the HKEY_PERFORMANCE_DATA key.
> >
> > Yep, so I surmised.
> >
> > > Increasing the buffer size in increments is of course boilerplate code
> > > but I managed to cod it up regardless. Sigh.
> > >
> > > Chris January

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: ncurses not found when compiling various packages

2004-07-19 Thread Thorsten Kampe
* Corinna Vinschen (2004-07-19 13:57 +0200)
> On Jul 19 13:47, Thorsten Kampe wrote:
>> I often get the message from configure scripts for applications that
>> are curses-based that no ncurses could be found (although it actually
>> is installed[1] and many applications happily use it)
>> 
>> What's going wrong and how can I point the configure script to my
>> "ncurses" dlls? Any environment variable or something like that?
> 
> Installing libncurses-devel might help.

That worked - the configure terminated successfully. Unfortunately the
make errored for "WeeChat" but at least I could now compile cmatrix
:-). Thanke


--
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: I can't inicializate PostgreSQL

2004-07-19 Thread Manuel Tejada
Thanks Carlo Florendo y Flora and Igor Pechtchanski 
for your very illustrative comments. Based on that I
follow the procedure again for install PostgreSQL in
my Window ME. Now I can run Cygserver but The
initialization of PostgreSQL failled. See the output I
got: 



[EMAIL PROTECTED] ~
$ CYGWIN=server

[EMAIL PROTECTED] ~
$ export CYGWIN

[EMAIL PROTECTED] ~
$ /usr/sbin/cygserver &
[1] 901443

[EMAIL PROTECTED] ~
$ cygserver: Initialization complete.  Waiting for
requests.
// I had to press ENTER because the System really was
wainting for something

[EMAIL PROTECTED] ~
$ initdb -D /usr/share/postgresql/data
The files belonging to this database system will be
owned by user "admin".
This user must also own the server process.

The database cluster will be initialized with locale
C.

creating directory /usr/share/postgresql/data... ok
creating directory /usr/share/postgresql/data/base...
ok
creating directory
/usr/share/postgresql/data/global... ok
creating directory
/usr/share/postgresql/data/pg_xlog... ok
creating directory
/usr/share/postgresql/data/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in
/usr/share/postgresql/data/base/1... FATAL: 
shmat(id=1179648) failed: Invalid argument

initdb: failed
initdb: removing data directory
"/usr/share/postgresql/data"

---

Really I don't know what does meant the line "FATAL: 
shmat(id=1179648) failed: Invalid argument".

What difficult is becoming the installation of the
PostgreSQL'new versions on Cygwin (runing on Windows
ME) since the use of Cygserver instaed of ipc-daemon2.
Maybe I am doing something wrong but I don't know what
it is.
I am not an expert just a user.

Somebody have any clue?


-- Carlo Florendo y Flora
<[EMAIL PROTECTED]> escribió: > Igor
Pechtchanski wrote:
> 
> >On Mon, 19 Jul 2004, Carlo Florendo y Flora wrote:
> >
> >  
> >
> >>Manuel Tejada wrote:
> >>
> >>
> >>
> >>>I am using PostgreSQL for Cygwin on Windows ME
> from
> >>>April 2003
> >>>[snip]
> >>>
> >>>After reading some answer to various post in the
> mailing list archive
> >>>with similar problem and the
> >>>/usr/share/doc/Cygwin/postgres-7.4.3.README file,
> I decided to follow
> >>>the procedure using Cygserver instead
> ipc-daemon2:
> >>>- Set the CYGWIN variable enviroment to "server"
> >>>- Install and configure cygserver
> >>>- Run cygserver
> >>>- Initialize PostgreSQL
> >>>
> >>>But now the cygserver failled to run because the
> >>>System says the command is no found, as you can
> see in
> >>>the ouptput I show you bellow:
> >>>---
> >>>
> >>>[EMAIL PROTECTED] ~
> >>>$ CYGWIN=server
> >>>
> >>>[EMAIL PROTECTED] ~
> >>>$ export CYGWIN
> >>>
> >>>[EMAIL PROTECTED] ~
> >>>$ cygserver-config
> >>>
> >>>Generating /etc/cygserver.conf file
> >>>chown: `system.544': invalid user
> >>>  
> >>>
> >>Check whether  you have correct entries on your
> /etc/passwd and
> >>/etc/group files.
> >>`system.544' means `SYSTEM:root'.The user
> `SYSTEM' should appear on
> >>your /etc/passwd file.
> >>The group `root' should be on your /etc/group
> file.  You should  notice
> >>that the group `root' has a GID (Group ID) of 544.
> >>If you get the above error message, there could be
> something wrong with
> >>your /etc/passwd or /etc/group file.
> >>Btw, my /etc/passwd and /etc/group files were
> automatically generated by
> >>cygwin.
> >>
> >>
> >
> >The point is moot since this is on WinME, and I
> don't think chown works on
> >that system.  The fact that it's invoked is
> probably a bug in the script,
> >and the above message is harmless (on Win9x/ME).
> >  
> >
> Oops, thanks for pointing out!I always tell
> myself to read carefully 
> before making any assumptions.  I read that but it
> didn't stick.   Gee, 
> it must be my sleepiness :)
> Anyway, the indication that it's a bug in cygserver
> is most probable.  
> I've checked the scripts and there is really a line
> which explicitly 
> does a chown system.544.  Yes, it shouldn't matter
> on Win9x/ME
> but the message is generates can be misleading--or
> terrifying for 
> non-experts like me.
> 
> >>>Further configuration options are available by
> editing the
> >>>configuration file /etc/cygserver.conf.  Please
> read the inline
> >>>information in that file carefully. The best
> option for the start is to
> >>>just leave it alone.
> >>>
> >>>Please keep in mind, that a client application
> which wants to use the
> >>>services provided by cygserver *must* have the
> environment variable
> >>>CYGWIN set so that it contains the word "server".
>  So, if you don't
> >>>need any other special CYGWIN setting, just set
> it to "server".
> >>>
> >>>It is advisable to add this setting to the
> Windows system environment.
> >>>
> >>>Basic Cygserver configuration finished. Have fun!
> >>>
> >>>[EMAIL PROTECTED] ~
> >>>$ cygs

Re: I can't inicializate PostgreSQL

2004-07-19 Thread Carlo Florendo y Flora
Manuel Tejada wrote:
Thanks Carlo Florendo y Flora and Igor Pechtchanski 
for your very illustrative comments. Based on that I
follow the procedure again for install PostgreSQL in
my Window ME. Now I can run Cygserver but The
initialization of PostgreSQL failled. See the output I
got: 


[EMAIL PROTECTED] ~
$ CYGWIN=server
[EMAIL PROTECTED] ~
$ export CYGWIN
[EMAIL PROTECTED] ~
$ /usr/sbin/cygserver &
[1] 901443
[EMAIL PROTECTED] ~
$ cygserver: Initialization complete.  Waiting for
requests.
// I had to press ENTER because the System really was
wainting for something
[EMAIL PROTECTED] ~
$ initdb -D /usr/share/postgresql/data
The files belonging to this database system will be
owned by user "admin".
This user must also own the server process.
The database cluster will be initialized with locale
C.
creating directory /usr/share/postgresql/data... ok
creating directory /usr/share/postgresql/data/base...
ok
creating directory
/usr/share/postgresql/data/global... ok
creating directory
/usr/share/postgresql/data/pg_xlog... ok
creating directory
/usr/share/postgresql/data/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in
/usr/share/postgresql/data/base/1... FATAL: 
shmat(id=1179648) failed: Invalid argument

initdb: failed
initdb: removing data directory
"/usr/share/postgresql/data"
---
Really I don't know what does meant the line "FATAL: 
shmat(id=1179648) failed: Invalid argument".
 

If you check the the most recent posts on the postgresql mailing list 
archive (pgsql-cygwin), a similar problem has been posted but a solution 
has not yet been proposed.
However, it says that there could be a need to modify the cygserver.conf 
file.

shmat has something to do with shared memory.   Thus, try disabling 
shared memory on cygserver.conf.  Look for the line which says:

#kern.srv.sharedmem yes
Uncomment it and change the yes to no.  Restart cygserver, remove the 
contents of /usr/share/postgresql/data and run  initdb.  Let's see what 
happens.

Thanks!
Best Regards,
Carlo
--
Carlo Florendo
Astra Philippines Inc.
www.astra.ph




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