Re: [ITP] netcdf-4.1.1-1

2011-03-14 Thread Corinna Vinschen
On Mar 13 23:18, marco atzeri wrote:
  On Mar  6 12:18, marco atzeri wrote:
  wget -r -np -nH --cut-dirs=2
  http://matzeri.altervista.org/cygwin-1.7/netcdf/index.html
 
 uploading again.

Uploaded.

Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat


Re: [ ITA ] base-files

2011-03-14 Thread Andrew Schulman
 On Sat, Mar 12, 2011 at 10:12:01AM +0100, Corinna Vinschen wrote:
 On Mar 12 07:25, Andy Koppe wrote:
  On 11 March 2011 21:26, David Sastre wrote:
   Links to base-files-4.0-4:
  
   http://crapsteak.org/cygwin/release/base-files/base-files-4.0-4.tar.bz2
   http://crapsteak.org/cygwin/release/base-files/base-files-4.0-4.tar.bz2.sig
  
  Looks good to me. Uploaded and cygwin-pkg-maint updated. Can versions
  before 3.9-3 be deleted?
  
  Keeper of the Gold Stars, please award a richly deserved one for
  adopting and revamping this vital package.
  
  Thanks for your patience!
 
 Indeed.  It took so long to iron out the package that I already thought
 it would get the vaporware award at one point :)  I'm really glad that
 you took over the package, David, and that you worked so diligently on
 it.  A gold star is well deserved.
 
 Big ditto.  It's a huge relief to have this package in capable hands.

Awarded.  http://cygwin.com/goldstars/#DS


[ITP] gnucap-2009.12.07-1

2011-03-14 Thread Peter Li
We discussed this a while back.  It's in the standard distros.  I pulled 
the version from cygports and bumped it up to the latest version.  I'm 
also including the last versioned release (0.35) as prev.  Version 0.35 
is from 2006 and is missing many features, so it is preferable to have 
2009.12.07 be the curr version.


Hopefully I got the setup.hint files formatted correctly for curr and 
prev with cygports...


curr (2009.12.07-1):
wget -x -nH --cut-dirs=2 \
http://chichilnisky.salk.edu/peterli/cygwin/gnucap/gnucap-2009.12.07-1-src.tar.bz2 
\

http://chichilnisky.salk.edu/peterli/cygwin/gnucap/gnucap-2009.12.07-1.tar.bz2


prev (0.35):
wget -x -nH --cut-dirs=2 \
http://chichilnisky.salk.edu/peterli/cygwin/gnucap/gnucap-0.35-1-src.tar.bz2 
\

http://chichilnisky.salk.edu/peterli/cygwin/gnucap/gnucap-0.35-1.tar.bz2


setup.hint (cygport format):
curr: 2009.12.07
prev: 0.35
category: Science
requires: libgcc1 libreadline7 libstdc++6 termcap
sdesc: Electronic circuit simulator backend
ldesc: Gnucap is the Gnu Circuit Analysis Package.
The primary component is a general purpose circuit simulator. It
performs nonlinear dc and transient analyses, fourier analysis, and ac
analysis. Spice compatible models for the MOSFET (level 1-8), BJT, and
diode are included in this release.


src/winsup/cygwin ChangeLog fhandler_disk_file.cc

2011-03-14 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: cori...@sourceware.org  2011-03-14 09:14:17

Modified files:
winsup/cygwin  : ChangeLog fhandler_disk_file.cc 

Log message:
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
file id as inode number if it masters the isgood_inode check.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.5190r2=1.5191
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_disk_file.cc.diff?cvsroot=srcr1=1.351r2=1.352



src/winsup/cygwin ChangeLog fhandler.cc fhandler.h

2011-03-14 Thread corinna
CVSROOT:/cvs/src
Module name:src
Branch: cv-post-1_7_9
Changes by: cori...@sourceware.org  2011-03-14 09:32:05

Modified files:
winsup/cygwin  : ChangeLog fhandler.cc fhandler.h 

Log message:
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove
special treatment for ERROR_NO_SYSTEM_RESOURCES.  Cancel I/O and reset
the overlapped handle on error.
(fhandler_base_overlapped::write_overlapped): Limit writes to
max_atomic_write bytes in blocking case.  Incorporate code from
now-defunct write_overlapped_fallback.  Fix serious oversight where ptr
was not advanced as buffer was written.
(fhandler_base_overlapped::write_overlapped_fallback): Eliminate.
* fhandler.h (fhandler_base_overlapped::write_overlapped_fallback):
Ditto for declaration.
(DEFAULT_PIPEBUFSIZE): Lower size to slightly less than documented
worst-case atomic write size.
(fhandler_overlapped::wait_return): Remove unused element.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srconly_with_tag=cv-post-1_7_9r1=1.5189.2.10r2=1.5189.2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.cc.diff?cvsroot=srconly_with_tag=cv-post-1_7_9r1=1.379r2=1.379.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=srconly_with_tag=cv-post-1_7_9r1=1.411r2=1.411.2.1



src/winsup/cygwin ChangeLog fhandler_disk_file.cc

2011-03-14 Thread corinna
CVSROOT:/cvs/src
Module name:src
Branch: cv-post-1_7_9
Changes by: cori...@sourceware.org  2011-03-14 09:34:57

Modified files:
winsup/cygwin  : ChangeLog fhandler_disk_file.cc 

