RE: Can't run baseall

2006-05-12 Thread Dave Korn
On 11 May 2006 20:23, Don Edvalson wrote:

> Christopher,
> 
> I see what you mean. You are right, I was thinking of gmane as more
> central than it really is. I see now that it is just a 3rd party service
> and that I was probably just being impatient, perhaps a cacheing problem
> on my client.
> 
> Thanks for pointing this out clearly.
> 
> Now, if someone has any ideas on the original question?? :)
> 
> 
> Thanks,
> 
> Don


  Well, are you 100% sure you stopped /every/ cygwin application and service
and so on before you ran rebaseall?  You haven't described the steps you took
in any detail.


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: Can't run baseall

2006-05-12 Thread Larry Hall (Cygwin)

Dave Korn wrote:

On 11 May 2006 20:23, Don Edvalson wrote:


Christopher,

I see what you mean. You are right, I was thinking of gmane as more
central than it really is. I see now that it is just a 3rd party service
and that I was probably just being impatient, perhaps a cacheing problem
on my client.

Thanks for pointing this out clearly.

Now, if someone has any ideas on the original question?? :)


Thanks,

Don



  Well, are you 100% sure you stopped /every/ cygwin application and service
and so on before you ran rebaseall?  You haven't described the steps you took
in any detail.



Right.  Starting from the beginning and looking at the simplest/most common
potential causes makes the most sense.  And providing as much detail as
possible about what's going on is a good idea as well.  However, if the more
obvious solutions don't help, then you might want to consider this option:



--
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: Can't run baseall

2006-05-12 Thread Don Edvalson

Larry Hall (Cygwin) wrote:




Right.  Starting from the beginning and looking at the simplest/most common
potential causes makes the most sense.  And providing as much detail as
possible about what's going on is a good idea as well.  However, if the 
more

obvious solutions don't help, then you might want to consider this option:





Larry,

I tried the solution mentioned above, but it didn't help. However it did 
put me on the right track. I started carefully killing Windows 
processes. After I had killed enough of them, Cygwin started working 
perfectly again and I could do my compiles. So I think I was looking in 
the wrong direction with rebase in the first place. I am still narrowing 
it down, but I found that two pieces of hardware I had added lately, a 
webcam and a Sprint Wireless network connection were running lots of 
processes all the time, even when that hardware was not installed or 
running. I believe the culprit is one of these. When I figure out 
exactly what process was causing this, I will let you know.


Thanks for the help.

Don


--
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: Can't run baseall

2006-05-12 Thread Alexander J. Herrmann



Don Edvalson wrote:


Larry Hall (Cygwin) wrote:




Right.  Starting from the beginning and looking at the simplest/most 
common

potential causes makes the most sense.  And providing as much detail as
possible about what's going on is a good idea as well.  However, if 
the more
obvious solutions don't help, then you might want to consider this 
option:






Larry,

I tried the solution mentioned above, but it didn't help. However it 
did put me on the right track. I started carefully killing Windows 
processes. After I had killed enough of them, Cygwin started working 
perfectly again and I could do my compiles. So I think I was looking 
in the wrong direction with rebase in the first place. I am still 
narrowing it down, but I found that two pieces of hardware I had added 
lately, a webcam and a Sprint Wireless network connection were running 
lots of processes all the time, even when that hardware was not 
installed or running. I believe the culprit is one of these. When I 
figure out exactly what process was causing this, I will let you know.


You also can try to prevent certain services to be started - for example 
for the not installed hardware by using the

msconfig
Utility which comes with windoze but - of course - is not documented but 
works well. You can execute it with Start->Run->msconfig
The advantage is you don't have to kill the processes just unmark them 
and they won't get started. If you need them just mark them again. The 
drawback is - you have to reboot. But on the other hand it can speed up 
Windoze and saves memory because not loading a lot of Plug-and-pray 
drivers waiting for some hardware to be connected.


Alex



Thanks for the help.

Don


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




--
And God said"Let there be light."But then the program crashed because he was 
trying to access the 'light' property of a NULL universe pointer.

