RE: POSIX devices

2005-06-17 Thread Gary R. Van Sickle
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Carlo Florendo
> Sent: Friday, June 17, 2005 1:13 AM
> To: Oliver Vecernik
> Cc: cygwin@cygwin.com
> Subject: Re: POSIX devices
> 
> Oliver Vecernik wrote:
> 
> >Hi all,
> >
> >I'd like to inspect some MBR's from various devices. I have 
> an external 
> >Firewire disk (x:), an USB stick (e:) and a flash card (F:, pcmcia).
> >
> >$ mount
> >C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type 
> >system (binmo
> >de)
> >C:\cygwin\bin on /usr/bin type user (binmode) C:\cygwin\bin 
> on /usr/bin 
> >type system (binmode) C:\cygwin\lib on /usr/lib type user (binmode) 
> >C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type 
> >user (binmode) C:\cygwin on / type system (binmode)
> >c: on /c type system (binmode)
> >n: on /n type system (binmode)
> >x: on /x type system (binmode)
> >z: on /z type system (binmode)
> >e: on /cygdrive/e type user (binmode,noumount)
> >f: on /cygdrive/f type user (binmode,noumount)
> >
> >But how do I know the order of device names? It all depends when the 
> >devices are plugged on to the system. Is there a command to find out?
> >
> >dd if=/dev/sd? of=/tmp/foo bs=512 count=1
> >
> >  
> >
> 
> AFAIK, Cygwin does not implement the /dev directory. 
> 

Actually it has for a while now.

> I'm afraid there is no cygwin command to find out the order 
> of devices plugged to the system although I'd be glad if 
> someone corrects me and says that there is. 
>

You're correct here though AFAIK.  In particular "ls /dev" doesn't tell you
anything useful.

-- 
Gary R. Van Sickle
  
> Thank you very much.
> 
> Best Regards,
> 
> Carlo
> 
> --
> Carlo Florendo
> Astra Philippines Inc.
> www.astra.ph
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 


--
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: POSIX devices

2005-06-17 Thread Arturus Magi

Carlo Florendo wrote:

Oliver Vecernik wrote:


But how do I know the order of device names? It all depends when the
devices are plugged on to the system. Is there a command to find out?

dd if=/dev/sd? of=/tmp/foo bs=512 count=1

 



AFAIK, Cygwin does not implement the /dev directory.


Cygwin does implement /dev (and /proc, plus the Windows specific 
/registry), you just can't ls it because it's all internal redirection 
magic.  There is a script (Google is your friend) to create and populate 
/dev with null files as placeholders for working devices, so that ls and 
the like can grab them. The Cygwin /dev magic will ignore the files in 
favor of the virtual device handles when you actually try to use them.


--
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: POSIX devices

2005-06-17 Thread Carlo Florendo

Arturus Magi wrote:


Carlo Florendo wrote:


Oliver Vecernik wrote:


But how do I know the order of device names? It all depends when the
devices are plugged on to the system. Is there a command to find out?

dd if=/dev/sd? of=/tmp/foo bs=512 count=1

 



AFAIK, Cygwin does not implement the /dev directory.



Cygwin does implement /dev (and /proc, plus the Windows specific 
/registry), you just can't ls it because it's all internal redirection 
magic.  There is a script (Google is your friend) to create and 
populate /dev with null files as placeholders for working devices, so 
that ls and the like can grab them. The Cygwin /dev magic will ignore 
the files in favor of the virtual device handles when you actually try 
to use them.




Excellent.  This was the correction I wanted to get.

Thanks a lot :)

--
Carlo Florendo
Astra Philippines Inc.
www.astra.ph


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



Re: POSIX devices

2005-06-17 Thread Brian Dessent
Oliver Vecernik wrote:

> C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type
> system (binmo
> de)

This, I believe, is an ancient artifact of an old way that the x11
packages used to work, and you can remove this mount.

> C:\cygwin\bin on /usr/bin type user (binmode)
> C:\cygwin\bin on /usr/bin type system (binmode)
> C:\cygwin\lib on /usr/lib type user (binmode)
> C:\cygwin\lib on /usr/lib type system (binmode)
> C:\cygwin on / type user (binmode)
> C:\cygwin on / type system (binmode)

You might want to remove these duplicate mounts (umount -U to remove the
user mounts) just to avoid future confusion.

> c: on /c type system (binmode)
> n: on /n type system (binmode)
> x: on /x type system (binmode)
> z: on /z type system (binmode)
> e: on /cygdrive/e type user (binmode,noumount)
> f: on /cygdrive/f type user (binmode,noumount)

Again, here it might be less confusing to remove the explicit mounts on
/c /n /x /z and just change the cygdrive prefix to / (mount -c /) such
that any and all drives show up as letters in the root, if that's what
you want.  And since you seem to have the cygdrive set in user mode it
might be less confusing to remove the user-cygdrive mount and make it a
system-cygdrive to reduce potential future confusion.

> But how do I know the order of device names? It all depends when the
> devices are plugged on to the system. Is there a command to find out?
> 
> dd if=/dev/sd? of=/tmp/foo bs=512 count=1

The order depends on whatever windows orders the drives.  I think that
you can view this by running the "Logical Disk Manager" mmc snap-in and
looking at the disk numbering there.  The "Disk 0" "Disk 1" etc labels
there should correspond 1:1 with /dev/sda, /dev/sdb, etc.  (Though I
don't have any removable media with wich I can verify this.)

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: Problem compiling Setup but unsure if my install is hosed or is it the source or autoconf/automake

2005-06-17 Thread Dave Korn
Original Message
>From: Brian Dessent
>Sent: 17 June 2005 06:42

> Brian Keener wrote:
> 
>> The only other thing I can think of is what version of autoconf and
>> automake and libtool are you using.  Mine are the versions that were
>> released when stable and devel became obsolete.  But not sure that is it.

> 
> The best thing I can suggest is ask on the autoconf list.  Your error
> seems like an internal problem with aclocal or autoconf, and they should
> be able to help.

  I'm no expert on all that auto-* malarkey, but I notice one thing:

> $ ./bootstrap.sh
> Running bootstrap.sh in libgetopt++
> unknown channel $-5 at /usr/share/autoconf/Autom4te/Channels.pm line 538
>Autom4te::Channels::msg('$-5', 'configure.in:14', 'warning: $-6')
called
> at /usr/bin/autom4te-2.5x line 1008
> aclocal: autom4te failed with exit status: 1
> aclocal failed
> Autotool bootstrapping failed. You will need to investigate and correct
> before you can develop on this source tree

  I don't even _have_ a /usr/share/autoconf directory on my installation,
and bootstrap.sh WJFFM.  Perhaps there is some residual bogosity lurking in
there from old versions?

  I don't have any /usr/bin/autom4te-2.5x either.  My Channels.pm lives
under /usr/autotool/{devel,stable}/share/Autom4te.

  Sounds like you have some stray stuff going on?

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/



bash: cannot create temp file for here document: No such file or directory

2005-06-17 Thread Davide Tazzari
Hi,
I have installed Cygwin for a month and it works well till I tried to
install another program using the ./configure, make and so on... procedure.

I received this error
configure: cannot create temp file for here document: No such file or
directory

I remeber that I receive this error since the first time I have run cygwin.

First of all I tried to add or reinstall packages but nothing happens.

Yesterday I removed Cygwin then I reinstalled the whole program from the
beginning. Here is what I received at the first run:


Copying skeleton files.

These files are for the user to personalise

their cygwin experience.

These will never be overwritten.

`./.bashrc' -> `/home/Davide//.bashrc'

`./.bash_profile' -> `/home/Davide//.bash_profile'

`./.inputrc' -> `/home/Davide//.inputrc'

bash: cannot create temp file for here document: No such file or directory

[EMAIL PROTECTED] ~

$

It seems that cygwin isn't able to create temp files or something like.
Then I tried this:
With the command env I discover the temp directory
/cygdrive/d/DOCUME~1/Davide/IMPOST~1/Temp

With CD command I browsed to that directory then I tried to add file, create
dir, remove dir and so on. Everything is ok.

Then my last try:
cat < 12345
> EOF
and I received
bash: cannot create temp file for here document: No such file or directory

Can anybody help me?

I attached the result of the command
cygcheck -s -v -r > cygcheck.out

Thank's
Davide



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



Re: Problem compiling Setup but unsure if my install is hosed or is it the source or autoconf/automake

2005-06-17 Thread Brian Dessent
Dave Korn wrote:

>   I don't have any /usr/bin/autom4te-2.5x either.  My Channels.pm lives
> under /usr/autotool/{devel,stable}/share/Autom4te.
> 
>   Sounds like you have some stray stuff going on?

You're still on the 'old' versions of autotools then apparently.  The
'new' versions do away with the {devel,stable} notion as well as the
home grown wrapper scripts.  The change was announced at
 but I don't
ever remember seeing an actual [ANNOUNCEMENT} message for the new
packages.

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: Problem compiling Setup but unsure if my install is hosed or is it the source or autoconf/automake

2005-06-17 Thread Dave Korn
Original Message
>From: Brian Dessent
>Sent: 17 June 2005 11:12

> Dave Korn wrote:
> 
>>   I don't have any /usr/bin/autom4te-2.5x either.  My Channels.pm lives
>> under /usr/autotool/{devel,stable}/share/Autom4te.
>> 
>>   Sounds like you have some stray stuff going on?
> 
> You're still on the 'old' versions of autotools then apparently.

  Guess I am, at that.  And from the looks of things, I'm staying that way
for at least a little while longer.  I need to be able to build setup! 

>  The
> 'new' versions do away with the {devel,stable} notion as well as the
> home grown wrapper scripts.  The change was announced at
>  

  Yeh, I do remember seeing that, now you remind me.

> but I don't
> ever remember seeing an actual [ANNOUNCEMENT} message for the new
> 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: Problem compiling Setup but unsure if my install is hosed or is it the source or autoconf/automake

2005-06-17 Thread Brian Dessent
Dave Korn wrote:

>   Guess I am, at that.  And from the looks of things, I'm staying that way
> for at least a little while longer.  I need to be able to build setup! 

(From the 'knew you were joking, but:' department...)

I am using the new packages and had no problem running bootstrap.sh or
any other autotool-related issues. The problem seems to be with
something gone awry in the OP's system.

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: inet_pton() error. Does Cygwin support inet_pton()?

2005-06-17 Thread Fernando Barsoba \(hotmail 2\)
Thank you very much for your response.. Do you know if theres is any plan to 
support IPv6 in the near future?


THanks,

Fernando




inet_pton() is an IPv6 function and Cygwin has no support for IPv6.
You'll have to patch the application if it expects to find IPv6
functions.



Brian



Fernando Barsoba wrote:

I'm trying to use the function inet_pton(), but I found the following 
error

when trying to build the application with Eclipse/CDT on Cygwin:


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


--
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: inet_pton() error. Does Cygwin support inet_pton()?

2005-06-17 Thread Brian Dessent
"Fernando Barsoba (hotmail 2)" wrote:

> Thank you very much for your response.. Do you know if theres is any plan to
> support IPv6 in the near future?

I think you will find that no one here cares to give answers to
questions along the lines of "when will X happen/be ready?" because this
is after all a completely volunteer effort done in people's spare time
so "things happen when they happen."  That said, there have been
mentions of it happening sometime prior to the heat death of the
universe, e.g. .

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/



Problems with ssh/telnet/ftp login: windows error 5

2005-06-17 Thread Zecha, Holger

Hello,

After doing a update I'm unable to login using ssh protocol v2 and
Password authentication. The login using private/public key still works
fine. I'm also not able to do a telnet and/or ftp to the system. I
traced the issue down to login.exe, which shows the following errors:

   20  20 [unknown (0x998)] login 2436 _cygtls::remove: wait 0x0
 38503870 [unknown (0x998)] login 2436 _cygtls::remove: removed
0x1941F084 element 2
1654494 1658364 [main] login 2436 fhandler_tty_slave::read: reading 14
bytes (vtime 0)
 1018 1659382 [main] login 2436 fhandler_tty_slave::read:
14=read(4105DE, 1010)
  789 1660171 [main] login 2436 readv: 14 = readv (0, 0x22EBF0, 1),
errno 9
17166 1677337 [main] login 2436 normalize_posix_path: src /etc/passwd
  670 1678007 [main] login 2436 normalize_posix_path: /etc/passwd =
normalize_posix_path (/etc/passwd)
  700 1678707 [main] login 2436 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc/passwd)
  780 1679487 [main] login 2436 set_flags: flags: binary (0x2)
  801 1680288 [main] login 2436 mount_info::conv_to_win32_path: src_path