Log message:
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
file id as inode number if it masters the isgood_inode check.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srconly_with_tag=cv-post-1_7_9r1=1.5189.2.11r2=1.5189.2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_disk_file.cc.diff?cvsroot=srconly_with_tag=cv-post-1_7_9r1=1.351r2=1.351.2.1



src/winsup/cygwin ChangeLog uinfo.cc

2011-03-14 Thread corinna
CVSROOT:/cvs/src
Module name:src
Branch: cv-post-1_7_9
Changes by: cori...@sourceware.org  2011-03-14 21:09:53

Modified files:
winsup/cygwin  : ChangeLog uinfo.cc 

Log message:
* uinfo.cc (cygheap_user::env_domain): Use LookupAccountSidW and
convert user and domain to multibyte strings to make sure to use
correct codeset.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srconly_with_tag=cv-post-1_7_9r1=1.5189.2.12r2=1.5189.2.13
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/uinfo.cc.diff?cvsroot=srconly_with_tag=cv-post-1_7_9r1=1.175r2=1.175.2.1



Re: [PATCH] Add an additional relocation attempt pass to load_after_fork()

2011-03-14 Thread Jon TURNEY
On 13/03/2011 15:21, Corinna Vinschen wrote:
 Thanks for the patch, but afaics you don't have a copyright assignment
 on file with Red Hat.  It's unfortunately required for substantial
 patches.  Please see http://cygwin.com/contrib.html, especially the
 Before you get started section.

No problem, I have signed and posted an assignment, although I'm not sure I
consider this patch 'substantial' :-)



Re: Compiled program does nothing when executing it under Cygwin

2011-03-14 Thread Csaba Raduly
On Fri, Mar 11, 2011 at 5:36 PM, Larry Hall (Cygwin)  wrote:
 On 3/11/2011 10:09 AM, Mengsk wrote:

 When checking for the 'cygwin1.dll' file in C:\cygwin\bin, I discovered
 that
 there also was a file named 'cygwin1.dll.new' in there. I made a backup of
 my cygwin1.dll, deleted it and renamed the 'cygwin1.dll.new' file to
 'cygwin1.dll'. Then I recompiled my program and now everything works fine.

 I have no idea what changed/renamed the files in the first place though...

 'setup.exe' did this.  You updated via 'setup.exe' but had some Cygwin
 process(es) running when you did so.  The 'cygwin' package needed updating
 but
 the DLL cannot be replaced while it's in use.  You should have received a
 warning about this from 'setup.exe', giving you the option to shut down
 the outstanding Cygwin process(es).

Unfortunately, the warning is not displayed if setup.exe is run with
the -M switch :(

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
Ok, it boots. Which means it must be bug-free and perfect.  -- Linus Torvalds
People disagree with me. I just ignore them. -- Linus Torvalds

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Fedora Cygwin RPM repository

2011-03-14 Thread Corinna Vinschen
On Mar 13 23:24, Yaakov (Cygwin/X) wrote:
 On Sun, 2011-03-13 at 12:36 +0100, Corinna Vinschen wrote:
  this offer is way cool.  Thanks for doing this, because this allows my lazy
  self to switch to the latest gcc to build Cygwin without having to build
  the compiler and all the stuff myself.  Really cool.
 
 Glad to help.
 
  I've just tested to build Cygwin with this gcc, and I have only two small
  problems:
  
  - libbfd.a and the bfd.h header have to be manually installed, otherwise
I can't build dumper.exe.  It would be nice to get a minimal cygwin-bfd
runtime package as well to support my lazyness even more. :)
 
 I just added a cygwin-binutils-devel package with the necessary headers
 and static libraries.
 
 The only trick is you need to manually
 remove /usr/i686-pc-cygwin/lib/libiberty.a so that the correct
 libiberty.a is used instead until I have the chance to rebuild
 cygwin-gcc.

Thanks!

  - The w32api headers are in their own w32api include directory, but the
w32api link libs are in sys-root/usr/lib instead of 
  sys-root/usr/lib/w32api
where they belong.  I think this should be fixed.
 
 I tried that at first, but it didn't work.  The problem is with
 binutils:
 
 $ i686-pc-cygwin-strings /usr/bin/i686-pc-cygwin-ld.bfd | grep w32api
 SEARCH_DIR(/usr/i686-pc-cygwin/lib/w32api);

I don't quite understand how this matches the current installation.
Right now the w32api libs are in sys-root/usr/lib, not in lib.  I'm sure
I'm missing something.

Hmm, if you do the same with the mingw version:

$ i686-pc-mingw-strings /usr/bin/i686-pc-mingw-ld.bfd | grep w32api

you get no output at all.  The w32api libs are also in the same
directory as the mingw libs, /usr/i686-pc-mingw32/sys-root/mingw/lib.

 So this code isn't sysroot-safe.  PTC.

Did you send a patch upstream?

Uh, btw., I helped myself by just adding a symlink:

  # cd /usr/i686-pc-cygwin/sys-root/lib
  # ln -s . w32api

Maybe that's a valid workaround?

I also found another strange problem.  It's practically impossible to
debug a Cygwin DLL built with this gcc/g++.  The debug line number
information appears to be screwed up.  Like this:

With gcc 4.3.4:

  (gdb) break gethostid
  Breakpoint 2 at 0x610f6b1a: file [...]/syscalls.cc, line 3718.
  (gdb) continue
  Continuing.

  Breakpoint 2, gethostid ()
  at [...]/syscalls.cc:3718
  37180x00290012);