Alexander J. Herrmann
Analyst/Programmer
http://www.aiengine.org
Email: [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: (1.5.19) problem compiling screen 4.0.2

2006-05-12 Thread Igor Peshansky
On Thu, 11 May 2006, Jonathan C. Allen wrote:

> I get these conftest.exe errors when attempting to build
> screen 4.0.2 on cygwin 1.5.19.  I can't tell if they're a
> real problem or not because configure keeps going until
> hitting the "no tgetent - no screen" error.  This is also
> confusing because I have libncurses installed.
>
> Has anyone had luck building screen 4.0.2?
>
> Full log:
> http://jca.sdf1.org/cygwin/config.log
>
> Snip:
> [...]
> configure: checking select...
> configure: checking fifos...
> - your fifos are usable
> rm: cannot remove `conftest.exe': Permission denied

It would seem that the following test is the culprit:

configure:4159: checking fifos...
configure:4242: gcc -o conftest.exe -g -O2   conftest.c  >&5
configure:4245: $? = 0
configure:4247: ./conftest.exe
configure:4250: $? = 0

After this point, conftest.exe cannot be removed.
Looking around line 4167 of screen's configure should show what exact code
has this behavior.  You can then compile it separately and see if you can
reproduce it.  After that, it's a matter of debugging.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: Can't run baseall

2006-05-12 Thread Dave Korn
On 12 May 2006 13:52, Don Edvalson wrote:


> I tried the solution mentioned above, but it didn't help. However it did
> put me on the right track. I started carefully killing Windows
> processes. After I had killed enough of them, Cygwin started working
> perfectly again and I could do my compiles. So I think I was looking in
> the wrong direction with rebase in the first place. I am still narrowing
> it down, but I found that two pieces of hardware I had added lately, a
> webcam and a Sprint Wireless network connection were running lots of
> processes all the time, even when that hardware was not installed or
> running. I believe the culprit is one of these. When I figure out
> exactly what process was causing this, I will let you know.


  Webcam?  Webcam!  Did you say "webcam"?  Did you say *Logitech* webcam?

http://cygwin.com/ml/cygwin/2006-03/msg00173.html

and subsequent thread




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/



Question on Cygwin and PHP

2006-05-12 Thread Nelson Pereira
Hi all,

Was wondering if anyone knows the actual name of the cygwin package for
PHP.
I have a script (RIBS) that needs to run from cron (or command line).
I think I have PHP installed correctly, but when trying to execute the
script I get this:

$ -bash: /cygdrive/e/RIBS_BACKUP/ribs: /usr/bin/php: bad interpreter: No
such file or directory

If PHP is installed correctly, where is this php I have to point to in
the shebang?

I tried whereis but it's not installed.

Regards,
 
NPereira



--
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: Can't run baseall

2006-05-12 Thread Don Edvalson

Dave Korn wrote:

On 12 May 2006 13:52, Don Edvalson wrote:




I tried the solution mentioned above, but it didn't help. However it did
put me on the right track. I started carefully killing Windows
processes. After I had killed enough of them, Cygwin started working
perfectly again and I could do my compiles. So I think I was looking in
the wrong direction with rebase in the first place. I am still narrowing
it down, but I found that two pieces of hardware I had added lately, a
webcam and a Sprint Wireless network connection were running lots of
processes all the time, even when that hardware was not installed or
running. I believe the culprit is one of these. When I figure out
exactly what process was causing this, I will let you know.




  Webcam?  Webcam!  Did you say "webcam"?  Did you say *Logitech* webcam?

http://cygwin.com/ml/cygwin/2006-03/msg00173.html

and subsequent thread




cheers,
  DaveK


That would appear to be exactly what I ran into. I now feel really 
stupid for not finding this before posting. I performed several 
searches, but they were all based on can't fork problems. Sorry to have 
bothered everyone, but thanks for all your great help.


DOn


--
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: Can't run baseall

2006-05-12 Thread Larry Hall (Cygwin)

Don Edvalson wrote:

Larry Hall (Cygwin) wrote:




Right.  Starting from the beginning and looking at the simplest/most 
common

potential causes makes the most sense.  And providing as much detail as
possible about what's going on is a good idea as well.  However, if 
the more
obvious solutions don't help, then you might want to consider this 
option:






Larry,

I tried the solution mentioned above, but it didn't help. However it did 
put me on the right track. I started carefully killing Windows 
processes. After I had killed enough of them, Cygwin started working 
perfectly again and I could do my compiles. So I think I was looking in 
the wrong direction with rebase in the first place. I am still narrowing 
it down, but I found that two pieces of hardware I had added lately, a 
webcam and a Sprint Wireless network connection were running lots of 
processes all the time, even when that hardware was not installed or 
running. I believe the culprit is one of these. When I figure out 
exactly what process was causing this, I will let you know.


Thanks for the help.



Glad it helped get you back running.

--
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: Can't run baseall

2006-05-12 Thread Dave Korn
On 12 May 2006 14:59, Don Edvalson wrote:


>>> the wrong direction with rebase in the first place. I am still narrowing
>>> it down, but I found that two pieces of hardware I had added lately, a
>>> webcam and a Sprint Wireless network connection were running lots of
>>> processes all the time, even when that hardware was not installed or
>>> running. I believe the culprit is one of these. When I figure out
>>> exactly what process was causing this, I will let you know.
>> 
>> 
>> 
>>   Webcam?  Webcam!  Did you say "webcam"?  Did you say *Logitech* webcam?
>> 
>> http://cygwin.com/ml/cygwin/2006-03/msg00173.html
>> 
>> and subsequent thread
>> 

> That would appear to be exactly what I ran into. I now feel really
> stupid for not finding this before posting. 


  Well, you shouldn't do!  Apart from the generic advice that when things
break in your system you should always suspect whatever you most recently
installed, there's no obvious clue that would lead you to suspect one of your
other pieces of software and indeed this is an unexpected and unlikely
interaction and really most likely indicates dubious software design on
Logitech's part.  We occasionally run up against bits of third-party software
that cause problems, but more commonly that's stuff like anti-virus and
firewall software that you could more-or-less expect to have system-wide
effects.  Glad it's all sorted out now!



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/



PHP for Cygwin

2006-05-12 Thread Nelson Pereira
Can someone tell me where the Cygwin PHP4 packages are located?

Regards,
 
npereira



--
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: PHP for Cygwin

2006-05-12 Thread Dave Korn
On 12 May 2006 16:09, Nelson Pereira wrote:

> Can someone tell me where the Cygwin PHP4 packages are located?

  To find cygwin packages, search at

http://cygwin.com/packages


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: PHP for Cygwin

2006-05-12 Thread Larry Hall (Cygwin)

Nelson Pereira wrote:

Can someone tell me where the Cygwin PHP4 packages are located?



See the FAQ:


It's fair to assume if you don't find what you're looking for given the
information at this site, you're not going to find a package as part of
the Cygwin distribution that has what you're looking for.

You can also look at the cygwin-apps list to see if the package has been
proposed but not available yet.  For PHP, you'd find a couple of threads
in these last couple of months that you might find helpful.  I did the
initial leg work for you and came up with the link below:



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



Getting started with Doxygen

2006-05-12 Thread Alex Vinokur
I have installed Doxygen, performed
$ doxygen -g
$ doxygen

Some files was created.

How can I use Doxygen with a C++ program?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: Getting started with Doxygen

2006-05-12 Thread Dave Korn
On 12 May 2006 16:37, Alex Vinokur wrote:

> I have installed Doxygen, performed
> $ doxygen -g
> $ doxygen
> 
> Some files was created.
> 
> How can I use Doxygen with a C++ program?

  Same way as you do with a C program.

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: Getting started with Doxygen

2006-05-12 Thread Alex Vinokur

"Dave Korn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On 12 May 2006 16:37, Alex Vinokur wrote:
>
> > I have installed Doxygen, performed
> > $ doxygen -g
> > $ doxygen
> >
> > Some files was created.
> >
> > How can I use Doxygen with a C++ program?
>
>   Same way as you do with a C program.

I never worked with Doxygen.

[snip]


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Getting started with Doxygen

2006-05-12 Thread Robb, Sam
> "Dave Korn" wrote:
> > On 12 May 2006 16:37, Alex Vinokur wrote:
> >
> > > I have installed Doxygen, performed
> > > $ doxygen -g
> > > $ doxygen
> > >
> > > Some files was created.
> > >
> > > How can I use Doxygen with a C++ program?
> >
> >   Same way as you do with a C program.
> 
> I never worked with Doxygen.

Overview:
  $ man doxygen 

Detailed docs:
  $ cygstart /usr/share/doc/doxygen-1.4.6/html/index.html

You can almost always find inidividual package documentation
under the /usr/share/doc/ directory.

-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: PHP for Cygwin

2006-05-12 Thread Nelson Pereira
Then how do you install PHP to run on Cygwin?

Is there a newbie howto or something? I've searched all over the web and
nothing I found helps me.

I tried PHP4 and PHP5 compiling from source following the INSTALL
instructions, but I still get errors at the MAKE INSTALL.

Something about file is not a DS0... Also search this on the web, and
nothing I read and try is helping...

Regards,
 
npereira

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Larry Hall (Cygwin)
Sent: Friday, May 12, 2006 11:23 AM
To: cygwin@cygwin.com
Subject: Re: PHP for Cygwin

Nelson Pereira wrote:
> Can someone tell me where the Cygwin PHP4 packages are located?
> 

See the FAQ:


It's fair to assume if you don't find what you're looking for given the
information at this site, you're not going to find a package as part of
the Cygwin distribution that has what you're looking for.

You can also look at the cygwin-apps list to see if the package has been
proposed but not available yet.  For PHP, you'd find a couple of threads
in these last couple of months that you might find helpful.  I did the
initial leg work for you and came up with the link below:



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


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



Fwd: Got any 'fileno_unlocked'?

2006-05-12 Thread Rick Hanson

Hi!  I'm trying to build some software under cygwin which has calls to
a library function called 'fileno_unlocked'.  My cygwin gcc cannot
find it, i.e. I get

undefined reference to `_fileno_unlocked'

at linktime.  This function is apparently in libc on Linux and
BSD-like systems.  Where can I find it on cygwin?  Thanks for any
help.  --Rick

--
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: Fwd: Got any 'fileno_unlocked'?

2006-05-12 Thread Václav Haisman


Rick Hanson wrote:
> Hi!  I'm trying to build some software under cygwin which has calls to
> a library function called 'fileno_unlocked'.  My cygwin gcc cannot
> find it, i.e. I get
> 
> undefined reference to `_fileno_unlocked'
> 
> at linktime.  This function is apparently in libc on Linux and
> BSD-like systems.  Where can I find it on cygwin?  Thanks for any
> help.  --Rick
Just use plain fileno(). All the *_unlocked() functions are AFAIK just
unlocked/thread unsfe versions of functions named before the underscore.
The software you are trying to build should detect its (non)existence in
its configure script and deal with it.

--
VH



signature.asc
Description: OpenPGP digital signature


Re: Current snapshot - problem with httpd

2006-05-12 Thread Arun Biyani

Larry Hall (Cygwin) wrote:

Arun Biyani wrote:
"httpd" server crashes with current snapshot. Runs fine with Jan 20 
cygwin1.dll. Both

cygcheck outputs are attached.


Any chance you could narrow down a little more the working and 
non-working

snapshots?  Are you saying that httpd crashes as soon as it starts or is
there some paces you need to put it through?

In the log file (/var/log/apache/error_log) I see the message, cannot 
bind to socket, socket
already in use. It crashes as soon as it starts. Same config files, with 
the older cygwin1.dll,

there is no problem. "ps -a" did not show any httpd servers running.

Arun


--
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: PHP for Cygwin

2006-05-12 Thread Larry Hall (Cygwin)

 - reformatted.


-Original Message-
From: cygwin-owner  cygwin  com [mailto:cygwin-owner  cygwin  
com] On Behalf
Of Larry Hall (Cygwin)
Sent: Friday, May 12, 2006 11:23 AM
To: cygwin  cygwin  com

^
.  Or better yet, don't quote
unneeded parts of email like the headers.



Subject: Re: PHP for Cygwin

Nelson Pereira wrote:

Can someone tell me where the Cygwin PHP4 packages are located?



See the FAQ:


It's fair to assume if you don't find what you're looking for given the
information at this site, you're not going to find a package as part of
the Cygwin distribution that has what you're looking for.

You can also look at the cygwin-apps list to see if the package has been
proposed but not available yet.  For PHP, you'd find a couple of threads
in these last couple of months that you might find helpful.  I did the
initial leg work for you and came up with the link below:




Nelson Pereira wrote:

> Then how do you install PHP to run on Cygwin?
>
> Is there a newbie howto or something? I've searched all over the web and
> nothing I found helps me.
>
> I tried PHP4 and PHP5 compiling from source following the INSTALL
> instructions, but I still get errors at the MAKE INSTALL.
>
> Something about file is not a DS0... Also search this on the web, and
> nothing I read and try is helping...


Did you read the cygwin-apps thread that I pointed you to above?  If you
did, you should have come away from that with the impression that getting
PHP going under Cygwin isn't trivial.  Your best bet may be to just talk
to Max about what he's done already.  Otherwise, you'll want to post
some details of exactly what you see going wrong.  You should follow
the problem reporting guidelines found at the link below if you go
that route.



--
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: Current snapshot - problem with httpd

2006-05-12 Thread Arun Biyani

Larry Hall (Cygwin) wrote:

Arun Biyani wrote:
"httpd" server crashes with current snapshot. Runs fine with Jan 20 
cygwin1.dll. Both

cygcheck outputs are attached.


Any chance you could narrow down a little more the working and 
non-working

snapshots?  Are you saying that httpd crashes as soon as it starts or is
there some paces you need to put it through?

Below is the error_log file. You can see the error message and then a 
normal startup after the

snapshot cygwin1.dll was replaced with the one from January.

[apache$:512] cat error_log
[Thu May 11 13:47:58 2006] [crit] (112)Address already in use: 
make_sock: could not bind to port 80
[Thu May 11 14:32:29 2006] [notice] Apache/1.3.33 (Cygwin) configured -- 
resuming normal operations

[Thu May 11 14:32:29 2006] [notice] Accept mutex: pthread (Default: pthread)
[apache$:513] ls /var/log/apache
access_log  error_log
[apache$:514]




--
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: PHP for Cygwin

2006-05-12 Thread Nelson Pereira
Sorry for the email address thing...

Ok,

So here is what I need to do:

I have a script (ribs) to run, although this is a php script run from 
Either a cron job or command line. So I installed cygwin and apache.
Then I tried to find the php4 or 5 for cygwin and never found anything
But found a lot of stuff on the net about building php from source,
which 
Is what I am trying to do.

I am able to do the ./configure and make no problem.

The problem arrises when I try to make install. It comes up and says:

[EMAIL PROTECTED] /usr/local/src/php/php-5.1.4
$ make install
Installing PHP SAPI module:   apache
apxs:Error: file libs/libphp5.so is not a DSO
make: *** [install-sapi] Error 1

and just stop there...

When I try to run my script from command line I get this:

$ /cygdrive/e/RIBS_BACKUP/ribs ottmoto hourly
-bash: /cygdrive/e/RIBS_BACKUP/ribs: /usr/bin/php: bad interpreter: No
such file or directory

This is where I'm stuck, I don't know where to go from here...



A side note:

Installing PHP5 for windows, what would be needed to change in the
httpd.conf and the shebangs to point to the proper location of php 
For whatever file it's looking for to execute the command line script?

Would this work?


--
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: PHP for Cygwin

2006-05-12 Thread Brian Dessent
Nelson Pereira wrote:

> I have a script (ribs) to run, although this is a php script run from
> Either a cron job or command line. So I installed cygwin and apache.
> Then I tried to find the php4 or 5 for cygwin and never found anything
> But found a lot of stuff on the net about building php from source,
> which
> Is what I am trying to do.
> 
> I am able to do the ./configure and make no problem.

If you are looking for a simple step by step guide for building PHP from
source under Cygwin then stop now.  It does not exist.  Getting PHP to
build under Cygwin is NOT trivial; it is NOT a supported platform by the
PHP developers.  It requires a lot of work, a handful of patches, and is
not something you should even think to attempt if you are not
comfortable with the internals of autoconf, automake, libtool, m4,
makefiles, and build systems in general.  This is *especially* true if
you are trying to use Apache 1.x, which is even worse.

You do realize that there are PHP binaries for native win32 right?  Just
install them.  They will run perfectly fine as a CGI (but *not* as a
module) under any version of Apache.

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: Fwd: Got any 'fileno_unlocked'?

2006-05-12 Thread Rick Hanson

Thanks for the tip.  I already tried knocking off the '_unlocked'
suffix.  Although it does compile, I wonder what kind of runtime
trouble I'm going to get into, since I did notice, by scanning the
code, that the programmer locks his own file, then appeals to
'fileno_unlocked'.  Also, there is no configure script to help.

I still would like to know if anyone on this ML knows about the
existence of 'fileno_unlocked' for cygwin.  I'd feel better using
that.  Thanks!  --Rick

--
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: Fwd: Got any 'fileno_unlocked'?

2006-05-12 Thread Brian Dessent
Rick Hanson wrote:

> Thanks for the tip.  I already tried knocking off the '_unlocked'
> suffix.  Although it does compile, I wonder what kind of runtime
> trouble I'm going to get into, since I did notice, by scanning the
> code, that the programmer locks his own file, then appeals to
> 'fileno_unlocked'.  Also, there is no configure script to help.

I think you are misunderstanding the purpose of these functions.

It has nothing to do with file locking, but rather locking in the sense
of thread-safety.  A programmer can call the _unlocked version of a
number of functions when he is sure that the application only has one
thread, and avoid a very slight penalty of having to set a mutex before
modifying the data structures.

Therefore, calling the standard version instead of the _unlocked version
is just skipping this optimization and should work in all cases.  In
fact, if anything should be considered unsafe it is the _unlocked
function, which if used improperly will certainly cause harm, unlike the
standard functions.

Furthermore, these _unlocked functions are *not* standardized functions,
they are GNU extensions, and this means the programmer has made his code
unportable by assuming they exist without the aid of a configure test. 
This is a bad thing to do.

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/



automake: 1.4, 1.5, and wrapper

2006-05-12 Thread Yaakov S (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles,

A few requests regarding automake:

1) Could you please include the attached patch in automake1.4?  This
makes automake-1.4 compatible with the other versions in accepting
- --force-missing.  Otherwise, when using autoreconf-2.5x and automake-1.4
together (yes, it does happen), autoreconf -f -i -v fails.

2) Could you please package automake1.5 as well?  freeglut uses it.

3) In addition, it is possible to have a wrapper for automake with our
setup.  Gentoo has a similar setup, and uses this:

http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/sys-devel/automake-wrapper/files/am-wrapper-1.sh?content-type=text%2Fplain

BTW, they have a different autoconf wrapper also:

http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/sys-devel/autoconf-wrapper/files/ac-wrapper-3.2.sh?content-type=text%2Fplain

Thanks for your help.


Yaakov

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEZRF3piWmPGlmQSMRAsJdAKDij1eFBqhO0EKo33ODNpGN2x6urACdEHo3
EFKxUbe8SL3HK2FfToSYjwA=
=GeQ5
-END PGP SIGNATURE-
--- automake.in.orig2006-05-12 17:16:15.551375000 -0500
+++ automake.in.2006-05-12 17:16:07.91075 -0500
@@ -502,6 +502,10 @@
push (@input_files, @arglist);
last;
}
+   elsif ($arglist[0] eq '--force-missing' || $arglist[0] eq '-f')
+   {
+   $force_generation = 1;
+   }
elsif ($arglist[0] =~ /^-/)
{
die "automake: unrecognized option -- \`$arglist[0]'\nTry 
\`automake --help' for more information.\n";

--
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: automake: 1.4, 1.5, and wrapper

2006-05-12 Thread Charles Wilson

Yaakov S (Cygwin Ports) wrote:


A few requests regarding automake:

1) Could you please include the attached patch in automake1.4?  This
makes automake-1.4 compatible with the other versions in accepting
- --force-missing.  Otherwise, when using autoreconf-2.5x and automake-1.4
together (yes, it does happen), autoreconf -f -i -v fails.


Sure, no problem.


2) Could you please package automake1.5 as well?  freeglut uses it.


Errr...okay.  I had originally planned to have the whole rainbow 
(1.4-1.9) but for some reason -- which I cannot remember right now -- I 
ended up not doing 1.5.  I wonder why...


Anyway, I can do this.


3) In addition, it is possible to have a wrapper for automake with our
setup.  Gentoo has a similar setup, and uses this:

http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/sys-devel/automake-wrapper/files/am-wrapper-1.sh?content-type=text%2Fplain

BTW, they have a different autoconf wrapper also:

http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/sys-devel/autoconf-wrapper/files/ac-wrapper-3.2.sh?content-type=text%2Fplain


Hmm.  Well, for autoconf, I like using a bash script instead of perl -- 
lighter weight.  And as long as it is SEP[*] to fix the 
non-cygwin-specific bugs and maintain it, I don't care where the 
original derives: Red Hat, Mandriva, Gentoo.  Doesn't matter to me.


[*] Somebody Else's Problem

However, for automake, I've got a few issues.

#1: a decent -- not massive, but significant -- amount of work involved 
for me, vs. negligible(?) benefit for users.  Creating new versions of 
ALL packages, where each post-install/pre-remove script is modified to 
eliminate use of alternatives system.  Docu updates to remove references 
to update-alternatives... etc.


#2 transition plan from alternatives-system to wrapper script is 
problematic: users *must* upgrade ALL automakes simultaneously, as well 
as installing the new wrapper package, or serious breakage occurs.  This 
is because the preremove scripts of the existing automakes will continue 
to make the altern. symlinks until there are no more members of the 
class.  Only THEN is the top-level symlink removed, allowing for the 
wrapper to be installed in its place.


#3 cui bono?  The only advantage of a wrapper system, as opposed to the 
status quo, is that you don't need to set the current alternative 
manually to match the desired version, when using autoreconf or a 
bootstrap/autogen.sh script.  When using enable-maintainer-rules, even 
under the current system you don't need to worry because the proper 
version of automake is called explicitly.


But wrappers are sometimes wrong, so you need to manually set 
WANT_AM_FOO.  When you get right down to it, what's the diff between 
that and update-alternatives?


On a multiuser system -- most cygwin installations are not -- there is a 
significant benefit in that userA and userB are not forced to have the 
same version set as their default.  But I don't see that playing a very 
large role in cygwin.


I'm going to need an actual use-case demonstration of failure of the 
current system, before I worry about going thru the effort of 
re-introducing wrapper scripts for automake.


--
Chuck


--
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: ssh to 2003 server exist immediately

2006-05-12 Thread Larry Hall (Cygwin)

Andrew DeFaria wrote:

Larry Hall (Cygwin) wrote:

Andrew DeFaria wrote:

Larry Hall (Cygwin) wrote:

Andrew DeFaria wrote:
I'm trying to set up ssh access to a Windows 2003 server. I am 
having a problem in that when I ssh to this server it immediately 
exits and I find the following in /var/log/sshd.log:


 5 [main] sshd 12912 C:\Cygwin\usr\sbin\sshd.exe: *** fatal 
error - could not load ws2_32, Win32 error 0


Forgive me I did do some research about setting up ssh on a 2003 
server and I believe I've very close to having it set up correctly 
but I'm still missing something. I created a local sshd_server user 
and added things like "Act as part of the operating system", 
"Replace process level token", etc. I did not see a setting for 
"Increase quota". Note that I am using a local sshd_server users 
(i.e. \sshd_server) as the logon for the sshd service. I 
don't believe I'm using privilege separation.


I had to use mmc and a Group Policy editor for the domain to add 
this local user into the rights at the domain level before this 
would work. Still when I try to ssh in I get a password prompt but 
after that the above gets written into the sshd.log and the prompt 
returns.


Note that I also use this local sshd_server user for inetd so that 
rsh can and does work. Insecure I know and I'd like to switch this 
client over to using all ssh but I gotta get it working for them.


Thanks in advance.
Why not use ssh-host-config to set up sshd?  It will create 
sshd_server for you in the proper way.
I did! sshd_server would not have been my choice of a username had I 
done this by hand (the user daemon comes to mind). However that was 
not working. This is a domain environment so the sshd_server user 
could be \sshd_server or \sshd_server. I don't 
think I have enough privilege to add a domain user so I made it a 
local user.


Plus I believe that domain policies did not allow me to modify the 
user rights of this local user. (From memory) I believe I went into 
mmc and added the Group Policy Editor snapin then attempted to add 
the local sshd_server to the users that have say "Act as part of the 
operating system" rights but the add button was grayed out. Last 
night while trying again I noticed I could add Domain Group Policy 
snapin and much to my surprise I was able to add the server>\sshd_server user to the "Act as part of operating system" and 
"replace process level token" lists. Again I didn't see an "Increase 
quota". This got inetd and rsh working but ssh still produces an error.


Actually, assuming I can create say a domain "daemon" user for use 
with sshd and inetd, etc., would it be better to do this at the 
domain level. I would like to allow others in the domain to set up 
ssh or inetd with the rights to SU...
No tweaking of the permissions for sshd_server is necessary and it's 
not required to add sshd_server to any other users to get things to 
work. sshd_server is a local user created to run the service and 
nothing else. To login via 'ssh' with a domain user, just make sure 
the domain user is in your '/etc/passwd' file and your '/etc/group' 
file contains the proper
domain groups.  See 'man mkpasswd' and 'man mkgroup' if these users 
and groups are not already in these files.
/etc/passwd and /etc/group are symlinks to a shared and up to date copy 
of the output of mkpasswd/mkgroup. That's not the issue. As I understand 
it, for sshd (or in.rlogind) to "switch user" it needs special 
privileges. Indeed the documentation alludes to that. And until I added 
those permissions to the sshd_server user ssh/rsh would not work at all. 



But if you ran /bin/ssh-host-config and told it to create sshd_server when
it asked you to, it will add these rights automatically.  There's no need
to do it yourself.  Just take a look at /bin/ssh-host-config.  The calls
to "editrights" in the section that handles the creation of the sshd_server
user/group specifically adds the privileges that are necessary to switch
the user context on W2K3.  If it failed to set these permission you should
have been warned.


(rsh, started from inetd that is as inetd was also logging on as the 
sshd_server user). Still, while rsh works, ssh refuses to work citing 
the error message above in /var/log/sshd.log. IOW I can rsh  and 
get in. I can also rsh   and have  run on 
 (provided /etc/passwd on  has a blank password for the 
user). However I cannot ssh . When I do so it prompts for the 
password then abruptly logs out with the only clue left in 
:/var/log/sshd.log.



Well you can always run the client and the server in debug mode and track
each one's progress.  The server is always a little more helpful.  But if
you can't figure out anything else, I'd go back and retry running
/bin/ssh-host-config after deleting the sshd_server user/group.  Pay close
attention to what it says concerning sshd_server.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RF

Re: ssh to 2003 server exist immediately

2006-05-12 Thread Larry Hall (Cygwin)

Andrew DeFaria wrote:

Andrew DeFaria wrote:
/etc/passwd and /etc/group are symlinks to a shared and up to date 
copy of the output of mkpasswd/mkgroup. That's not the issue. As I 
understand it, for sshd (or in.rlogind) to "switch user" it needs 
special privileges. Indeed the documentation alludes to that. And 
until I added those permissions to the sshd_server user ssh/rsh would 
not work at all. (rsh, started from inetd that is as inetd was also 
logging on as the sshd_server user). Still, while rsh works, ssh 
refuses to work citing the error message above in /var/log/sshd.log. 
IOW I can rsh  and get in. I can also rsh   
and have  run on  (provided /etc/passwd on  
has a blank password for the user). However I cannot ssh . 
When I do so it prompts for the password then abruptly logs out with 
the only clue left in :/var/log/sshd.log.

A little more info. rsh  works. rsh   hangs!

sons-clearcase:rsh sons-sc-cc
No directory /us/adefaria!
Logging in with home = "/".
Last login: Wed May 10 20:31:46 from sons-clearcase.salira.com
CYGWIN_NT-5.2 SONS-SC-CC 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
WARNING: HOME directory did not exist! Logging in with HOME = /tmp

[EMAIL PROTECTED] ~
$ logout
rlogin: connection closed.
sons-clearcase:rsh sons-sc-cc id

This is very frustrating because my client relies on a command I wrote 
called "smake" which essentially boils down to: "rsh  -n cd 
 && make" that is intended to perform the make on . 
As you can see it relies on rsh, passwordless login to  
executing a command. But with this new 2003 server rsh  
 hangs!


Help!



Are you sure you're not getting caught by the Windows rsh?


--
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: Current snapshot - problem with httpd

2006-05-12 Thread Larry Hall (Cygwin)

Arun Biyani wrote:

Larry Hall (Cygwin) wrote:

Arun Biyani wrote:
"httpd" server crashes with current snapshot. Runs fine with Jan 20 
cygwin1.dll. Both

cygcheck outputs are attached.


Any chance you could narrow down a little more the working and 
non-working

snapshots?  Are you saying that httpd crashes as soon as it starts or is
there some paces you need to put it through?

In the log file (/var/log/apache/error_log) I see the message, cannot 
bind to socket, socket
already in use. It crashes as soon as it starts. Same config files, with 
the older cygwin1.dll,

there is no problem. "ps -a" did not show any httpd servers running.



I guess I was hoping that you'd be able to do a binary search to narrow
down between 2 consecutive snapshots where the failure occurred.  If you
can do this, please send what you find to the list.

Thanks,


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