[patch] cygport-0.2.7 bugfix for apply_patch

2007-01-06 Thread Charles Wilson

The recent change in apply_patch has a small bug, fixed by the attached.

2006-01-05  Charles Wilson  <...>

* bin/cygport.in (apply_patch): use correct variable name

--
Chuck
--- bin/cygport.in  2007-01-06 00:30:50.59375 -0500
+++ bin/cygport.in  2007-01-06 04:26:46.09375 -0500
@@ -551,10 +551,10 @@
 
while (( patchlevel <= 3 ))
do
-   if patch -N -s --dry-run -p${patchlevel} -i 
${patchfile} &> /dev/null
+   if patch -N -s --dry-run -p${patchlevel} -i 
${patchfile_path} &> /dev/null
then
inform "applying patch ${patchfile_name}:";
-   patch -N -p${patchlevel} -i ${patchfile} || 
error "patch ${patchfile_name} failed"
+   patch -N -p${patchlevel} -i ${patchfile_path} 
|| error "patch ${patchfile_name} failed"
break;
else
if (( patchlevel == 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: upgrade advice for end users

2007-01-06 Thread Eli Zaretskii
> Date: Fri, 5 Jan 2007 15:49:14 -0800 (PST)
> From: fschmidt <[EMAIL PROTECTED]>
> 
> 2.  Replace /bin/make.exe with http://www.cmake.org/files/cygwin/make.exe . 
> The new version of make can't handle colons, so replace the new version with
> an old make that can handle colons.

The binary of Make at that URL is not an old version, it's the same
latest version 3.81 of Make with a patch applied that makes it support
DOS-style file names with drive letters.

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



Fw: help win winxp install

2007-01-06 Thread Sam The Cat

figure this one out  (I think)

the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll"  this 
could not be found.  I did find "cygintl-8.dll" which shows modification as 
of 10/22/2006.  Not sure if it is a complete fix but I copied the 
"cygintl-8.dll" file and renamed it "cygintl-3.dll" and the gcc now passes a 
rudementaly hello.c complile.





- Original Message - 
From: "Sam The Cat" <[EMAIL PROTECTED]>

To: 
Sent: Friday, January 05, 2007 6:19 PM
Subject: help win winxp install


ok -- so I am feeling kinda lame.  I am certainly not new to progamming 
and cygwin but it has been a few years since I did an install.  Never had 
any problems un win2k but I am trying to install under winXP Pro w/SP2 and 
have the most basic of problems.  Install goes fine but when I try to use 
gcc to compile a chunk of C-code I get no joy.


the command line (using the windows command prompt) gcc -o test.exe test.c 
produce no errors and no output --none, nada.  I would expect that I would 
get a "test.exe" file at best and some kind of error message at worst but 
I get nothing.


the following "gcc -v -o test test.c" generates the follwing  -- with the 
temp file not being generated


Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: 
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr 
 --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib 
 --mandir=/usr/share/man
--infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc 
 --enable-nls --without-included-gettext --enable-version-specific-runtime-libs 
 --without-x --enable-libgcj --disable-java-
awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix 
 --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions  
--enable-hash-synchronization --enabl

e-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
/usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1.exe -quiet -v -D__CYGWIN32__ -D__CYGWIN__ 
 -Dunix -D__unix__ -D__unix -idirafter 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api -idirafter 
/usr/lib/
gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/../../include/w32api 
test.c -quiet -dumpbase test.c -mtune=pentiumpro -auxbase test -version -o 
/cygdrive/c/DOCUME~1/eric/LOCALS~1/Temp/cc2WhVXT

.s


I am wondering if there is a security issue at work with the new SP2 ?

TIA
Eric


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



[ANNOUNCEMENT] Updated: rxvt-unicode-X-7.7-6, rxvt-unicode-common-7.7-6

2007-01-06 Thread Charles Wilson
rxvt-unicode is clone of the familiar rxvt terminal emulator, that 
supports partially supports unicode, with a lot of caveats.


So why bother?  See original announcement at 
http://www.cygwin.com/ml/cygwin-announce/2006-05/msg4.html


Changes since 7.7-5:
===

* Includes updated patch from Thomas Wolff for partial unicode support
  on cygwin.  unicode input is now possible in UTF-8 compliant
  applications, such as mined.
* Better documentation on how to set up your system for UTF-8
  in /usr/share/doc/Cygwin/rxvt-unicode-X-7.7.README
* Now built with --enable-xim (but don't get your hopes up.  It was
  simply necessary for rxvt-unicode to work properly, even though
  there are (very few? none?) existing XIM servers ported to cygwin.)
* Also built with --enable-iso14755. With this support, in a UTF-8
  rxvt-unicode terminal (e.g. one in which LC_CTYPE was set to a UTF-8
  locale PRIOR to luanch) it is possible to enter multibyte characters
  hexadecimally.  Try: hold down LeftAlt+Shift, and press 2 0 a c. You
  should get the Euro symbol -- assuming your using a font that has the
  Euro glyph.

--
Chuck

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.


If you have questions or comments, please send them to the Cygwin
mailing list at: cygwin@cygwin.com .


*** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:


[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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.7.0 CVS mmap failure

2007-01-06 Thread Christopher Layne
(warning a bunch of strace, scroll wide).

So I haven't been able to totally nail anything down on this issue due
to the incredible complexity of Cygwin's mmap interface.

This is 2 simple mmap()s in succession, 1st is 46121 bytes, 2nd is 111 bytes.
Both opened read/write. The second mmap always fails. This is the current
snapshot code.

In the 2nd strace, I changed the mmap logic to stop trying to align the 1st
map on a 4k granularity boundary and just allocate a single map w/ 64k of
left over dead space (what I would typically expect in posix land). I also
added more debug info at various stages to try and figure things out. When
changing it to use 64k period, the mmaps are both successful - which is good,
but VirtualProtect always fails, no matter what, on unmap.

1st strace

  130 5635179 [unknown (0x22C0)] iswcs 14132 mmap64: fh == 1628914712, addr == 
0x0, len == 46121, off == 0, prot == 0, flags == 3, fd == 1
   29 5635208 [unknown (0x22C0)] iswcs 14132 CreateMappingNT: fhdl == 3442792, 
name == 0x611744B0, len == 46121, off == 0, prot == 0, flags == 3
   43 5635251 [unknown (0x22C0)] iswcs 14132 CreateMappingNT: h == 3443708, 
name == 0x611744B0, len == 46121, off == 0, prot == 0, flags == 3
   54 5635305 [unknown (0x22C0)] iswcs 14132 MapViewNT: 7FB4 = 
NtMapViewOfSection (h:348BFC, addr:0, len:46121, off:0, protect:40, type:0)
  128 5635787 [unknown (0x22C0)] iswcs 14132 mmap64: fh == 1628914712, addr == 
0x0, len == 49152, off == 0, prot == 0, flags == 3, fd == 1, orig_len == 12
   29 5635816 [unknown (0x22C0)] iswcs 14132 mmap64: orig_len == 16384, len == 
49152, pagesize == 65536, valid_page_len == 16384, sigbus_page_len == 0, 
at_base == 0x7FB4C000
   30 5635846 [unknown (0x22C0)] iswcs 14132 CreateMappingNT: fhdl == 
4294967295, name == 0x61174660, len == 16384, off == 0, prot == 0, flags == 
67108867
   33 5635879 [unknown (0x22C0)] iswcs 14132 CreateMappingNT: h == 3443812, 
name == 0x61174660, len == 16384, off == 0, prot == 0, flags == 67108867
   49 5635928 [unknown (0x22C0)] iswcs 14132 MapViewNT: 7FB4C000 = 
NtMapViewOfSection (h:348C64, addr:7FB4C000, len:16384, off:0, protect:40, 
type:0)
   55 5635983 [unknown (0x22C0)] iswcs 14132 mmap64: orig_len == 16384, len == 
49152, pagesize == 65536, valid_page_len == 16384, sigbus_page_len == 0, 
at_base == 0x7FB5
 2361 5638344 [unknown (0x22C0)] iswcs 14132 mmap_record::unmap_pages: addr == 
0x7FB4C000, len == 65536, off == 0
   43 5638387 [unknown (0x22C0)] iswcs 14132 mmap_record::unmap_pages: 
VirtualProtect in unmap_pages () failed, Attempt to access invalid address.
   81 5638468 [unknown (0x22C0)] iswcs 14132 mmap_record::unmap_pages: addr == 
0x7FB4, len == 65536, off == 0
   30 5638498 [unknown (0x22C0)] iswcs 14132 mmap_record::unmap_pages: 
VirtualProtect in unmap_pages () failed, Attempt to access invalid address.

 1198 5913621 [unknown (0x22C0)] iswcs 14132 mmap64: fh == 1628914712, addr == 
0x0, len == 111, off == 0, prot == 0, flags == 3, fd == 1
  111 5913732 [unknown (0x22C0)] iswcs 14132 CreateMappingNT: fhdl == 3443684, 
name == 0x611744B0, len == 111, off == 0, prot == 0, flags == 3
-1732 5913854 [unknown (0x22C0)] iswcs 14132 CreateMappingNT: h == 3442152, 
name == 0x611744B0, len == 111, off == 0, prot == 0, flags == 3
  135 5917163 [unknown (0x22C0)] iswcs 14132 MapViewNT: 7FB5 = 
NtMapViewOfSection (h:3485E8, addr:0, len:111, off:0, protect:40, type:0)
 1964 5954789 [unknown (0x22C0)] iswcs 14132 mmap64: fh == 1628914712, addr == 
0x0, len == 4096, off == 0, prot == 0, flags == 3, fd == 1, orig_len == 38
  581 5955463 [unknown (0x22C0)] iswcs 14132 mmap64: orig_len == 61440, len == 
4096, pagesize == 65536, valid_page_len == 61440, sigbus_page_len == 0, at_base 
== 0x7FB51000
-2520 5965447 [unknown (0x22C0)] iswcs 14132 CreateMappingNT: fhdl == 
4294967295, name == 0x61174660, len == 61440, off == 0, prot == 0, flags == 
67108867
-1010 5968842 [unknown (0x22C0)] iswcs 14132 CreateMappingNT: h == 3443752, 
name == 0x61174660, len == 61440, off == 0, prot == 0, flags == 67108867
  771 5973717 [unknown (0x22C0)] iswcs 14132 MapViewNT: 0 = NtMapViewOfSection 
(h:348C28, addr:7FB51000, len:61440, off:0, protect:40, type:0)
  315 5976384 [unknown (0x22C0)] iswcs 14132 __set_errno: void* mmap64(void*, 
size_t, int, int, int, _off64_t):1283 val 12


2nd strace

  429 6379631 [unknown (0x2164)] iswcs 24296 CreateMappingNT: fhdl == 3442760, 
name == 0x611744B0, len == 46121, off == 0, prot == 0, flags == 3
  116 6379747 [unknown (0x2164)] iswcs 24296 CreateMappingNT: h == 3443780, 
name == 0x611744B0, len == 46121, off == 0, prot == 0, flags == 3
  376 6380462 [unknown (0x2164)] iswcs 24296 MapViewNT: 7FB4 = 
NtMapViewOfSection (h:348C44, addr:0, len:46121, off:0, protect:40, type:0)
 -986 6405625 [unknown (0x2164)] iswcs 24296 mmap64: fh == 1628914712, base == 
0x7FB4, addr == 0x0, len == 46121, orig_len == 46121, off == 0, prot == 0, 
flags == 3, fd == 1
-2321 6407688 [unknown (0x2164)] 

can't start sshd

2007-01-06 Thread Charles D. Russell
After a clean reinstall of cygwin from the web and copying my old HOME 
directory to the new installation, I can no longer start sshd.  Messages 
are as follows:


$ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

$ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

sbin/sshd.exe is in fact  present and  not already running.

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



having problems with getting Up and Runnign

2007-01-06 Thread Morgan Gangwere

all:
i have been using cygwin for some time now and found a problem.
i installed irssi with cygwin static and have now decided to run real cygwin.
here is hte proccess i went through:
1. install irssi
2. use irssi
3. decide I want real cygwin
4. download and Install cygwin (setting the install path to C:\cygwin\
and the temp to C:\cygtemp\ )
4. uninstall irssi
5. attempt to use cygwin

FAILIURE MODE:
when I run Cygwin.bat i get the following:
"Bash: Bash - command not found"
aparrently, from what i have seen is that bash runs itself in order to
check variables and to run ~/.bashrc
this is a problem apparently related to the process that i used
how do i fix this?
--
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

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



can't start sshd

2007-01-06 Thread Charles D. Russell
After a clean reinstall of cygwin from the web and copying my old HOME 
directory to the new installation, I can no longer start sshd.

_
Never mind.  I must have previously selected  the nondefault value of  
"no" for "allow privilege separation?" in ssh-host-config, without 
recording that fact in my installation notes.


--
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 win winxp install

2007-01-06 Thread Dave Korn
On 06 January 2007 13:48, Sam The Cat wrote:

> figure this one out  (I think)
> 
> the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll"  this
> could not be found.  I did find "cygintl-8.dll" which shows modification as
> of 10/22/2006.  Not sure if it is a complete fix but I copied the
> "cygintl-8.dll" file and renamed it "cygintl-3.dll" and the gcc now passes a
> rudementaly hello.c complile.
> 

  It's worth re-running setup.exe, using "install from local directory", and
just clicking on 'Next' to go all the way through.  It'll make sure there
aren't any other missing files and reinstall them if needed.


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/



Fw: help win winxp install

2007-01-06 Thread Sam The Cat

DaveK


thanks for the feedback -- I originally thought this problem was due to 
installing the core  default package and the devel package at different 
times but the problem persisted even when I totally uninstalled the cygwin 
packgage, downloaded a complete new package and then did the install.  I 
really believe that there is something amiss in the distribution



Eric

- Original Message - 
From: "Dave Korn" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, January 06, 2007 4:38 PM
Subject: RE: help win winxp install



On 06 January 2007 13:48, Sam The Cat wrote:


figure this one out  (I think)

the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll" 
this
could not be found.  I did find "cygintl-8.dll" which shows modification 
as

of 10/22/2006.  Not sure if it is a complete fix but I copied the
"cygintl-8.dll" file and renamed it "cygintl-3.dll" and the gcc now 
passes a

rudementaly hello.c complile.



 It's worth re-running setup.exe, using "install from local directory", 
and

just clicking on 'Next' to go all the way through.  It'll make sure there
aren't any other missing files and reinstall them if needed.


   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/






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



can't start sshd

2007-01-06 Thread Charles D. Russell
After a clean reinstall of cygwin from the web and copying my old HOME 
directory to the new installation, I can no longer start sshd.

_
Never mind.  I must have previously selected  the nondefault value of  
"no" for "allow privilege separation?" in ssh-host-config, without 
recording that fact in my installation notes.

__
Well, no.  I found an old copy of etc/sshd_config that shows I was 
indeed previously using the default value of "yes", so something about 
the current installation must be different.  Another user sent me a 
message describing a similar problem, after a cygwin upgrade, that he 
solved by a complete cygwin reinstall.  I am using a completely new 
installation, but I did try re-installing openssh, to no avail.  Anyway, 
simply disallowing privilege separation has allowed me to get ssh to 
work in an apparently satisfactory manner.


--
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: upgrade advice for end users

2007-01-06 Thread Larry Hall (Cygwin)

Eli Zaretskii wrote:

Date: Fri, 5 Jan 2007 15:49:14 -0800 (PST)
From: fschmidt 

2.  Replace /bin/make.exe with http://www.cmake.org/files/cygwin/make.exe . 
The new version of make can't handle colons, so replace the new version with

an old make that can handle colons.


The binary of Make at that URL is not an old version, it's the same
latest version 3.81 of Make with a patch applied that makes it support
DOS-style file names with drive letters.


And once that version stabilizes, lo-and-behold, it will become the next
release of make on Cygwin.  Who would've thought? ;-)  fschmidt should
really be more thorough when researching the history of a previously
discussed issue before making bold proclamations about handling such
issues and the directions Cygwin should be heading in.


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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: having problems with getting Up and Runnign

2007-01-06 Thread Larry Hall (Cygwin)

Morgan Gangwere wrote:

all:
i have been using cygwin for some time now and found a problem.
i installed irssi with cygwin static and have now decided to run real 
cygwin.

here is hte proccess i went through:
1. install irssi
2. use irssi
3. decide I want real cygwin
4. download and Install cygwin (setting the install path to C:\cygwin\
and the temp to C:\cygtemp\ )
4. uninstall irssi
5. attempt to use cygwin

FAILIURE MODE:
when I run Cygwin.bat i get the following:
"Bash: Bash - command not found"
aparrently, from what i have seen is that bash runs itself in order to
check variables and to run ~/.bashrc
this is a problem apparently related to the process that i used
how do i fix this?


You're best bet?  

A WAG is that you should re-run "setup.exe" and choose "Reinstall" for all.
If you choose to try my WAG before consulting
, please consult it if my WAG doesn't work
out for you.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: Fw: help win winxp install

2007-01-06 Thread Larry Hall (Cygwin)

Sam The Cat wrote:

figure this one out  (I think)

the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll"  
this could not be found.  I did find "cygintl-8.dll" which shows 
modification as of 10/22/2006.  Not sure if it is a complete fix but I 
copied the "cygintl-8.dll" file and renamed it "cygintl-3.dll" and the 
gcc now passes a rudementaly hello.c complile.





That's a truly terrible way to solve your problem.  A better way would have
been to consult  to find the package you were
missing (libintl3) and install it.  I recommend you do that immediately if
you don't want to suffer from more problems as a result of your attempt
above.


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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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