With gcc 4.5.1:

  (gdb) break gethostid
  Breakpoint 2 at 0x610ebd9f: file [...]/syscalls.cc, line 94.
  (gdb) continue
  Continuing.

  Breakpoint 2, 0x610ebd9f in gethostid ()
  at [...]/syscalls.cc:94
  94for (int i = 0; i  (int) cygheap-fdtab.size; i++)

While the memory address makes sense, the line number does not.  If you
now try to step through the function, GDB gets seriosly lost:

  (gdb) next
  strace::active (this=0x6119c9e0)
  at [...]/strace.h:54
  54   bool active () const {return _active  1;}
  (gdb) print data
  No symbol data in current context


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: 1.7.8: write fails with EAGAIN

2011-03-14 Thread Robert Wruck

Hi,

just re-tested this with cygwin1-20110313.dll.
Here is the result (output of my writetest program):

writing 78954543 bytes...
result is 32505856, errno is 27
writing 46448687 bytes...
result is -1, errno is 27
writing 46448687 bytes...
result is -1, errno is 27
[ repeating a few hundred times ]
writing 46448687 bytes...
result is 46448687, errno is 27

The total number of write attempts varies, on my test machine it's 
between 400 and 600.

The resulting output file is correct.

I also had _one_ case where the program seemed to be stuck but I was not 
able to reproduce this one:


writing 78954543 bytes...
result is 32505856, errno is 27
writing 46448687 bytes...
result is -1, errno is 27
writing 46448687 bytes...
result is -1, errno is 27
[ repeating a few hundred times ]
writing 46448687 bytes...
result is 32505856, errno is 27
writing 13942831 bytes...
result is 0, errno is 27
writing 13942831 bytes...
result is 0, errno is 27
[ repeating until Ctrl-C ]


-Robert

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: [ANNOUNCEMENT] Updated: base-files-4.0-4

2011-03-14 Thread Corinna Vinschen
Hi David,

On Mar 12 17:28, David Sastre wrote:
 Version 4.0-4 of base-files has been uploaded.
 
 Base-files is a set of system configuration and setup files.
 A detailed list of bugfixes and changes in this release can be 
 found in the ChangeLog included in the package.

I was just testing some experimental Cygwin code on Windows 2000.

I now get this on every invocation of the shell:

bash: /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows NT/
CurrentVersion/Windows/Device: No such file or directory

In fact there is no Device value.  I guess /etc/profile should check
the file for existence before trying to read it.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



How to read thumb drive volume label

2011-03-14 Thread Charles Russell
Is there some way to read the volume label on a USB flash drive?  
Something like blkid in linux?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread PeterSmith

Sometimes my Windows server reboots at night to install new updates. Then the
next day I find out that my cygwin instance has been stopped.

What I want is on Windows start, also run Cygwin AND run a specific command.

so, step 1: Right now I have a cygwin.bat to start cygwin:

@echo off
C:
chdir C:\cygwin\bin
bash --login -i

step 2 is to enter the command in the command windows that appears after
running cygwin.bat:

cd /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
-Dsolr.solr.home=./example-DIH/solr/ -jar start.jar

But this command is what I want to have called automatically when i run
cygwin.bat

How can I combine step 1 and step 2 into a single bat file which I can run
on Windows start?

I tried this code:
@echo off
C:
chdir C:\cygwin\bin
bash -c cd
/cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
-Dsolr.solr.home=./example-DIH/solr/ -jar start.jar

But that doesnt work...

-- 
View this message in context: 
http://old.nabble.com/Autostart-Cygwin-on-Windows-boot-and-run-a-cygwin-command-tp31144428p31144428.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: vim-7.3.003-1 signal SEGV after writing to /etc/hosts against cygwin-1.7.8-1 on Windows Vista Home Premium Edition SP2

2011-03-14 Thread Corinna Vinschen
On Mar 13 22:07, Auteria W. Winzer Jr. wrote:
 Greetings,
 
 Upon upgrading to cygwin-1.7.8-1 from 1.7.7-1 whenever I write to /etc/hosts 
 using vim-7.3.003-1 it immediately catches deadly signal SEGV even though the 
 change(s) are successful:
 
 $ vi /etc/hosts
 Vim: Caught deadly signal SEGV

Works for me.  Did you try with strace?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



dd to thumb drive, W7 permission problem

2011-03-14 Thread Charles Russell
The following works on Windows XP, but fails on Windows 7, apparently 
because of some permission setting (even in Administrator mode).


# dd if=binary.img of=/dev/sdb
dd: writing to `/dev/sdb': Permission denied
3+0 records in
2+0 records out
1024 bytes (1.0 kB) copied, 0.081 s, 12.6 kB/s

I would be grateful for suggestions of what to change and where to find it.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: dd to thumb drive, W7 permission problem

2011-03-14 Thread Corinna Vinschen
On Mar 14 10:29, Charles Russell wrote:
 The following works on Windows XP, but fails on Windows 7,
 apparently because of some permission setting (even in Administrator
 mode).
 
 # dd if=binary.img of=/dev/sdb
 dd: writing to `/dev/sdb': Permission denied
 3+0 records in
 2+0 records out
 1024 bytes (1.0 kB) copied, 0.081 s, 12.6 kB/s
 
 I would be grateful for suggestions of what to change and where to find it.