/etc/passwd, dst C:\programme\cygwin\etc\passwd, flags 0xA, rc 0
 1217 1681505 [main] login 2436 symlink_info::check: not a symlink
  606 1682111 [main] login 2436 symlink_info::check: 0 = symlink.check
(C:\programme\cygwin\etc\passwd, 0x22E6D0) (0xA)
 1081 1683192 [main] login 2436 set_privilege: 1 = set_privilege ((token
15C) SeChangeNotifyPrivilege, 1)
 1893 1685085 [main] login 2436 path_conv::check:
this->path(C:\programme\cygwin\etc\passwd), has_acls(1)
 1451 1686536 [main] login 2436 etc::test_file_change: FindFirstFile
succeeded
69262 1755798 [main] login 2436 pwdgrp::load: /etc/passwd curr_lines 8
 1266 1757064 [main] login 2436 pwdgrp::load: /etc/passwd load succeeded
  835 1757899 [main] login 2436 open: open (/etc/nologin, 0x0)
  658 1758557 [main] login 2436 normalize_posix_path: src /etc/nologin
  733 1759290 [main] login 2436 normalize_posix_path: /etc/nologin =
normalize_posix_path (/etc/nologin)
  750 1760040 [main] login 2436 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc/nologin)
  688 1760728 [main] login 2436 set_flags: flags: binary (0x2)
  634 1761362 [main] login 2436 mount_info::conv_to_win32_path: src_path
/etc/nologin, dst C:\programme\cygwin\etc\nologin, flags 0xA, rc 0
 1104 1762466 [main] login 2436 symlink_info::check: GetFileAttributes
(C:\programme\cygwin\etc\nologin) failed
  859 1763325 [main] login 2436 geterrno_from_win_error: windows error 2
== errno 2
 1408 1764733 [main] login 2436 symlink_info::check: GetFileAttributes
(C:\programme\cygwin\etc\nologin.lnk) failed
  680 1765413 [main] login 2436 geterrno_from_win_error: windows error 2
== errno 2
  655 1766068 [main] login 2436 symlink_info::check: 0 = symlink.check
(C:\programme\cygwin\etc\nologin, 0x22C630) (0xA)
  717 1766785 [main] login 2436 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc)
  702 1767487 [main] login 2436 set_flags: flags: binary (0x2)
  701 1768188 [main] login 2436 mount_info::conv_to_win32_path: src_path
/etc, dst C:\programme\cygwin\etc, flags 0xA, rc 0
  952 1769140 [main] login 2436 symlink_info::check: not a symlink
  681 1769821 [main] login 2436 symlink_info::check: 0 = symlink.check
(C:\programme\cygwin\etc, 0x22C630) (0xA)
  799 1770620 [main] login 2436 path_conv::check:
this->path(C:\programme\cygwin\etc\nologin), has_acls(1)
  627 1771247 [main] login 2436 build_fh_pc: fh 0x61821DC8
 1000 1772247 [main] login 2436 fhandler_base::open:
(C:\programme\cygwin\etc\nologin, 0x10)
 4262 1776509 [main] login 2436 seterrno_from_win_error:
/netrel/src/cygwin-1.5.17-1/winsup/cygwin/fhandler.cc:666 windows error
2
 1046 1777555 [main] login 2436 geterrno_from_win_error: windows error 2
== errno 2
  740 1778295 [main] login 2436 __set_errno: void
seterrno_from_win_error(const char*, int, long unsigned int):307 val 2
  757 1779052 [main] login 2436 fhandler_base::open: C034 =
NtCreateFile (0x0, 8010, C:\programme\cygwin\etc\nologin, io, NULL,
0, 7, 1, 20, NULL, 0)
  882 1779934 [main] login 2436 fhandler_base::open: 0 =
fhandler_base::open (C:\programme\cygwin\etc\nologin, 0x10)
  683 1780617 [main] login 2436 fhandler_base::open_fs: 0 =
fhandler_disk_file::open (C:\programme\cygwin\etc\nologin, 0x0)
  772 1781389 [main] login 2436 open: -1 = open (/etc/nologin, 0x0)
  703 1782092 [main] login 2436 fhandler_tty_slave::tcsetattr: (1034):
tty output_mutex: waiting -1 ms
  727 1782819 [main] login 2436 fhandler_tty_slave::tcsetattr: (1034):
tty output_mutex: acquired
  685 1783504 [main] login 2436 fhandler_tty_slave::tcsetattr: (1036):
tty output_mutex released
 2085 1785589 [main] login 2436 fhandler_tty_slave::write: tty0,
write(4010C8, 9)
  659 1786248 [main] login 2436 fhandler_tty_slave::write: (682): tty
output_mutex: waiting -1 ms
  652 1786900 [main] login 2436 fhandler_tty_slave::write: (682): tty
output_mutex: acquired
  720 1787620 [main] login 2436 fhandler_tty_slave::write: waite

Re: Problems with ssh/telnet/ftp login: windows error 5

2005-06-17 Thread Corinna Vinschen
On Jun 17 15:54, Zecha, Holger wrote:
> After doing a update I'm unable to login using ssh protocol v2 and
> Password authentication. The login using private/public key still works
> fine. I'm also not able to do a telnet and/or ftp to the system. I
> traced the issue down to login.exe, which shows the following errors:
> [...]
> Has anybody a idea which is causing the windows error 5?

Should be solved in CVS.
Try a recent snapshot from http://cygwin.com/snapshots/


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

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



Clone cygwin-setup settings from one PC to another

2005-06-17 Thread Oliver Geisen

Hello,

is it possible to find out which packages installed via SETUP.EXE on 
one PC and use
this information (selection) to automatically install the same on 
another PC ?


e.g. something like:
  cygsetup > mypacks.ini

  setup.exe -install mypacks.ini


With best regards,

