Pending packages status

2003-02-12 Thread Pavel Tsekov
1. grace

date   : 25 Nov 2002
version: 5.1.10-1
status : not reviewed
notes  : http://cygwin.com/ml/cygwin-apps/2002-11/msg00322.html
votes  : 2 (Lapo and Robert)
url: http://www.scytek.de/cygwin/grace-5.1.10-1.tar.bz2
 http://www.scytek.de/cygwin/grace-5.1.10-1-src.tar.bz2
 http://www.scytek.de/cygwin/setup.hint

2. nfs-server

date   : 09 Dec 2002
version: 2.2.47-1
status : updated package is available (see the notes section for a
 list of bugfixes); the server cannot export virtual 
 directories like /cygdrive, /proc, etc (Cygwin needs 
 fixing for this to work)
notes  : http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00113.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00072.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00109.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00211.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00133.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00117.html
 http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00120.html
 http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00161.html
 http://www.cygwin.com/ml/cygwin/2003-01/msg00885.html
votes  : 4 (Christopher, Corinna, Hack and Sergey)
url: 
http://www.oneparticularharbor.net/cygwin/nfs-server/nfs-server-2.2.47-1.tar.bz2
 
http://www.oneparticularharbor.net/cygwin/nfs-server/nfs-server-2.2.47-1-src.tar.bz2
 http://www.oneparticularharbor.net/cygwin/nfs-server/setup.hint

3. LPRng

date   : 21 Jan 2003
version: 3.8.19-1
status : reviewed; updated package available
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00215.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00061.html
votes  : 1 (Joshua)
url: https://www.as.cmu.edu/~geek/LPRng/LPRng-3.8.19-1.tar.bz2
 https://www.as.cmu.edu/~geek/LPRng/LPRng-3.8.19-1-src.tgz
 https://www.as.cmu.edu/~geek/LPRng/setup.hint

4. ifhp

date   : 21 Jan 2003
version: 3.5.10-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00215.html
votes  : 1 (Joshua)
url: https://www.as.cmu.edu/~geek/ifhp/ifhp-3.5.10-1.tar.bz2
 https://www.as.cmu.edu/~geek/ifhp/ifhp-3.5.10-1-src.tar.bz2
 https://www.as.cmu.edu/~geek/ifhp/setup.hint

5. TCM

date   : 27 Jan 2003
version: 2.20-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00299.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00100.html
votes  : 2 (Christopher and Lapo)
url: http://home.in.tum.de/~boesswet/tcm-2.20-1.tar.bz2
 http://home.in.tum.de/~boesswet/tcm-2.20-1-src.tar.bz2
 http://home.in.tum.de/~boesswet/setup.hint

6. par

date   : 04 Feb 2003
version: 1.52-1
status : reviewed; ready to upload once it gets the votes
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00040.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00062.html
votes  : 1 (Joshua)
url: http://www.lapo.it/tmp/par-1.52-1.tar.bz2
 http://www.lapo.it/tmp/par-1.52-1-src.tar.bz2




Re: NFS server (final?)

2003-02-12 Thread Pavel Tsekov
Hello,

I see in the event viewer entries like this coming from the nfs daemon:

Unable to seteuid(0): Invalid argument

I have a single directory exported - /home/ptsekov. The line from 
/etc/exports looks like this:

/home/ptsekov myhost(rw,map_static=/etc/nfs/ptsekov.map)

The contents of /etc/nfs/ptsekov.map look like this:

$ cat /etc/nfs/ptsekov.map
uid 0-499 -
uid 500 1000
gid 0-499 -
gid 500 513

500 is the user id for the user 'ptsekov' on the linux workstation where 
I'm mounting the exported dir.

On the linux workstation I've arranged for the user 'ptsekov' to be able 
to mount this directory by himself i.e. the user 'ptsekov' issues the 'mount'
command and not the 'root' user.

Is it ok ?

On Tue, 11 Feb 2003, Robb, Sam wrote:

 All,
 
   I've tracked down a last couple of annoyances with the
 NFS server (at least under W2K).
 
   Using the current version, I am able to export any real
 files that exist under the Cygwin root.  Virtual directories
 (/cygdrive, /proc, /dev, etc.) cannot be exported, though
 there is a workaround documented in the README that explains
 how to export a /cygdrive path.
 
   Unless someone voices objections, I consider this version
 ready for an initial release.




RE: [ITP] rebase

2003-02-12 Thread Ralf Habacker

 Your guard:

 (char *)relocp  (char *)relocs + size

 wasn't tight enough.

 My version:

 (char *)relocp-SizeOfBlock  (char *)relocs + size

 seems to be.


What was the problem with this guard: Does it not fix the last entry of a
relocation block ?

Ralf





Re: [ITP] rebase

2003-02-12 Thread Jason Tishler
Ralf,

On Wed, Feb 12, 2003 at 01:48:09PM +0100, Ralf Habacker wrote:
  Your guard:
 
  (char *)relocp  (char *)relocs + size
 
  wasn't tight enough.
 
  My version:
 
  (char *)relocp-SizeOfBlock  (char *)relocs + size
 
  seems to be.
 
 
 What was the problem with this guard:

To which guard are you referring?  Mine or yours?

 Does it not fix the last entry of a relocation block ?

I'm concerned that my guard might have an off-by-one error and miss the
last entry.  Is there an easy way to check this?

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6



RE: NFS server (final?)

2003-02-12 Thread Robb, Sam
Pavel,

  As always, thanks for testing :-)

 Hello,
 
 I see in the event viewer entries like this coming from the 
 nfs daemon:
 
 Unable to seteuid(0): Invalid argument

Are you running nfsd as a service, or as a user process?
 
 On the linux workstation I've arranged for the user 'ptsekov' 
 to be able 
 to mount this directory by himself i.e. the user 'ptsekov' 
 issues the 'mount'
 command and not the 'root' user.
 
 Is it ok ?

Can you explain the details of how you set this up on your
linux box?  I've not done this before, and I'd like to be
able to try and reproduce your environment.

-Samrobb



RE: NFS server (final?)

2003-02-12 Thread Robb, Sam
   Unable to seteuid(0): Invalid argument

Grrr... I've been completely unable to reproduce this
problem.  The only difference seems to be that I am
logged in to my W2K machine as a domain user, while
it looks like you're logged in locally.

Perhaps one of the gurus has an idea as to why seteuid(0)
would fail?  It should switch over the security token
to that of the Administrator account, yes?

-Samrobb






Re: NFS server (final?)

2003-02-12 Thread Jason Tishler
Samrobb,

On Wed, Feb 12, 2003 at 02:25:02PM -0500, Robb, Sam wrote:
Unable to seteuid(0): Invalid argument
 
 Perhaps one of the gurus has an idea as to why seteuid(0) would fail?

Did you handle treating the uid of 18 (i.e., LocalSystem) under Cygwin
the same as uid of 0 (i.e., root) under Unix during the porting process?

 It should switch over the security token to that of the Administrator
 account, yes?

No, seteuid(500) does that.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6



Re: NFS server (final?)

2003-02-12 Thread Corinna Vinschen
On Wed, Feb 12, 2003 at 02:25:02PM -0500, Robb, Sam wrote:
Unable to seteuid(0): Invalid argument
 
 Grrr... I've been completely unable to reproduce this
 problem.  The only difference seems to be that I am
 logged in to my W2K machine as a domain user, while
 it looks like you're logged in locally.
 
 Perhaps one of the gurus has an idea as to why seteuid(0)
 would fail?  It should switch over the security token
 to that of the Administrator account, yes?

Only if you changed the uid of the Administrator account to 0 by hand.

If you actually switch the user context, the application must not rely
on having uid 0 == root or having uid 0 at all.  

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



RE: NFS server (final?)

2003-02-12 Thread Robb, Sam
 Only if you changed the uid of the Administrator account to 0 by hand.
 
I have *not* done anything on my system to add a root user or any user
with uid 0; and yet, seteuid(0) apparently succeeds.

 If you actually switch the user context, the application must not rely
 on having uid 0 == root or having uid 0 at all.  

What's the recommended way of dealing with this?  The code in the server
does something along the lines of:

seteuid(ROOT_UID)
setegid(gid)
setgroups(len, gids)
seteuid(uid)

(Error checking obviously ignored.)  From what I can tell in the Cygwin
docs, the seteuid(ROOT_UID) call shouldn't be neccesary:

  Since Cygwin release 1.3.3, applications having the Create a process
   level token user right can switch user context without giving a
   password by just calling the usual setuid, seteuid, setgid and
   setegid functions. This is typically only given to the SYSTEM user.

So, is the answer to remove the seteuid(ROOT_UID) call, and document
the requirement that the server be run under an account with the Create
a process level token right?

-Samrobb



Re: FW: file manager xfm, or similar for xfree86 under cygwin

2003-02-12 Thread
Hi, Cary,

Hello, I am trying to locate a graphical file manager for Xfree86 running
under cygwin

I have tried to compile xfm 1.4.3 and got it working under xfree86 under
cygwin, but it does not allow access to non cygwin directories.

It complains saying Directory is Unreadable.

/cygdrive doesn't show up in the root, so I created a symlink with:


ln -s /cygdrive/c /cygdrivec


I'm guessing it has trouble following a symlink from /cydrivec to
/cygdrive/c/

 

Can anyone suggest a working file manager?

You may try gnome-commander, if you like the style of NC and MC (like me, but I can't 
bare gmc :-).
You can find gnome-commander-0.9.8 for Cygwin GNOME at 
http://www.sourceforge.net/projects/cygnome
But this will pull in a lot of GNOME libraries. 
At least you need the cygnome-libs-1.4b1-3, gnome-vfs-1.0.5-patch package.
Read more info on intallation at http://cygnome.sourceforge.net/install.html.

 

Thanks.

 

If anyone wants the Imake.options I can post or email.

 

Does anyone know where I can find a compiled binary for xfm or a similar
client.

 

I don't want to have to install the kde files or xfce.

 

My plan is to use cygwin / xfree86 via ssh to do remote support of windows
machines.

 

Thanks for any help.

 

= = = = = = = = = = = = = = = = = = = =





Using Multiple X Windows

2003-02-12 Thread Samir Gupta
Hello,

I have a question which I could not find the answer to in searching the
archives...

I am trying to make window management in cygwin/xfree the same way I have it
set up in exceed.  I start up tcsh in exceed with my xterm command which
opens up an x window with the tcsh prompt.  From this prompt, every time I
type emacs , it will bring up a new xwindow with the emacs program.

I cannot figure out how to do this in cygwin/xfree.  From my tcsh prompt, I
type xwin to start the xfree window.  Now, every time I type emacs , it
opens up an emacs in the same xfree window.  I am wondering how I can get it
to open up a separate xfree window each time I type emacs  as I can in
exceed?

I tried messing around with the xwin -screen option, but I could not come up
with anything...

Thanks





multiple xpm instances

2003-02-12 Thread Paul Kirschner
In compiling an X11 application I found multiple instances of xpm. One
version comes from XFree86-prog-4.2.0-1 (dated 1/21/2002 and in
/usr/X11R6/{lib,include}) and the other from xpm-4.0.0-2 (dated 12/8/2000
and in /usr/{lib,include)). cygcheck -c shows the xpm installation. (I
also have the xpm-nox version installed which is OK.)