Since you missed to send your cygcheck output I hazard a guess.
You didn't update to Cygwin 1.7.8 yet.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



RE: How to read thumb drive volume label

2011-03-14 Thread Buchbinder, Barry (NIH/NIAID) [E]
Charles Russell sent the following at Monday, March 14, 2011 10:03 AM
Is there some way to read the volume label on a USB flash drive?
Something like blkid in linux?

Something like this?

function label() {
$(cygpath --sysdir)/cmd /c dir ${1}:\\ | \
tr \\r \\n | \
sed -n -e '1s/^ Volume in drive . is //p'
}

Or you could play with

$(cygpath --sysdir)/label.exe

Note that both require that one provides the drive letter.

I hope this was not OT.  I apologize for use of tools that come
with Windows, but sometimes I find native tools to be easiest.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: dd to thumb drive, W7 permission problem

2011-03-14 Thread carolus

On 3/14/2011 10:58 AM, Corinna Vinschen wrote:

On Mar 14 10:29, Charles Russell wrote:

The following works on Windows XP, but fails on Windows 7,
apparently because of some permission setting (even in Administrator
mode).

# dd if=binary.img of=/dev/sdb
dd: writing to `/dev/sdb': Permission denied
3+0 records in
2+0 records out
1024 bytes (1.0 kB) copied, 0.081 s, 12.6 kB/s

I would be grateful for suggestions of what to change and where to find it.


Since you missed to send your cygcheck output I hazard a guess.
You didn't update to Cygwin 1.7.8 yet.


Corinna



Good guess.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: How to read thumb drive volume label

2011-03-14 Thread carolus

On 3/14/2011 11:11 AM, Buchbinder, Barry (NIH/NIAID) [E] wrote:

Charles Russell sent the following at Monday, March 14, 2011 10:03 AM

Is there some way to read the volume label on a USB flash drive?
Something like blkid in linux?


Something like this?

function label() {
 $(cygpath --sysdir)/cmd /c dir ${1}:\\ | \
 tr \\r \\n | \
 sed -n -e '1s/^ Volume in drive . is //p'
 }

Or you could play with

$(cygpath --sysdir)/label.exe

Note that both require that one provides the drive letter.

I hope this was not OT.  I apologize for use of tools that come
with Windows, but sometimes I find native tools to be easiest.

- Barry
   Disclaimer: Statements made herein are not made on behalf of NIAID.

Thanks. I didn't realize that the output of dir depended on whether it 
was invoked from cygwin or from cmd, and I didn't know about label.exe.



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: [ANNOUNCEMENT] Updated: base-files-4.0-4

2011-03-14 Thread Matt Seitz (matseitz)
David Sastre d.sastre.med...@gmail.com wrote in message
news:announce.20110312162817.gb6...@jethro.local.lan...
 A detailed list of bugfixes and changes in this release can be 
 found in the ChangeLog included in the package. 

In the future, would you make available a list of changes that does not
require first installing the package?  I like to look at the list of
changes before upgrading a package.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: dd to thumb drive, W7 permission problem

2011-03-14 Thread Roger K. Wells

On 03/14/2011 11:29 AM, Charles Russell wrote:
The following works on Windows XP, but fails on Windows 7, apparently 
because of some permission setting (even in Administrator mode).


# dd if=binary.img of=/dev/sdb
dd: writing to `/dev/sdb': Permission denied
3+0 records in
2+0 records out
1024 bytes (1.0 kB) copied, 0.081 s, 12.6 kB/s

I would be grateful for suggestions of what to change and where to 
find it.



Here's what I had to do to get any usb drive to be accessible on Windows 7
in fstab:

e:/ /mnt/e ntfs noacl, nouser, binary

obviously pick your own mount point(/mnt/e), source(e:/), and filesystem 
type (ntfs).
I put four of these lines in for e:/, f:/, g:/, h:/  to cover all 
(hopefully) eventualities.

May not be the only, best, approved, etc way but it got me going.

HTH,
roger wells



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple





--
Roger Wells, P.E.
SAIC
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger.k.we...@saic.com


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread Jeremy Bopp
On 3/14/2011 13:10, Jeremy Bopp wrote:
 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar

I forgot to append the trailing quote on the above command.  It should
be as follows:

bash -c cd
/cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
-Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar

-Jeremy

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread Jeremy Bopp
On 3/14/2011 09:07, PeterSmith wrote:
 
 Sometimes my Windows server reboots at night to install new updates. Then the
 next day I find out that my cygwin instance has been stopped.
 
 What I want is on Windows start, also run Cygwin AND run a specific command.
 
 so, step 1: Right now I have a cygwin.bat to start cygwin:
 
 @echo off
 C:
 chdir C:\cygwin\bin
 bash --login -i
 
 step 2 is to enter the command in the command windows that appears after
 running cygwin.bat:
 
 cd /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=./example-DIH/solr/ -jar start.jar
 
 But this command is what I want to have called automatically when i run
 cygwin.bat
 
 How can I combine step 1 and step 2 into a single bat file which I can run
 on Windows start?

While not 100% clear, I'm going to assume from your description that you
actually want this to run when you log in rather than when the machine
boots up.  It also looks like you know how to handle that part yourself.
 Ask about setting up a service if you would like this to run
independently of whether or not you ever log into the machine though.

 I tried this code:
 @echo off
 C:
 chdir C:\cygwin\bin
 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=./example-DIH/solr/ -jar start.jar
 
 But that doesnt work...