Oliver Geisen
---
Systemadministrator
Kreisboten Verlag Mühlfellner KG
Phone: +49 881/686-63
Fax: +40 881/686-74
Mail: [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: POSIX devices

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 12:40:29AM -0700, Brian Dessent wrote:
>Oliver Vecernik wrote:
>>C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type
>>system (binmo de)
>
>This, I believe, is an ancient artifact of an old way that the x11
>packages used to work, and you can remove this mount.

I don't believe that this mount is optional.  /usr/X11RT/lib/X11/fonts
really does need to be mounted in binary mode.

cgf

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



Re: Problem with using stripped cygwin1.dll built from CVS

2005-06-17 Thread Brian Ford
On Wed, 8 Jun 2005, Christopher Faylor wrote:

> On Wed, Jun 08, 2005 at 10:36:56AM -0400, Christopher Faylor wrote:
> >I understand the problem.  It's a binutils bug that I'm investigating.
> >Either gas or ld is marking NOLOAD sections as "read only" and that is
> >causing windows to actually load them into memory.
>
> There's a new "test" version of binutils available which seems to fix
> this problem.  I'm awaiting approval for a patch in the binutils mailing
> list before making this version official.
>
> This turns out to have been a long-time bug in binutils, AFAICT.  The
> debug sections that the GNU linker produces were not properly marked
> as "noload" so debug data was actually loaded into memory.

I wish I would have known this was possible while working on DWARF 2
debugging.  Everything I read stated: "If it has a section header,
Windows' brain dead loader will load it regardless of section attributes".
I hope it really works on all supported platforms.

Do the RVA's for these sections still have to be consecutive?  If not,
DWARF 2 no longer needs a special reloc and can use the same method elf
targets do of mapping the .debug_* sections at an RVA of 0.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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: inet_pton() error. Does Cygwin support inet_pton()?

2005-06-17 Thread Fernando Barsoba
Ok, thanks.. It seems it might happen soon..(the implementation, not the 
heat death of the universe, I guess..)


I'll hold tight until then..!

Fernando


I think you will find that no one here cares to give answers to
questions along the lines of "when will X happen/be ready?" because this
is after all a completely volunteer effort done in people's spare time
so "things happen when they happen."  That said, there have been
mentions of it happening sometime prior to the heat death of the
universe, e.g. .



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: inet_pton() error. Does Cygwin support inet_pton()?

2005-06-17 Thread René Berber
Fernando Barsoba wrote:
> 
> I'm trying to use the function inet_pton(), but I found the following
> error when trying to build the application with Eclipse/CDT on Cygwin:
[snip]

If you don't need IPv6 in your application you can add tbe following 
implementation:

#ifdef __CYGWIN__

/* From:
 *  UNIX Network Programming: Sockets Introduction
 *  By Andrew M. Rudoff, Bill Fenner, W. Richard Stevens.
 *  Prentice Hall PTR. Feb 27, 2004.
 */
#define INET_ADDRSTRLEN   16   /* for IPv4 dotted-decimal */

int inet_pton(int family, const char *strptr, void *addrptr)
{
if (family == AF_INET) {
struct in_addr in_val;

if (inet_aton(strptr, &in_val)) {
memcpy(addrptr, &in_val, sizeof(struct in_addr));
return (1);
}
return (0);
}
errno = EAFNOSUPPORT;
return (-1);
}

const char *inet_ntop(int family, const void *addrptr, char *strptr, size_t len)
{
const u_char *p = (const u_char *) addrptr;

if (family == AF_INET) {
chartemp[INET_ADDRSTRLEN];

snprintf(temp, sizeof(temp), "%d.%d.%d.%d", p[0], p[1], p[2], p[3]);
if (strlen(temp) >= len) {
errno = ENOSPC;
return (NULL);
}
strcpy(strptr, temp);
return (strptr);
}
errno = EAFNOSUPPORT;
return (NULL);
}

#endif


I've used this and getaddrinfo() from the postgress port to compile clamsmtpd,
and it works fine.

HTH,
-- 
René Berber


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



Re: Problem with using stripped cygwin1.dll built from CVS

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 09:29:48AM -0500, Brian Ford wrote:
>On Wed, 8 Jun 2005, Christopher Faylor wrote:
>>On Wed, Jun 08, 2005 at 10:36:56AM -0400, Christopher Faylor wrote:
>>>I understand the problem.  It's a binutils bug that I'm investigating.
>>>Either gas or ld is marking NOLOAD sections as "read only" and that is
>>>causing windows to actually load them into memory.
>>
>>There's a new "test" version of binutils available which seems to fix
>>this problem.  I'm awaiting approval for a patch in the binutils
>>mailing list before making this version official.
>>
>>This turns out to have been a long-time bug in binutils, AFAICT.  The
>>debug sections that the GNU linker produces were not properly marked as
>>"noload" so debug data was actually loaded into memory.
>
>I wish I would have known this was possible while working on DWARF 2
>debugging.  Everything I read stated: "If it has a section header,
>Windows' brain dead loader will load it regardless of section
>attributes".  I hope it really works on all supported platforms.

It's a documented field in PE's section header, so I don't see why it
wouldn't work.  The only brain-dead thing that the loader does is to go
ahead and load a section into memory if it is marked as readable or
writable as well as noload.

>Do the RVA's for these sections still have to be consecutive?

As far as I can tell, yes.  Anything else seems to result in a
non-loadable binary.  But, I didn't investigate this too thoroughly so
it is possible that there's another binutils bug lurking there.

cgf

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



Re: inet_pton() error. Does Cygwin support inet_pton()?

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 10:36:29AM -0400, Fernando Barsoba wrote:
>Ok, thanks.. It seems it might happen soon..(the implementation, not the 
>heat death of the universe, I guess..)
>
>I'll hold tight until then..!

I haven't seen any indication that this is going to happen soon.  There has
been zero activity on this since Corinna's message, referenced below.

cgf

>>I think you will find that no one here cares to give answers to
>>questions along the lines of "when will X happen/be ready?" because
>>this is after all a completely volunteer effort done in people's spare
>>time so "things happen when they happen." That said, there have been
>>mentions of it happening sometime prior to the heat death of the
>>universe, e.g.  .

--
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: inet_pton() error. Does Cygwin support inet_pton()?

2005-06-17 Thread Corinna Vinschen
On Jun 17 10:39, Christopher Faylor wrote:
> On Fri, Jun 17, 2005 at 10:36:29AM -0400, Fernando Barsoba wrote:
> >Ok, thanks.. It seems it might happen soon..(the implementation, not the 
> >heat death of the universe, I guess..)
> >
> >I'll hold tight until then..!
> 
> I haven't seen any indication that this is going to happen soon.  There has
> been zero activity on this since Corinna's message, referenced below.

I got no reply from Jun-ya, but he's still keeping his page in sync
with the latest Cygwin release.  I'll ask him again if and when he's
going to contribute code.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

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



Re: Problem with using stripped cygwin1.dll built from CVS

2005-06-17 Thread Brian Ford
On Fri, 17 Jun 2005, Christopher Faylor wrote:

> On Fri, Jun 17, 2005 at 09:29:48AM -0500, Brian Ford wrote:
> >I wish I would have known this was possible while working on DWARF 2
> >debugging.  Everything I read stated: "If it has a section header,
> >Windows' brain dead loader will load it regardless of section
> >attributes".  I hope it really works on all supported platforms.
>
> It's a documented field in PE's section header, so I don't see why it
> wouldn't work.  The only brain-dead thing that the loader does is to go
> ahead and load a section into memory if it is marked as readable or
> writable as well as noload.

Thanks for the reply.

By it, can I assume you meant IMAGE_SCN_TYPE_NOLOAD?

In the only "official" PE COFF documentation I could find:

Microsoft Portable Executable and Common Object File Format Specification
Revision 6.0 - February 1999

4.1 Section Flags:

IMAGE_SCN_TYPE_NOLOAD 0x0002 Reserved for future use.

Don't get me wrong; I really hope it works everywhere.  I was just too
skeptical to use it before myself given that it appeared not to work
because of the binutils bug.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

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



IE5 settings in setup.exe

2005-06-17 Thread Andrea M
I am having problems with the IE5 settings in the setup program (can't
get a list of download sites). Does anybody know what user-agent
cygwin uses?

The proxy script here rejects all connections except from IE or
Firefox user-agents and I have a hunch that this is the problem.

Thanks in advance,

Andrea

--
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: POSIX devices

2005-06-17 Thread Brian Dessent
Christopher Faylor wrote:

> >This, I believe, is an ancient artifact of an old way that the x11
> >packages used to work, and you can remove this mount.
> 
> I don't believe that this mount is optional.  /usr/X11RT/lib/X11/fonts
> really does need to be mounted in binary mode.

I was just basing that on a post I read by Alexander, I have no direct
knowledge on the matter:


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: IE5 settings in setup.exe

2005-06-17 Thread Markus Schönhaber
Am Freitag, 17. Juni 2005 17:32 schrieb Andrea M:
> I am having problems with the IE5 settings in the setup program (can't
> get a list of download sites). Does anybody know what user-agent
> cygwin uses?

None.
This is the request/response from my version of setup getting the server-list:

-snip-

GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.0 
Host: sources.redhat.com 
 
HTTP/1.0 200 OK 
Date: Fri, 17 Jun 2005 15:37:41 GMT 
Server: Apache/2.0.46 (Red Hat) 
Last-Modified: Thu, 16 Jun 2005 21:44:24 GMT 
ETag: "2384c3-1b75-c5d81e00" 
Accept-Ranges: bytes 
Content-Length: 7029 
Content-Type: text/plain 
Age: 136 
X-Cache: HIT from Saruman.schoenhaber.de 
X-Cache-Lookup: HIT from Saruman.schoenhaber.de:3128 
Proxy-Connection: close 
 
# Do not edit - see warning in mirrors.html
http://www.carfield.com.hk/mirror/sources.redhat.com/cygwin;www.carfield.com.hk;Asia;Hong
 
Kong
[...]

-snap-

Regards
  mks

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



How to give commands to execute after (login)shell invoked

2005-06-17 Thread Oliver Geisen

Hello,

there is a neat trick to expand window's context menu (right-click) 
with commands.
I would like to add something like "Open BASH here..." so if i 
right-click on an
Folder in Explorer i can open a bash shell and it's already cd'ed into 
the path.


I know where the registry must be patched but i struggle around with 
the options to bash.
In the reg-key the windows-variable %L is expanded to the path, but 
where can i include

it so bash will do an cd to it after invocation ?

i tried: bash.exe -i --login -c "cd %L"
but shell will terminate as soon as cd-command is executed :-(

Any hints from you, folks ?


With best regards,

Oliver Geisen
---
Systemadministrator
Kreisboten Verlag Mühlfellner KG
Phone: +49 881/686-63
Fax: +40 881/686-74
Mail: [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: How to give commands to execute after (login)shell invoked

2005-06-17 Thread Markus Schönhaber
Am Freitag, 17. Juni 2005 17:50 schrieb Oliver Geisen:
> there is a neat trick to expand window's context menu (right-click)
> with commands.
> I would like to add something like "Open BASH here..." so if i
> right-click on an
> Folder in Explorer i can open a bash shell and it's already cd'ed into
> the path.

Install the chere package.

Regards
  mks

--
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: inet_pton() error. Does Cygwin support inet_pton()?

2005-06-17 Thread Fernando Barsoba

Thanks for the code to René...! I'll try it right away..!

Thanks again,

Fernando




[EMAIL PROTECTED] wrote:


 If you don't need IPv6 in your application you can add tbe following 
implementation:


 #ifdef __CYGWIN__

 /* From:
 *  UNIX Network Programming: Sockets Introduction
 *  By Andrew M. Rudoff, Bill Fenner, W. Richard Stevens.
 *  Prentice Hall PTR. Feb 27, 2004.
 */
 #define INET_ADDRSTRLEN   16   /* for IPv4 dotted-decimal */

 int inet_pton(int family, const char *strptr, void *addrptr)
 {
if (family == AF_INET) {
struct in_addr in_val;

if (inet_aton(strptr, &in_val)) {
memcpy(addrptr, &in_val, sizeof(struct in_addr));
return (1);
}
return (0);
}
errno = EAFNOSUPPORT;
return (-1);
 }

 const char *inet_ntop(int family, const void *addrptr, char *strptr, 
size_t len)

 {
const u_char *p = (const u_char *) addrptr;

if (family == AF_INET) {
chartemp[INET_ADDRSTRLEN];

snprintf(temp, sizeof(temp), "%d.%d.%d.%d", p[0], p[1], p[2], 
p[3]);

if (strlen(temp) >= len) {
errno = ENOSPC;
return (NULL);
}
strcpy(strptr, temp);
return (strptr);
}
errno = EAFNOSUPPORT;
return (NULL);
 }

 #endif


 I've used this and getaddrinfo() from the postgress port to compile 
clamsmtpd,

 and it works fine.

 HTH,





--
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: Clone cygwin-setup settings from one PC to another

2005-06-17 Thread Max Bowsher

Oliver Geisen wrote:

Hello,

is it possible to find out which packages installed via SETUP.EXE on
one PC and use
this information (selection) to automatically install the same on
another PC ?

e.g. something like:
   cygsetup > mypacks.ini

   setup.exe -install mypacks.ini



Not at all as neatly as this, but after a fashion, sort of:

Save a copy of the /etc/setup/installed.db file, and change all the version 
numbers in it to 0.
Put the modified version of the file into the correct place on the second 
computer before starting setup.


Max.


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



Re: Clone cygwin-setup settings from one PC to another

2005-06-17 Thread Igor Pechtchanski
On Fri, 17 Jun 2005, Max Bowsher wrote:

> Oliver Geisen wrote:
> > Hello,
> >
> > is it possible to find out which packages installed via SETUP.EXE on
> > one PC and use this information (selection) to automatically install
> > the same on another PC ?
> >
> > e.g. something like:
> >cygsetup > mypacks.ini
> >
> >setup.exe -install mypacks.ini
>
> Not at all as neatly as this, but after a fashion, sort of:
>
> Save a copy of the /etc/setup/installed.db file, and change all the version
> numbers in it to 0.
> Put the modified version of the file into the correct place on the second
> computer before starting setup.

Or simply copy the installed.db file, make the package cache available on
the network, do "install from local directory", and set All to
"Reinstall".  There may even be a command-line option to setup to do this.
You'd still need to replicate any changed configuration files, though...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: IE5 settings in setup.exe

2005-06-17 Thread Andrea M
Any idea how I can make it send an user-agent? Otherwise it won't work. Thanks!

On 6/17/05, Markus Schönhaber <[EMAIL PROTECTED]> wrote:
> Am Freitag, 17. Juni 2005 17:32 schrieb Andrea M:
> > I am having problems with the IE5 settings in the setup program (can't
> > get a list of download sites). Does anybody know what user-agent
> > cygwin uses?
> 
> None.
> This is the request/response from my version of setup getting the server-list:
> 
> -snip-
> 
> GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.0
> Host: sources.redhat.com
> 
> HTTP/1.0 200 OK
> Date: Fri, 17 Jun 2005 15:37:41 GMT
> Server: Apache/2.0.46 (Red Hat)
> Last-Modified: Thu, 16 Jun 2005 21:44:24 GMT
> ETag: "2384c3-1b75-c5d81e00"
> Accept-Ranges: bytes
> Content-Length: 7029
> Content-Type: text/plain
> Age: 136
> X-Cache: HIT from Saruman.schoenhaber.de
> X-Cache-Lookup: HIT from Saruman.schoenhaber.de:3128
> Proxy-Connection: close
> 
> # Do not edit - see warning in mirrors.html
> http://www.carfield.com.hk/mirror/sources.redhat.com/cygwin;www.carfield.com.hk;Asia;Hong
> Kong
> [...]
> 
> -snap-
> 
> Regards
>  mks
> 
> --
> 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/



UsageEnvironment.mak:17: *** missing separator. Stop.

2005-06-17 Thread Ross MacGillivray

I am compiling one of the livemedia libraries (live.com), and I am getting the
following error:

E:\livemedia\live\UsageEnvironment>make --makefile=UsageEnvironment.mak
UsageEnvironment.mak:17: *** missing separator.  Stop.

I have seen two explanations for this error
  i.  the line delimitor/paragraph limiter is invalid, e.g. lf instead of crlf
 ii.  there is a tab missing at line 17 

Can some clarify the exact meaning of the error?

Also what is the equivalent in cygwin of the 'rc' resource compiler?

/Ross



--
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: IE5 settings in setup.exe

2005-06-17 Thread Igor Pechtchanski
Ugh, top-posting.  Reformatted.

On Fri, 17 Jun 2005, Andrea M wrote:

> On 6/17/05, Markus Schönhaber <[EMAIL PROTECTED]> wrote:

.  Thanks.

> > Am Freitag, 17. Juni 2005 17:32 schrieb Andrea M:
> > > I am having problems with the IE5 settings in the setup program
> > > (can't get a list of download sites). Does anybody know what
> > > user-agent cygwin uses?
> >
> > None.
> > This is the request/response from my version of setup getting the
> > server-list:
> >
> > -snip-
> >
> > GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.0
> > Host: sources.redhat.com
> >
> > HTTP/1.0 200 OK
> > Date: Fri, 17 Jun 2005 15:37:41 GMT
> > Server: Apache/2.0.46 (Red Hat)
> > Last-Modified: Thu, 16 Jun 2005 21:44:24 GMT
> > ETag: "2384c3-1b75-c5d81e00"
> > Accept-Ranges: bytes
> > Content-Length: 7029
> > Content-Type: text/plain
> > Age: 136
> > X-Cache: HIT from Saruman.schoenhaber.de
> > X-Cache-Lookup: HIT from Saruman.schoenhaber.de:3128
> > Proxy-Connection: close
> >
> > # Do not edit - see warning in mirrors.html
> > http://www.carfield.com.hk/mirror/sources.redhat.com/cygwin;www.carfield.com.hk;Asia;Hong
> > Kong
> > [...]
> >
> > -snap-
> >
> > Regards
> >  mks
>
> Any idea how I can make it send an user-agent? Otherwise it won't work.
> Thanks!

AIUI, the above is when setup uses "Direct Connection".  When "IE5
Settings" is used, setup simply delegates to IE to do what it will --
including sending the User-agent header.  It's been a while since I've
looked at the relevant code, though, so I may be wrong.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
--
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: IE5 settings in setup.exe

2005-06-17 Thread Markus Schönhaber
Am Freitag, 17. Juni 2005 19:57 schrieb Igor Pechtchanski:
> Ugh, top-posting.  Reformatted.
>
> On Fri, 17 Jun 2005, Andrea M wrote:
> > On 6/17/05, Markus Schönhaber <[EMAIL PROTECTED]> wrote:
>
> .  Thanks.
>
> > > Am Freitag, 17. Juni 2005 17:32 schrieb Andrea M:
> > > > I am having problems with the IE5 settings in the setup program
> > > > (can't get a list of download sites). Does anybody know what
> > > > user-agent cygwin uses?
> > >
> > > None.
> > > This is the request/response from my version of setup getting the
> > > server-list:
> > >
> > > -snip-
> > >
> > > GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.0
> > > Host: sources.redhat.com
> > >
> > > HTTP/1.0 200 OK
> > > Date: Fri, 17 Jun 2005 15:37:41 GMT
> > > Server: Apache/2.0.46 (Red Hat)
> > > Last-Modified: Thu, 16 Jun 2005 21:44:24 GMT
> > > ETag: "2384c3-1b75-c5d81e00"
> > > Accept-Ranges: bytes
> > > Content-Length: 7029
> > > Content-Type: text/plain
> > > Age: 136
> > > X-Cache: HIT from Saruman.schoenhaber.de
> > > X-Cache-Lookup: HIT from Saruman.schoenhaber.de:3128
> > > Proxy-Connection: close
> > >
> > > # Do not edit - see warning in mirrors.html
> > > http://www.carfield.com.hk/mirror/sources.redhat.com/cygwin;www.carfiel
> > >d.com.hk;Asia;Hong Kong
> > > [...]
> > >
> > > -snap-
> > >
> > > Regards
> > >  mks
> >
> > Any idea how I can make it send an user-agent? Otherwise it won't work.
> > Thanks!
>
> AIUI, the above is when setup uses "Direct Connection".  When "IE5
> Settings" is used, setup simply delegates to IE to do what it will --
> including sending the User-agent header.  It's been a while since I've
> looked at the relevant code, though, so I may be wrong.

Oh, I didn't consider it might make a difference.
The above snippet was captured with manual setting of "Use HTTP/FTP Proxy:".

On my machine with setup.exe 2.457.2.2 and "Use IE5 Settings" the following 
request is made:

GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.1 
User-Agent: Cygwin Setup 
Host: sources.redhat.com 
Proxy-Connection: Keep-Alive 

Regards
  mks



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



Re: Problem with using stripped cygwin1.dll built from CVS

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 10:30:55AM -0500, Brian Ford wrote:
>On Fri, 17 Jun 2005, Christopher Faylor wrote:
>>On Fri, Jun 17, 2005 at 09:29:48AM -0500, Brian Ford wrote:
>>>I wish I would have known this was possible while working on DWARF 2
>>>debugging.  Everything I read stated: "If it has a section header,
>>>Windows' brain dead loader will load it regardless of section
>>>attributes".  I hope it really works on all supported platforms.
>>
>>It's a documented field in PE's section header, so I don't see why it
>>wouldn't work.  The only brain-dead thing that the loader does is to go
>>ahead and load a section into memory if it is marked as readable or
>>writable as well as noload.
>
>Thanks for the reply.
>
>By it, can I assume you meant IMAGE_SCN_TYPE_NOLOAD?

Actually, I was talking about IMAGE_SCN_TYPE_DISCARDABLE and
IMAGE_SCN_TYPE_REMOVE.

See:
  http://sources.redhat.com/ml/binutils-cvs/2005-06/msg00084.html
and
  http://sources.redhat.com/ml/binutils-cvs/2005-06/msg00087.html

for the binutils changes.

FWIW, MSVC's dumpbin program now says this about the sections:

  .
  .
  .
  SECTION HEADER #B
  .cygheap name
104000 virtual size
149000 virtual address
 0 size of raw data
 0 file pointer to raw data
 0 file pointer to relocation table
 0 file pointer to line numbers
 0 number of relocations
 0 number of line numbers
  C080 flags# section is loaded
   Uninitialized Data
   Read Write

  SECTION HEADER #C
 .stab name
24C138 virtual size
24D000 virtual address
24C200 size of raw data
13A000 file pointer to raw data
 0 file pointer to relocation table
 0 file pointer to line numbers
 0 number of relocations
 0 number of line numbers
   2000800 flags
   Remove   # section is not
   Discardable  # loaded

  SECTION HEADER #D
  .stabstr name
4CE719 virtual size
49A000 virtual address
4CE800 size of raw data
386200 file pointer to raw data
 0 file pointer to relocation table
 0 file pointer to line numbers
 0 number of relocations
 0 number of line numbers
   2000800 flags
   Remove   # section is not
   Discardable  # loaded

cgf

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



Re: POSIX devices

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 08:36:04AM -0700, Brian Dessent wrote:
>Christopher Faylor wrote:
>
>> >This, I believe, is an ancient artifact of an old way that the x11
>> >packages used to work, and you can remove this mount.
>> 
>> I don't believe that this mount is optional.  /usr/X11RT/lib/X11/fonts
>> really does need to be mounted in binary mode.
>
>I was just basing that on a post I read by Alexander, I have no direct
>knowledge on the matter:
>

Ah.  I stand corrected, then.  Sorry.

cgf

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



Re: IE5 settings in setup.exe

2005-06-17 Thread Andrea M
Cywgin might not require a specific broser, but the proxy server
might. Hence, it might block cygwin if it sends an unauthorized
user-agent. I am not sure whether it can block "programs" per se: if
the user agent string is the same as IE's can the proxy recognize it
comes from cygwin?

On 6/17/05, Sean McMahon <[EMAIL PROTECTED]> wrote:
> Isn't there a button on setup.exe where you can specefy a proxy?  I don't know
> what you mean by user agent.  Cygwin doesn't require a specific browser.  I
> usually just use direct connection and that works fine but I'm not going 
> through
> a proxy.  You can just say use IE5 settings also.
> - Original Message -
> From: "Andrea M" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, June 17, 2005 10:45 AM
> Subject: Re: IE5 settings in setup.exe
> 
> 
> Any idea how I can make it send an user-agent? Otherwise it won't work. 
> Thanks!
> 
> On 6/17/05, Markus Schönhaber <[EMAIL PROTECTED]> wrote:
> > Am Freitag, 17. Juni 2005 17:32 schrieb Andrea M:
> > > I am having problems with the IE5 settings in the setup program (can't
> > > get a list of download sites). Does anybody know what user-agent
> > > cygwin uses?
> >
> > None.
> > This is the request/response from my version of setup getting the 
> > server-list:
> >
> > -snip-
> >
> > GET http://sources.redhat.com/cygwin/mirrors.lst HTTP/1.0
> > Host: sources.redhat.com
> >
> > HTTP/1.0 200 OK
> > Date: Fri, 17 Jun 2005 15:37:41 GMT
> > Server: Apache/2.0.46 (Red Hat)
> > Last-Modified: Thu, 16 Jun 2005 21:44:24 GMT
> > ETag: "2384c3-1b75-c5d81e00"
> > Accept-Ranges: bytes
> > Content-Length: 7029
> > Content-Type: text/plain
> > Age: 136
> > X-Cache: HIT from Saruman.schoenhaber.de
> > X-Cache-Lookup: HIT from Saruman.schoenhaber.de:3128
> > Proxy-Connection: close
> >
> > # Do not edit - see warning in mirrors.html
> >
> http://www.carfield.com.hk/mirror/sources.redhat.com/cygwin;www.carfield.com.hk;Asia;Hong
> > Kong
> > [...]
> >
> > -snap-
> >
> > Regards
> >  mks
> >
> > --
> > 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/
> 
>

--
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: POSIX devices

2005-06-17 Thread Bengt-Arne Fjellner

Carlo Florendo wrote:
> Oliver Vecernik wrote:
>
>>Hi all,
>>
>>I'd like to inspect some MBR's from various devices. I have an external
>>Firewire disk (x:), an USB stick (e:) and a flash card (F:, pcmcia).
>>



>>But how do I know the order of device names? It all depends when the
>>devices are plugged on to the system. Is there a command to find out?
>>
>>dd if=/dev/sd? of=/tmp/foo bs=512 count=1
>>
>>
>>
>
> AFAIK, Cygwin does not implement the /dev directory.
>
> I'm afraid there is no cygwin command to find out the order of devices
> plugged to the system although I'd be glad if someone corrects me and
> says that there is.

There is. (or rather will be. I think it might be in the pipeline).
if you want to check it check
http://pinus.tt.ltu.se/~baf/dkoll.tgz
dkoll.c is cygwin source the rest is visual studio
build by make dkoll
dkoll.exe is the compiled cygwin version which gives on my system:

$ ./dkoll
Disk 0  cygwin=/dev/sda
dsig a85300040080
Disksize 18GB
 partlen typ

Disk 1  cygwin=/dev/sdb
dsig a05f20122a744c01
Disksize 74GB
 partlen typ
1   54MB 222 Dell system  Dell 4.1
2   59GB   7 NTFS NTFS
3  502MB  12 FAT 32 (xp)  MSWIN4.1
4   13GB 131 Linux Native ext3 LILO
5  996MB 130 Linux Swap   SWAP

Disk 2  cygwin=/dev/sdc
dsig c282801c8e9ce5bf
Disksize 115GB
 partlen typ
1  115GB 131 Linux Native XFS

Disk 3  cygwin=/dev/sdd
dsig f99e600d8e82ca7b
Disksize 55GB
 partlen typ
1   55GB   7 NTFS NTFS

Disk 4  cygwin=/dev/sde
dsig 7de080005cf52c49
Disksize 2.0GB
 partlen typ
1  2.0GB 131 Linux Native ext2

[EMAIL PROTECTED] ~/dkoll
$
so you get windows disk number. cygwin /ev/sdX disksize and partition size
plus a good guess of what filesystem it has. NOT always perfect.
The partition number is the the same as Y in /dev/sdXY
Hope this helps.

>
> Thank you very much.
>
> Best Regards,
>
> Carlo
>
> --
> Carlo Florendo
> Astra Philippines Inc.
> www.astra.ph

-- 
Bengt-Arne Fjellner
0910-58 53 69



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



Cygwin and firewalls

2005-06-17 Thread Krzysztof Duleba
Hi

I am wondering if there is a firewall that coexists with Cygwin well.
IIRC, there were complaints about Norton software and about some other
firewalls too. What would you recommend me?

I ask because I've never had to use firewall before (my home box is behind
NAT in a secure network) and I have no experience with Windows firewalls.
I've just bought a laptop and a firewall seems to be necessary in this
case.

Regards
Krzysztof Duleba



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



Re: Cygwin and firewalls

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 09:50:07PM +0200, Krzysztof Duleba wrote:
>I am wondering if there is a firewall that coexists with Cygwin well.
>IIRC, there were complaints about Norton software and about some other
>firewalls too. What would you recommend me?
>
>I ask because I've never had to use firewall before (my home box is behind
>NAT in a secure network) and I have no experience with Windows firewalls.
>I've just bought a laptop and a firewall seems to be necessary in this
>case.

This is a good question and, if anyone has a definitive answer, I think
it should go into the FAQ.

cgf

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



Re: Cygwin and firewalls

2005-06-17 Thread Bengt-Arne Fjellner

Krzysztof Duleba wrote:
> Hi
>
> I am wondering if there is a firewall that coexists with Cygwin well.
> IIRC, there were complaints about Norton software and about some other
> firewalls too. What would you recommend me?
>
> I ask because I've never had to use firewall before (my home box is behind
> NAT in a secure network) and I have no experience with Windows firewalls.
> I've just bought a laptop and a firewall seems to be necessary in this
> case.
>
> Regards
> Krzysztof Duleba
>
>

i've been using kerio personal firewall a long time with cygwin. And no 
problems.
check
http://www.kerio.com/kpf_home.html

-- 
Bengt-Arne Fjellner
0910-58 53 69



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



Perl and spreadsheet module

2005-06-17 Thread Juan Carlos Morataya
Hi,
I was tried to run a perl script that makes a call at the Spreadsheet
module, but it didn't work, it display an error message that literaly says
"Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains:
/usr/lib/perl15/5.8/cygwin/usr/lib/perl5/site_perl/5.8/cygwin/usr/lib/perl5/
site_perl/5.8/usr/lib/perl5/..."

Can anyone help me in order to run my script??

Thank you in advance,

Juan Carlos Morataya R.
 Planificación y Control
 EEGSA - IBERDROLA











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



Re: Cygwin and firewalls

2005-06-17 Thread Igor Pechtchanski
On Fri, 17 Jun 2005, Krzysztof Duleba wrote:

> I am wondering if there is a firewall that coexists with Cygwin well.
> IIRC, there were complaints about Norton software and about some other
> firewalls too. What would you recommend me?
>
> I ask because I've never had to use firewall before (my home box is
> behind NAT in a secure network) and I have no experience with Windows
> firewalls. I've just bought a laptop and a firewall seems to be
> necessary in this case.

I've been using Cygwin heavily with no problems for over a year (including
running sshd/httpd, etc) with ZoneLabs Integrity Desktop (our corporate
firewall software).  I've also heard good things said about Kerio Personal
Firewall.  There were some discussions of recommended firewalls in the
past, but I don't have a ready pointer -- perhaps someone else does.