Is the XFree86-prog the correct version to use? Should I remove the older
one? How do I remove it properly?

thanks...

-- 

Paul Kirschner#include disclaimer.std
Systems Department
United Technologies Research Center
[EMAIL PROTECTED]
(860)610-7119




Re: multiple xpm instances

2003-02-12 Thread Andrew Markebo
/ Paul Kirschner [EMAIL PROTECTED] wrote:
| In compiling an X11 application I found multiple instances of xpm. One
| version comes from XFree86-prog-4.2.0-1 (dated 1/21/2002 and in
| /usr/X11R6/{lib,include}) and the other from xpm-4.0.0-2 (dated 12/8/2000
| and in /usr/{lib,include)). cygcheck -c shows the xpm installation. (I
| also have the xpm-nox version installed which is OK.)
|
| Is the XFree86-prog the correct version to use? Should I remove the older
| one? How do I remove it properly?

I suppose it is the package xpm-nox you see in /usr, basically a
version not needing X, and is provided if you just need to do some
conversions (is it gs?) and don't want the X-servers..

How to remove it.. uninstall it through setup :-) Hmm weird that it
isn't updated, there seems to be a 4.2.0 'out'.

/Andy

-- 
 The eye of the beholder rests on the beauty!




RE: multiple xpm instances

2003-02-12 Thread Kirschner, Paul E. UTRC

The xpm package I have is NOT listed in the setup (so I cannot uninstall or
reinstall from there). It is NOT listed as part of the xpm-nox package.

Could it be a remnant from the pre-cygwin setup days when we separately
downloaded tgz files for scripted installs?

-Original Message-
From: Andrew Markebo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 3:47 PM
To: [EMAIL PROTECTED]
Subject: Re: multiple xpm instances


/ Paul Kirschner [EMAIL PROTECTED] wrote:
| In compiling an X11 application I found multiple instances of xpm. One
| version comes from XFree86-prog-4.2.0-1 (dated 1/21/2002 and in
| /usr/X11R6/{lib,include}) and the other from xpm-4.0.0-2 (dated 12/8/2000
| and in /usr/{lib,include)). cygcheck -c shows the xpm installation. (I
| also have the xpm-nox version installed which is OK.)
|
| Is the XFree86-prog the correct version to use? Should I remove the
older
| one? How do I remove it properly?

I suppose it is the package xpm-nox you see in /usr, basically a
version not needing X, and is provided if you just need to do some
conversions (is it gs?) and don't want the X-servers..

How to remove it.. uninstall it through setup :-) Hmm weird that it
isn't updated, there seems to be a 4.2.0 'out'.

/Andy

-- 
 The eye of the beholder rests on the beauty!



RE: Using Multiple X Windows

2003-02-12 Thread Andrew Braverman

Though I do not use emacs, I have used exceed.  What I think is happening is
that you are not correctly setting your DISPLAY variable.  From what I am
told, if you have no DISPLAY set, emacs starts as a standard app in the
terminal it is in.  If it is set, emacs starts as an X app.  Exceed sets
this variable when it starts up the first window.  From what I can tell,
xfree does not.  What happens if you set an appropriate DISPLAY and then run
emacs ?

 -Original Message-
 From: Samir Gupta [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 12:50 PM
 To: '[EMAIL PROTECTED]'
 Subject: Using Multiple X Windows


 Hello,

 I have a question which I could not find the answer to in
 searching the
 archives...

 I am trying to make window management in cygwin/xfree the
 same way I have it
 set up in exceed.  I start up tcsh in exceed with my xterm
 command which
 opens up an x window with the tcsh prompt.  From this prompt,
 every time I
 type emacs , it will bring up a new xwindow with the emacs program.

 I cannot figure out how to do this in cygwin/xfree.  From my
 tcsh prompt, I
 type xwin to start the xfree window.  Now, every time I
 type emacs , it
 opens up an emacs in the same xfree window.  I am wondering
 how I can get it
 to open up a separate xfree window each time I type emacs 
 as I can in
 exceed?

 I tried messing around with the xwin -screen option, but I
 could not come up
 with anything...

 Thanks








Re: Using Multiple X Windows

2003-02-12 Thread Harold L Hunt II
Remove all other command line parameters for XWin.exe, and add the 
single command line parameter -multiwindow.  This is not documented 
because this feature is not considered completely stable.  Also, the 
documentation simply has not been written yet.

Harold

Samir Gupta wrote:
Hello,

I have a question which I could not find the answer to in searching the
archives...

I am trying to make window management in cygwin/xfree the same way I have it
set up in exceed.  I start up tcsh in exceed with my xterm command which
opens up an x window with the tcsh prompt.  From this prompt, every time I
type emacs , it will bring up a new xwindow with the emacs program.

I cannot figure out how to do this in cygwin/xfree.  From my tcsh prompt, I
type xwin to start the xfree window.  Now, every time I type emacs , it
opens up an emacs in the same xfree window.  I am wondering how I can get it
to open up a separate xfree window each time I type emacs  as I can in
exceed?

I tried messing around with the xwin -screen option, but I could not come up
with anything...

Thanks







Re: problem with XFree86-bin-4.2.0-2

2003-02-12 Thread Harold L Hunt II
Andrew,

Thanks for the report.

People have reported this to me before, but I keep forgetting to fix the 
problem and release a new package.

Please email me again if I have not taken care of it in four days, in 
which case I probably will have forgotten again.

Thanks again,

Harold

Andrew Grimm wrote:
Actually it is a very minor sort of problem, but a bug nonetheless.

The csh startup script /etc/profile.d/00xfree.csh is usually sourced
before the shell has a complete path.  This is the case for the stock
Cygwin tcsh install.  However, the path adding script does not use full
pathnames for system executables.  The sh version /etc/profile.d/00xfree.sh
does use full pathnames (I guess most testing defaulted to bash).

Taking a min-mods approach /etc/profile.d/00xfree.csh should be altered to
look this way:

--
# the script name starts with 00 to ensure that it is executed before any
# other scripts because one of them may need to know where X is to run
# properly.

set X11PATH=/usr/X11R6/bin

if ( $?PATH ) then
  eval /bin/echo ${PATH} | /bin/grep -q ${X11PATH}
  if ( $status ) then
setenv PATH ${PATH}:${X11PATH}
  endif
else
  setenv PATH :${X11PATH}
endif
--

This incorporates two changes.  The first is to use full pathnames just as
/etc/profile.d/00xfree.sh does.  (Note that this is not really needed for
echo as the shell builtin works fine but it's good practice to have both
shell scripts function as identically as possible.)  The second is to use
$status as $? only exists in tcsh, and in theory this script should be
csh-compatible.

Without this change, the script fails to operate correctly under tcsh.
Many people use tcsh instead of bash so it is probably a worthwhile fix.

-Andy

PS.  Sorry to have written so many words about such a simple thing =)






FW: Test77 multiwindow mouse weirdness

2003-02-12 Thread Harold L Hunt II
Here is a message from Piers Haken reporting a problem with mutliwindow 
mode.  His emails get bounced because Exchange insists on munging his email.

Harold

 -Original Message-
 From: Piers Haken
 Sent: Tuesday, February 11, 2003 11:22 PM
 To: '[EMAIL PROTECTED]'
 Subject: Test77 multiwindow mouse weirdness


 I'm seeing some weirdness with the mouse cursor in Test77's multiwindow
 mode.

 Note: I have my windows taskbar attached to the left-hand edge of the
 screen instead of the bottom.

 Here's how to see what I'm seeing:
 1) install test77
 2) unlock the taskbar.
 3) dock the taskbar to the left-hand side of the screen
 4) run 'XWin-Test77 -multiwindow'
 5) open an xterm
 6) look at the position of the xterm window.
 7) now click on the 'Cygwin/XFree86 rl' window so the root is visible.
 Notice how the position of the xterm window is different
 depending on whether or not the root window is shown. When the root
 window is shown the xterm jumps to the right exactly by the width of the
 taskbar.

 8) while the root window is on top, move the mouse around.
 Notice that the mouse cursor occasionally jumps to the right,
 again by the same amount as the width of the taskbar.

 9) show both the root window AND the xterm, so the multiwindow xterm
 with the windows decorations is on top of the root window.

 Notice that the two versions of the xterm window do not line up.

 I know this isn't a very common or very severe bug but it does seem to
 indicate an underlying problem in the calculation of the desktop
 bounding rectangle. Perhaps you're assuming, incorrectly in general,
 that the desktop starts at (0,0)?

 Piers.




Re: multiple xpm instances

2003-02-12 Thread Harold L Hunt II
Paul,

Good theory.  I think that if you have been around since the pre-setup 
days then it is most likely a left-over binary.

Harold

Kirschner, Paul E. UTRC wrote:
The xpm package I have is NOT listed in the setup (so I cannot uninstall or
reinstall from there). It is NOT listed as part of the xpm-nox package.

Could it be a remnant from the pre-cygwin setup days when we separately
downloaded tgz files for scripted installs?

-Original Message-
From: Andrew Markebo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 3:47 PM
To: [EMAIL PROTECTED]
Subject: Re: multiple xpm instances


/ Paul Kirschner [EMAIL PROTECTED] wrote:
| In compiling an X11 application I found multiple instances of xpm. One
| version comes from XFree86-prog-4.2.0-1 (dated 1/21/2002 and in
| /usr/X11R6/{lib,include}) and the other from xpm-4.0.0-2 (dated 12/8/2000
| and in /usr/{lib,include)). cygcheck -c shows the xpm installation. (I
| also have the xpm-nox version installed which is OK.)
|
| Is the XFree86-prog the correct version to use? Should I remove the
older
| one? How do I remove it properly?

I suppose it is the package xpm-nox you see in /usr, basically a
version not needing X, and is provided if you just need to do some
conversions (is it gs?) and don't want the X-servers..

How to remove it.. uninstall it through setup :-) Hmm weird that it
isn't updated, there seems to be a 4.2.0 'out'.

/Andy






Re: FW: Test77 multiwindow mouse weirdness

2003-02-12 Thread Harold L Hunt II
Piers,

Yes, that is strange.  I think the problem is that, as you said, the 
multiwindow mode is assuming that the screen is based at 0, 0.  That 
isn't a problem for the non-multiwindow mode, but there was obviously 
some sort of oversight in the multiwindow mode that caused this problem 
to show up.  I may look into it eventually, but if you have any 
inclination to peek at the source yourself (it is accessible via cvsweb 
and well commented) then I would appreciate it if you could try to 
locate the problem for me.

Harold

Harold L Hunt II wrote:
Here is a message from Piers Haken reporting a problem with mutliwindow 
mode.  His emails get bounced because Exchange insists on munging his 
email.