You need to help us help you here.  Simply saying that something doesn't
work without including any further details about what you see or error
messages you receive forces us to guess about the problem.

My guess about your problem is that your bash command is flawed.  The -c
option takes a single string that will be run as a command, and since
your command has spaces in it, you need to quote it.  Otherwise, the
command will be split on those spaces which will lead to erroneous
arguments for bash.  Because your command also has quotes, you'll need
to escape those with backslashes if you absolutely must keep them.
Maybe something like this will work for you:

bash -c cd
/cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
-Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar

If you still have problems, please provide more details. :-)

-Jeremy

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread PeterSmith

First of: sorry for not providing all info.

I DO want to run this command as soon as my machine boots. My server
sometimes reboots at night after an update. So when Windows starts, in the
Startup Folder I will place a shortcut to the .bat file.

I the bat file I now have:
@echo off
C:
chdir C:\cygwin\bin

bash -c cd
/cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
-Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar 

When I run this from the command prompt I get this error:

C:\start_cygwin.bat
bash: line 0: cd:
/cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/: No such file
or directory
Unable to access jarfile start.jar
C:\cygwin\bin


Hopefully my problem is more clear now and you can further assist me :)





Jeremy Bopp-3 wrote:
 
 On 3/14/2011 09:07, PeterSmith wrote:
 
 Sometimes my Windows server reboots at night to install new updates. Then
 the
 next day I find out that my cygwin instance has been stopped.
 
 What I want is on Windows start, also run Cygwin AND run a specific
 command.
 
 so, step 1: Right now I have a cygwin.bat to start cygwin:
 
 @echo off
 C:
 chdir C:\cygwin\bin
 bash --login -i
 
 step 2 is to enter the command in the command windows that appears after
 running cygwin.bat:
 
 cd /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=./example-DIH/solr/ -jar start.jar
 
 But this command is what I want to have called automatically when i run
 cygwin.bat
 
 How can I combine step 1 and step 2 into a single bat file which I can
 run
 on Windows start?
 
 While not 100% clear, I'm going to assume from your description that you
 actually want this to run when you log in rather than when the machine
 boots up.  It also looks like you know how to handle that part yourself.
  Ask about setting up a service if you would like this to run
 independently of whether or not you ever log into the machine though.
 
 I tried this code:
 @echo off
 C:
 chdir C:\cygwin\bin
 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=./example-DIH/solr/ -jar start.jar
 
 But that doesnt work...
 
 You need to help us help you here.  Simply saying that something doesn't
 work without including any further details about what you see or error
 messages you receive forces us to guess about the problem.
 
 My guess about your problem is that your bash command is flawed.  The -c
 option takes a single string that will be run as a command, and since
 your command has spaces in it, you need to quote it.  Otherwise, the
 command will be split on those spaces which will lead to erroneous
 arguments for bash.  Because your command also has quotes, you'll need
 to escape those with backslashes if you absolutely must keep them.
 Maybe something like this will work for you:
 
 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar
 
 If you still have problems, please provide more details. :-)
 
 -Jeremy
 
 --
 Problem reports:   http://cygwin.com/problems.html
 FAQ:   http://cygwin.com/faq/
 Documentation: http://cygwin.com/docs.html
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Autostart-Cygwin-on-Windows-boot-and-run-a-cygwin-command-tp31144428p31147099.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread Jeremy Bopp
On 3/14/2011 13:25, PeterSmith wrote:

FYI, this list prefers bottom posting rather than top posting.
Reformatting... :-)

 Jeremy Bopp-3 wrote:
 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar

 If you still have problems, please provide more details. :-)

 First of: sorry for not providing all info.

 I DO want to run this command as soon as my machine boots. My server
 sometimes reboots at night after an update. So when Windows starts, in the
 Startup Folder I will place a shortcut to the .bat file.

What Startup Folder are you talking about exactly?  I'm probably just
not aware of such a folder whose contents are executed by the system
upon boot up, but if you're talking about the folder for your user
account, that will only be run when you log in.  If your machine
automatically logs you in on boot up, you'll be fine in that case;
otherwise, you'll need to hook this up a bit differently.

You may want to look into the Registry:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

I'm not sure if you can directly run a batch file there or if you'll
have to run cmd with the batch file as an argument.  Assuming this works
for you, the only problem then will likely be that this will run as the
Local System account rather than your user, which may or may not matter
to you.

 I the bat file I now have:
 @echo off
 C:
 chdir C:\cygwin\bin

 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar

I forgot to include the final quote in my first reply.  Try again with a
quote at the end of that last line.

-Jeremy

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread Jan Bruun Andersen
On Mar 14, 2011 3:07 PM, PeterSmith wrote:

 What I want is on Windows start, also run Cygwin AND run a specific command.

Why? Why bother with Cygwin? You are starting some Java program that I
assume will work just fine when started from a simple CMD-script.

@echo off
E:
cd solr\apache-solr-4.0-2010-10-12_08-05-48\example
java -Dsolr.solr.home=.\example-DIH\solr -jar start.jar

--
Jan Bruun Andersen

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread PeterSmith