For some reason I thought there was an FAQ entry listing known-good
firewall software, but I can't seem to find it now.  Perhaps it was all in
my imagination...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



Re: Cygwin and firewalls

2005-06-17 Thread Corinna Vinschen
On Jun 17 21:50, Krzysztof Duleba wrote:
> Hi
> 
> I am wondering if there is a firewall that coexists with Cygwin well.
> IIRC, there were complaints about Norton software and about some other
> firewalls too. What would you recommend me?
> 
> I ask because I've never had to use firewall before (my home box is behind
> NAT in a secure network) and I have no experience with Windows firewalls.
> I've just bought a laptop and a firewall seems to be necessary in this
> case.

If you just have purchased it, it has probably Windows XP installed.
Why not just use the system firewall which is part of XP SP2?  It's
fairly simple to use and I had no trouble using it with Cygwin, so far.
It's at least good for a start and it doesn't cost anything extra.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

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



Re: Perl and spreadsheet module

2005-06-17 Thread Igor Pechtchanski
On Fri, 17 Jun 2005, Juan Carlos Morataya wrote:

> Hi,
> I was tried to run a perl script that makes a call at the Spreadsheet
> module, but it didn't work, it display an error message that literaly says
> "Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains:
> /usr/lib/perl15/5.8/cygwin/usr/lib/perl5/site_perl/5.8/cygwin/usr/lib/perl5/
> site_perl/5.8/usr/lib/perl5/..."
>
> Can anyone help me in order to run my script??