Harold

  -Original Message-
  From: Piers Haken
  Sent: Tuesday, February 11, 2003 11:22 PM
  To: '[EMAIL PROTECTED]'
  Subject: Test77 multiwindow mouse weirdness
 
 
  I'm seeing some weirdness with the mouse cursor in Test77's multiwindow
  mode.
 
  Note: I have my windows taskbar attached to the left-hand edge of the
  screen instead of the bottom.
 
  Here's how to see what I'm seeing:
  1) install test77
  2) unlock the taskbar.
  3) dock the taskbar to the left-hand side of the screen
  4) run 'XWin-Test77 -multiwindow'
  5) open an xterm
  6) look at the position of the xterm window.
  7) now click on the 'Cygwin/XFree86 rl' window so the root is visible.
  Notice how the position of the xterm window is different
  depending on whether or not the root window is shown. When the root
  window is shown the xterm jumps to the right exactly by the width of the
  taskbar.
 
  8) while the root window is on top, move the mouse around.
  Notice that the mouse cursor occasionally jumps to the right,
  again by the same amount as the width of the taskbar.
 
  9) show both the root window AND the xterm, so the multiwindow xterm
  with the windows decorations is on top of the root window.
 
  Notice that the two versions of the xterm window do not line up.
 
  I know this isn't a very common or very severe bug but it does seem to
  indicate an underlying problem in the calculation of the desktop
  bounding rectangle. Perhaps you're assuming, incorrectly in general,
  that the desktop starts at (0,0)?
 
  Piers.
 





Re: Using Multiple X Windows

2003-02-12 Thread Harold L Hunt II
You turn on multi window mode with -multiwindow.  This has nothing to do 
with the DISPLAY variable.

Harold

Samir Gupta wrote:
When the display variable is set correctly, any emacs process that I launch
still goes to the same xwin window.  I think it has something to do with
multiple window support in xwin, and I'm not sure how to turn it on.




-Original Message-
From: Andrew Braverman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 1:34 PM
To: 'Samir Gupta'; [EMAIL PROTECTED]
Subject: RE: Using Multiple X Windows



Though I do not use emacs, I have used exceed.  What I think is happening is
that you are not correctly setting your DISPLAY variable.  From what I am
told, if you have no DISPLAY set, emacs starts as a standard app in the
terminal it is in.  If it is set, emacs starts as an X app.  Exceed sets
this variable when it starts up the first window.  From what I can tell,
xfree does not.  What happens if you set an appropriate DISPLAY and then run
emacs ?



-Original Message-
From: Samir Gupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 12:50 PM
To: '[EMAIL PROTECTED]'
Subject: Using Multiple X Windows


Hello,

I have a question which I could not find the answer to in
searching the
archives...

I am trying to make window management in cygwin/xfree the
same way I have it
set up in exceed.  I start up tcsh in exceed with my xterm
command which
opens up an x window with the tcsh prompt.  From this prompt,
every time I
type emacs , it will bring up a new xwindow with the emacs program.

I cannot figure out how to do this in cygwin/xfree.  From my
tcsh prompt, I
type xwin to start the xfree window.  Now, every time I
type emacs , it
opens up an emacs in the same xfree window.  I am wondering
how I can get it
to open up a separate xfree window each time I type emacs 
as I can in
exceed?

I tried messing around with the xwin -screen option, but I
could not come up
with anything...

Thanks











RE: Using Multiple X Windows

2003-02-12 Thread Samir Gupta
Harold:

Sorry, I did not see your message when I replied to the other one...

Yes, that is the solution I was looking for.  Thanks a lot.

Just a quick question, is there any way to hide the initial window that
opens up after running XWin -multiwindow so that it does not show in my
taskbar?  Exceed has some feature that hides it from the taskbar and puts it
as one of the small icons next to the clock, and so I'm just wondering if
there is any way to do something similar with xwin.  Nothing too important,
but I thought I'd ask :)

Thanks



Re: Using Multiple X Windows

2003-02-12 Thread Harold L Hunt II
No, the root window is still shown because multiwindow mode is not yet 
complete.  It may take quite an amount of work to hide the root window, 
or it may be trivial.  I have not really looked into it.

Harold

Samir Gupta wrote:
Harold:

Sorry, I did not see your message when I replied to the other one...

Yes, that is the solution I was looking for.  Thanks a lot.

Just a quick question, is there any way to hide the initial window that
opens up after running XWin -multiwindow so that it does not show in my
taskbar?  Exceed has some feature that hides it from the taskbar and puts it
as one of the small icons next to the clock, and so I'm just wondering if
there is any way to do something similar with xwin.  Nothing too important,
but I thought I'd ask :)

Thanks





Using cygpath to ensure path format

2003-02-12 Thread Igor Pechtchanski
Hi,

This patch got sent to cygwin at cygwin dot com, but this is a more
proper list for it, so I'm resending it here with a better subject.
Igor

On Tue, 11 Feb 2003, Max Bowsher wrote:

 Igor Pechtchanski wrote:
  It makes an assumption that the format is Windows.  Otherwise,
  there'd be no need to convert to Unix format...

 Of course, if you simply wanted to *ensure* that the path was in unix
 format... you're stuck.

Yes.  I tracked the change to the following cvs commit:
http://cygwin.com/ml/cygwin-cvs/2002-q4/msg00080.html, particularly the
(doit): Do various things to make path output work predictably. part.

  Is there another utility that can be used to identify the format of a
  classpath?  This will be needed to account for the changed behaviour
  in modifying scripts.
 
  Umm, 'grep'?  In particular, grep for a ; or a \ for a
  windows-format path...

 Which is presumably vaguely what cygpath used to do.

 Doug: have you considered making a patch to cygpath to make it behave more
 to your liking (conditional on a command line option if need be), and
 submitting that?

 Max.

Umm, since I've opened my mouth on the issue, I'll submit the patch...
Igor
==
ChangeLog:
2003-02-11  Igor Pechtchanski [EMAIL PROTECTED]

* cygpath.cc (doit): Add code to simply ensure the path is
in the right format.
(ensure_flag): New static variable.
(options,long_options): Add 'e' flag.
(main): Set ensure_flag.

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

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune

Index: winsup/utils/cygpath.cc
===
RCS file: /cvs/src/src/winsup/utils/cygpath.cc,v
retrieving revision 1.25
diff -u -p -r1.25 cygpath.cc
--- winsup/utils/cygpath.cc 31 Oct 2002 02:40:26 -  1.25
+++ winsup/utils/cygpath.cc 12 Feb 2003 01:00:16 -
@@ -29,6 +29,7 @@ static int path_flag, unix_flag, windows
 static int shortname_flag, longname_flag;
 static int ignore_flag, allusers_flag, output_flag;
 static int mixed_flag;