Jeremy Bopp-3 wrote:
 
 On 3/14/2011 13:25, PeterSmith wrote:
 
 FYI, this list prefers bottom posting rather than top posting.
 Reformatting... :-)
 
 Jeremy Bopp-3 wrote:
 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar

 If you still have problems, please provide more details. :-)

 First of: sorry for not providing all info.

 I DO want to run this command as soon as my machine boots. My server
 sometimes reboots at night after an update. So when Windows starts, in
 the
 Startup Folder I will place a shortcut to the .bat file.
 
 What Startup Folder are you talking about exactly?  I'm probably just
 not aware of such a folder whose contents are executed by the system
 upon boot up, but if you're talking about the folder for your user
 account, that will only be run when you log in.  If your machine
 automatically logs you in on boot up, you'll be fine in that case;
 otherwise, you'll need to hook this up a bit differently.
 
 You may want to look into the Registry:
 
 HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
 
 I'm not sure if you can directly run a batch file there or if you'll
 have to run cmd with the batch file as an argument.  Assuming this works
 for you, the only problem then will likely be that this will run as the
 Local System account rather than your user, which may or may not matter
 to you.
 
 I the bat file I now have:
 @echo off
 C:
 chdir C:\cygwin\bin

 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar
 
 I forgot to include the final quote in my first reply.  Try again with a
 quote at the end of that last line.
 
 -Jeremy
 
 --
 Problem reports:   http://cygwin.com/problems.html
 FAQ:   http://cygwin.com/faq/
 Documentation: http://cygwin.com/docs.html
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 
 
 

Ok, so for now lets focus on the contents of the .bat file. I'll have a look
at the startup of the bat later :)

I now have this:
@echo off
C:
chdir C:\cygwin\bin
bash -c cd
/cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
-Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar 


But that still gives me the exact same error:
C:\start_cygwin.bat
bash: line 0: cd:
/cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/: No such file
or dir
ectory
Unable to access jarfile start.jar
C:\cygwin\bin


However, when I have this in my .bat file:
@echo off
C:
chdir C:\cygwin\bin
bash --login -i
rem bash -c cd
/cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
-Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar 

I DO get the Cygwin command prompt. What am I missing here?


-- 
View this message in context: 
http://old.nabble.com/Autostart-Cygwin-on-Windows-boot-and-run-a-cygwin-command-tp31144428p31147631.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread Jeremy Bopp
On 3/14/2011 14:21, PeterSmith wrote:
 Ok, so for now lets focus on the contents of the .bat file. I'll have a look
 at the startup of the bat later :)

Excellent idea, especially considering that it's not really a Cygwin
problem at that point. ;-)

 I now have this:
 @echo off
 C:
 chdir C:\cygwin\bin
 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar 
 
 
 But that still gives me the exact same error:
 C:\start_cygwin.bat
 bash: line 0: cd:
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/: No such file
 or dir
 ectory
 Unable to access jarfile start.jar
 C:\cygwin\bin

I think the Unable to access... error message is actually coming from
java.exe.  That's likely because the cd before the java call failed
first, so you're not in the directory you expect to be when java is
started.  Make sure you don't have a typo in that path to which you're
trying to cd.

You may also consider replacing the ; in the command with  so that the
java command is never run if the cd fails.

-Jeremy

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Fedora Cygwin RPM repository

2011-03-14 Thread René Berber
On 3/14/2011 3:59 AM, Corinna Vinschen wrote:

[snip]
 I also found another strange problem.  It's practically impossible to
 debug a Cygwin DLL built with this gcc/g++.  The debug line number
 information appears to be screwed up.

You need gdb 7.0 or above (current is 7.2 and builds out of the box).
The info about this is in http://gcc.gnu.org/gcc-4.5/changes.html .
-- 
René Berber



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Autostart Cygwin on Windows boot and run a cygwin command

2011-03-14 Thread PeterSmith



Jeremy Bopp-3 wrote:
 
 On 3/14/2011 14:21, PeterSmith wrote:
 Ok, so for now lets focus on the contents of the .bat file. I'll have a
 look
 at the startup of the bat later :)
 
 Excellent idea, especially considering that it's not really a Cygwin
 problem at that point. ;-)
 
 I now have this:
 @echo off
 C:
 chdir C:\cygwin\bin
 bash -c cd
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/;java
 -Dsolr.solr.home=\./example-DIH/solr/\ -jar start.jar 
 
 
 But that still gives me the exact same error:
 C:\start_cygwin.bat
 bash: line 0: cd:
 /cygdrive/e/solr/apache-solr-4.0-2010-10-12_08-05-48/example/: No such
 file
 or dir
 ectory
 Unable to access jarfile start.jar
 C:\cygwin\bin
 
 I think the Unable to access... error message is actually coming from
 java.exe.  That's likely because the cd before the java call failed
 first, so you're not in the directory you expect to be when java is
 started.  Make sure you don't have a typo in that path to which you're
 trying to cd.
 
 You may also consider replacing the ; in the command with  so that the
 java command is never run if the cd fails.
 
 -Jeremy
 
 --
 Problem reports:   http://cygwin.com/problems.html
 FAQ:   http://cygwin.com/faq/
 Documentation: http://cygwin.com/docs.html
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 
 
 

It indeed was Java and also because there was a typo in my directory :)
Thanks!
-- 
View this message in context: 
http://old.nabble.com/Autostart-Cygwin-on-Windows-boot-and-run-a-cygwin-command-tp31144428p31148119.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Fedora Cygwin RPM repository