IIRC, the Spreadsheet-WriteExcel bundle doesn't come pre-installed with
Cygwin perl.  Did you install it?  If not, do so via CPAN (type "cpan" at
the bash prompt, then use the "help" facility for more info or see
).  BTW, this answer is in no way Cygwin-specific,
except the fact that the bundle may be Win32-specific and will need to be
ported to Cygwin.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



Re: Cygwin and firewalls

2005-06-17 Thread Aaron Gray

I am wondering if there is a firewall that coexists with Cygwin well.
IIRC, there were complaints about Norton software and about some other
firewalls too. What would you recommend me?

I ask because I've never had to use firewall before (my home box is 
behind

NAT in a secure network) and I have no experience with Windows firewalls.
I've just bought a laptop and a firewall seems to be necessary in this
case.


If you just have purchased it, it has probably Windows XP installed.
Why not just use the system firewall which is part of XP SP2?  It's
fairly simple to use and I had no trouble using it with Cygwin, so far.
It's at least good for a start and it doesn't cost anything extra.


Windows XP SP2 firewall is very good and should not interfere with Cygwin.

I have also been using Norton Internet Security firewall also with no 
problems with Cygwin.


Aaron



--
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: Perl and spreadsheet module

2005-06-17 Thread Igor Pechtchanski
On Fri, 17 Jun 2005, Igor Pechtchanski wrote:

> On Fri, 17 Jun 2005, Juan Carlos Morataya wrote:
>
> > Hi,
> > I was tried to run a perl script that makes a call at the Spreadsheet
> > module, but it didn't work, it display an error message that literaly says
> > "Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains:
> > /usr/lib/perl15/5.8/cygwin/usr/lib/perl5/site_perl/5.8/cygwin/usr/lib/perl5/
> > site_perl/5.8/usr/lib/perl5/..."
> >
> > Can anyone help me in order to run my script??
>
> IIRC, the Spreadsheet-WriteExcel bundle doesn't come pre-installed with
> Cygwin perl.  Did you install it?  If not, do so via CPAN (type "cpan" at
> the bash prompt, then use the "help" facility for more info or see
> ).  BTW, this answer is in no way Cygwin-specific,
> except the fact that the bundle may be Win32-specific and will need to be
> ported to Cygwin.
>   Igor

Actually, I take the last sentence back.  According to "CPAN testers",
Spreadsheet-WriteExcel works just fine on Cygwin (or at least passes the
complete testsuite).  BTW, the CPAN.org page for the bundle also contains
very detailed installation instructions (see
).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



Re: Cygwin and firewalls

2005-06-17 Thread Krzysztof Duleba
Corinna Vinschen wrote:

> > I am wondering if there is a firewall that coexists with Cygwin well.
> > IIRC, there were complaints about Norton software and about some other
> > firewalls too. What would you recommend me?
> >
> > I ask because I've never had to use firewall before (my home box is
behind
> > NAT in a secure network) and I have no experience with Windows
firewalls.
> > I've just bought a laptop and a firewall seems to be necessary in this
> > case.
>
> If you just have purchased it, it has probably Windows XP installed.

It doesn't - I'll get my copy when our MSDN Academic Alliance coordinator
comes back from abroad next week.

> Why not just use the system firewall which is part of XP SP2?  It's
> fairly simple to use and I had no trouble using it with Cygwin, so far.
> It's at least good for a start and it doesn't cost anything extra.

Then I'll give it a try.

Thanks for all answers.

Regards
Krzysztof Duleba



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



Re: Cygwin and firewalls (FAQ alert)

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 11:01:28PM +0200, Krzysztof Duleba wrote:
>Corinna Vinschen wrote:
>>>I am wondering if there is a firewall that coexists with Cygwin well.
>>>IIRC, there were complaints about Norton software and about some other
>>>firewalls too.  What would you recommend me?
>>>
>>>I ask because I've never had to use firewall before (my home box is
>>>behind NAT in a secure network) and I have no experience with Windows
>>>firewalls.  I've just bought a laptop and a firewall seems to be
>>>necessary in this case.
>>
>>If you just have purchased it, it has probably Windows XP installed.
>
>It doesn't - I'll get my copy when our MSDN Academic Alliance
>coordinator comes back from abroad next week.
>
>>Why not just use the system firewall which is part of XP SP2?  It's
>>fairly simple to use and I had no trouble using it with Cygwin, so far.
>>It's at least good for a start and it doesn't cost anything extra.
>
>Then I'll give it a try.
>
>Thanks for all answers.

Joshua, do you think you could add an entry about this concerning what
seems to work and what doesn't seem to work?

Although, I thought I recalled that Norton's firewall didn't work too
well.

cgf

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



Re: Cygwin and firewalls (FAQ alert)

2005-06-17 Thread Larry Hall
At 05:07 PM 6/17/2005, you wrote:
>On Fri, Jun 17, 2005 at 11:01:28PM +0200, Krzysztof Duleba wrote:
>>Corinna Vinschen wrote:
I am wondering if there is a firewall that coexists with Cygwin well.
IIRC, there were complaints about Norton software and about some other
firewalls too.  What would you recommend me?

I ask because I've never had to use firewall before (my home box is
behind NAT in a secure network) and I have no experience with Windows
firewalls.  I've just bought a laptop and a firewall seems to be
necessary in this case.
>>>
>>>If you just have purchased it, it has probably Windows XP installed.
>>
>>It doesn't - I'll get my copy when our MSDN Academic Alliance
>>coordinator comes back from abroad next week.
>>
>>>Why not just use the system firewall which is part of XP SP2?  It's
>>>fairly simple to use and I had no trouble using it with Cygwin, so far.
>>>It's at least good for a start and it doesn't cost anything extra.
>>
>>Then I'll give it a try.
>>
>>Thanks for all answers.
>
>Joshua, do you think you could add an entry about this concerning what
>seems to work and what doesn't seem to work?
>
>Although, I thought I recalled that Norton's firewall didn't work too
>well.

Is this relative to Cygwin with or without X?  I haven't seen much in 
the way of complaints and/or problems that were determined to be 
associated with "faulty" firewalls beyond those mentioned on the 
cygwin-xfree list.  But that doesn't mean I didn't miss something.


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



Sensitive/critical bug found?

2005-06-17 Thread Andreas Eibach

It looks that I have.
First of all, ALL version numbers of the tools I used:

GNU find version 4.2.11 (cvs)
GNU xargs version 4.2.11 (cvs)
glib version 2.6.5 (the bug might also appear with other packages)

Assumed I am in ~/devel.

In devel, I do a 

tar jxvf glib-2.6.5.tar.bz2

and end up with a glib-2.6.5/ subdirectory. (The problems building glib are NOT 
supposed to be discussed in this thread)

Now let's look for a specific string:

$ find glib-2.6.5 -name '*' | xargs grep -i 'threads_got_initialized' > out1.log

Works! out1.log is a few kBytes big, and shows the matches I wanted.

Now let's do it a little differently:

$ cd glib-2.6.5
$ find . -name '*' | xargs grep -i 'threads_got_initialized' > out2.log

ATTENTION. out2.log will grow and grow ... and grew more than 2 GB here, until 
I got a "No space left on device".

$ find . -name '*' | xargs grep -i 'threads_got_initialized' | tee out2.log

works, though.

Can anyone of you reproduce this behavior?

-Andreas



_
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179




--
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: Sensitive/critical bug found?

2005-06-17 Thread Igor Pechtchanski
On Fri, 17 Jun 2005, Andreas Eibach wrote:

> It looks that I have.
> First of all, ALL version numbers of the tools I used:
>
> GNU find version 4.2.11 (cvs)
> GNU xargs version 4.2.11 (cvs)
> glib version 2.6.5 (the bug might also appear with other packages)
>
> [snip]
> $ cd glib-2.6.5
> $ find . -name '*' | xargs grep -i 'threads_got_initialized' > out2.log
>
> ATTENTION. out2.log will grow and grow ... and grew more than 2 GB here,
> until I got a "No space left on device".

, and not Cygwin-specific, either.  Of
course grep would look for "threads_got_initialized" in every file in the
current directory, *including out2.log*!  And it'll keep appending the
results to that same out2.log.

> $ find . -name '*' | xargs grep -i 'threads_got_initialized' | tee out2.log
>
> works, though.
>
> Can anyone of you reproduce this behavior?

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

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: Sensitive/critical bug found?

2005-06-17 Thread Andreas Eibach


cygwin@cygwin.com schrieb am 18.06.05 00:41:39:
> > $ find . -name '*' | xargs grep -i 'threads_got_initialized' > out2.log
> >
> > ATTENTION. out2.log will grow and grow ... and grew more than 2 GB here,
> > until I got a "No space left on device".
> 
> , and not Cygwin-specific, either.
*grin*. This fits.
>  Of
> course grep would look for "threads_got_initialized" in every file in the
> current directory, *including out2.log*!  And it'll keep appending the
> results to that same out2.log.

*bangs head*
Ar...and I got unix experience since about 10 years now!
But it's always that simple, ultra-primitive things that cause these sorts of 
"deadlocks" (which are remotely related to that, I think :))

Many thanks.
$ find . -name '*.[ch]' | xargs grep -i 'threads_got_initialized' > out2.log

"fixed" (laugh) this.

-Andreas
_
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179




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



Installation issues (newbie)

2005-06-17 Thread David Masterson
I used to use Cygwin a long time ago and am now coming back to it.

My setup:

*   Dell Precision Workstation 370
*   MS-Windows XP Pro v5.1.2600

Step 1: Install Cygwin

*   I used setup.exe to first download all of Cygwin to my local hard
drive.  I do this so that, if I install it a few times, I don't have to hit
the Internet after the first time.  Somewhat faster.
*   After downloading everything, I used setup.exe to install the
Default.  A couple of times, this gave me errors in the postinstall steps
about some DLL, but it didn't repeat consistently, so...
*   After I installed, I brought up Bash and got the usual message about
/etc/passwd & /etc/group.  I used mkpasswd and mkgroup to fill them in.
*   "Default" (I believe) doesn't install MAN pages or editors, so
figuring out what mkpasswd/mkgroup did and/or adjusting it is kind of
difficult.  This should be fixed or documented better.

Step 2: Get an X server working

*   "Default" doesn't install any X, so I reran setup.exe to do an "All"
install (I have room).  This got me a "Cygwin/X" menu in the Start menu list,
but didn't provide any obvious way of starting an X server.
*   Suggestion: Have setup.exe add an icon for "startxwin.bat" to the
Desktop.  I manually did that.
*   Double-clicking startxwin.bat brings up an X server and xterm with
the root window hidden.  Xclock also seems to work properly.

Step 3: Get an editor running

*   Starting "emacs" from the xterm window brings up emacs, but it
immediately crashes when you try to do anything in it.
*   Starting "xemacs" from the xterm window seems a little better as you
can do things in it, but it crashes when you try to exit from XEmacs.
*   I then did an "xhost +" to disable access control.
*   Running "emacs" from an RHEL3 system with the display pointed at my
Cygwin system brought up a window, but immediately crashed.
*   Running "xemacs" from the RHEL3 system with the display pointed to my
Cygwin system worked much better and seemed normal (most times!).  I tested
this a few times and XEmacs did crash once.

So what's wrong with the X server in Cygwin?  Since I'm just getting going, I
posted this to the cygwin mailing list -- later I may move to the
cygwin-xfree mailing list.

David Masterson


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



Re: Installation issues (newbie)

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 04:43:02PM -0700, David Masterson wrote:
>Step 2: Get an X server working
>
>*  "Default" doesn't install any X, so I reran setup.exe to do an "All"
>install (I have room).  This got me a "Cygwin/X" menu in the Start menu list,
>but didn't provide any obvious way of starting an X server.
>*  Suggestion: Have setup.exe add an icon for "startxwin.bat" to the
>Desktop.  I manually did that.

You should probably make this suggestion to the people who are responsible
for X, i.e., the cygwin-xfree mailing list.

cgf

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



Re: UsageEnvironment.mak:17: *** missing separator. Stop.

2005-06-17 Thread Gerrit P. Haase

Ross MacGillivray wrote:

I am compiling one of the livemedia libraries (live.com), and I am getting the
following error:

E:\livemedia\live\UsageEnvironment>make --makefile=UsageEnvironment.mak
UsageEnvironment.mak:17: *** missing separator.  Stop.

I have seen two explanations for this error
  i.  the line delimitor/paragraph limiter is invalid, e.g. lf instead of crlf
 ii.  there is a tab missing at line 17 


Can some clarify the exact meaning of the error?


The secondÖ missing tab.


Also what is the equivalent in cygwin of the 'rc' resource compiler?


windres?

Gerrit
--
=^..^=


--
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: Perl and spreadsheet module

2005-06-17 Thread Gerrit P. Haase

Juan Carlos Morataya wrote:


Hi,
I was tried to run a perl script that makes a call at the Spreadsheet
module, but it didn't work, it display an error message that literaly says
"Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains:
/usr/lib/perl15/5.8/cygwin/usr/lib/perl5/site_perl/5.8/cygwin/usr/lib/perl5/
site_perl/5.8/usr/lib/perl5/..."

Can anyone help me in order to run my script??


Spreadsheet::WriteExcel works great, I use it every day several times.
It is pure perl and works everywhere where you have perl.


Gerrit
--
=^..^=

--
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: Any chance to get Apache 2.0.xx working on cygwin?

2005-06-17 Thread Gerrit P. Haase

Andreas,

may I point you to the thread with the subject:

Date: 04-10-31 14:37
Subject: httpd-2.0.52 (Apache2) testers wanted / maintainer searched

-> http://www.cygwin.com/ml/cygwin/2004-10/msg01447.html

My server is not up, I had a crash and all the files below the server
root were lost, I hope the build tree was not deleted and I'll find the
it, if you are interested I would send you the files.  Maybe somone has
mirrored it?  Max or Jon may have copies?


Gerrit
--
=^..^=

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



Re: cygwin.bat fails with "WFMO failed waiting for cygthread 'WnetGetResourceInformation'

2005-06-17 Thread Christopher Faylor
On Fri, Jun 10, 2005 at 10:30:53AM +0200, Corinna Vinschen wrote:
>On Jun  6 11:39, Tim Hart wrote:
>> All,
>> 
>> My XP machine is currently unable to connect to my Windows domain before 
>> logging in. Windows uses cached information to accept my domain login. I 
>> then VPN to my domain, and life is good.
>> 
>> If my VPN connection is established, then Cygwin works just fine. If, 
>> however, I am not connected to my VPN, then I see the message:
>> 
>> C:\cygwin\bin\bash.exe (1672): *** WFMO failed waiting for cygthread 
>> 'WnetGetResourceInformation'
>
>Could you please try the same layout you had when this error occured
>with the latest snapshot DLL from http://cygwin.com/snapshots/, please?
>Even if it doesn't solve the problem, it has an improved debugging
>output which should help us to see why this occurs.

I think I fixed this problem a couple of days ago so it should no longer
be an issue.

FYI,
cgf

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



Re: bash page fault on Win98SE when running non-Cygwin programs

2005-06-17 Thread Christopher Faylor
On Thu, Jun 09, 2005 at 03:55:19PM -0400, [EMAIL PROTECTED] wrote:
>When running some non-Cygwin programs from bash (seems to be mostly a
>problem with 16-bit programs, but also some 32-bit programs), bash gets
>an invalid page fault in KERNEL32.DLL and pops up a fault dialog.

Corinna managed to narrow down the problem with 16-bit programs so there
will be a fix in the next snapshot (and eventually in 1.5.18) but
without specific information about failing 32-bit programs there will be
no fix forthcoming for that problem.  Since all of cygwin consists of
32-bit programs, this problem cannot be too prevalent.

Please try the 2005-Jun-18 snapshot when it eventually shows up at
.

In case it isn't obvious, this is a Windows 98/Me bug, not a Cygwin bug.
That hardly matters, since we still have to deal with it, but I thought
I should mention this fact in the interests of full disclosure.

cgf

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



Re: bash page fault on Win98SE when running non-Cygwin programs

2005-06-17 Thread Christopher Faylor
On Fri, Jun 17, 2005 at 09:49:39PM -0400, Christopher Faylor wrote:
>On Thu, Jun 09, 2005 at 03:55:19PM -0400, [EMAIL PROTECTED] wrote:
>>When running some non-Cygwin programs from bash (seems to be mostly a
>>problem with 16-bit programs, but also some 32-bit programs), bash gets
>>an invalid page fault in KERNEL32.DLL and pops up a fault dialog.
>
>Corinna managed to narrow down the problem with 16-bit programs so there
>will be a fix in the next snapshot (and eventually in 1.5.18) but
>without specific information about failing 32-bit programs there will be
>no fix forthcoming for that problem.  Since all of cygwin consists of
>32-bit programs, this problem cannot be too prevalent.
>
>Please try the 2005-Jun-18 snapshot when it eventually shows up at
>.

Sorry.  I shouldn't have tried to second-guess the snapshot process.

(Ingredients of the snapshot process include an unknown glowing green
substance which fell to Earth, presumably from outer space.

Do not taunt the snapshot process...)

The 2005-Jun-17 snapshot contains the fix and, if there is a 2005-Jun-18
snapshot it will also have the fix.

cgf

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



Perhaps a silly question or two

2005-06-17 Thread G.A.L.
(1) I've installed cygwin and am building using the C++ compiler - in order
to get code using the STL to build, do I have to install the Standard
Template Library in addition to the C++ compiler? I ask because it doesn't
appear that I can get my STL code calls to build.
(2) More of a compiler question - does my resulting C++ executable require
any run time libraries? I ask because I'd like to know what (if any)
libraries need to be installed on a target system.

Thanks in advance for your time and patience.





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



How to write minimal program using GD library

2005-06-17 Thread Siegfried Heintze
I'm looking at the GD documentation (a C graphics library) and it pointed me
to a simple minimal C program. I cut and pasted this. See below.

I cannot get it to work, however, with g++ or msvc v7. When I follow the
directions with gcc, it compiles and links fine but when I try to run the
resulting program, I get the following error:

This application has failed to start because cygXpm-4.dll was not found.
Re-installing the application may fix this problem.

I've downloaded nearly the entirety of Cygwin and I cannot find such a dll.
How do I make this minimal program work?

When linking with C libraries downloaded as part of Cygwin, do I have to do
anything special? The documentation says no. I would guess that gcc
automatically knows to look in C:\cygwin\lib -- is this correct?


Thanks
Siegfried


/***
 *  Begin commands to execute this file using g++ with bash
 *  gcc gddemo.c -o gddemo.exe -lgd
 *  cygpath gddemo.exe 
 *  ./gddemo.exe 

Re: Perhaps a silly question or two

2005-06-17 Thread Brian Dessent
"G.A.L." wrote:

> (1) I've installed cygwin and am building using the C++ compiler - in order
> to get code using the STL to build, do I have to install the Standard
> Template Library in addition to the C++ compiler? I ask because it doesn't
> appear that I can get my STL code calls to build.

No.  The library is included in the gcc-g++ package, which you
presumably already have if you are trying to compile with g++.  (On a
related note, this is precisely why we ask that you provide the output
of cygcheck in your problem report so that we don't have to guess about
what you may or may not have installed.)  You should post an actual
example of what you are trying to compile, the exact command you are
using to compile, and the result.  We are not mind readers and cannot
help without details.

> (2) More of a compiler question - does my resulting C++ executable require
> any run time libraries? I ask because I'd like to know what (if any)
> libraries need to be installed on a target system.

If you compile with Cygwin's gcc/g++ then your binary will depend on
cygwin1.dll, and probably many other aspects of the Cygwin environment,
depending on what functions you call.  When I say "aspects of the Cygwin
environment", this can mean many things: DLLs, regular files (such as
/usr/share/zoneinfo/* or /etc/passwd), mounts, etc.  One example is
calling the system() call: this will require that /bin be mounted and
that there be a sh.exe in that path, since system() calls "/bin/sh -c
command".  So if your program used this call, it would not be sufficient
just to package yourbinary.exe and cygwin1.dll and give it to someone. 
For this reason it's usually better just to have the person install
Cygwin if you want to distribute a cygwin binary.  You've got to
remember that Cygwin emulates a full unix/posix environment, and this
often extends beyond just being a library.

You can see what DLLs a binary depends on with the cygcheck command. 
Your binary must also be distributed under the terms of the GPL or
another OSI approved license if it depends on cygwin1.dll.  This is the
price that you pay for taking advantage of the posix emulation layer
that Cygwin provides.

If you wish to write native windows binaries that have no dependency on
cygwin1.dll nor any particular licensing restrictions, then you need to
use mingw.  If you go to www.mingw.org you can read about the project
and download their binaries.  Alternatively, since the "cygwin" and
"mingw" flavors of gcc are so similar there is a shortcut that you can
use to compile using the mingw environment under Cygwin.  Install the
appropriate gcc-mingw-* packages and use the -mno-cygwin flag when
compiling.

But you must always keep in mind that the mingw environment is not
called "minimalist" for nothing.  You are more or less limited to
calling functions in the Win32 API or the Microsoft C runtime library
(MSVCRT*.dll) that exists on all windows systems.  If the code that
you're building is is written to use unix/posix functions not part of
the C standard library, you will either have to make it a Cygwin program
(with the gotchas mentioned above), or rewrite it to use native win32
APIs.

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: How to write minimal program using GD library

2005-06-17 Thread Brian Dessent
Siegfried Heintze wrote:

> I cannot get it to work, however, with g++ or msvc v7. When I follow the

I very much doubt that you will be able to use Cygwin libraries with
MSVC, unless you know precisely what you're doing.

> directions with gcc, it compiles and links fine but when I try to run the
> resulting program, I get the following error:
> 
> This application has failed to start because cygXpm-4.dll was not found.
> Re-installing the application may fix this problem.

This means that the DLL is either not installed or is not in the path. 
Windows has a specific search order for a needed DLL, which in most
cases means it must be in the same directory as the .exe or in the
PATH.  (Search MSDN for LoadLibrary for the details.)

The cygwin package search page at  will
easily show you that this DLL is part of the xorg-x11-bin-dlls package
and that the DLL is installed into /usr/X11R6/bin.  If you have the
package installed then you need to ensure that /usr/bin and
/usr/X11R6/bin are both in the PATH.  If you run your program from a
bash prompt then this should already be the case, but if you try to run
the program outside of that you will need to add the paths (in Windows
form, not as /usr/bin) to your system PATH variable explicitly.

Note that because of this Windows requirement that a DLL be in the PATH
or the directory of the .exe, that the actual DLLs for libraries (e.g.
cygfoo.dll) are placed under /usr/bin, whereas the import libraries
(e.g. libfoo.dll.a) that are used for linking are placed in /usr/lib
which is where the compiler searches for libraries on a normal unix-like
system.

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/