+static int ensure_flag;
 static const char *format_type_arg;
 
 static struct option long_options[] = {
@@ -53,10 +54,11 @@ static struct option long_options[] = {
   {(char *) smprograms, no_argument, NULL, 'P'},
   {(char *) sysdir, no_argument, NULL, 'S'},
   {(char *) windir, no_argument, NULL, 'W'},
+  {(char *) ensure, no_argument, NULL, 'e'},
   {0, no_argument, 0, 0}
 };
 
-static char options[] = ac:df:hilmopst:uvwADHPSW;
+static char options[] = ac:df:hilmopst:uvwADHPSWe;
 
 static void
 usage (FILE * stream, int status)
@@ -76,6 +78,7 @@ Path conversion options:\n\
   -l, --long-name  print Windows long form of NAME (with -w, -m only)\n\
   -p, --path   NAME is a PATH list (i.e., '/bin:/usr/bin')\n\
   -s, --short-name print DOS (short) form of NAME (with -w, -m only)\n\
+  -e, --ensure ensure the path is in the right format (with -p only)\n\
 System information:\n\
   -A, --allusersuse `All Users' instead of current user for -D, -P\n\
   -D, --desktopoutput `Desktop' directory and exit\n\
@@ -411,6 +414,27 @@ doit (char *filename)
   int retval;
   int (*conv_func) (const char *, char *);
 
+  if (ensure_flag  path_flag)
+{
+  if (cygwin_posix_path_list_p (filename) ? unix_flag : windows_flag)
+   {
+ if (windows_flag)
+   {
+ buf = filename;
+ if (shortname_flag)
+   buf = get_short_paths (buf);
+ if (longname_flag)
+   buf = get_long_paths (buf);
+ if (mixed_flag)
+   buf = get_mixed_name (buf);
+ filename = buf;
+   }
+ /* The path is already in the right format.  */
+ puts (filename);
+ exit (0);
+   }
+}
+
   if (!path_flag)
 {
   len = strlen (filename);
@@ -518,6 +542,7 @@ main (int argc, char **argv)
   else
 prog_name++;
 
+  ensure_flag = 0;
   path_flag = 0;
   unix_flag = 1;
   windows_flag = 0;
@@ -561,6 +586,10 @@ main (int argc, char **argv)
  path_flag = 1;
  break;
 
+   case 'e':
+ ensure_flag = 1;
+ break;
+
case 'u':
  if (windows_flag || mixed_flag)
usage (stderr, 1);
@@ -665,6 +694,9 @@ main (int argc, char **argv)
   if (shortname_flag  !windows_flag)
 usage (stderr, 1);
 
+  if (ensure_flag  !path_flag)
+usage (stderr, 1);
+
   if (!unix_flag  !windows_flag  

Re: Using cygpath to ensure path format

2003-02-12 Thread Christopher Faylor
On Wed, Feb 12, 2003 at 09:54:59AM -0500, Igor Pechtchanski wrote:
This patch got sent to cygwin at cygwin dot com, but this is a more
proper list for it, so I'm resending it here with a better subject.

As I posted in the cygwin mailing list, I see no reason for this patch
or for any of the whines that surrounded it.

Maybe it's just me, but when something like a change to cygpath happens
in software that I support, I just adapt the software that I support,
usually making it more robust in the process.

I realize that this is an open source project, of course, but that
doesn't mean that we have to make a utility into a swiss army knife when
there are plenty of other ways to get the job done with the existing
knives, forks, spoons, etc.

cgf



RE: [avail for test] libtool-devel-20030121-1

2003-02-12 Thread Ralf Habacker

 But, you'd still need to check all static libs to see if they are
 really import libs after all.  The good news it that we expect this to
 happen only rarely: when an import lib is a hybrid lib with static
 objs in front -- the modified 'file' test incorrectly identifies it
 as a static archive.

This depends on how the hybrid lib is created. If it starts with the static
object files, it would be identified as static, if it starts with the import
library as import library.

BTW: Do you know which libraries are also hybrid execpt of cygwin1.dll ?


 Question: for normal import libs (that is, excluding the hybrids like
 libcygwin.a), does your version work always? Or does _dll_iname 'float
 around' even within otherwise normal import libs?

'file' supports indirect offset generation. See $ man magic

   Indirect  offsets  are  of  the  form:
   ((x[.[bslBSL]][+-][y]).  The value of x is used as  an  offset  in  the
   file.  A  byte,  short  or long is read at that offset depending on the
   [bslBSL] type specifier. The capitalized types interpret the number  as
   a big endian value, whereas the small letter versions interpet the num-
   ber as a little endian value. To that number the value of  y  is  added
   and  the  result  is used as an offset in the file. The default type if
   one is not specified is long.

   Sometimes you do not know the exact  offset  as  this  depends  on  the
   length  of  preceding fields. You can specify an offset relative to the
   end of the last uplevel field (of course this may only be done for sub-
   level  tests,  i.e.  test beginning with  ). Such a relative offset is
   specified using  as a prefix to the offset.

That mean, we onbly have to figure out the relative pointer to the 'dll_iname'
string.
When I have time, I will look into the coff file format or is someone else here,
who can give a pointer to this ?

Ralf


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Can't set mark in emacs

2003-02-12 Thread David Starks-Browning
On Wednesday 12 Feb 03, Mike Robertson writes:
 I just installed cygwin on my NT 4.0 system.  I have tried using the shell
 based emacs and am having some problems.
 First I couln't use the C-x C-c command to exit.  I figured that out
 (CYGWIN=tty), but I am still having some problems with setting the mark.
 Both C-@ and C-SPC don't seem to work.  If I use F1-k C-SPC it says I
 pressed SPC (no CTRL).  If I use F1-k C-@ it doesn't respond at all.

Have you tried it under rxvt?  Might work a lot better.

David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: strange mv behavior: mv mydir mydir

2003-02-12 Thread Harald Kierer
Reproduced this:



[/t] $ mv lib lib
mv: cannot copy a directory, `lib', into itself, `lib/lib'

[/t] [1] $ mv lib Lib
mv: cannot copy a directory, `lib', into itself, `Lib/lib'

[/t] [1] $ mv --version
mv (fileutils) 4.1
Written by Mike Parker, David MacKenzie, and Jim Meyering.

Copyright (C) 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[/t] $ uname -a
CYGWIN_NT-5.0 RE0263 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown unknown
Cygwin



Actually it DOES copy the directory into itself!
I get a directory 'lib' inside my old 'lib' with the exact
same contents.
Supposed behaviour should be to do nothing..?

[snip]

   On lnx, I get:
 mv: cannot move `mydir' to a subdirectory of itself, `mydir/mydir'
 
 Shouldn't I get a similar error on Windows?

I get those above.

[snap]

bye,
 harry

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




/me dead for a short (I hope) while

2003-02-12 Thread Lapo Luchini
Sorry, but my windows machine is actually dead.
I guess I must change CPU and/or MB so it will take a while (as I have 
university test close, too).

Sorry.

In Italy we say something that sounds like it always rains where it's 
already wet =(

Lapo

BTW: yup, this also means I will be delayed in testing/releasing cygwin 
packages I mantain, unfortunately


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: bin dir not created during cygwin setup in Win2kPro

2003-02-12 Thread Peter Davis
This thread is kind of old, but has anyone else experienced this problem?
I have.

Running Windows 98, I chose Download from Internet and saved files to
c:\Windows\Desktop\cygwin-download.  After completing that (and after a
couple failures because of my modem), I did some other work, installed
some Windows Updates (don't know if that could possibly matter), and then
came back to install Cygwin.

I chose to install to c:\cygwin, and chose the download directory as
before.  I selected all my packages and proceeded.

While the setup prog listed all the files it was installing, I did notice
that it listed various /bin/* and /usr/bin/* files.  But when I went to
start Cygwin, it bombed -- the c:\cygwin\bin and \usr\bin directories are
not there!

Everything else is, including c:\cygwin\usr\X11R6\bin\*, but of course I
can't run any of those programs because the cygwin DLL's are also missing.

I've tried this a couple times, with variations on the directories,
packages to install, etc..  Same result.

I can't say if Download[ing] From Internet isntead of installing directly
at first could have caused the problem because I'm not about to do it all
again on my 56k.  So, does anyone know what to do?

On Tue, 22 Oct 2002 00:43:25 -0400, Christopher Faylor wrote:
 On Mon, Oct 21, 2002 at 09:19:58PM -0700, Jim Langston wrote:
 I just tried that, again.
 
 I ran the setup.exe and uninstalled.  Deleted all directories.
 
 Then I went to web site, and Install Now.
 Install Base e:\cygwin
 Install directory: e:\cygwindownload
 
 Same thing again, only lib, tmp and usr directories (and sub
 directories).
 
 Is there something in the registry I need to clean?
 
 I've downloaded from nasa.gov and from another site, same thing.
 
 I'm clueless.
 
 It sounds like you're picking Download from Internet rather than
 Install from Internet to me.


-- 
Peter Davis [EMAIL PROTECTED]
Furthermore, I believe bacon prevents hair loss!

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: unpatching sshd

2003-02-12 Thread Corinna Vinschen
Hi Pierre,

On Tue, Feb 11, 2003 at 09:26:53PM -0500, Pierre A. Humblet wrote:
 Corinna,
 
 now that setuid works posixly on Win95, sshd can be unpatched.
 
 Pierre
 
 
 --- session.c.orig  2003-02-10 10:12:13.0 -0500
 +++ session.c   2003-02-10 10:13:08.0 -0500
 @@ -1249,9 +1249,6 @@ do_setusercontext(struct passwd *pw)
 permanently_set_uid(pw);
  #endif
 }
 -#ifdef HAVE_CYGWIN
 -   if (is_winnt)
 -#endif
 if (getuid() != pw-pw_uid || geteuid() != pw-pw_uid)
 fatal(Failed to set uids to %u., (u_int) pw-pw_uid);
  }
 

sorry, no.  Remember that you created that patch so that it's backward
compatible to previous versions of Cygwin.  Testing the uid now would
break that.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cygdrive

2003-02-12 Thread Maurício
  Hi,

  Why can't we see /cygdrive with ls in /, and also can't see it using 
word completion in bash (i.e., typing cd /cyg and pressing tab)?

  Thanks,
  Maurício



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: bin dir not created during cygwin setup in Win2kPro

2003-02-12 Thread Peter Davis
On Wed, 2003/02/12 02:09:47 -0800, Peter Davis [EMAIL PROTECTED] wrote:
 start Cygwin, it bombed -- the c:\cygwin\bin and \usr\bin directories are
 not there!
 
 Everything else is, including c:\cygwin\usr\X11R6\bin\*, but of course I
 can't run any of those programs because the cygwin DLL's are also missing.

and on 2002/10/24, Jim Langston wrote:
 It was pointing the bin directory to the directory of some other SSH
 program I had installed earlier.

Yes, that turned out to be my problem.  I had apparantly installed OpenSSH
at some point a while ago (possibly from installing Putty ssh client?  I
can't remember.).

This is still a problem with the installer though: if you don't want
to overwrite any old registry values with the new install locations, the
various .bat files and other settings that expect the /bin and /usr
heirarchy to be under Cygwin's root need to be updated.  Or something
needs to be done, or at least some notification that the heirarchies don't
match.  My two cents.

--
Peter Davis [EMAIL PROTECTED]
Furthermore, I believe bacon prevents hair loss!

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cygdrive

2003-02-12 Thread David Starks-Browning
On Wednesday 12 Feb 03, Maurício writes:
Hi,
 
Why can't we see /cygdrive with ls in /, and also can't see it using 
 word completion in bash (i.e., typing cd /cyg and pressing tab)?
 
Thanks,
Maurício

I guess this belongs in the FAQ.  (It's not there already?)

/cygrive is not really there in the sense that ls or bash need them
to be for the actions you describe.  It's an internal means to access
unmounted drives.  That's all.

Regards,
David
(Cygwin FAQ maintainer)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: using fetchmail in mutt under cygwin

2003-02-12 Thread Jason Tishler
Ajay,

On Wed, Feb 12, 2003 at 12:45:06AM -0500, Ajay Simha wrote:
 My current problem is this:
 
 $ procmail VERBOSE=yes .procmailrc  testmail
 procmail: [3936] Wed Feb 12 00:39:58 2003
 procmail: Suspicious rcfile /home/asimha/.procmailrc
^
 procmail: Couldn't read /home/asimha/.procmailrc
^
 [snip]
 
 I tried various things including the chmod 644 that you had suggested
 on the mailing list but nothing has worked.

Did you try Google?


http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=site%3Acygwin.com+Suspicious+rcfile

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




some probelms about in porting from Linux to windows

2003-02-12 Thread fengrui

Hi all:

I'm porting some programs from linux to windows using cygwin. Cygwin is
really a great software, which reduce a great deal of my work.

I have occured some problems. In my program, I use some config files,
whose path like /etc/**.d/**.conf. Of course I can use windows path
pattern like c:\\cygwin\etc\**.d\**.conf. But I wonder if there has some
methods which can set root path (/) of my program, so I can still use the
linux path pattern like /etc/**.d/**.conf only with cygwin1.dll in
release evrionment, which is to say,  in a compute whose OS is windows
without installing cygwin, just copied to cygwin1.dll.

   Who can give me some advice? Can it do work if I set the registry table
:

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/

   Thanks in advance.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs in Cygwin

2003-02-12 Thread David Robinow
S Gupta [EMAIL PROTECTED] wrote:

I am at home now, and if I have my display environment
variable set to:  ${HOST}:0.0 or :0
and if I have the program Cygwin/XFree86 rl open in
the background, emacs opens up in the XFree program
and not the current window. (If I do not have the
XFree program open, then I get an error saying I can't
connect to X server)

 This is expected behavior.  This has been discussed many times before. It should be 
in the archives.

For some reason the above only works in tcsh; the
other shells all seem to open up emacs in the same
window.
  You probably have an emacs function defined in a shell startup file (e.g. 
~/.bashrc).  Examples have been posted here several times.

Does anyone know what causes the cygwin emacs to open
up in XFree instead of the current window?
 That's how it's compiled.

It has stopped doing this on my computer at work (I
think it was a result of my reinstalling cygwin emacs
or maybe something else that got changed in the
process of running the cygwin setup), and I'm
wondering what has to be changed so it does it again.

 Include tty in your CYGWIN environment variable.
 Type emacs -nw instead of emacs


 

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Getting undefined reference to `_libiconv_open'

2003-02-12 Thread Ronald Landheer-Cieslak
Of course, I *should* point you to http://cygwin.com/bugs.html and tell
you to RTFM, but I'll do a couple of WAGs in stead

WAG1
You didn't link to libiconv - try using -liconv on your link line
/WAG1
WAG2
You might not even have libiconv installed - try installing it with 
Setup.exe
/WAG2
 
*now* I will point you to http://cygwin.com/bugs.html *and* tell you to 
RTFM next time.

Ciao,

rlc

On Tue, 11 Feb 2003, jklcom wrote:

 Hi, can someone help?
 
 When I compile my program I'm getting the following error messages:
 
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x8e):test.c: undefined
 referenc
 e to `_libiconv_open'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0xb8):test.c: undefined
 referenc
 e to `_libiconv'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0xd9):test.c: undefined
 referenc
 e to `_libiconv_close'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x17b):test.c: undefined
 referen
 ce to `_libiconv_open'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x1b7):test.c: undefined
 referen
 ce to `_error'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x28a):test.c: undefined
 referen
 ce to `_libiconv'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x2d0):test.c: undefined
 referen
 ce to `_libiconv'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x35c):test.c: undefined
 referen
 ce to `_libiconv_close'
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: undefined reference to `_libiconv_open'

2003-02-12 Thread jklcom
Compile error, please help

$ make test
gcc -s -o /c/progra~1/Apache~1/Apache/cgi-bin/test.exe test.c
intrautils.c -I/us
r/local/pgsql/include -L/usr/local/pgsql/lib -lpq
test.c: In function `main':
test.c:16: warning: passing arg 2 of `libiconv' from incompatible
pointer type
intrautils.c:7: warning: initialization makes integer from pointer
without a cas
t
intrautils.c: In function `auditTermLicense':
intrautils.c:1977: warning: initialization makes integer from pointer
without a
cast
/c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0x8e):test.c: undefined
referenc
e to `_libiconv_open'
/c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0xb8):test.c: undefined
referenc
e to `_libiconv'
/c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0xd9):test.c: undefined
referenc
e to `_libiconv_close'
collect2: ld returned 1 exit status
make: *** [test] Error 1

After adding -libconv I got this:


$ make test
gcc -s -o /c/progra~1/Apache~1/Apache/cgi-bin/test.exe test.c
intrautils.c -I/us
r/local/pgsql/include -L/usr/local/pgsql/lib -lpq -libconv
test.c: In function `main':
test.c:16: warning: passing arg 2 of `libiconv' from incompatible
pointer type
intrautils.c:7: warning: initialization makes integer from pointer
without a cas
t
intrautils.c: In function `auditTermLicense':
intrautils.c:1977: warning: initialization makes integer from pointer
without a
cast
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
cannot fi
nd -libconv
collect2: ld returned 1 exit status
make: *** [test] Error 1
 

-Original Message-
From: David Robinow [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 4:22 AM
To: jklcom
Subject: RE: undefined reference to `_libiconv_open'


jklcom [EMAIL PROTECTED] wrote:

Hi, can someone help?

When I compile my test program I'm getting the following error 
messages:

 Add -liconv to the end of your compile command.
 You should have included the compile command in your post.  Normally it
makes it easier to help you, although in this case the answer was
obvious.

__
The NEW Netscape 7.0 browser is now available. Upgrade now!
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: strange mv behavior: mv mydir mydir

2003-02-12 Thread Igor Pechtchanski
On Tue, 11 Feb 2003, linda w (cyg) wrote:

 I stumbled onto this trying to rename a dir from
 Mydir to mydir (w/o capital M)

  mv Mydir mydir
 starts copying Mydir into Mydir/mydir.

 But it's not just the 'caps' that are the issue since:

  mv mydir mydir
 will start copying mydir into itself

 On lnx, I get:
 mv: cannot move `mydir' to a subdirectory of itself, `mydir/mydir'

 Shouldn't I get a similar error on Windows?

 Note to do the original, desired mv, I can use:
  mv Mydir foo; mv foo mydir

 Which (unfortunately), would be correct windows behavior since
 you can't rename a file or dir to a different name that varies only
 in capitalization (ignore case feature).

 The problem is 'mv' isn't recognizing that source and target are
 the same name (even when case matches), so it is behaving like 'cp'.

 linda

Linda,

Note that 'mv' and 'cp' share code (copy.c) that does the actual
move/copy.  That file does have the message you refer to above,
conditional on errno==EINVAL after rename().  Apparently, Cygwin's (or,
rather, newlib's) rename doesn't have that behavior.  That's where I'd
start tracking it down.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: undefined reference to `_libiconv_open'

2003-02-12 Thread Igor Pechtchanski
Cockpit error.

Re-read the instructions *carefully*, both in the message you quoted
below, and in http://cygwin.com/ml/cygwin/2003-02/msg00807.html.  Follow
them *to the letter*.
Igor

On Wed, 12 Feb 2003, jklcom wrote:

 Compile error, please help

 $ make test
 gcc -s -o /c/progra~1/Apache~1/Apache/cgi-bin/test.exe test.c
 intrautils.c -I/us
 r/local/pgsql/include -L/usr/local/pgsql/lib -lpq
 test.c: In function `main':
 test.c:16: warning: passing arg 2 of `libiconv' from incompatible
 pointer type
 intrautils.c:7: warning: initialization makes integer from pointer
 without a cas
 t
 intrautils.c: In function `auditTermLicense':
 intrautils.c:1977: warning: initialization makes integer from pointer
 without a
 cast
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0x8e):test.c: undefined
 referenc
 e to `_libiconv_open'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0xb8):test.c: undefined
 referenc
 e to `_libiconv'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0xd9):test.c: undefined
 referenc
 e to `_libiconv_close'
 collect2: ld returned 1 exit status
 make: *** [test] Error 1

 After adding -libconv I got this:


 $ make test
 gcc -s -o /c/progra~1/Apache~1/Apache/cgi-bin/test.exe test.c
 intrautils.c -I/us
 r/local/pgsql/include -L/usr/local/pgsql/lib -lpq -libconv
 test.c: In function `main':
 test.c:16: warning: passing arg 2 of `libiconv' from incompatible
 pointer type
 intrautils.c:7: warning: initialization makes integer from pointer
 without a cas
 t
 intrautils.c: In function `auditTermLicense':
 intrautils.c:1977: warning: initialization makes integer from pointer
 without a
 cast
 /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
 cannot fi
 nd -libconv
 collect2: ld returned 1 exit status
 make: *** [test] Error 1


 -Original Message-
 From: David Robinow [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 4:22 AM
 To: jklcom
 Subject: RE: undefined reference to `_libiconv_open'


 jklcom [EMAIL PROTECTED] wrote:

 Hi, can someone help?
 
 When I compile my test program I'm getting the following error
 messages:

  Add -liconv to the end of your compile command.
  You should have included the compile command in your post.  Normally it
 makes it easier to help you, although in this case the answer was
 obvious.

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

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: some probelms about in porting from Linux to windows

2003-02-12 Thread Corinna Vinschen
On Wed, Feb 12, 2003 at 08:31:05PM +0800, [EMAIL PROTECTED] wrote:
 
 Hi all:
 
 I'm porting some programs from linux to windows using cygwin. Cygwin is
 really a great software, which reduce a great deal of my work.
 
 I have occured some problems. In my program, I use some config files,
 whose path like /etc/**.d/**.conf. Of course I can use windows path
 pattern like c:\\cygwin\etc\**.d\**.conf. But I wonder if there has some
 methods which can set root path (/) of my program, so I can still use the
 linux path pattern like /etc/**.d/**.conf only with cygwin1.dll in
 release evrionment, which is to say,  in a compute whose OS is windows
 without installing cygwin, just copied to cygwin1.dll.

I don't understand your problem.  Cygwin provides you with the necessary
conversions between POSIX and WIN32 paths so all you have to do is...
nothing in terms of paths.  Just use the POSIX paths as the application
expects and *especially* ...

Who can give me some advice? Can it do work if I set the registry table
 :
 
 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/

...DON'T MESS AROUND WITH THE REGISTRY.  The registry is used internally
in Cygwin and even though it might take some time from now on, it *will*
go away at some point in the future.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Problem with socket in gcc programming

2003-02-12 Thread Henry
This is a demo program to issue my problem i'm facing to.
#include stdio.h
#include sys/socket.h
#include netinet/in.h

int main(int argc, char *argv[]) {
int sockfd, accefd, rsinlen, on = 1;
pid_t pid;
struct sockaddr_in sin, rsin;
unsigned long waittime;

if (fork()) exit(0);
 
sockfd = socket(PF_INET, SOCK_STREAM, 0);
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, on, sizeof(on));
memset(sin, 0, sizeof(struct sockaddr));
rsinlen = sizeof(struct sockaddr);
sin.sin_family = AF_INET;
sin.sin_port = htons(80);
sin.sin_addr.s_addr = INADDR_ANY;
bind(sockfd, (struct sockaddr *)sin, sizeof(struct sockaddr));
listen(sockfd, 256);
while (1) {
accefd = accept(sockfd, (struct sockaddr *)rsin, rsinlen);
if (accefd = 0) {
pid = fork();
if (pid  0) {
printf(Parent: fork error\n);
close(accefd);
continue;
}
if (pid == 0) {
close(sockfd);
//close(accefd);
/* in my test, althought I add this line the second time,
it ran into the same situation */
process(accefd);
printf(Child return to parent\n);
close(accefd);
exit(0);
} else {
waitpid(pid, NULL, 0);
printf(Parent exiting\n);
close(accefd);
exit(0);
}
}
}
return 0;
}

int process(int fd) {
int i;

printf(Child start\n);
close(fd);
printf(fd %d closed\n, fd);

if (fork()  0)
return 0;
printf(in grandchild, infinite loop\n);
while (1) ;
}

While I compile and run this program in cygwin with gcc, and then telnet to 80 port, 
my telnet client can't disconnect and I have to use ^] to terminate. The same program 
tested in FreeBSD 5.0RC2, and got the following result.

su-2.05b# ./test
su-2.05b# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Child start
accept fd closed
Child return to parent
Parent exiting
in grandchild, infinite loop
Connection closed by foreign host.

The socket was closed automatively.

I'm wondering whether I dismissed something or this is a bug in cygwin. I spent hours 
in google and find many bugs description, but none of them is familiar with my problem.

My cygwin version is 2.194.2.24.




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Cannot get ^Z to suspend a program

2003-02-12 Thread [EMAIL PROTECTED]
Job control and signals for Cygwin processes are areas pretty 
internal to Cygwin.  they are also pretty complex.  IMO, it's 
hard to talk much about adding some feature to them without the 
context of what's already there.  If you can put your suggestions 
in that context, I expect you'll get better feedback.  Even if that's 
not the case, you'll be in a better position to evaluate your own 
ideas given the current architecture.

Just my $.02.

Larry

Original Message:
-
From: linda w \(cyg\) [EMAIL PROTECTED]
Date: Tue, 11 Feb 2003 21:18:05 -0800
To: [EMAIL PROTECTED]
Subject: RE: Cannot get ^Z to suspend a program


 Sure, but those programs hook the key(s) in a global fashion, 
 not just 
 from individual programs.  So, Cygwin could hook the Ctrl+Z key, but 
 what would it do then, how would it know which process to suspend?
 
 I'm not sure that cygwin could 'suspend' a non-cygwin process 
 even if it 
 wanted to.
---
started playing around with this...I note:

 cygjob kill -STOP %1 #works as expected
but
 winprog kill -STOP %1 #laughs at my puny attempts to stop it

So cygjobs seem to be suspendable but winjobs are already 
not playing fair!

now I try this:
 while :; do sleep 3; echo 1;done   # control-z ignored

Also, though, I note that if I type while the program is running, say
ls, then press control-c, ls still executes!

Under lnx, I see the 'ls' characters echoed as soon as I type them --
it appears readline is running in foreground even though I have
a job (the while loop) running in foreground as well.  It's like
even when a foreground job is running, there is a 2nd, system level
process that also runs and processes key presses (allowing processing
control-u and control-r, among other, readline functions).

It _seems_ like to get similar functionality on cygwin, one might
have to have the same -- perhaps a unix-like fork/exec/wait would
translate, internally, to a windows fork/exec/select, where select
waits for keyboard input or the child process to end.  Then the win-parent
process -- still in control, could process line editing and user-job
control key presses -- since we know that, at least, cygwin programs
are well behaved in regards to respecting a kill -STOP, the
win-parent keyboard monitor thread could use the same means to
STOP a child.

As for job control of winjobs?  Guess that'd be another whole pain
in the butt.  Though maybe if the running user has 'debug' privs, they
could attach the process and suspend it that way?  (Dunno)  If their 
could be some way of suspending winjobs, though, then the above 'keyboard
thread' method could be used to implement job control.

Wha'd'ya think?
-linda




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Interest in gcc 3.2.2?

2003-02-12 Thread [EMAIL PROTECTED]


Original Message:
-
From: Alan Thompson [EMAIL PROTECTED]
Date: Tue, 11 Feb 2003 21:27:00 -0800
To: [EMAIL PROTECTED]
Subject: Interest in gcc 3.2.2?


Hi all - I downloaded gcc 3.2.2 sources, compiled, and got it working on
Cygwin.  However, I am concerned if I might later encounter any clashes
with /usr/lib/mingw, since I overwrote some of the lib*.a files there.

Are there any problems with this?  

Could be.  I'd suggest avoiding this situation just to be safe.

Larry


mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Malloc failing too soon under XP/2000

2003-02-12 Thread Kris Warkentin
I'm running Windows XP with 1/2GB RAM and 2GB swap.  Running Cygwin 1.3.18.
Consider the following program to use as much memory as possible:

#include stdio.h
#include malloc.h

int
main()
{
void *x;
unsigned long long mem=0;

while((x=malloc(50)) != NULL){
mem += 50;
memset(x, 0, 50);
printf(allocated %u\n, mem);
}
return 0;
}

If I compile and run this, it consistently stops at about 780MB.  If I
compile with -mno-cygwin, it doesn't fail until almost 2GB have been
allocated.

Any comment?  Is there some sort of flag I can compile with to make the
allocator more aggressive?  The situation it's failing in is one where a
very large library is being linked and ld is running out of memory in spite
of quite a bit being available.

cheers,

Kris


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cygwin, g77 3-D arrays

2003-02-12 Thread [EMAIL PROTECTED]


Original Message:
-
From: K [EMAIL PROTECTED]
Date: Wed, 12 Feb 2003 17:30:22 +1000
To: [EMAIL PROTECTED]
Subject: cygwin, g77  3-D arrays


Hi,

I have a FORTRAN program which both compiles (using g77) and runs perfectly
in Mandrake Linux and in Unix.  However, while this program compiles (using
g77) perfectly in Cygwin, it will not run, it merely returns the prompt.

I have found that if I comment out any lines declaring or using 3-D arrays
then the program will run.  Unfortunately, I need to include these 3-D
arrays for the program to give the correct answers.

Does anybody have any ideas what the problem might be and how to fix it?

Running the program with gdb might help.  

Sounds to me like you're blowing out the stack with these arrays.  However,
it's been long enough since I did anything with fortran that I wouldn't
be able to provide you with a suggestion beyond RTFM for how to proceed if 
that was the case.

Larry


mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cygdrive

2003-02-12 Thread [EMAIL PROTECTED]
It's probably worth mentioning other virtual directories 
like /proc and /dev too.

Larry

Original Message:
-
From: David Starks-Browning [EMAIL PROTECTED]
Date: Wed, 12 Feb 2003 10:49:45 +
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: cygdrive


On Wednesday 12 Feb 03, Maurício writes:
Hi,
 
Why can't we see /cygdrive with ls in /, and also can't see it using 
 word completion in bash (i.e., typing cd /cyg and pressing tab)?
 
Thanks,
Maurício

I guess this belongs in the FAQ.  (It's not there already?)

/cygrive is not really there in the sense that ls or bash need them
to be for the actions you describe.  It's an internal means to access
unmounted drives.  That's all.

Regards,
David
(Cygwin FAQ maintainer)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Problem with socket in gcc programming

2003-02-12 Thread Pavel Tsekov
Hello,

Works fine here. I'm running your testcase on:

$ uname -a
CYGWIN_NT-5.0 mordor 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown 
unknown Cygwin

It will help if you provide more infomation about your system environment 
and the version of Cygwin that you are running. To learn how to do this
take a look at http://www.cygwin.com/bugs.html, the section named 'Bug 
reporting guidelines'. 

On Thu, 13 Feb 2003, Henry wrote:

 This is a demo program to issue my problem i'm facing to.
 #include stdio.h
 #include sys/socket.h
 #include netinet/in.h
 
 int main(int argc, char *argv[]) {
   int sockfd, accefd, rsinlen, on = 1;
   pid_t pid;
   struct sockaddr_in sin, rsin;
   unsigned long waittime;
 
   if (fork()) exit(0);
  
   sockfd = socket(PF_INET, SOCK_STREAM, 0);
   setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, on, sizeof(on));
   memset(sin, 0, sizeof(struct sockaddr));
   rsinlen = sizeof(struct sockaddr);
   sin.sin_family = AF_INET;
   sin.sin_port = htons(80);
   sin.sin_addr.s_addr = INADDR_ANY;
 bind(sockfd, (struct sockaddr *)sin, sizeof(struct sockaddr));
 listen(sockfd, 256);
 while (1) {
 accefd = accept(sockfd, (struct sockaddr *)rsin, rsinlen);
 if (accefd = 0) {
 pid = fork();
 if (pid  0) {
 printf(Parent: fork error\n);
 close(accefd);
 continue;
 }
 if (pid == 0) {
 close(sockfd);
 //close(accefd);
   /* in my test, althought I add this line the second time,
   it ran into the same situation */
 process(accefd);
 printf(Child return to parent\n);
 close(accefd);
 exit(0);
 } else {
 waitpid(pid, NULL, 0);
 printf(Parent exiting\n);
 close(accefd);
 exit(0);
 }
 }
 }
 return 0;
 }
 
 int process(int fd) {
 int i;
 
 printf(Child start\n);
 close(fd);
 printf(fd %d closed\n, fd);
 
 if (fork()  0)
 return 0;
 printf(in grandchild, infinite loop\n);
   while (1) ;
 }
 
 While I compile and run this program in cygwin with gcc, and then telnet to 80 port, 
my telnet client can't disconnect and I have to use ^] to terminate. The same program 
tested in FreeBSD 5.0RC2, and got the following result.
 
 su-2.05b# ./test
 su-2.05b# telnet localhost 80
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 Child start
 accept fd closed
 Child return to parent
 Parent exiting
 in grandchild, infinite loop
 Connection closed by foreign host.
 
 The socket was closed automatively.
 
 I'm wondering whether I dismissed something or this is a bug in cygwin. I spent 
hours in google and find many bugs description, but none of them is familiar with my 
problem.
 
 My cygwin version is 2.194.2.24.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Malloc failing too soon under XP/2000

2003-02-12 Thread Igor Pechtchanski
On Wed, 12 Feb 2003, Kris Warkentin wrote:

 I'm running Windows XP with 1/2GB RAM and 2GB swap.  Running Cygwin 1.3.18.
 Consider the following program to use as much memory as possible:

 #include stdio.h
 #include malloc.h

 int
 main()
 {
 void *x;
 unsigned long long mem=0;

 while((x=malloc(50)) != NULL){
 mem += 50;
 memset(x, 0, 50);
 printf(allocated %u\n, mem);
 }
 return 0;
 }

 If I compile and run this, it consistently stops at about 780MB.  If I
 compile with -mno-cygwin, it doesn't fail until almost 2GB have been
 allocated.

 Any comment?  Is there some sort of flag I can compile with to make the
 allocator more aggressive?  The situation it's failing in is one where a
 very large library is being linked and ld is running out of memory in spite
 of quite a bit being available.

 cheers,

 Kris

Well, for one, 1.3.20 is out.  You might try that -- there have been some
changes to the memory management code, see if they fixed your problem.
For another, there is no need to copy Doug Lea on this.  This is most
probably a Cygwin-specific issue, and belongs on the Cygwin list.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Malloc failing too soon under XP/2000

2003-02-12 Thread Ronald Landheer-Cieslak
Charles Werner explains this pretty well in:
http://sources.redhat.com/ml/cygwin/2003-02/msg00234.html
he also explains how to change the settings

ciao

rlc

On Wed, 12 Feb 2003, Kris Warkentin wrote:

 I'm running Windows XP with 1/2GB RAM and 2GB swap.  Running Cygwin 1.3.18.
 Consider the following program to use as much memory as possible:
 
 #include stdio.h
 #include malloc.h
 
 int
 main()
 {
 void *x;
 unsigned long long mem=0;
 
 while((x=malloc(50)) != NULL){
 mem += 50;
 memset(x, 0, 50);
 printf(allocated %u\n, mem);
 }
 return 0;
 }
 
 If I compile and run this, it consistently stops at about 780MB.  If I
 compile with -mno-cygwin, it doesn't fail until almost 2GB have been
 allocated.
 
 Any comment?  Is there some sort of flag I can compile with to make the
 allocator more aggressive?  The situation it's failing in is one where a
 very large library is being linked and ld is running out of memory in spite
 of quite a bit being available.
 
 cheers,
 
 Kris
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Interest in gcc 3.2.2?

2003-02-12 Thread Brian Ford
Alan Thompson wrote:
Hi all - I downloaded gcc 3.2.2 sources, compiled, and got it working on
Cygwin.  However, I am concerned if I might later encounter any clashes with
/usr/lib/mingw, since I overwrote some of the lib*.a files there.

Are there any problems with this?


I don't know about /usr/lib/mingw specifically, but I have found that gcc
3.2.2 aligns doubles only to long boundries where as the gcc shipped with
Cygwin aligns them to double boundries.

This makes 3.2.2 broken for anything passing structures with doubles
between objects compiled with different compilers, including, I believe,
anything that shipped with Cygwin.

I would also like to get 3.2.2 working as I am trying to add DWARF2
debugging support.  Any comments about this issue would be appreciated.
Thanks.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Problem with socket in gcc programming

2003-02-12 Thread Randall R Schulz
At 08:40 2003-02-12, Igor Pechtchanski wrote:

On Thu, 13 Feb 2003, Henry wrote:

 My cygwin version is 2.194.2.24.


I have seen the future and it is 2.259.2.4.



Oh my god!  And I'm only running 1.3.20!  :-o  How *did* I let my copy
get *so* out-of-date?  I must update *immediately*  Please tell me
which mirrors carry that version!
Igor

P.S. For proper emphasis, the above should've been in all-caps, but, for
some reason, I have an aversion to that sort of thing.  Must be all those
Nigerian scams...
--
http://cs.nyu.edu/~pechtcha/



Scam? Uh-oh...



  |\
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'
'---''(_/--'  `-'\_) fL


I love that cat.

RRS  


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Interest in gcc 3.2.2?

2003-02-12 Thread Bart Lamot
Allen,

Are you or aren't you compiling your java program to a native executable??
Because if you are the I don't get the Sun 1.4.1 remark...
If you aren't (and thus are using gcj just to compile to class files and use a JRE to 
run) i don't get why u are doing this if u stick with Sun.

I am lostbut am i clear?

Grtz,
Bart

*** REPLY SEPARATOR  ***

On 11-2-2003 at 22:37 Alan Thompson wrote:

P.S.  I'm using Java 1.4.1 from Sun.
Alan

At 07:31 AM 2/12/2003 +0100, Bart Lamot wrote:
Alan,

Do you have threads working? I can't get them to work if i compile a java
program that has a Thread object it does compile but at runtime i get the
error that threads ain't implemented

Grtz,
Bart

*** REPLY SEPARATOR  ***

On 11-2-2003 at 21:27 Alan Thompson wrote:

Hi all - I downloaded gcc 3.2.2 sources, compiled, and got it working on
Cygwin.  However, I am concerned if I might later encounter any clashes
with /usr/lib/mingw, since I overwrote some of the lib*.a files there.

Are there any problems with this?  The cygwin setup seems a little
different than the standard gcc install setup.  Is there any interest in
bumping the standard cygwin gcc to 3.2.2?  Running gcc --version produces
gcc (GCC) 3.2 20020927 (prerelease).  Is there much difference between
this version and gcc 3.2.2?

Alan Thompson

P.S. I got the JNI and iostream stuff working both both the 3.2 and
3.2.2 versions.  I can provide details if anyone is interested.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Cannot get ^Z to suspend a program

2003-02-12 Thread linda w \(cyg\)

 Job control and signals for Cygwin processes are areas pretty 
 internal to Cygwin.  they are also pretty complex.  IMO, it's 
 hard to talk much about adding some feature to them without the 
 context of what's already there.  If you can put your suggestions 
 in that context, I expect you'll get better feedback.  Even if that's 
 not the case, you'll be in a better position to evaluate your own 
 ideas given the current architecture.
---
I'm familiar with that logic, however, in a 'design' phase,
it's sometimes useful to forget about what is and only look at
the end result of what is wanted.  If one limits one's thinking
based on the current design, one might never come up with ideas that
would be precluded by the current design.

It's more of a wish list exercise than a request to actually
go fix something so that if someone was working on those areas or
did in the not too distant future, they could, perhaps, be mindful
of what might be, desirable, behavior.

It's like that saying about when your are up to your neck
in alligators, its difficult to remember that your original objective
was to drain the swamp. :-)

-l


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




font question

2003-02-12 Thread Henning, Brian
Hello-
I am trying to run a program in cygwin that is local to a sun ultra 10
machine.
I get the following error message:
Unable to load font '*times*-r-*6*'
the x program just exits after that.
is there anyway to get around this font problem?
thanks,

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cygpath problem?

2003-02-12 Thread Brian Gallew
155  cygpath -a 02-Girls\ Just\ Want\ To\ Have\ Fun.
/c/Documents and Settings/geek.GEEK-LAPTOP/My Documents/My Music/Cyndi
Lauper/Twelve Deadly Cyns ... And Then Some/02-Girls Just Wanc Have
Fun.

Even more interestingly, there's a formfeed embedded in all that white space.





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Can't set mark in emacs

2003-02-12 Thread Mike Robertson
Eric,

I am running emacs from bash.  When you say the Win32 console, do you mean
the windows console that bash is running in?

I installed rxvt and skimmed the info for it.  I didn't see any thing about
running it in a non-X environment.  Is there a command line switch for this,
or do I need a different package?

I'll work on setting up X later tonight.

Thanks for your help,
Mike

- Original Message -
From: Eric Hanchrow [EMAIL PROTECTED]
To: Mike Robertson [EMAIL PROTECTED]
Sent: Wednesday, February 12, 2003 12:15 PM
Subject: Re: Can't set mark in emacs


  Mike == Mike Robertson [EMAIL PROTECTED] writes:

 Mike I just installed cygwin on my NT 4.0 system.  I have tried
 Mike using the shell based emacs and am having some problems.

 I think Emacs (and some other programs) is totally useless under the
 Win32 console, although I'm not sure why (I suspect the console simply
 doesn't sent all the keystrokes to the application).

 Emacs works fine under X, but of course you'd need to install X.

 It runs a little better under the non-X version of rxvt that comes
 with Cygwin, but as I recall there are still some problems.

 --
 PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5  C8BD 6337 0041 C01C 5276



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cron problems - no longer functions after changing system date

2003-02-12 Thread Jason Waldhelm
hello,

I've noticed a problem with the cron service and as of yet, haven't found any 
posts that echo my problem.  It seems whenever the system date is changed on 
the computer on which cron is running as a service, the cron daemon stops 
functioning.  The service itself doesn't appear to stop (Windows 2000 Server 
reports it as running), but all jobs scheduled to run via cron cease 
functioning after the date is changed.  I've managed to work around this 
problem scheduling cron restart jobs via the Windows Task Scheduler, but it 
is still a nuisance.

I've also used the cron testing script provided on your site to make sure that 
cron and all directories, etc. are setup properly - the script seems to think 
everything is fine.  Given that my jobs run normally as expected when the 
date isn't changed, it leads me to believe it is a cron-related problem.

Has 

I'm running Windows 2000 Server, SP3
cygwin-1.3.17-1
cron-3.0.1-7

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




wvWare and cygwin

2003-02-12 Thread neal somos
So I wanted to use the 'wv' tools from http://www.wvware.com/
and downloaded the most recent 'wv2' files.

When running ./configure on wv2 I get the following ...

---
checking for iconv... no
checking for libiconv_open in -liconv... yes
checking for iconv.h... yes
checking need for const in iconv... no
checking whether the iconv installation is complete enough... no

wv2 depends on a modern iconv installation, supporting UNICODELITTLE and
UNICODEBIG. The detected iconv version doesn't support these conversions.

Please get a new libiconv from http://www.gnu.org/software/libiconv/
You might want to install the library to some alternative directory, in
order not to overwrite your current installation. Please use the option
--with-libiconv=DIR to specify the location.

configure: error: * * * No iconv support - unable to continue * * *

---

I figure no big deal, I can just remake the latest libiconv ...

Then when I download the latest libiconv-1.8 run ./configure and
then 'make' I get the following 

---
builddir=`pwd`; cd libcharset  make all  make install-lib libdir=$builddir/lib
includedir=$builddir/lib
make[1]: Entering directory `/home/nas0426/source/libiconv-1.8/libcharset'
cd lib  make all
make[2]: Entering directory `/home/nas0426/source/libiconv-1.8/libcharset/lib'
/bin/sh ../libtool --mode=link gcc  -o libcharset.la -rpath /usr/local/lib 
-version-info
1:0:0 -no-undefined localcharset.lo
rm -fr .libs/libcharset.la .libs/libcharset.* .libs/libcharset.*
generating symbol list for `libcharset.la'
 dlltool --export-all --exclude-symbols
DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
--output-def .libs/cygcharset-1.dll-def  localcharset.lo 
 sed -e 1,/EXPORTS/d -e s/ @ [0-9]*// -e s/ *;.*$//  .libs/cygcharset-1.dll-def 

.libs/libcharset.exp
if test x`head -1 .libs/libcharset.exp` = xEXPORTS; then cp .libs/libcharset.exp
.libs/cygcharset-1.dll-def; else echo EXPORTS  .libs/cygcharset-1.dll-def; 
_lt_hint=1; cat
.libs/libcharset.exp | while read symbol; do set dummy $symbol; case $# in 2) echo  
$2 @
$_lt_hint ;   .libs/cygcharset-1.dll-def;; *) echo  $2 @ $_lt_hint $3 ;  
.libs/cygcharset-1.dll-def;; esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi
 gcc -Wl,--base-file,.libs/cygcharset-1.dll-base -Wl,-e,__cygwin_dll_entry@12 -o
.libs/cygcharset-1.dll  localcharset.lo  
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.text+0x7c): 
undefined
reference to `_WinMain@16'
collect2: ld returned 1 exit status
make[2]: *** [libcharset.la] Error 1
make[2]: Leaving directory `/home/nas0426/source/libiconv-1.8/libcharset/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nas0426/source/libiconv-1.8/libcharset'
make: *** [all] Error 2

-

I am not getting far enough along for the recent png problem on cygwin to 
even be an issue.  Maybe there is something special about libiconv and cygwin 
that I am  unaware of.  Perhaps there is in general something different about 
compiling libraries for cygwin as opposed to other platforms that is NOT 
properly handled by ./configure or autoconf.

neal 




__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Cygwin gcc vs official gcc?

2003-02-12 Thread Brian Ford
What is the state of/reason for Cygwin/Mingw specific mods to official
gcc sources?  I assume these mods will eventually make it in to the
official tree, right?  What is the typical migration path?

I ask, because I am trying to do DWARF2 development work for Cygwin.

I thought that I should start with current gcc (3.2.2) and binutils
(2.13.2.1) sources (or CVS).  But, I just ran into a double alignment ABI
breakage with the official gcc sources.  I have applied the proper patch
locally to fix it, but I wonder why it has not been officially submitted
yet?  I also wonder how many other gotcha's there are?

What should a Cygwin developer use as a base for binutils and gcc
development work?

Thanks.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: cygpath problem?

2003-02-12 Thread Christopher Faylor
On Wed, Feb 12, 2003 at 04:27:29PM -0500, Brian Gallew wrote:
155  cygpath -a 02-Girls\ Just\ Want\ To\ Have\ Fun.
/c/Documents and Settings/geek.GEEK-LAPTOP/My Documents/My Music/Cyndi
Lauper/Twelve Deadly Cyns ... And Then Some/02-Girls Just Wanc Have
Fun.

Even more interestingly, there's a formfeed embedded in all that white space.

Even more interestingly, than...?  The formfeed problem should be fixed in
the next snapshot, FWIW.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: cygwin, g77 3-D arrays

2003-02-12 Thread mstucky5

- Original Message -
From: K [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 12, 2003 2:30 AM
Subject: cygwin, g77  3-D arrays


 Hi,

 I have a FORTRAN program which both compiles (using g77) and runs
perfectly
 in Mandrake Linux and in Unix.  However, while this program compiles
(using
 g77) perfectly in Cygwin, it will not run, it merely returns the
prompt.

 I have found that if I comment out any lines declaring or using 3-D
arrays
 then the program will run.  Unfortunately, I need to include these 3-D
 arrays for the program to give the correct answers.

 Does anybody have any ideas what the problem might be and how to fix
it?

 Thanks for your help.

How large are the 3-D arrays?

Perhaps if you showed us a little bit of the actual code it
might be easier to figure out what your problem is...

--Mark


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




[PATCH] Fix clex app. to build under cygwin

2003-02-12 Thread shahin razeghian jahromi
Hi,

  I ran into a compile problem while building clex under cygwin.
(Clex is a curses-based file manager; see http://www.clex.sk ). 
A patch to fix it is attached, along with a little shell script
that demonstrates how to build clex under Cygwin.

Shahin Jahromi
University of Southern California

--- clex-3.1.7/configure.in.old 2003-02-12 12:09:34.0 -0800
+++ clex-3.1.7/configure.in 2003-02-12 12:25:56.0 -0800
@@ -12,7 +12,7 @@
 AC_HEADER_MAJOR
 AC_HEADER_SYS_WAIT
 AC_HEADER_TIME
-AC_CHECK_HEADERS(ncurses.h fcntl.h unistd.h)
+AC_CHECK_HEADERS(ncurses.h fcntl.h unistd.h term.h ncurses/term.h)
 AC_DECL_SYS_SIGLIST
 AC_C_CONST
 AC_TYPE_UID_T
--- clex-3.1.7/src/inout.c.old  2003-02-12 12:10:51.0 -0800
+++ clex-3.1.7/src/inout.c  2003-02-12 12:12:26.0 -0800
@@ -24,7 +24,11 @@
 #else
 # include curses.h
 #endif
+#ifdef HAVE_TERM_H
 #include term.h  /* enter_bold_mode */
+#elif defined (HAVE_NCURSES_TERM_H)
+#include ncurses/term.h
+#endif
 
 #include clex.h
 #include inout.h

wget http://www.clex.sk/download/clex-3.1.7.src.tar.gz
tar zxvf clex-3.1.7.src.tar.gz
patch -p0 cygwin-clex.patch
cd clex-3.1.7
PATH=/usr/autotool/stable/bin:$PATH
rm missing
aclocal
touch NEWS README AUTHORS
autoheader
automake --add-missing
autoconf
./configure
make
 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: [avail for test] libtool-devel-20030121-1

2003-02-12 Thread Charles Wilson
Ralf Habacker wrote:


This depends on how the hybrid lib is created. If it starts with the static
object files, it would be identified as static, if it starts with the import
library as import library.


right.


BTW: Do you know which libraries are also hybrid execpt of cygwin1.dll ?


There are about a half-dozen in /usr/lib/w32api -- and worse, the static 
members are bad variable types; if you make the static members part of 
the DLL, then these vars can't be auto-imported without using 
pseudo-relocs.  Of course, since the DLLs are provided by MS, we can't 
really modify what is in them.

So these extra bits probably need to *stay* static, and appended to 
the end of the import lib...but, because they are (currently) appended 
to the end of the importlib portion, your code will get it right'.

Question: for normal import libs (that is, excluding the hybrids like
libcygwin.a), does your version work always? Or does _dll_iname 'float
around' even within otherwise normal import libs?



snip


That mean, we onbly have to figure out the relative pointer to the 'dll_iname'
string.
When I have time, I will look into the coff file format or is someone else here,
who can give a pointer to this ?


Can't help you there.  I'd hunt around in the binutils/bfd 
sources...because you're looking in an 'ar archive' for the first bfd, 
and the in that bfd for the string _dll_iname

--Chuck


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cygwin, g77 3-D arrays

2003-02-12 Thread K
Thanks for your replies, they helped me to figure out the problem.
Basically it seems the declared dimensions of my 3-D arrays were too large
for cygwin, making the parameters smaller allowed the program to run.

So a new question for you, what is the largest that cygwin can handle?  I
don't know if it will make any difference to your replies but my code was
along these lines:

PARAMETER(MOBS=5000)
PARAMETER(MC=10)
PARAMETER(MB=1000)
PARAMETER(MCV=100)
INTEGER MOBS,MC,MB,MCV
DOUBLE PRECISION fp(MB,MC,MOBS),fw(MB,MC,MCV+1),fa(MB,MC-1,MCV+1)

With the numbers given above the program would not run in cygwin (it ran in
Linux), making these much, much smaller (500,5,100,10 respectively) allowed
it to run.  Sometimes, however (depending on the data) I may need these
numbers to be bigger again (particularly MOBS), so it would be good to know
what is the largest cygwin can handle?

Thanks again!

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Is there cygwin port of docbook?

2003-02-12 Thread Joshua Daniel Franklin
That's because you don't have permission. :)
To add a URL as a cygwin mirror, you don't open it in a browser.
Add it in the setup.exe mirror window, or edit 

/etc/setup/last-mirror

to be something like mine:

$ cat /etc/setup/last-mirror 
http://mirrors.rcn.net/pub/sourceware/cygwin
http://ns1.iocc.com/~joshua/cygwin/docbook
$ 

--- Billinghurst, David (CRTS) [EMAIL PROTECTED] wrote:
 I get 
 
 Forbidden
 You don't have permission to access /~joshua/cygwin/docbook/ on this server.
 
 when I try to access http://ns1.iocc.com/~joshua/cygwin/docbook/
 
 -Original Message-
 From: Joshua Daniel Franklin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 12 February 2003 7:30 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Is there cygwin port of docbook?
 
 
   I'm wondering whether there is cygwin port of docbook.
   I want to use it in my office, but I don't wanna bother to
   install a whole Linux OS just in order to use docbook.
  
  Someone, Me thinks the DocBook maintainer, posted a message to
  [EMAIL PROTECTED] a little while ago saying that he had a mirror that would
  provide this port for a short while. Jump quickly and you might find it ;-)
 
 I have a mirror of this for use with the cygwin-doc package. Add:
 
 http://ns1.iocc.com/~joshua/cygwin/docbook/
 
 as a mirror in setup.exe and you'll see the various docbook packages
 appear in the Doc category. Note that these are testing not final packages.
 I know very little about DocBook but these work for my purpose. 

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Love to do on-line surveys??

2003-02-12 Thread Brigowen
[EMAIL PROTECTED]

Sit back, Relax, and Get Paid for What You Think!

Get paid to take online surveys - $5 to $75 per survey!
Get paid to participate in online focus groups $50 to $150 per hour!
Get paid to try new products - keep the products and get paid too!
Get paid to watch never before seen movie trailers $4 to $25 per hour!

All you have to do is register with these survey companies.  They will contact
you directly.  The companies have all been thoroughly checked out and are
legitimate companies.

For a ONE-time membership fee of $32.95 (secure on-line payment), you will get 
information and on-line access
to over 200 to 300  companies in USA and some in Canada, where you can register and 
complete
surveys for them if you qualify!  To find out more and if interested:

 
Please reply back to: mailto:[EMAIL PROTECTED]?subject=Survey101
with your Name and Email.

To be removed, please reply back with REMOVE

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cygpath problem?

2003-02-12 Thread Gary R. Van Sickle
 On Wed, Feb 12, 2003 at 04:27:29PM -0500, Brian Gallew wrote:
 155  cygpath -a 02-Girls\ Just\ Want\ To\ Have\ Fun.
 /c/Documents and Settings/geek.GEEK-LAPTOP/My Documents/My Music/Cyndi
 Lauper/Twelve Deadly Cyns ... And Then Some/02-Girls Just Wanc Have
 Fun.
 
 Even more interestingly, there's a formfeed embedded in all that white space.

 Even more interestingly, than...?

Even more interesting than Brian's taste in music.

I KID! I KID! ;-)  Of course the Goonies are good enough!  ;-)

--
Gary R. Van Sickle
Brewer.  Patriot.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: wvWare and cygwin

2003-02-12 Thread Max Bowsher
neal somos wrote:
 So I wanted to use the 'wv' tools from http://www.wvware.com/
 and downloaded the most recent 'wv2' files.

 When running ./configure on wv2 I get the following ...

 ---
 checking for iconv... no
 checking for libiconv_open in -liconv... yes
 checking for iconv.h... yes
 checking need for const in iconv... no
 checking whether the iconv installation is complete enough... no

 wv2 depends on a modern iconv installation, supporting UNICODELITTLE
 and
 UNICODEBIG. The detected iconv version doesn't support these
 conversions.

 Please get a new libiconv from http://www.gnu.org/software/libiconv/
 You might want to install the library to some alternative directory,
 in
 order not to overwrite your current installation. Please use the
 option
 --with-libiconv=DIR to specify the location.

Please think before you post. Yo obviously haven't. Cygwin is *already*
using libiconv-1.8.

 ---

 I figure no big deal, I can just remake the latest libiconv ...

 Then when I download the latest libiconv-1.8 run ./configure and
 then 'make' I get the following

 ---
 builddir=`pwd`; cd libcharset  make all  make install-lib
 libdir=$builddir/lib includedir=$builddir/lib
 make[1]: Entering directory
 `/home/nas0426/source/libiconv-1.8/libcharset'
 cd lib  make all
 make[2]: Entering directory
 `/home/nas0426/source/libiconv-1.8/libcharset/lib' /bin/sh ../libtool
 --mode=link gcc  -o libcharset.la -rpath /usr/local/lib -version-info
 1:0:0 -no-undefined localcharset.lo
 rm -fr .libs/libcharset.la .libs/libcharset.* .libs/libcharset.*
 generating symbol list for `libcharset.la'
  dlltool --export-all --exclude-symbols

DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTSta
rtup@12,DllEntryPoint@12
 --output-def .libs/cygcharset-1.dll-def  localcharset.lo
  sed -e 1,/EXPORTS/d -e s/ @ [0-9]*// -e s/ *;.*$// 
 .libs/cygcharset-1.dll-def  .libs/libcharset.exp
 if test x`head -1 .libs/libcharset.exp` = xEXPORTS; then cp
 .libs/libcharset.exp .libs/cygcharset-1.dll-def; else echo EXPORTS 
 .libs/cygcharset-1.dll-def; _lt_hint=1; cat .libs/libcharset.exp |
 while read symbol; do set dummy $symbol; case $# in 2) echo  $2 @
 $_lt_hint ;   .libs/cygcharset-1.dll-def;; *) echo  $2 @
  $_lt_hint $3 ;   .libs/cygcharset-1.dll-def;; esac;
 _lt_hint=`expr 1 + $_lt_hint`; done; fi gcc
 -Wl,--base-file,.libs/cygcharset-1.dll-base
 -Wl,-e,__cygwin_dll_entry@12 -o .libs/cygcharset-1.dll
 localcharset.lo

/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.text+0
x7c):
 undefined reference to `_WinMain@16'
 collect2: ld returned 1 exit status
 make[2]: *** [libcharset.la] Error 1
 make[2]: Leaving directory
 `/home/nas0426/source/libiconv-1.8/libcharset/lib'
 make[1]: *** [all] Error 2
 make[1]: Leaving directory
 `/home/nas0426/source/libiconv-1.8/libcharset'
 make: *** [all] Error 2

 -

 I am not getting far enough along for the recent png problem on
 cygwin to
 even be an issue.  Maybe there is something special about libiconv
 and cygwin
 that I am  unaware of.  Perhaps there is in general something
 different about
 compiling libraries for cygwin as opposed to other platforms that is
 NOT
 properly handled by ./configure or autoconf.

Again, please think. There is a Cygwin package of libiconv, and there is a
patch in the source package.



Max.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Amanda and the windows world [Q]

2003-02-12 Thread Dieter Meinert
Does anyone have experience with an amanda = SERVER  in a windows environment ? 
Unfortunately I don't have any Unix/Linux host available.

I compiled the complete amanda package under Cygwin 1.3.10, I just don't know how to 
start the server and how to connect to the client. 

I used amanda on different Unices for several years and would like to have it running 
here, too. 

 Regards
Dieter Meinert
 
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/