2011-03-14 Thread Corinna Vinschen
On Mar 14 14:08, René Berber wrote:
 On 3/14/2011 3:59 AM, Corinna Vinschen wrote:
 
 [snip]
  I also found another strange problem.  It's practically impossible to
  debug a Cygwin DLL built with this gcc/g++.  The debug line number
  information appears to be screwed up.
 
 You need gdb 7.0 or above (current is 7.2 and builds out of the box).
 The info about this is in http://gcc.gnu.org/gcc-4.5/changes.html .

Thanks for the info!


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: [ANNOUNCEMENT] Updated: base-files-4.0-4

2011-03-14 Thread David Sastre
On Mon, Mar 14, 2011 at 10:42:03AM -0700, Matt Seitz (matseitz) wrote:
 David Sastre wrote in message
  A detailed list of bugfixes and changes in this release can be 
  found in the ChangeLog included in the package. 
 
 In the future, would you make available a list of changes that does not
 require first installing the package?  I like to look at the list of
 changes before upgrading a package.

Absolutely.

Here it is in case it is still useful for you or others:

Change Log
--
4.0-4
* Set TMP and TEMP to /tmp in /etc/profile.
* Dropped CVS stuff from /etc/profile - Andy Koppe
4.0-3
* Never released.
* Reordered /etc/profile to properly initialise PS1 - Cyrille Lefevre
* Supressed a fork in /etc/profile routine for copying skeletal files and
  added a test to `cd' command - Cyrille Lefevre
* Removed /bin from path, as it is included via /usr/bin.
4.0-2
* Never released.
* A modified version of a case switch to run shell dependent stuff based
  on ENV variables detection is back in /etc/profile, as proposed in
  cygwin.com/ml/cygwin/2010-11/msg00464.html - Daniel Colascione
* Since SYS_BASHRC and SYS_BASH_LOGOUT will be enabled in bash-4.1
  .bash_logout (added in 4.0-1) has been deprecated in favour of
  /etc/bash.bash_logout.
  cygwin.com/ml/cygwin-apps/2010-12/msg00075.html
* Added tests to /etc/profile, /etc/bash.bashrc, .bash_profile, .bashrc
  and .profile to check if they have been already sourced, as suggested by
  Andy Koppe in cygwin.com/ml/cygwin-apps/2010-12/msg00071.html
* HOSTNAME definition back in /etc/profile.
* Dropped .mkshrc. This has to be discussed with mksh mantainer.
4.0-1
* Never released.
* Applied patch in base-files-mketc.sh to solve a problem with creation
  of symlinks in /etc for case-sensitive-enabled win7 systems.
  sourceware.org/ml/cygwin/2010-04/txt00011.txt - Shaddy Baddah
* New file skel/.bash_logout clear the screen after logout.
* New file skel/.profile set HOSTNAME for dash  posh.
* New file skel/.mkshrc source /etc/mkshrc.
* Updated the manifest.lst to include new files.
* Moved the command for setting /tmp perms to
  postinstall/base-files-mketc.sh.
  cygwin.com/ml/cygwin/2010-11/msg00464.html - Daniel Colascione
* Modified the PRINTER setting in /etc/profile. No case switch
  now.
  cygwin.com/ml/cygwin/2010-11/msg00464.html - Daniel Colascione
* Added a WARNING in the conditional loop that creates $HOME for
  already existing homes that don't belong to the user.
  cygwin.com/ml/cygwin-developers/2010-09/msg7.html -
  Corinna Vinschen  Andy Koppe
* Added two hooks to source .bash_aliases and .bash_functions, if they
  exist.
* Added an example function to .bashrc (enhanced cd command)
* Backtick command substitution notation replaced with $(...)
* All variable expansion is written within curly braces.
* Case switch to detect which shell is running taken out of /etc/profile.
* Bug regarding PS1 unset in interactive shells with a non-interactive
  ancestor solved. cygwin.com/ml/cygwin/2010-02/msg00503.html -
  Reported by Jon Turney
* Bug regarding mksh a well-defined PS1 solved.
  sourceware.org/ml/cygwin/2010-05/msg0.html - Reported by
  Chris Sutcliffe

-- 
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB


signature.asc
Description: Digital signature


Re: [ANNOUNCEMENT] Updated: base-files-4.0-4

2011-03-14 Thread David Sastre
On Mon, Mar 14, 2011 at 12:14:19PM +0100, Corinna Vinschen wrote:
 Hi David,
 
 I was just testing some experimental Cygwin code on Windows 2000.
 I now get this on every invocation of the shell:
 
 bash: /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows NT/
 CurrentVersion/Windows/Device: No such file or directory
 
 In fact there is no Device value.  I guess /etc/profile should check
 the file for existence before trying to read it.

Indeed. Thanks for catching it.
I've made a 4.0-5 release available to correct that:

http://crapsteak.org/cygwin/release/base-files/base-files-4.0-5.tar.bz2
http://crapsteak.org/cygwin/release/base-files/base-files-4.0-5.tar.bz2.sig

-- 
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB


signature.asc
Description: Digital signature


RE: How to read thumb drive volume label

2011-03-14 Thread Buchbinder, Barry (NIH/NIAID) [E]
carolus sent the following at Monday, March 14, 2011 1:05 PM
I didn't realize that the output of dir depended on whether it was
invoked from cygwin or from cmd, and I didn't know about label.exe.

dir does not differ depending on from where it is invoked.  Compare
the output of the following.

In a windows Command Prompt window:
c:\windows\system32\cmd.exe /c c:\cygwin\bin\dir
and
c:\windows\system32\cmd.exe /c dir

Or in bash:
$(cygpath -sysdir)/cmd.exe /c dir
and
$(cygpath -sysdir)/cmd.exe /c c:\cygwin\bin\dir

The first dir in each pair is a cmd.exe builtin and the second is a
cygwin executable.

FYI, /bin/ls.exe and /bin/dir.exe are almost identical, differing by
3 bytes.

As for label.exe, to know about it, one has be old enough to have run
MS-DOS.

(Personally, I think that running DESQview386 under DOS 3.3 was better
than any version of Windows, just as some people on this list wax
nostalgic for B20 and version 1.5.)  :-)

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



apache accessible from localhost but not 127.0.0.1

2011-03-14 Thread Todd, John
I've set up apache2 under cygwin on a Windows 7 PC, and through Firefox I can 
load http://localhost/ and retrieve the It works! index page, but cannot 
retrieve http://127.0.0.1/.

wget http://localhost; reports that it resolves localhost to 127.0.0.1, 
connects to port 80, and gets a 404 Not Found error. That behavior holds true 
from a DOS command prompt or a cygwin bash shell.

Please let me know if you can help. Thanks very much,

John Todd

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



FSF releases GCC 4.6.0

2011-03-14 Thread JonY
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey list,

GCC 4.6.0 was just released into the wild. I was just working on 4.5.2
for mingw-w64 when I saw the news.

Btw, can GCC deps like ppl/cloog etc be updated? gcc configure was
complaining about them being buggy but acceptable.

Dave, any plans for 4.5 stable or 4.6.0?
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.16 (MingW32)

iEYEARECAAYFAk1+uksACgkQp56AKe10wHckRQCfXUN2cnCaBMB9XmuhvTXPvq4T
MwAAnAjqi/bsi4+sSbf4lLlDj3wd1CFy
=G7dG
-END PGP SIGNATURE-


0xED74C077.asc
Description: application/pgp-keys
--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

Re: FSF releases GCC 4.6.0

2011-03-14 Thread David Billinghurst

On 15/03/2011 12:01 PM, JonY wrote:



Btw, can GCC deps like ppl/cloog etc be updated? gcc configure was
complaining about them being buggy but acceptable.


Will see what I can do.

David

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: How to read thumb drive volume label

2011-03-14 Thread carolus

On 3/14/2011 4:55 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote:

carolus sent the following at Monday, March 14, 2011 1:05 PM

I didn't realize that the output of dir depended on whether it was
invoked from cygwin or from cmd, and I didn't know about label.exe.


dir does not differ depending on from where it is invoked.


I didn't realize cygwin had its own dir until seeing that the DOS 
dir reported the volume label.



As for label.exe, to know about it, one has be old enough to have run
MS-DOS.

I'm old enough to have stacked the compiler deck, the program deck, and 
the data deck to dump it all in the card reader. But I never paid 
attention to volume labels before setting out to install linux to a 
thumb drive and wanting to make doubly sure I was not overwriting my 
system disk.



(Personally, I think that running DESQview386 under DOS 3.3 was better
than any version of Windows, just as some people on this list wax
nostalgic for B20 and version 1.5.)  :-)


I never thought much of DESQview or of Windows either.  At that time I 
used to telnet from DOS 3.3 to a Unix box, and was happier in Unix. It 
took less than a day to switch to Cygwin, with hardly any difference 
from the real Unix. Before that I was using the MKS Toolkit on my DOS or 
Windows desktop, which was nice software, but not as complete an 
emulation as Cygwin.







--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Fedora Cygwin RPM repository

2011-03-14 Thread Yaakov (Cygwin/X)
On Mon, 2011-03-14 at 10:59 +0100, Corinna Vinschen wrote:
 On Mar 13 23:24, Yaakov (Cygwin/X) wrote:
  I just added a cygwin-binutils-devel package with the necessary headers
  and static libraries.
  
  The only trick is you need to manually
  remove /usr/i686-pc-cygwin/lib/libiberty.a so that the correct
  libiberty.a is used instead until I have the chance to rebuild
  cygwin-gcc.
 
 Thanks!

cygwin-gcc 4.5.1-2 is now available for both arches without libiberty.a.

  I tried that at first, but it didn't work.  The problem is with
  binutils:
  
  $ i686-pc-cygwin-strings /usr/bin/i686-pc-cygwin-ld.bfd | grep w32api
  SEARCH_DIR(/usr/i686-pc-cygwin/lib/w32api);
 
 I don't quite understand how this matches the current installation.
 Right now the w32api libs are in sys-root/usr/lib, not in lib.  I'm sure
 I'm missing something.

For a cygwin-target cross-compiler, binutils' ld/configure.tgt
hard-codes $(tooldir)/lib/w32api as an additional library directory.
While technically valid, is it not where we want libraries to be when
using a sysroot.

I added a small patch to binutils[1] to add sys-root/usr/lib/w32api and
have rebuilt cygwin-binutils and cygwin-w32api accordingly.

HTH,


Yaakov


P.S. I see that you already used this to fix the gcc-4.5 warnings in
winsup/cygwin, but you only applied those to your post-1.7.9 branch.
Any chance you could commit those to HEAD now as well?


[1]
http://fedora-cygwin.git.sourceforge.net/git/gitweb.cgi?p=fedora-cygwin/cygwin-binutils;a=blob;f=w32api-sysroot.patch;h=a996aef;hb=49213c4




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple