Re: *** unable to allocate heap, heap_chunk_size 0, Win32 error 0

2003-10-06 Thread Ronald van Gogh
First of all, sorry, but I still don't know how to post a reply when I'm 
registered on the mailinglist in digest mode. And nobody seems to be able to 
tell me !

Last week I asked a question about failing scripts (error: unable to 
allocate heap. See mail of 29/9). I was then pointed to the page explaining 
how to report problems. So I did, as told, collect all the necessary 
information, put it in a mail (30/9) and posted it on the mailinglist.
And since that moment I don't hear anything anymore !

Can somebody please help me with this problem, since it's causing me really 
big problems !

Kind regards,  Ronald van Gogh

_
Chatten met je online vrienden via MSN Messenger. http://messenger.msn.nl/
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: 1.5.4-1: Problem with XEmacs, fonts, and subprocesses.

2003-10-06 Thread Henry S. Thompson
Terrence Brannon <[EMAIL PROTECTED]> writes:

>>I have just recently upgraded to the latest Cygwin and latest XEmacs.
>>Now, whenever I invoke a subprocess in XEmacs, all text in the XEmacs
>>frame goes blank. I am using zsh as my shell, but the problem always
>>occurs whether I am invoking a subshell, compiling, grepping, or running
>>gnu-serv. I am running Windows XP Pro SP1 and XEmacs 21.4.13.

My experience was similar, and the work-around I found successful was
to launch xemacs from rxvt/bash, rather than from the Task Bar or
Start Menu.  I spent a fair amount of time attempting to discover
whether there was an environment variable which accounted for this,
but failed.

If you're _really_ obsessive (like me :-( about launching from an
icon, compile the following and point the icon at it.

Hope this helps,

ht

#define WIN32

#include 
#include 
#include 
#include 
#include 
#include 

#include 

int WINAPI
WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow) {

   STARTUPINFO start;
   SECURITY_ATTRIBUTES sec_attrs;
   SECURITY_DESCRIPTOR sec_desc;
   PROCESS_INFORMATION child;
   int retval;

   memset (&start, 0, sizeof (start));
   start.cb = sizeof (start);
   start.dwFlags = STARTF_USESHOWWINDOW;
   start.wShowWindow = SW_HIDE;
  
   sec_attrs.nLength = sizeof (sec_attrs);
   sec_attrs.lpSecurityDescriptor = NULL;
   sec_attrs.bInheritHandle = FALSE;

   if (CreateProcess (NULL, "c:\\cygwin\\bin\\bash -c 
\"/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start\"", &sec_attrs, NULL, TRUE, 0,
  NULL, NULL, &start, &child))
   {
  CloseHandle (child.hThread);
  CloseHandle (child.hProcess);
   }
   else
 exit(1);
   return retval;

}

-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
  Half-time member of W3C Team
 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED]
 URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]

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



RE: cygpath hangs from postinstall scripts when called like $(cygpath -S) but not otherwise

2003-10-06 Thread Hannu E K Nevalainen
> From: Igor Pechtchanski
> Sent: Monday, October 06, 2003 1:44 AM

> It would be easy to check if the above was the reason for the hang by
> trying to call the following program from a postinstall script and seeing
> if it also hangs:

It doesn't hang. :-I

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --


$ pwd
/home/Hannu/tc

$ for f in *.{c,sh} ;do echo --- $f ---;cat $f ;done
--- tapp.c ---
int hello();
int main() {
  printf("%d\n", hello());
  printf("%d\n", hello());
}
--- tdll.c ---
#include 
static int counter = 0;
int hello() {
  fprintf (stderr, "");  /* to pull in msvcrt.dll */
  return counter++;
}
--- create_tap.sh ---
#!/bin/bash -x
gcc -mno-cygwin -shared -g -o tdll.dll tdll.c
gcc -g -o tapp.exe tapp.c -L./ -ltdll
if [ -r tapp.exe ] ; then
cygcheck tapp.exe
./tapp.exe
fi

$ create_tap.sh
+ gcc -mno-cygwin -shared -g -o tdll.dll tdll.c
+ gcc -g -o tapp.exe tapp.c -L./ -ltdll
+ '[' -r tapp.exe ']'
+ cygcheck tapp.exe
Found: .\tapp.exe
tapp.exe
  C:\Program\cygwin\bin\cygwin1.dll
F:\WINNT\system32\KERNEL32.dll
  F:\WINNT\system32\NTDLL.DLL
  .\tdll.dll
F:\WINNT\system32\msvcrt.dll
+ ./tapp.exe
0
1

$ ls -l
total 32
-rwxr-xr-x1 Hannu 161 Oct  6 11:24 create_tap.sh*
-rw-r--r--1 Hannu  91 Oct  6 11:23 tapp.c
-rwxr-xr-x1 Hannu   13623 Oct  6 11:42 tapp.exe*
-rw-r--r--1 Hannu 138 Oct  6 11:07 tdll.c
-rwxr-xr-x1 Hannu   14652 Oct  6 11:42 tdll.dll*

$ md5sum -b *.exe *.dll
9a9ea252c5dc91725f389f0c0c013165 *tapp.exe
fd013cf1b8d03a4a0243eb75e44d8198 *tdll.dll

$ cygstart /install/setup.exe &
[1] 2316

$ tail /var/log/setup.log.full
2003/10/06 11:40:25 xinetd
2003/10/06 11:40:25 xmlto
2003/10/06 11:40:25 xpm-nox
2003/10/06 11:40:25 zip
2003/10/06 11:40:25 zsh
2003/10/06 11:40:25 running: C:\Program\cygwin\bin\sh.exe -c
/etc/postinstall/tc.sh
0
1
2003/10/06 11:40:28 mbox note: Nothing needed to be installed
2003/10/06 11:40:29 Ending cygwin install
[1]+  Donecygstart /install/setup.exe



-- the cygpath hang once more, i.e. still there --

$ cygstart /install/setup.exe &
[1] 2248


$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 1636   11636   1080  con  500 11:06:44 /usr/bin/rxvt
 1068163610688720  500 11:06:44 /usr/bin/bash
  112   1 112112  con  500 11:55:34 /usr/bin/sh
I2352 112 112   2352  con  500 11:55:34 /usr/bin/bash
 23442352 112   2344  con  500 11:55:35 /usr/bin/cygpath
 125210681252   23640  500 11:55:50 /usr/bin/ps
[1]+  Donecygstart /install/setup.exe


$ kill -9 2344


$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 1636   11636   1080  con  500 11:06:44 /usr/bin/rxvt
 1068163610688720  500 11:06:44 /usr/bin/bash
 129210681292   23400  500 11:58:36 /usr/bin/ps

$ tail /var/log/setup.log.full
2003/10/06 11:55:33 xpm-nox
2003/10/06 11:55:33 zip
2003/10/06 11:55:33 zsh
2003/10/06 11:55:34 running: C:\Program\cygwin\bin\sh.exe -c
/etc/postinstall/t2.sh
++ cygpath -A -P
+ TOPFOLDER=/Cygwin-XFree86
+ echo /Cygwin-XFree86
/Cygwin-XFree86
2003/10/06 11:56:15 mbox note: Nothing needed to be installed
2003/10/06 11:56:16 Ending cygwin install

$ mv /etc/postinstall/t2.sh.done /etc/postinstall/t2.sh

$ cat /etc/postinstall/t2.sh
#!/bin/bash -x

TOPFOLDER="`cygpath -A -P`/Cygwin-XFree86"
echo $TOPFOLDER

$

--END OF MESSAGE--


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



Recent snapshots and bash/stopping processes

2003-10-06 Thread Rolf Campbell
Open one window (rxvt):
$ sleep 1000
Open a seperate window (rxvt):
$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 1716   11716   1716  con 11643 18:57:52 /usr/bin/rxvt
 163617161636   17240 11643 18:57:52 /usr/bin/bash
 1832   11832   1832  con 11643 18:59:13 /usr/bin/rxvt
 2072   12072   2072  con 11643 09:35:13 /usr/bin/rxvt
 232020722320   22602 11643 09:35:16 /usr/bin/bash
 2360   12360   2360  con 11643 09:50:50 /usr/bin/rxvt
 184423601844   24043 11643 09:50:53 /usr/bin/bash
 244823202448   24602 11643 09:51:07 /usr/bin/sleep
 228418442284   24523 11643 09:51:10 /usr/bin/ps
$ kill -STOP 2448
$
Look back at first window:
$ sleep 1000
[1]+  Stopped sleep 1000
$
This has only started happending with recent cygwin versions, I'm 
running Oct2 right now.


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Oct 06 09:57:25 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
c:\cygwin\bin
C:\WINNT\SYSTEM32
C:\WINNT
C:\WINNT\SYSTEM32\WBEM
C:\PERFORCE
C:\cygwin\bin
C:\WINNT\system32
C:\WINNT
C:\WINNT\System32\Wbem
C:\Perforce
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\Program Files\SSH

Output from c:\cygwin\bin\id.exe (nontsec)
UID: 11643(rcampbell) GID: 10513(Domain Users)
10513(Domain Users)

Output from c:\cygwin\bin\id.exe (ntsec)
UID: 11643(rcampbell) GID: 10513(Domain Users)
544(Administrators)   545(Users)
10513(Domain Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `binmode'
HOME = `C:\cygwin\home\rcampbell'
MAKE_MODE = `unix'
PWD = `/tmp'
USER = `rcampbell'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\rcampbell\Application Data'
COLORFGBG = `0;default;15'
COLORTERM = `rxvt-xpm'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `PCRCAMPBELL2'
COMSPEC = `C:\WINNT\system32\cmd.exe'
COSMIC = `c:/node.beta1/COSMIC'
DISPLAY = `:0'
HOMEDRIVE = `C:'
HOMEPATH = `\'
LOGONSERVER = `\\PCRCAMPBELL2'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/c/base2/node/comp'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSE_ROOT = `C:\OSE\OSE4.4.1\'
P4CONFIG = `.p4config'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyc;.pyo;.pyw;.pys'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 6, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0806'
PROGRAMFILES = `C:\Program Files'
PS1 = `\[\]$PWD\[\]>\[\] '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\Temp'
TERM = `xterm'
TROPIC_UNIQUE_ID = `150'
USERDNSDOMAIN = `tropicnetworks.com'
USERDOMAIN = `TROPICNETWORKS'
USERNAME = `rcampbell'
USERPROFILE = `C:\Documents and Settings\rcampbell'
WINDIR = `C:\WINNT'
WINDOWID = `168046576'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/c
  (default) = `C:'
  flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start 
Menu\Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:/cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/bin
  (default) = `c:\cygwin\bin'
  flags = 0x004a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/bin/cygcheck.exe
  (default) = `c:\cygwin\bin\cygcheck.exe'
  flags = 0x001a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/bin/strace.exe
  (default) = `c:\cygwin\bin\strace.exe'
  flags = 0x001a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:/cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:/cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS   19069Mb  76% CP CS UN PA FC Campbell
d:  cd  CDFS   0Mb -2147483548%CS  Audio CD

C: 

RE: cygpath hangs from postinstall scripts when called like $(cygpath -S) but not otherwise

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Hannu E K Nevalainen wrote:

> > From: Igor Pechtchanski
> > Sent: Monday, October 06, 2003 1:44 AM
>
> > It would be easy to check if the above was the reason for the hang by
> > trying to call the following program from a postinstall script and seeing
> > if it also hangs:
>
> It doesn't hang. :-I

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: Recent snapshots and bash/stopping processes

2003-10-06 Thread Corinna Vinschen
On Mon, Oct 06, 2003 at 10:00:53AM -0400, Rolf Campbell wrote:
> Open one window (rxvt):
> $ sleep 1000
> 
> Open a seperate window (rxvt):
> $ ps
>   PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
>  1716   11716   1716  con 11643 18:57:52 /usr/bin/rxvt
>  163617161636   17240 11643 18:57:52 /usr/bin/bash
>  1832   11832   1832  con 11643 18:59:13 /usr/bin/rxvt
>  2072   12072   2072  con 11643 09:35:13 /usr/bin/rxvt
>  232020722320   22602 11643 09:35:16 /usr/bin/bash
>  2360   12360   2360  con 11643 09:50:50 /usr/bin/rxvt
>  184423601844   24043 11643 09:50:53 /usr/bin/bash
>  244823202448   24602 11643 09:51:07 /usr/bin/sleep
>  228418442284   24523 11643 09:51:10 /usr/bin/ps
> $ kill -STOP 2448
> $
> 
> Look back at first window:
> $ sleep 1000
> 
> [1]+  Stopped sleep 1000
> $
> 
> This has only started happending with recent cygwin versions, I'm 
> running Oct2 right now.

Erm... and what's wrong with this?  It's the same as on Linux.

Corinna

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

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



RE: [ANNOUNCEMENT] notice of package removal: gcc2-2.95-*

2003-10-06 Thread Igor Pechtchanski
On Sun, 5 Oct 2003, Gary R. Van Sickle wrote:

> > On Sun, Oct 05, 2003 at 12:52:44PM -0400, Larry Hall wrote:
> > >At 01:13 AM 10/5/2003, Christopher Faylor you wrote:
> > >
> > >
> > >>Oh, and I probably have to say that the gcc 3.3.1 package will still be
> > >>available.
> > >
> > >Yes but will it work with B20??? ;-)
> >
> > I don't think it's even an issue.  B20 compiles files for you
> > automatically and corrects errors on the fly.  So, even if things didn't
> > work initially, B20, would eventually figure out what was wrong and
> > correct the problem.
>
> Wow, that sounds pretty sweet!  Does anybody know the link to download B20?
>
> ;-)

I'm sorry, we don't keep old versions of Cygwin around on the mirrors.
You might be able to find a *very* stale mirror which still has B20.
However, you're strongly encouraged to upgrade to the latest Cygwin, even
though it doesn't have all the wonderful features of B20, just because
everyone else uses it.  This list cannot provide more than cursory support
for B20 installations.

Come to think of it, maybe the reason we don't hear more B20 questions on
this list is because it's so wonderful and doesn't need any support?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: 1.5.4-1: Problem with XEmacs, fonts, and subprocesses.

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Henry S. Thompson wrote:

> Terrence Brannon <[EMAIL PROTECTED]> writes:
>
> >>I have just recently upgraded to the latest Cygwin and latest XEmacs.
> >>Now, whenever I invoke a subprocess in XEmacs, all text in the XEmacs
> >>frame goes blank. I am using zsh as my shell, but the problem always
> >>occurs whether I am invoking a subshell, compiling, grepping, or running
> >>gnu-serv. I am running Windows XP Pro SP1 and XEmacs 21.4.13.
>
> My experience was similar, and the work-around I found successful was
> to launch xemacs from rxvt/bash, rather than from the Task Bar or
> Start Menu.  I spent a fair amount of time attempting to discover
> whether there was an environment variable which accounted for this,
> but failed.
>
> If you're _really_ obsessive (like me :-( about launching from an
> icon, compile the following and point the icon at it.
>
> Hope this helps,
> ht
> [code snipped]
>if (CreateProcess (NULL, "c:\\cygwin\\bin\\bash -c 
> \"/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start\"", &sec_attrs, NULL, TRUE, 
> 0,
>   NULL, NULL, &start, &child))

Ouch!  Why not simply point the shortcut at 'c:\cygwin\bin\bash --login -c
"/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start"'?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



socket operation on non-socket errors

2003-10-06 Thread klavs
Hello,

I recently upgraded my cygwin installation to the latest version: 1.5.5-1
on a win2K system with service pack 4. The kit works great except when
running simple basic commands like rsh or rlogin (telnet seem to work).
When trying to login to cvs to get the sources for rsh to rlogin to see
whether I could fix it, I got the same error

$ cvs login
Logging in to :pserver:[EMAIL PROTECTED]:2401/cvs/src
CVS password:
cvs [login aborted]: reading from server: Socket operation on non-socket

$ rlogin xxx.austin.ibm.com -l root
rlogin: read: Socket operation on non-socket
rlogin: connection closed.

How do you fix this problem? I saw a bunch of mails all related to rsync,
but that was for 1.5.0-1, also there was a statement in the realease note
that it had been fixed. Either it has reappeared or it has not been fixed
for rsh, rlogin and cvs login.

Sincerely
Klavs
--
 ,,,
(o o)
oOO==(_)==OOo
Klavs T Pedersen Tlf: 512-838-9499/8-0922/8-3077
IBM Risc System/6000 DivisionFax: 512-823-8487
AIX System Performance   cell: 512-587-6267
11400 Burnet Rd. Bld 905/9530 #7E021 email: [EMAIL PROTECTED]
Austin TX 78758-3493.oooO  Oooo. Advisory Software Engineer
(   )==(   )=
 \ () /
  \_)  (_/

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



Re: 1.5.4-1: Problem with XEmacs, fonts, and subprocesses.

2003-10-06 Thread Henry S. Thompson
Igor Pechtchanski <[EMAIL PROTECTED]> writes:



>> If you're _really_ obsessive (like me :-( about launching from an
>> icon, compile the following and point the icon at it.
>>
>> Hope this helps,
>> ht
>> [code snipped]
>>if (CreateProcess (NULL, "c:\\cygwin\\bin\\bash -c 
>> \"/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start\"", &sec_attrs, NULL, TRUE, 
>> 0,
>>   NULL, NULL, &start, &child))
>
> Ouch!  Why not simply point the shortcut at 'c:\cygwin\bin\bash --login -c
> "/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start"'?
>   Igor

Because that produces an unsightly command window as well as the
desired xemacs window.  That's what all the WinMain etc. stuff is
there to defeat.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
  Half-time member of W3C Team
 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED]
 URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]

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



Re: 1.5.4-1: Problem with XEmacs, fonts, and subprocesses.

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Henry S. Thompson wrote:

> Igor Pechtchanski <[EMAIL PROTECTED]> writes:
>
> 
>
> >> If you're _really_ obsessive (like me :-( about launching from an
> >> icon, compile the following and point the icon at it.
> >>
> >> Hope this helps,
> >> ht
> >> [code snipped]
> >>if (CreateProcess (NULL, "c:\\cygwin\\bin\\bash -c 
> >> \"/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start\"", &sec_attrs, NULL, 
> >> TRUE, 0,
> >>   NULL, NULL, &start, &child))
> >
> > Ouch!  Why not simply point the shortcut at 'c:\cygwin\bin\bash --login -c
> > "/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start"'?
> >   Igor
>
> Because that produces an unsightly command window as well as the
> desired xemacs window.  That's what all the WinMain etc. stuff is
> there to defeat.
>
> ht

Umm, yeah, ok, make that 'c:\cygwin\usr\X11R6\bin\run.exe /bin/bash
--login -c "/usr/local/bin/i686-pc-cygwin/xemacs -f gnuserv-start"', then.
:-D
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: Recent snapshots and bash/stopping processes

2003-10-06 Thread Rolf Campbell
Corinna Vinschen wrote:
On Mon, Oct 06, 2003 at 10:00:53AM -0400, Rolf Campbell wrote:

Open one window (rxvt):
$ sleep 1000
Open a seperate window (rxvt):
$ ps
 PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
1716   11716   1716  con 11643 18:57:52 /usr/bin/rxvt
163617161636   17240 11643 18:57:52 /usr/bin/bash
1832   11832   1832  con 11643 18:59:13 /usr/bin/rxvt
2072   12072   2072  con 11643 09:35:13 /usr/bin/rxvt
232020722320   22602 11643 09:35:16 /usr/bin/bash
2360   12360   2360  con 11643 09:50:50 /usr/bin/rxvt
184423601844   24043 11643 09:50:53 /usr/bin/bash
244823202448   24602 11643 09:51:07 /usr/bin/sleep
228418442284   24523 11643 09:51:10 /usr/bin/ps
$ kill -STOP 2448
$
Look back at first window:
$ sleep 1000
[1]+  Stopped sleep 1000
$
This has only started happending with recent cygwin versions, I'm 
running Oct2 right now.
Erm... and what's wrong with this?  It's the same as on Linux.
Well, if this is design intent, then that's fine.  But, on older 
cygwins, it used to just stop the process (the parent of the stopped 
process (bash) did nothing).  It seems a little awkward to me at least, 
if I stop/start a process, then I end up with both bash & that process 
running at the same time, in the same console.



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


Re: Recent snapshots and bash/stopping processes

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Rolf Campbell wrote:

> Corinna Vinschen wrote:
> > On Mon, Oct 06, 2003 at 10:00:53AM -0400, Rolf Campbell wrote:
> >
> >>Open one window (rxvt):
> >>$ sleep 1000
> >>
> >>Open a seperate window (rxvt):
> >>$ ps
> >>  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
> >> 1716   11716   1716  con 11643 18:57:52 /usr/bin/rxvt
> >> 163617161636   17240 11643 18:57:52 /usr/bin/bash
> >> 1832   11832   1832  con 11643 18:59:13 /usr/bin/rxvt
> >> 2072   12072   2072  con 11643 09:35:13 /usr/bin/rxvt
> >> 232020722320   22602 11643 09:35:16 /usr/bin/bash
> >> 2360   12360   2360  con 11643 09:50:50 /usr/bin/rxvt
> >> 184423601844   24043 11643 09:50:53 /usr/bin/bash
> >> 244823202448   24602 11643 09:51:07 /usr/bin/sleep
> >> 228418442284   24523 11643 09:51:10 /usr/bin/ps
> >>$ kill -STOP 2448
> >>$
> >>
> >>Look back at first window:
> >>$ sleep 1000
> >>
> >>[1]+  Stopped sleep 1000
> >>$
> >>
> >>This has only started happending with recent cygwin versions, I'm
> >>running Oct2 right now.
> > Erm... and what's wrong with this?  It's the same as on Linux.
>
> Well, if this is design intent, then that's fine.  But, on older
> cygwins, it used to just stop the process (the parent of the stopped
> process (bash) did nothing).  It seems a little awkward to me at least,
> if I stop/start a process, then I end up with both bash & that process
> running at the same time, in the same console.

Rolf,

The last sentence doesn't make sense.  If you're complaining about the
notification, put a "set +b" (or "set +o notify") in your .bashrc.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: Recent snapshots and bash/stopping processes

2003-10-06 Thread Rolf Campbell
Igor Pechtchanski wrote:

On Mon, 6 Oct 2003, Rolf Campbell wrote:


Corinna Vinschen wrote:

On Mon, Oct 06, 2003 at 10:00:53AM -0400, Rolf Campbell wrote:


Open one window (rxvt):
$ sleep 1000
Open a seperate window (rxvt):
$ ps
PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
   1716   11716   1716  con 11643 18:57:52 /usr/bin/rxvt
   163617161636   17240 11643 18:57:52 /usr/bin/bash
   1832   11832   1832  con 11643 18:59:13 /usr/bin/rxvt
   2072   12072   2072  con 11643 09:35:13 /usr/bin/rxvt
   232020722320   22602 11643 09:35:16 /usr/bin/bash
   2360   12360   2360  con 11643 09:50:50 /usr/bin/rxvt
   184423601844   24043 11643 09:50:53 /usr/bin/bash
   244823202448   24602 11643 09:51:07 /usr/bin/sleep
   228418442284   24523 11643 09:51:10 /usr/bin/ps
$ kill -STOP 2448
$
Look back at first window:
$ sleep 1000
[1]+  Stopped sleep 1000
$
This has only started happending with recent cygwin versions, I'm
running Oct2 right now.
Erm... and what's wrong with this?  It's the same as on Linux.
Well, if this is design intent, then that's fine.  But, on older
cygwins, it used to just stop the process (the parent of the stopped
process (bash) did nothing).  It seems a little awkward to me at least,
if I stop/start a process, then I end up with both bash & that process
running at the same time, in the same console.
Rolf,

The last sentence doesn't make sense.  If you're complaining about the
notification, put a "set +b" (or "set +o notify") in your .bashrc.
Igor
I'm not complaining about the notification, I'm complaining about the 
fact that bash resumes it's interactivity when one of it's children 
processes receive a stop signal (that it didn't generate).

/home/rcampbell> set +b
/home/rcampbell> sleep 100
[1]+  Stopped sleep 100



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


GCC Compilation Error

2003-10-06 Thread Paul Bezzam

Hello,

I have a question: I recently installed Cygwin, and I am trying to compile
a C program.  But I get this message after I use the compile command:

/usr/lib/gcc-lib/i686-pc-cygwin/3.0/../.i686-pc-cygwin/bin/ld: Cannot find
-luser32
collect2: ld returned 1 exit status

I am pretty new at this..Can you please offer any help.

Thanks.

Paul


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



Re: GCC Compilation Error

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Paul Bezzam wrote:

> Hello,
>
> I have a question: I recently installed Cygwin, and I am trying to compile
> a C program.  But I get this message after I use the compile command:
>
> /usr/lib/gcc-lib/i686-pc-cygwin/3.0/../.i686-pc-cygwin/bin/ld: Cannot find
> -luser32
> collect2: ld returned 1 exit status
>
> I am pretty new at this..Can you please offer any help.
>
> Thanks.
> Paul

Paul,

When the linker receives a -lBLAH flag, it looks for a file called
libBLAH.a (on Cygwin, also libBLAH.dll.a or BLAH.dll).  The Cygwin package
search page at  shows that "libuser32" is
contained in the w32api package.  This means that to compile your program
you need to install that package (using Cygwin setup.exe).  HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: GCC Compilation Error

2003-10-06 Thread Larry Hall
At 11:58 AM 10/6/2003, Paul Bezzam you wrote:

>Hello,
>
>I have a question: I recently installed Cygwin, and I am trying to compile
>a C program.  But I get this message after I use the compile command:
>
>/usr/lib/gcc-lib/i686-pc-cygwin/3.0/../.i686-pc-cygwin/bin/ld: Cannot find
>-luser32
>collect2: ld returned 1 exit status
>
>I am pretty new at this..Can you please offer any help.
>


Sure.  Newbies should skim the available documentation (FAQ, User Guide, 
and email archives).  These are helpful in answering allot of FAQ/newbie
questions and issues.  For this particular issue, which pops up from time
to time on this list, you should visit  to 
find out which package contains this library that you need.  Then, run setup 
and install that package.  This approach is the recommended procedure for all
cases where you're missing something you want/need.



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


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



Re: messed up user permissions from w2k terminal session

2003-10-06 Thread James D Below
In further troubleshooting, I verified the w2k sp4 the policy settings with 
another w2k sp4 system that works. No differences were found.  I did find 
that the version of cygwin that I was running was different. The version of 
cygwin on the working system is 1.3.22-1.

I removed my broken installation of cygwin 1.5.5.1 and installed 1.3.22-1 
and my system function correctly. No more "CreateFileMapping - Win32 error 5".

I have attached the cygcheck from the working installation as cygcheck.good

I have attached the cygcheck from the broken installation as cygcheck.bad

Just to verify that 1.5.5.1 still didn't work, I updated the working 
1.3.22-1 installation and sure enough the "CreateFileMapping" error 
occurred. I also tried the 1.5.4.1 version and that also had this same error.

Here is a getfacl and a ls of "ls.exe"
getfacl /bin/ls.exe
# file: /bin/ls.exe
# owner: Administrator
# group: Users
user::---
group::---
mask:rwx
other:rwx
/bin/ls -l /bin/ls
-rwxrwxrwx1 Administ Users   68608 Jun 15  2001 /bin/ls
I have never installed/built cygwin from snapshot.  I'll give it a try and 
get back with you.

thanks.

At 05:12 PM 10/3/2003 -0400, Igor Pechtchanski wrote:
On Fri, 3 Oct 2003, James D Below wrote:

> HI everyone,
>
> I'm not sure how I did it but I messed up my user permissions or local
> policy settings.  Now whenever I run any cygwin app (bash.exe, wc.exe,
> rxvt.exe) from a w2k terminal session and logged in as a user, I see the
> following error:
>
>    CreateFileMapping, Win32 error 5.  Terminating.
>
> I'm running Windows 2000 SP4 and CYGWIN = binmode tty ntsec
>
> More specific details
>
> If I am logged into the console I can run any cygwin apps. When I log in
> remotely to the server through ssh, everything is fine.  The only time a
> problem occurs is when I login through a terminal server client using an
> account other than "Administrator". The administrator account doesn't
> experience problem. A user account belonging in the Administrators 
group does.
>
> I am at a loss trying to figure out which policy/permission was changed to
> cause this problem.
>
> I've been google'ing for a few days trying to track down what might have
> changed but to no avail.
>
> Any hints on troubleshooting errors like this or an idea as to what
> permission/policy is needed for "CreateFileMapping", would be appreciated.
>
> If a cygcheck would be helpful let me know and I will send one.
>
> thanks
> James

A cygcheck output wouldn't hurt in any case (please attach it, though,
rather than including it inline), but another piece of information that
might help is the output of "ls -l /bin/ls.exe; getfacl /bin/ls.exe".
BTW, "net helpmsg 5" results in "Access is denied".
Igor
--
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


cygcheck.good
Description: Binary data

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Oct 06 09:59:59 2003

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4

Path:   H:\cygwin\usr\local\bin
H:\cygwin\bin
H:\cygwin\bin
H:\cygwin\usr\X11R6\bin
h:\Program Files\Common Files\VERITAS Shared
h:\PROGRA~1\VERITAS\NetBackup\bin
h:\Program Files\Microsoft Visual Studio\Common\Tools
h:\Program Files\Microsoft Visual Studio\Common\Msdev98\BIN
h:\Program Files\Microsoft Visual Studio\DF98\BIN
h:\Program Files\Microsoft Visual Studio\VC98\BIN
h:\WINNT\system32
h:\WINNT
h:\WINNT\System32\Wbem
h:\Program Files\Rational\ClearCase\bin
h:\Program Files\Common Files\Adaptec Shared\System
h:\Program Files\Microsoft Visual Studio\Common\Msdev98\Bin
x:\dev\bin
h:\mico\win32-bin

Output from H:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 1105(ncp)
512(Domain Admins)
513(Domain Users) 519(Enterprise Admins)
520(Group Policy Creator Owners)  
1105(ncp) 518(Schema Admins)

Output from H:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 1105(ncp)
512(Domain Admins)
513(Domain Users) 519(Enterprise Admins)
520(Group Policy Creator Owners)  
1105(ncp) 518(Schema Admins)

SysDir: H:\WINNT\system32
WinDir: H:\Documents and Settings\administrator.NPSS\WINDOWS

HOME = `H:\cygwin\u\Administrator'

compiling glib on cygwin

2003-10-06 Thread Anand Kumria
Hi,

I've been trying to replicate the build that Masahiro Sakai (CC'd) has on
his web page 
http://web.sfc.keio.ac.jp/~s01397ms/cygwin/index.html.en> of Gnome
on cygwin.

I've tried both with, and without, the patch on his website and things
seem to fail in the same place. 

Here is where things go foul:

Making all in gobject
make[2]: Entering directory `/home/root/src/glib-2.2.3-jp/gobject'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GLib-GObject\" -I.. -I../glib
-I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGOBJECT_COMPILATION -DG_DI
SABLE_CONST_RETURNS-g -O2 -Wall -c glib-genmarshal.c
/bin/bash ../libtool --mode=link gcc  -g -O2 -Wall  -o glib-genmarshal.exe  glib
-genmarshal.o ../glib/libglib-2.0.la -lintl
mkdir .libs
gcc -g -O2 -Wall -o .libs/glib-genmarshal.exe glib-genmarshal.o  ../glib/.libs/l
ibglib-2.0.dll.a -L/usr/lib -luser32 -lkernel32 /usr/lib/libintl.dll.a /usr/lib/
libiconv.dll.a -Wl,--rpath -Wl,/usr/local/lib
glib-genmarshal.o(.text+0x1807): In function `complete_in_arg':
/home/root/src/glib-2.2.3-jp/gobject/glib-genmarshal.c:218: undefined reference
to `_g_log'
[...]

with lots more undefined references.

Has anyone seen this before, know if there is another particular patch I
should be using? Any insights and/or pointers would be appreciated.

Thanks,
Anand


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



Re: messed up user permissions from w2k terminal session

2003-10-06 Thread James D Below
If I knew installing a snopshot was so convenient and easy, I would have 
done it prior to sending out my previous response.

I installed the cygwin-inst-20031002.tar.bz2 but the error still occurs.

Here is how I reproduce the error:
I launch my rdp Terminal Server Client, connect to server, log in as a user 
and run a cmd prompt window, then run H:\cygwin\cywin.bat. The 
CreateFileMapping Win32 error 5 comes up.  This only occurs from a 
non-admin account.

When I walk up to the console and login, cywin 1.5.5.1 runs just fine.

The problem does *not* occur in version cygwin version 1.3.22-1

Also, the cygchecks (cygcheck.bad and cygcheck.snapshot) were executed when 
I was logged in as administrator since the user account couldn't run 
anything under H:\cygwin

Let me know if there is anything else I should try.

thanks.
james
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Oct 06 12:58:11 2003

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4

Path:   H:\cygwin\usr\local\bin
H:\cygwin\bin
H:\cygwin\bin
H:\cygwin\usr\X11R6\bin
h:\Program Files\Common Files\VERITAS Shared
h:\PROGRA~1\VERITAS\NetBackup\bin
h:\Program Files\Microsoft Visual Studio\Common\Tools
h:\Program Files\Microsoft Visual Studio\Common\Msdev98\BIN
h:\Program Files\Microsoft Visual Studio\DF98\BIN
h:\Program Files\Microsoft Visual Studio\VC98\BIN
h:\WINNT\system32
h:\WINNT
h:\WINNT\System32\Wbem
h:\Program Files\Rational\ClearCase\bin
h:\Program Files\Common Files\Adaptec Shared\System
h:\Program Files\Microsoft Visual Studio\Common\Msdev98\Bin
x:\dev\bin
h:\mico\win32-bin

Output from H:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 1105(ncp)
512(Domain Admins)
1105(ncp) 513(Domain Users)
519(Enterprise Admins)
520(Group Policy Creator Owners)  518(Schema Admins)
544(Administrators)   
544(Administrators)

Output from H:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 1105(ncp)
512(Domain Admins)
1105(ncp) 513(Domain Users)
519(Enterprise Admins)
520(Group Policy Creator Owners)  518(Schema Admins)
513(Domain Users) 
544(Administrators)   545(Users)
544(Administrators)

SysDir: H:\WINNT\system32
WinDir: H:\WINNT

HOME = `H:\cygwin\u\Administrator'
MAKE_MODE = `unix'
PWD = `/'
USER = `Administrator'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  FAT 2047Mb  63% CPUN   LOCAL DISK
d:  fd   N/AN/A
e:  hd  NTFS   15311Mb  92% CP CS UN PA FC Local Disk
f:  cd   N/AN/A
g:  cd   N/AN/A
h:  hd  NTFS9530Mb  93% CP CS UN PA FC Local Disk
i:  net NTFS9114Mb  65% CP CS UN PA FC 
m:  net MVFS1000Mb  50% CP CS  CCase

H:\cygwin  /  system  binmode
H:\cygwin/bin  /usr/bin   system  binmode
H:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: H:\cygwin\bin\awk.exe
Found: H:\cygwin\bin\bash.exe
Found: H:\cygwin\bin\cat.exe
Found: H:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: H:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: H:\cygwin\bin\grep.exe
Not Found: ld
Found: H:\cygwin\bin\ls.exe
Not Found: make
Found: H:\cygwin\bin\mv.exe
Found: H:\cygwin\bin\rm.exe
Found: H:\cygwin\bin\sed.exe
Found: H:\cygwin\bin\sh.exe
Found: H:\cygwin\bin\tar.exe

   58k 2002/05/07 H:\cygwin\bin\cygbz2-1.dll
  848k 2003/04/11 H:\cygwin\bin\cygcrypto-0.9.7.dll
  645k 2003/04/11 H:\cygwin\bin\cygcrypto.dll
  380k 2002/07/24 H:\cygwin\bin\cygdb-3.1.dll
  487k 2002/07/24 H:\cygwin\bin\cygdb_cxx-3.1.dll
   45k 2001/04/25 H:\cygwin\bin\cygform5.dll
   35k 2002/01/09 H:\cygwin\bin\cygform6.dll
   48k 2003/08/09 H:\cygwin\bin\cygform7.dll
   28k 2003/07/20 H:\cygwin\bin\cyggdbm-3.dll
   30k 2003/08/11 H:\cygwin\bin\cyggdbm-4.dll
   19k 2003/03/22 H:\cygwin\bin\cyggdbm.dll
   15k 2003/07/20 H:\cygwin\bin\cyggdbm_compat-3.dll
   15k 2003/08/11 H:\cygwin\bin\cyggdbm_compat-4.dll
  490k 2002/09/21 H:\cygwin\bin\cygguile-12.dll
   63k 2002/09/21 H:\cygwin\bin\cygguile-srfi-srfi-13-14-v-1-1.dll
   24k 2002/09/21 H:\cygwin\bin\cygguile-srfi-srfi-4-v-1-1.dll
   14k 2002/09/21 H:\cygwin\bin\cygguilereadline-v-12-12.dll
   17k 2001/06/28 H:\cygwin\bin\cyghistory4.dll
   29k 2003/08/10 H:\cygwin\bin\cyghistory5.dll
  958k 2003/08/10 H:\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 H:\cygwin\bin\cygintl-1.dll
   37k 2003/08/10 H:\cygwin\bin\cygintl-2.dll
   21k 2001/06/20 H:\cygwin\bin\cygintl.dll
   32k 2003/04/16 H:\cygwin\bin\cygltdl-3.dll
   26k 2001/04/25 H:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 H:\cygwin\bin\cygmenu6.dll
   29k 2003/08/09 H:\cygwin\bin\cygmenu7.dll
  156k 2001/04/25 H:\cygwin\bin\cygncurses++5.dll

Re: compiling glib on cygwin

2003-10-06 Thread Anand Kumria
On Mon, Oct 06, 2003 at 02:50:46PM -0300, Fr?d?ric L. W. Meunier wrote:

Thanks, that was a good starting point. 

> http://sources.redhat.com/ml/cygwin/2003-08/msg01373.html

It lead me to:

http://cygnome2.sourceforge.net/test-patches/>

unfortunately the patch there for glib is essentially the same at
Masahiro's. It does have a problem though in that is changes references
to PLATFORM_WIN32 to OS_WIN32 which should be required since cygwin
provide OS_UNIX and is PLATFORM_WIN32.

I'm still checking out http://anfaenger.de/cygwin/gtk+/glib/> so
I'll let you know if that has anything slightly different.

Thanks,
Anand

> 
> On Tue, 7 Oct 2003, Anand Kumria wrote:
> 
> > /home/root/src/glib-2.2.3-jp/gobject/glib-genmarshal.c:218: undefined reference
> > to `_g_log'
> > [...]
> >
> > with lots more undefined references.
> >
> > Has anyone seen this before, know if there is another particular patch I
> > should be using? Any insights and/or pointers would be appreciated.
> 
> -- 
> How to contact me - http://www.pervalidus.net/contact.html

-- 
 `` We are shaped by our thoughts, we become what we think.
 When the mind is pure, joy follows like a shadow that never
 leaves. '' -- Buddha, The Dhammapada

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



RE: cygpath hangs from postinstall scripts when called like $(cygpath -S) but not otherwise

2003-10-06 Thread Hannu E K Nevalainen
> From: Igor Pechtchanski
> Sent: Monday, October 06, 2003 4:40 PM

> On Mon, 6 Oct 2003, Hannu E K Nevalainen wrote:
>
> > > From: Igor Pechtchanski
> > > Sent: Monday, October 06, 2003 1:44 AM
> >
> > > It would be easy to check if the above was the reason for the hang by
> > > trying to call the following program from a postinstall
> script and seeing
> > > if it also hangs:
> >
> > It doesn't hang. :-I
>
> Well, so much for that idea...

 Yup. :-7

>   Igor

I had another idea; look up the postinstall launch code in setup
(script.cc/run), copy it and try to create a "testcase".

This seems to be futile though, at least I've had no luck.

I've got one idea left: recompile setup 2.415-1 by myself and try that. I'll
see how fast that gets done. I'm tired right now.
I've cvs'ed sources as:
 cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvs/cygwin-apps co setup
I assume this is the last available. That cvs invocation worked right out of
the box, it's real nice when it is like that.


Nevertheless I'm sending the code onto the list so that perhaps somebody can
either use them for something worthwhile, or hopefully get an idea that
helps.

Therefore, please *do* check them. A warning though: this is my first
attempt at windows-related stuff. It is mostly copied code from elsewhere
though and not very polished (of me) as such.


I created t3.cc as *.cc as the related source in setup (script.cc) is c++.
Though I removed all dependencies in an attempt to make it self contained,
which had the side effect of making it compile as *.c too.
It doesn't seem to make any difference whether *.cc/g++ or *.c/gcc is used
as extension/compiler.
 I didn't succeed in having "\\bin\\sh.exe" as "sh" parameter to the sprintf
call (changing the cygwin root accordingly); the result wouldn't launch the
script. This might be one source of "malfunction" for the intended purpose.

 Judging from this and the fact that strace (w som exceptions) hides the
problem, I'd say that something "goes wrong" inside setup just before the
script gets launched. This "wrong" affects only cygpath as it seems - given
very specific conditions. One of these conditions is that setup must have
been started from Windows (i.e. not bash, at least).

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --


Intended method of use:
Put t3.sh in the cygwin root, then change the cygwin root literal in t3.cc
if it doesn't match your actual root. compile using m.sh and run t3.exe
after that.


 -- m.sh --

#!/bin/bash -x
g++ -o t3 -mno-cygwin t3.cc


-
 -- t3.sh --
-
#!/bin/bash -x

TOPFOLDER="`cygpath -A -P`/Cygwin-XFree86"
echo $TOPFOLDER

echo "Hit ENTER"
read cr

-
 -- t3.cc --
-
#include 
#include 
#include 
#include 
#include 
#include 
#include 

int WINAPI
WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR xcmdline, int nShow) {

  char cmdline[_MAX_PATH];
  STARTUPINFO si;
  PROCESS_INFORMATION pi;
  DWORD flags = CREATE_NEW_CONSOLE;
  BOOL inheritHandles = FALSE;

//  sh,   args, file
  sprintf (cmdline, "%s %s %s", "sh.exe", "-c", "/t3.sh");
  memset (&pi, 0, sizeof (pi));
  memset (&si, 0, sizeof (si));
  si.cb = sizeof (si);
  si.lpTitle = (char *) "Cygwin Setup Post-Install Script";
  si.dwFlags = STARTF_USEPOSITION;

#if 0
  if (file_out.isValid ())
{
  inheritHandles = TRUE;
  si.dwFlags |= STARTF_USESTDHANDLES;
  si.hStdInput = GetStdHandle (STD_INPUT_HANDLE);
  si.hStdOutput = file_out.handle ();
  si.hStdError = file_out.handle ();
  si.dwFlags |= STARTF_USESHOWWINDOW;
  si.wShowWindow = SW_HIDE;
  flags = CREATE_NO_WINDOW;  // Note: this is ignored on Win9x
}
#endif

  BOOL createSucceeded = CreateProcess (0, cmdline, 0, 0, inheritHandles,
flags, 0,
"C:\\Cygwin\\bin\\",
// get_root_dir ().cstr_oneuse(),
&si, &pi);

printf("createSucceeded=%d -> %s\n",createSucceeded,
(createSucceeded)?"started.":"failed to start.");

  if (createSucceeded)
WaitForSingleObject (pi.hProcess, INFINITE);
  CloseHandle(pi.hProcess);
  CloseHandle(pi.hThread);

printf("Leaving WinMain\n");
}

--END OF MESSAGE--


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



Re: messed up user permissions from w2k terminal session

2003-10-06 Thread Pierre A. Humblet
James D Below wrote:
> 
> If I knew installing a snopshot was so convenient and easy, I would have
> done it prior to sending out my previous response.
> 
> I installed the cygwin-inst-20031002.tar.bz2 but the error still occurs.
> 
> Here is how I reproduce the error:
> I launch my rdp Terminal Server Client, connect to server, log in as a user
> and run a cmd prompt window, then run H:\cygwin\cywin.bat. The
> CreateFileMapping Win32 error 5 comes up.  This only occurs from a
> non-admin account.

In your initial post you wrote "The administrator account doesn't experience 
problem. A user account belonging in the Administrators group does."

Is the most recent experiment, is the user in question in the Administrators
group?
Also, prior to launching H:\cygwin\cywin.bat, is there any other Cygwin 
process running under that user name on the machine?
Could you try again when there is absolutely no Cygwin process running?

> When I walk up to the console and login, cywin 1.5.5.1 runs just fine.
> 
> The problem does *not* occur in version cygwin version 1.3.22-1

Yep, a security hole was fixed in recent versions, but somehow now there
is "too much" security. I have a theory but I don't have easy access to a 
terminal server to experiment.

So here are two more questions;
1) When you run 1.3.22 and you do ps -a from a Terminal Server session, do you
see all Cygwin processes on the machine or only yours?
2) With 1.5.5, can you run simple Cygwin processes, such as ps or cat,
from the cmd prompt window? 

Thanks,

Pierre

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



text/binary strangeness in cygwin1.dll

2003-10-06 Thread Jeff
I think I've found a bug, possibly in the Cygwin 1.5.5-1 DLL. See if my 
reasoning makes any sense. I use Joseph Allen's text editor, ver. 2.9.8 
which has been stable and working very nicely under Cygwin (which 
itself has been very stable under WinXP Pro SP1, build 2600). Originally 
written for Unix only, "joe" has no code for recognizing DOS/Windows 
line terminators, so it relies on the Cygwin mount table mechanism to 
handle that.

I frequently call joe from an editor shell (which itself is called from 
a DOS batch file), which passes the fully qualified DOS/Windows path 
name of the file to be edited to joe. Under previous Cygwin versions, 
the file would correctly open in text mode, But with the latest Cygwin, 
the file opens in binary mode (presumably), so I see the ^M's at the end 
of each line.

Now, here's the interesting part-- and the results are the same whether 
this is done from bash or from the Windows command prompt (using 
appropriate quote characters in both cases to avoid interpretations by 
either shell)-- invoking joe with the POSIX formatted path name of the 
file to be edited opens the file according to the mount table, but 
invoking it with the DOS/Windows  or mixed ("c:/path/to/file.txt") format 
opens the file in binary mode, no matter what directory it's in.

Jeff

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



Re: Setup disabling of nonexistent virus scanners

2003-10-06 Thread scleary
Any response on this?

Is this the correct mailing list for this type of question?

-Steve

-Original Message-
From: CEC - Cleary, Stephen 
Sent: Wednesday, October 01, 2003 3:13 PM
To: '[EMAIL PROTECTED]'
Subject: Setup disabling of nonexistent virus scanners


Hello, all -

I have noticed recently that Cygwin setup will prompt to disable a virus
scanner on my machine. This is odd, because I do not have a virus scanner
running.

After looking in the code (setup/AntiVirus.cc from CVS, v2.5 Tue Jul 29
14:14:06 2003 UTC), and after looking in the log, I must conclude that the
framework code is not using AntiVirusPage::wantsActivation() in the way that
this file expects.

Here is a complete log when I ran setup until it showed the disable virus
screen, and then hit cancel:
2003/10/01 14:39:20 Starting cygwin install, version 2.415
2003/10/01 14:39:20 Current Directory: C:\Documents and Settings\stephen\My
Documents\Cygwin
2003/10/01 14:39:20 Changing gid to Users
2003/10/01 14:39:20 Could not open service McShield for query, start and
stop. McAfee may not be installed, or we don't have access.
2003/10/01 14:53:05 Ending cygwin install

Note that detect() did in fact correctly determine that McAffe is not
installed, so KnownAVIsPresent must be false, but the disable antivirus page
was displayed regardless.

-Steve

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



Re: messed up user permissions from w2k terminal session

2003-10-06 Thread James D Below
Hi Pierre,

I forgot to clarify the user account differences.

Ignore my first post regarding the Administrators group. I thought I had 
put my id in the admin group but I must have hit cancel because when I 
checked today it wasn't there.

If the user account is in an admin group (Domain admins or Administrators ) 
then everything is fine.


In your initial post you wrote "The administrator account doesn't experience
problem. A user account belonging in the Administrators group does."
Is the most recent experiment, is the user in question in the Administrators
group?
Also, prior to launching H:\cygwin\cywin.bat, is there any other Cygwin
process running under that user name on the machine?
nope, no other processes.

Could you try again when there is absolutely no Cygwin process running?

> When I walk up to the console and login, cywin 1.5.5.1 runs just fine.
>
> The problem does *not* occur in version cygwin version 1.3.22-1
Yep, a security hole was fixed in recent versions, but somehow now there
is "too much" security. I have a theory but I don't have easy access to a
terminal server to experiment.
So here are two more questions;
1) When you run 1.3.22 and you do ps -a from a Terminal Server session, do you
see all Cygwin processes on the machine or only yours?
Only mine, only the ones that I have launched from my window/login session. 
I don't see my process in my other terminal windows.

2) With 1.5.5, can you run simple Cygwin processes, such as ps or cat,
from the cmd prompt window?
nope, only from an account with admin privileges

It appears the privilege that is assigned to a user from a "terminal 
session" is different than that of the same user logging in directly at the 
console.

I hope this helps.

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


[cygwin setup from cvs] string: present but cannot be compiled

2003-10-06 Thread Perry Pupp
Pulled cygwin setup source from cvs
(as suggested here:
http://sources.redhat.com/cygwin-apps/setup.html,
I used: 
cvs -z3 -d
:pserver:[EMAIL PROTECTED]:/cvs/cygwin-apps
co setup

I got the following warning:

** BEGIN QUOTE **

checking string presence... yes
configure: WARNING: string: present but cannot be
compiled
configure: WARNING: string: check for missing
prerequisite headers?
configure: WARNING: string: proceeding with the
preprocessor's result
configure: WARNING: ##
 ##
configure: WARNING: ## Report this to
[EMAIL PROTECTED] ##
configure: WARNING: ##
 ##
checking for string... yes
checking for string.h... (cached) yes

** END QUOTE **

Referring to page:
http://mail.gnu.org/archive/html/bug-autoconf/2003-06/msg00092.html

I tried this:

$ cat main.c
#include 

$ gcc main.c
/usr/bin/../lib/libcygwin.a(libcmain.o)(.text+0x7c):
undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status


(I tried searching this list and the apps list for
"string: present but cannot be compiled", but got no
hits.)


Not sure if this is worth reporting, but in case, 
I submit it here. Sorry if this is inappropriate
venue.



Cordially,

Perry


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



configuring cygwin-setup: ../cfgaux/configure: No such file or directory

2003-10-06 Thread Perry Pupp
configure: configuring in libgetopt++
configure: running /bin/bash ../cfgaux/configure
--prefix=/usr/local  --cache-file=/dev/null
--srcdir=../../libgetopt++
../cfgaux/configure: ../cfgaux/configure: No such file
or directory
configure: error: /bin/bash ../cfgaux/configure failed
for libgetopt++




$ cd ..

$ grep cfgaux configure.in
AC_CONFIG_AUX_DIR(cfgaux)



Unfortunately, "AC_CONFIG_AUX_DIR" is over my head.
I wonder if anyone else has experience with this, and
would
care to offer hints or pointers ?


Cordially,

Perry


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: configuring cygwin-setup: ../cfgaux/configure: No such file or directory

2003-10-06 Thread Max Bowsher
Perry Pupp wrote:
> configure: configuring in libgetopt++
> configure: running /bin/bash ../cfgaux/configure
> --prefix=/usr/local  --cache-file=/dev/null
> --srcdir=../../libgetopt++
> ../cfgaux/configure: ../cfgaux/configure: No such file
> or directory
> configure: error: /bin/bash ../cfgaux/configure failed
> for libgetopt++
>
>
>
>
> $ cd ..
>
> $ grep cfgaux configure.in
> AC_CONFIG_AUX_DIR(cfgaux)
>
>
>
> Unfortunately, "AC_CONFIG_AUX_DIR" is over my head.
> I wonder if anyone else has experience with this, and
> would
> care to offer hints or pointers ?

Please give more context, starting from "cvs checkout setup". Something
rather odd is happening.

Max.


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



Re: cygpath hangs from postinstall scripts when called like $(cygpath -S) but not otherwise

2003-10-06 Thread Christopher Faylor
On Mon, Oct 06, 2003 at 08:55:12PM +0200, Hannu E K Nevalainen wrote:
>> From: Igor Pechtchanski
>> Sent: Monday, October 06, 2003 4:40 PM
>
>> On Mon, 6 Oct 2003, Hannu E K Nevalainen wrote:
>>
>> > > From: Igor Pechtchanski
>> > > Sent: Monday, October 06, 2003 1:44 AM
>> >
>> > > It would be easy to check if the above was the reason for the hang by
>> > > trying to call the following program from a postinstall
>> script and seeing
>> > > if it also hangs:
>> >
>> > It doesn't hang. :-I
>>
>> Well, so much for that idea...
>
> Yup. :-7
>
>I had another idea; look up the postinstall launch code in setup
>(script.cc/run), copy it and try to create a "testcase".
>
>This seems to be futile though, at least I've had no luck.
>
>I've got one idea left: recompile setup 2.415-1 by myself and try that.

Or you could build a debug version of cygpath and attach to it with gdb
when it is hung.  Or maybe you need a debug version of the cygwin DLL or
maybe ash or bash.

It's amazing how much effort people are putting into this when something
simple could be done to actually pinpoint the problem.  We could have
been beyond all of the normal "I configured in the source directory",
"How do I get 'make install' to work in the cygwin directory", "Why is
it so hard to build" steps by now.

cgf

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



Re: configuring cygwin-setup: ../cfgaux/configuNo such file or directory

2003-10-06 Thread Brian Keener
Perry Pupp wrote:
> > ../cfgaux/configure: ../cfgaux/configure: No such file
> > or directory
> > configure: error: /bin/bash ../cfgaux/configure failed
> > for libgetopt++

Isn't this the error you get if you fail to execute the bootstrap.sh script???

Did you run the bootstrap script Perry.

bk





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



Re: Setup disabling of nonexistent virus scanners

2003-10-06 Thread Max Bowsher
[EMAIL PROTECTED] wrote:
> Any response on this?

Yes, sorry - I've had your email flagged for a response for a while now.

> Is this the correct mailing list for this type of question?

See http://cygwin.com/lists.html. Quoting here:
[cygwin-apps] This mailing list is the preferred location for design
discussions and bug reports regarding cygwin's setup.exe program, although
such discussions may occur on the cygwin mailing list, as well.

> -Original Message-
> From: CEC - Cleary, Stephen
> Sent: Wednesday, October 01, 2003 3:13 PM
> To: '[EMAIL PROTECTED]'
> Subject: Setup disabling of nonexistent virus scanners
>
>
> Hello, all -
>
> I have noticed recently that Cygwin setup will prompt to disable a virus
> scanner on my machine. This is odd, because I do not have a virus scanner
> running.
>
> After looking in the code (setup/AntiVirus.cc from CVS, v2.5 Tue Jul 29
> 14:14:06 2003 UTC), and after looking in the log, I must conclude that the
> framework code is not using AntiVirusPage::wantsActivation() in the way
that
> this file expects.
>
> Here is a complete log when I ran setup until it showed the disable virus
> screen, and then hit cancel:
> 2003/10/01 14:39:20 Starting cygwin install, version 2.415
> 2003/10/01 14:39:20 Current Directory: C:\Documents and
Settings\stephen\My
> Documents\Cygwin
> 2003/10/01 14:39:20 Changing gid to Users
> 2003/10/01 14:39:20 Could not open service McShield for query, start and
> stop. McAfee may not be installed, or we don't have access.
> 2003/10/01 14:53:05 Ending cygwin install
>
> Note that detect() did in fact correctly determine that McAffe is not
> installed, so KnownAVIsPresent must be false, but the disable antivirus
page
> was displayed regardless.

Curious. Investigating.

Max.


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



Re: GCC Compilation Error

2003-10-06 Thread Paul Bezzam

Igor,

Thanks a lot for pointing me in the right direction.  I did install the
package, and there was no error message.  However, when I try to execute
the .exe file that results in compiling the C file(hello.c), I get:
bash: hello.exe: command not found

Can you please offer your insight?

Thanks again.

Paul



On Mon, 6 Oct 2003, Igor Pechtchanski wrote:

> On Mon, 6 Oct 2003, Paul Bezzam wrote:
>
> > Hello,
> >
> > I have a question: I recently installed Cygwin, and I am trying to compile
> > a C program.  But I get this message after I use the compile command:
> >
> > /usr/lib/gcc-lib/i686-pc-cygwin/3.0/../.i686-pc-cygwin/bin/ld: Cannot find
> > -luser32
> > collect2: ld returned 1 exit status
> >
> > I am pretty new at this..Can you please offer any help.
> >
> > Thanks.
> > Paul
>
> Paul,
>
> When the linker receives a -lBLAH flag, it looks for a file called
> libBLAH.a (on Cygwin, also libBLAH.dll.a or BLAH.dll).  The Cygwin package
> search page at  shows that "libuser32" is
> contained in the w32api package.  This means that to compile your program
> you need to install that package (using Cygwin setup.exe).  HTH,
>   Igor
> --
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
>  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
> '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> "I have since come to realize that being between your mentor and his route
> to the bathroom is a major career booster."  -- Patrick Naughton
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>
>

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



Re: configuring cygwin-setup: ../cfgaux/configure: No such file or directory

2003-10-06 Thread Perry Pupp

--- Max Bowsher wrote:
> 
> Please give more context, starting from "cvs
> checkout setup". Something
> rather odd is happening.
> 

(Good idea. Here is my procedure from scratch,
with a couple versions thrown in, and entire
configure output.)

(PS: Yep, I did run the bootstrap; actually
I didn't have a configure script until I did
that.)



$ cd ..

$ mkdir t2

$ cd t2

$ cvs -z3 -d
:pserver:[EMAIL PROTECTED]:/cvs/cygwin-apps
co setup

cvs server: Updating setup
U setup/.cvsignore
...

$ cd setup

$ sh bootstrap.sh
Running bootstrap.sh in libgetopt++
./bootstrap.sh: not found
Continuing with bootstrap in current directory
configure.in: installing `cfgaux/install-sh'
configure.in: installing `cfgaux/mkinstalldirs'
configure.in: installing `cfgaux/missing'
Makefile.am: installing `cfgaux/compile'
Makefile.am: installing `cfgaux/depcomp'
Autotool bootstrapping complete.

$ automake --version
automake (GNU automake) 1.7.6
Written by Tom Tromey <[EMAIL PROTECTED]>.

Copyright 2003 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.

$ autoconf --version
autoconf (GNU Autoconf) 2.57
Written by David J. MacKenzie and Akim Demaille.

Copyright 2002 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.

$ ls cfgaux
CVS  compile  config.guess  config.sub  depcomp 
install-sh  ltmain.sh  missing  mkinstalldirs

$ mkdir bld

$ cd bld

$ ../configure
checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific
portions of Makefiles... no
checking Whether to build inilint... no
checking Whether to enable rsync support... no
checking for g++... g++
checking for C++ compiler default output... a.exe
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler...
yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler...
yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none
needed
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o
together... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for bison... bison -y
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for a sed that does not truncate output...
/usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object
files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries...
file_magic ^x86 archive import|^x86 DLL
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77
compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line
arguments... 8192
checking command to parse /usr/bin/nm -B output from
gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions...
yes
checking for gcc option to produce PIC...
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports
shared libraries... yes
checking whether -lc should be explicitly linked in...
yes
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible...
yes
checking dynamic linker characteristics... Win32
ld.exe
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g

Re: GCC Compilation Error

2003-10-06 Thread Paul Bezzam

Igor,

Never mind.  I think I was able to get this.. I included a '.' in the PATH
variable, and everything is fine.

Thank you again for your help.

Paul

On Mon, 6 Oct 2003, Paul Bezzam wrote:

>
> Igor,
>
> Thanks a lot for pointing me in the right direction.  I did install the
> package, and there was no error message.  However, when I try to execute
> the .exe file that results in compiling the C file(hello.c), I get:
> bash: hello.exe: command not found
>
> Can you please offer your insight?
>
> Thanks again.
>
> Paul
>
>
>
> On Mon, 6 Oct 2003, Igor Pechtchanski wrote:
>
> > On Mon, 6 Oct 2003, Paul Bezzam wrote:
> >
> > > Hello,
> > >
> > > I have a question: I recently installed Cygwin, and I am trying to compile
> > > a C program.  But I get this message after I use the compile command:
> > >
> > > /usr/lib/gcc-lib/i686-pc-cygwin/3.0/../.i686-pc-cygwin/bin/ld: Cannot find
> > > -luser32
> > > collect2: ld returned 1 exit status
> > >
> > > I am pretty new at this..Can you please offer any help.
> > >
> > > Thanks.
> > > Paul
> >
> > Paul,
> >
> > When the linker receives a -lBLAH flag, it looks for a file called
> > libBLAH.a (on Cygwin, also libBLAH.dll.a or BLAH.dll).  The Cygwin package
> > search page at  shows that "libuser32" is
> > contained in the w32api package.  This means that to compile your program
> > you need to install that package (using Cygwin setup.exe).  HTH,
> > Igor
> > --
> > http://cs.nyu.edu/~pechtcha/
> >   |\  _,,,---,,_[EMAIL PROTECTED]
> > ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
> >  |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
> > '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> >
> > "I have since come to realize that being between your mentor and his route
> > to the bathroom is a major career booster."  -- Patrick Naughton
> >
> > --
> > Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> > Problem reports:   http://cygwin.com/problems.html
> > Documentation: http://cygwin.com/docs.html
> > FAQ:   http://cygwin.com/faq/
> >
> >
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>
>

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



Re: configuring cygwin-setup: ../cfgaux/configure: No such file or directory

2003-10-06 Thread Max Bowsher
Perry Pupp wrote:
> --- Max Bowsher wrote:
>> 
>> Please give more context, starting from "cvs
>> checkout setup". Something
>> rather odd is happening.
>> 
> 
> (Good idea. Here is my procedure from scratch,
> with a couple versions thrown in, and entire
> configure output.)
> 
> (PS: Yep, I did run the bootstrap; actually
> I didn't have a configure script until I did
> that.)
> 
> 
> 
> $ cd ..
> 
> $ mkdir t2
> 
> $ cd t2
> 
> $ cvs -z3 -d
>> pserver:[EMAIL PROTECTED]:/cvs/cygwin-apps co setup
> 
> cvs server: Updating setup
> U setup/.cvsignore
> ...
> 
> $ cd setup
> 
> $ sh bootstrap.sh
> Running bootstrap.sh in libgetopt++
> ./bootstrap.sh: not found

Well, that obviously isn't right.
Is there no libgetopt++/bootstrap.sh in your checkout?

> Continuing with bootstrap in current directory
> configure.in: installing `cfgaux/install-sh'
> configure.in: installing `cfgaux/mkinstalldirs'
> configure.in: installing `cfgaux/missing'
> Makefile.am: installing `cfgaux/compile'
> Makefile.am: installing `cfgaux/depcomp'
> Autotool bootstrapping complete.
> 
...
> $ mkdir bld
> 
> $ cd bld
> 
> $ ../configure
> checking for a BSD-compatible install...
> /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific
> portions of Makefiles... no
> checking Whether to build inilint... no
> checking Whether to enable rsync support... no
> checking for g++... g++
> checking for C++ compiler default output... a.exe
> checking whether the C++ compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... .exe
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler...
> yes
> checking whether g++ accepts -g... yes
> checking for style of include used by make... GNU
> checking dependency style of g++... gcc3
> checking for gcc... gcc
> checking whether we are using the GNU C compiler...
> yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none
> needed
> checking dependency style of gcc... gcc3
> checking whether gcc and cc understand -c and -o
> together... yes
> checking for flex... flex
> checking for yywrap in -lfl... yes
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... no
> checking for bison... bison -y
> checking build system type... i686-pc-cygwin
> checking host system type... i686-pc-cygwin
> checking for a sed that does not truncate output...
> /usr/bin/sed
> checking for egrep... grep -E
> checking for ld used by gcc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for /usr/bin/ld option to reload object
> files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependent libraries...
> file_magic ^x86 archive import|^x86 DLL
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking how to run the C++ preprocessor... g++ -E
> checking for g77... g77
> checking whether we are using the GNU Fortran 77
> compiler... yes
> checking whether g77 accepts -g... yes
> checking the maximum length of command line
> arguments... 8192
> checking command to parse /usr/bin/nm -B output from
> gcc object... ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... ranlib
> checking for strip... strip
> checking if gcc static flag  works... yes
> checking if gcc supports -fno-rtti -fno-exceptions...
> yes
> checking for gcc option to produce PIC...
> checking if gcc supports -c -o file.o... yes
> checking whether the gcc linker (/usr/bin/ld) supports
> shared libraries... yes
> checking whether -lc should be explicitly linked in...
> yes
> checking how to hardcode library paths into
> programs... immediate
> checking whether stripping libraries is possible...
> yes
> checking dynamic linker characteristics... Win32
> ld.exe
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking for ld used by g++... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking whether the g++ linker (/usr/bin/ld) supports
> shared libraries... yes
> checking for g++ option to produce PIC...
> checking if g++ supports -c -o file.o... yes
> checking whether the g++ linker (/usr/bin/ld) supports
>

Re: configuring cygwin-setup: ../cfgaux/configure: No such file or directory

2003-10-06 Thread Perry Pupp

--- Max Bowsher wrote:
> Perry Pupp wrote:
...

> > 
> > $ cd setup
> > 
> > $ sh bootstrap.sh
> > Running bootstrap.sh in libgetopt++
> > ./bootstrap.sh: not found
> 
> Well, that obviously isn't right.
> Is there no libgetopt++/bootstrap.sh in your
> checkout?
> 

** (from bld subdirectory, where last trace left off)

$ cd ..

$ ls libgetopt++/
COPYING  CVS  ChangeLog  Makefile.am  README 
bootstrap.sh  configure.in  include  src  tests

$ ls -l libgetopt++/
total 31
-rw-rw-rw-1 usernamemkgroup 17992 Apr 26 
2002 COPYING
drwxrwxrwx+   2 usernamemkgroup  4096 Oct  6
16:17 CVS
-rw-rw-rw-1 usernamemkgroup  4801 Mar 18 
2003 ChangeLog
-rw-rw-rw-1 usernamemkgroup  1194 Mar 18 
2003 Makefile.am
-rw-rw-rw-1 usernamemkgroup  3238 Apr 13 
2002 README
-rw-rw-rw-1 usernamemkgroup   925 Mar  8 
2003 bootstrap.sh
-rw-rw-rw-1 usernamemkgroup   780 Mar 18 
2003 configure.in
drwxrwxrwx+   4 usernamemkgroup  4096 Oct  6
16:17 include
drwxrwxrwx+   3 usernamemkgroup  4096 Oct  6
16:17 src
drwxrwxrwx+   3 usernamemkgroup 0 Oct  6
16:17 tests

$ cd libgetopt++/

$ sh bootstrap.sh
configure.in: installing `cfgaux/install-sh'
configure.in: installing `cfgaux/mkinstalldirs'
configure.in: installing `cfgaux/missing'
Makefile.am: installing `cfgaux/compile'
Makefile.am: installing `cfgaux/depcomp'
Autotool bootstrapping complete.

$ ls
COPYING  ChangeLogMakefile.in  aclocal.m4 
bootstrap.sh  configure include  tests
CVS  Makefile.am  README   autom4te.cache 
cfgauxconfigure.in  src

$ cd ..

$ cat bootstrap.sh
#! /bin/sh
# Used to setup the configure.in, autoheader and
Makefile.in's if configure
# has not been generated. This script is only needed
for developers when
# configure has not been run, or if a Makefile.am in a
non-configured directory
# has been updated


bootstrap() {
  if "$@"; then
true # Everything OK
  else
echo "$1 failed"
echo "Autotool bootstrapping failed. You will need
to investigate and correct" ;
echo "before you can develop on this source tree"
exit 1
  fi
}

# Make sure we are running in the right directory
if [ ! -f cygpackage.cc ]; then
  echo "You must run this script from the directory
containing it"
  exit 1
fi

# Run bootstrap in required subdirs, iff it has not
yet been run
if [ ! -f libgetopt++/configure ]; then
  echo "Running bootstrap.sh in libgetopt++"
  (
cd libgetopt++
./bootstrap.sh
  )
  echo "Continuing with bootstrap in current
directory"
fi

# Make sure cfgaux exists
mkdir -p cfgaux

# Bootstrap the autotool subsystems
bootstrap aclocal
# bootstrap autoheader
bootstrap libtoolize --automake
bootstrap autoconf
bootstrap automake --foreign --add-missing

echo "Autotool bootstrapping complete."


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: Command substitution

2003-10-06 Thread Axel Grobe
Sorry. But it's not the path.
This doesn't work also on a win98 system:

1|Picture=greta_08.jpg
2|identify.exe $Picture
3|PicWidth=`identify.exe $Picture; `
4|echo "Picture With: $PicWidth !"
5|echo "That's it."

Now identify.exe is available via PATH and the Picture is in my
home-dir.
Line 2 prints out on line with some information about the picture (name,
type, dimensions, etc.)
In line 3 identify.exe is executed. I can see it in the window-title.
However, the variable remains empty.

I can change the line to
3|PicWidth=`identify.exe -verbose $Picture `
Now a lot of information about the picture is printed via line 4.

Axel

Lapo Luchini wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Axel Grobe wrote:
> 
> | # Here is the script: BASE=D:/WebSites/abc-def.de/web
> | IDENTIFY=C:/Programme/ImageMagick-5.5.7-Q16/identify.exe
> 
> The time you installed cygwin you knew what'd you want and get with
> cygwin, don't you? ^_^
> In a POSIX environment a path like "D:/WebSites/abc-def.de/web" means
> "directory D, then directory /WebSites/abc-def.de/web"
> 
> You can have the effect you wanted using the auto-mounter cygdrive mounts.
> 
> BASE=/cygdrive/d/WebSites/abc-def.de/web
> IDENTIFY=/cygdrive/c/Programme/ImageMagick-5.5.7-Q16/identify.exe
> 
> - --
> Lapo 'Raist' Luchini
> [EMAIL PROTECTED] (PGP & X.509 keys available)
> http://www.lapo.it (ICQ UIN: 529796)
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.2 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAj9/3ssACgkQaJiCLMjyUvsr9wCgnXXuyVQi+vd8ppm601hbpN0b
> yJUAoLTECKQmnl936XX6R3wXKPHeuVaR
> =ycLL
> -END PGP SIGNATURE-

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



Re: Cygwin Setup application dialog size

2003-10-06 Thread Robert Collins
On Mon, 2003-10-06 at 02:15, Anand Kumria wrote:

> I assume the size is specified, and enforced, somewhere?

:}.

You can easily build your own with a larger dialog. For now though,
there is a patch going through rather hideous merging pains, which gives
us a resizable chooser.
Rob
-- 
GPG key available at: .


signature.asc
Description: This is a digitally signed message part


Re: Cygwin Setup application dialog size

2003-10-06 Thread Perry Pupp
> You can easily build your own with a larger 
> dialog. For now though, there is a patch 
> going through rather hideous merging pains, 
> which gives us a resizable chooser.

There goes my incentive to get the cygwin
setup program configurable & buildable
here; I was going to try to write a patch
to make the main window resizable.

:)

Cordially,

Perry


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



RE: Cygwin_setup.exe comments...

2003-10-06 Thread Robert Collins
On Sat, 2003-10-04 at 05:17, Hannu E K Nevalainen (garbage mail) wrote:
> Hannu said:
> 
> > > Are you implying that setup isn't that well coded? ;-)
> > > I have yet to look at the code.
> >
> 
> Robert Collins said:
> > Please do, before you redesign from scratch.
> 
> Ehrm? Is this to be ironic or some such? :-}

Slightly humorous observation of the seeming automatic response of folk
joining missing functionality threads.

> > Setup is not factored out into a solid MVC or equivalent framework
> > today, and we are slowly working towards that.
> 
> MVC - Model, View, Controller - VEYR NICE. THANK YOU!!
>  This very moment you put a name onto something that I have been
> contemplating all alone 'on my chamber'. My B.Sc. classes did NOT cover this
> kind of stuff (e.g. GUI creation) - not very strange really as they were
> more hardware oriented.

Yes, MVC is nice - and I wish we where there. As it stands we are in
transition, just cleaning up things as we go. The long term goal is a
console mode setup, and a gui setup, with the same core.

>  Do you (anybody else?) mind elaborating this a bit, maybe better off list?
> My peculiar email address DOES work, just send away, I'll be eagerly
> listening/reading.

Well, if MVC was new and interesting, can I suggest you obtain (from
your Uni library perhaps) the Gang of four book "Design Patterns". It's
a library of software design idioms (of which MVC is just one).

> e.g. I wonder about:
>  - Are you using some specific tool for setup?

vim :}. (Well eclipse a little, but mainly vim).

>  - If not, please give me some hints(pointers) on how you do it.
>  - Are there free/GPL/LGPL/BSD tools to do this?

yes - there are some wikis on OO development that have a huge amount of
links and the like.

>  - Names of commercial software?
>  - There seems to be a stale project on sf.net (xmtpp below, 10KB file),
>do you know anything about it?
>(Registered: 2000-10-30 05:27, last file date Nov 6, 2000)

nope.

>  - j-struts/MVC 2 seems to be a web/java adaption... good reading?

I've heard good things about struts. Really though, MVC is a design
approach. MVC frameworks are frameworks that use that approach - you can
easily have MVC without such a framework.

Rob

-- 
GPG key available at: .


signature.asc
Description: This is a digitally signed message part


Re: wide string methods, round two

2003-10-06 Thread Joshua Kwan
(I've CC:d this reply back to the Cygwin ml.)

On Mon, Oct 06, 2003 at 05:21:15PM -0400, URANGA,TONY (HP-Boise,ex1) wrote:
> I am having the exact same problem you described below in compiling the
> id3lib library.  Did you resolve your problem or find a work-around?

Nope... sorry :( I've been very busy with schoolwork and haven't had
time to source dive to find the real source of this problem.

Strange that more programs have not failed to build because of this.
It's probably specific to the libraries we're buidling which both have
to do with ID3s? maybe some shared code?

It'll really make my day if anyone on the list can shed some light on
this issue and get the program to build.

Again, please CC: me on replies.

Thanks
-- 
Joshua Kwan


pgp0.pgp
Description: PGP signature


Re: Installation & Uninstallation issues

2003-10-06 Thread Tim Dierks
At 10:12 PM 10/5/2003, Tim Dierks wrote:
At 08:24 PM 10/5/2003, Tim Dierks wrote:
The tail end of /var/log/setup.full is:

2003/10/05 20:07:49 running: C:\cygwin\bin\sh.exe -c 
/etc/postinstall/base-files-mketc.sh
/etc/postinstall/base-files-mketc.sh: not found
 [... elided ...]

And, in fact, those scripts are not there: instead, I've got files with 
each of those names with '.done' appended (e.g. 
"/etc/postinstall/base-files-mketc.sh.done"). However, these scripts have 
not been executed (or at least haven't run successfully).
After further research in the mailing lists, I believe my problem is 
similar to one discussed this April on the mailing list. The message that 
contained the first real diagnosis is:
  http://www.cygwin.com/ml/cygwin/2003-04/msg00432.html
Which diagnoses the problem as having something to do with privileges 
which are more strongly checked with sh than with bash. My W2K machine is 
not part of a domain, and I'm installing as an administrator-privileged 
account for all users.
I thought I'd record for the list that I fixed my problem with the 
following steps:
 - Created a C:\cygwin directory in Windows Explorer
 - Disconnected it from inheriting privileges from C:\ and made the 
following changes:
   + Added full control for the "Users" group (and deleted full control 
for "Authenticated Users")
   + Changed the owner to my login account (was "Administrators)
 - Did an install

Unfortunately, I don't know which of the two changes was sufficient to fix 
the problem, although I'm happy to do more analysis on request. I'm also 
insufficiently informed as to venture a sufficiently educated guess as to 
whether the problem is in sh, in setup, or elsewhere in cygwin; I will note 
that I had other problems beyond postinstall sh problems, generally with 
processes feeling that they had insufficient privileges to read or create 
files (bash couldn't copy the default files to create my home directory, 
cron couldn't start up due to a privileges problem I didn't record).

Many thanks to Pierre Humblet for helping me to figure this out off-list 
and to all others.

 - Tim



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


Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Pierre A. Humblet

The problem recently reported by Tim Dierks in

turns out to be identical to the one investigated in


The scripts are executable but ash refuses to execute them.
Ash uses various methods to make that decision, none of which
is correct. It should be patched to use access(), as it already
does for its built-in test. PTC.

Perhaps the setup postinstall scripts should change to using bash.
Its behavior is correct and will avoid frustrations.

Pierre

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



Re: configuring cygwin-setup: ../cfgaux/configure: No such file or directory

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Perry Pupp wrote:

> --- Max Bowsher wrote:
> > Perry Pupp wrote:
> ...
>
> > > $ cd setup
> > >
> > > $ sh bootstrap.sh
> > > Running bootstrap.sh in libgetopt++
> > > ./bootstrap.sh: not found
> >
> > Well, that obviously isn't right.
> > Is there no libgetopt++/bootstrap.sh in your
> > checkout?
>
> ** (from bld subdirectory, where last trace left off)
>
> $ cd ..
>
> $ ls libgetopt++/
> COPYING  CVS  ChangeLog  Makefile.am  README
> bootstrap.sh  configure.in  include  src  tests
>
> $ ls -l libgetopt++/
> total 31
> -rw-rw-rw-1 usernamemkgroup 17992 Apr 26 2002 COPYING
> drwxrwxrwx+   2 usernamemkgroup  4096 Oct  6 16:17 CVS
> -rw-rw-rw-1 usernamemkgroup  4801 Mar 18 2003 ChangeLog
> -rw-rw-rw-1 usernamemkgroup  1194 Mar 18 2003 Makefile.am
> -rw-rw-rw-1 usernamemkgroup  3238 Apr 13 2002 README
> -rw-rw-rw-1 usernamemkgroup   925 Mar  8 2003 bootstrap.sh
  ^^
This is your problem right here -- bootstrap.sh is invoked directly, not
via "sh".  Since it doesn't have executable permission, it is reported as
"not found"...  This is weird -- it should have executable permissions
after checkout from CVS.  Are you running on a FAT or FAT32 partition?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: cygwin-1.5.4-1 breaks fetchmail on Win9x

2003-10-06 Thread Jason Tishler
Chris,

On Sun, Oct 05, 2003 at 11:45:20AM +1000, Mark Ord wrote:
> The source for cygwin-1.3.22 has the line code segment
> (winsup/cygwin/syscalls.cc - unlink() ):
>
> if (GetFileAttributes (win32_name) == INVALID_FILE_ATTRIBUTES
> || (!win32_name.isremote () && wincap.has_delete_on_close ()))
> [snip]
>
> The source for cygwin-1.5.5 has the line code segment:
> (winsup/cygwin/syscalls.cc - unlink() - line 177):
> 
> if (GetFileAttributes (win32_name) == INVALID_FILE_ATTRIBUTES
> || !win32_name.isremote ())
> [snip]
> 
> Notible is that wincap.has_delete_on_close() *isn't* called/checked
> in the 1.5.5 code.

It appears that the following commit removed the
wincap.has_delete_on_close() check:

http://cygwin.com/ml/cygwin-cvs/2003-q1/msg00400.html

Specifically, the following hunk:

-  if (!win32_name.isremote ()
- || (GetFileAttributes (win32_name) == INVALID_FILE_ATTRIBUTES
- || wincap.has_delete_on_close ()))
+  if (GetFileAttributes (win32_name) == INVALID_FILE_ATTRIBUTES
+ || !win32_name.isremote ())

AFAICT, the ChangeLog is not congruent with the above.  Did another
unrelated change sneak in accidentally?

BTW, there seemed to be some gyration regarding this section of unlink()
during that time period:

$ for ((i=254;i<296;i=i+1))
> do
> echo 1.$i
> cvs up -p -r 1.$i syscalls.cc | fgrep wincap.has_delete_on_close
> done
1.254
  || (!win32_name.isremote () && wincap.has_delete_on_close ()))
1.255
1.256
1.257
  || wincap.has_delete_on_close ()))
1.258
  || wincap.has_delete_on_close ()))
1.259
1.260
...

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

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



Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Frédéric L. W. Meunier
On Mon, 6 Oct 2003, Pierre A. Humblet wrote:

> Perhaps the setup postinstall scripts should change to using
> bash. Its behavior is correct and will avoid frustrations.

It'd be nice it I could get rid of it. I have to use
#!/bin/bash in my scripts, change rxvt (the X11 version)
because it defaults to sh, use "shell bash" in my .screenrc...

If setup starts using bash, can I get rid of ash, or something
would still use it ?

-- 
How to contact me - http://www.pervalidus.net/contact.html

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



Re: cygwin-1.5.4-1 breaks fetchmail on Win9x

2003-10-06 Thread Christopher Faylor
On Mon, Oct 06, 2003 at 10:13:00PM -0400, Jason Tishler wrote:
>BTW, there seemed to be some gyration regarding this section of unlink()
>during that time period:

...which might be illuminated by reading the archives, I suspect...

cgf

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



Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Frédéric L. W. Meunier wrote:

> On Mon, 6 Oct 2003, Pierre A. Humblet wrote:
>
> > Perhaps the setup postinstall scripts should change to using
> > bash. Its behavior is correct and will avoid frustrations.
>
> It'd be nice it I could get rid of it. I have to use
> #!/bin/bash in my scripts, change rxvt (the X11 version)
> because it defaults to sh, use "shell bash" in my .screenrc...
>
> If setup starts using bash, can I get rid of ash, or something
> would still use it ?

Frédéric,

bash should be fully sh-compatible.  If you want to replicate the Linux
setup, simply rename /bin/sh to /bin/ash and hardlink (or symlink)
/bin/bash to /bin/sh (you will get a noticeable startup time increase for
your scripts, which was the original reason for the ash package, but I
doubt you'd have too many other problems -- except you won't be able to
detect non-portable shell scripts on Cygwin anymore).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Frédéric L. W. Meunier
Thanks, I'll do that. I remember when I tried as a symlink and
something hung setup (I guess setup doesn't handle them ?). It
wasn't the XFree86-bin-icons issue, which also hung when I
reverted the symlink.

I'll go through the archives to see what I should do for
XFree86-bin-icons since I had to use 'Skip' it in the last
installs.

On Mon, 6 Oct 2003, Igor Pechtchanski wrote:

> bash should be fully sh-compatible.  If you want to replicate
> the Linux setup, simply rename /bin/sh to /bin/ash and
> hardlink (or symlink) /bin/bash to /bin/sh (you will get a
> noticeable startup time increase for your scripts, which was
> the original reason for the ash package, but I doubt you'd
> have too many other problems -- except you won't be able to
> detect non-portable shell scripts on Cygwin anymore).

-- 
How to contact me - http://www.pervalidus.net/contact.html

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



Re: Is multithreaded profiling on cygwin possible?

2003-10-06 Thread peter garrone
Sorry for the delay, or the repeat information, my original reply is lost.

Brian Ford wrote:
>peter garrone wrote:
>
>>If I profile my multi-threaded application, it appears that only the main
>>thread is profiled.
>>
>Currently, yes.

Actually, I think I was only partially correct. 
Time for the main thread is accumulated, but function calls
are counted for all threads. This creates misleading data.

>
>You can, however, profile other threads one at a time if you use
>the gprof API's manually, called from the thread you want to profile.  I
>have done this, but it has been too long for me to give you specific
>instructions.  Have a look at profile.c, profile.[ch], gmon.[ch] in the
>cygwin sources to see how its done.

Thanks very much, this advice is a great start.
I didnt see any way in the mcount function (winsup/cygwin/mcount.c)
to specify a particular thread. I did see the possibility of calling
moncontrol(1) to enable time accumulation for a particular thread,
and searching dejanews, noticed that this is a
recognised approach to multithreaded profiling.

>
>PTC
>While you're there, it should be fairly trivial to create a patch that
>at least loops through all Cygwin created pthreads in the sampler.  I
>don't know if that kind of flat profile is what you wanted, though.

Sometimes per-thread profiling is useful, but a flat profile is what
I want for now. Not so much for optimisation, but porting. If a thread
is taking x% cpu on system 1 and y% cpu on system 2, then per-thread
profiling is useful. If the whole application is running much too slow,
then the flat profile is useful. I havent figured out how to get per-thread
cpu on cygwin yet anyway.


You commented that dll code is difficult to profile. Would you kindly
send me a few references to this, or keyword sets, my searching is blank.
I am aware of the "profiling cygwin" information, and assume you mean
extra to this.

>>On linux, it is possible to save and set the virtual timer upon creation
>>of each thread, and thereby get a decent profile.
>>However the virtual timer is unavailable on cygwin, and I would imagine
>>that this approach is incorrect, due to differing thread models.
>>
>I've never profiled on Linux and I don't know anything about the virtual
>timer you are refering to.  On Solaris, I get a nice flat profile of all
>threads combined, like the implimentation I suggested above.  The same
>shared library concerns exist there, but Solaris is good about providing
>static profile enabled libs.

Sorry, I was incorrect. I meant by saving the profiling timer ITIMER_PROF before
thread creation and resetting after, in the thread, cpu profiling was possible.
Refer 

>
>Let me know if you want to discuss patch ideas.  I used to have a few, but
>no priority time to work on them. :(

I am afraid that this email is the sum of my current knowledge about cygwin
profiling. But if I find out anything else, I will post it.


-- 
__
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze

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



Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Christopher Faylor
On Tue, Oct 07, 2003 at 12:09:39AM -0300, Fr?d?ric L. W. Meunier wrote:
>Thanks, I'll do that. I remember when I tried as a symlink and
>something hung setup (I guess setup doesn't handle them ?).

setup isn't a cygwin application.  symlinks are a cygwin invention.

cgf

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



Re: configuring cygwin-setup: ../cfgaux/configure: No such file or directory

2003-10-06 Thread Perry Pupp

--- Igor Pechtchanski  wrote:

...

> > -rw-rw-rw-1 usernamemkgroup   925 Mar 
> 8 2003 bootstrap.sh
>   ^^
> This is your problem right here -- bootstrap.sh is
> invoked directly, not
> via "sh".  Since it doesn't have executable
> permission, it is reported as
> "not found"...  This is weird -- it should have
> executable permissions
> after checkout from CVS.  Are you running on a FAT
> or FAT32 partition?
>   Igor
> -- 

NTFS


I had a brief glance at

http://cvsbook.red-bean.com/cvsbook.html#CVS_keeps_changing_file_permissions__why_does_it_do_that_

which suggests that it is possible to check the
executable status of the file in the cvs repository
(given file level access to the repository), although
you probably know that.


Cordially,

Perry



__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: configuring cygwin-setup: ../cfgaux/configure: No such file or directory

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Perry Pupp wrote:

> --- Igor Pechtchanski  wrote:
> ...
> > > -rw-rw-rw-1 usernamemkgroup   925 Mar  8 2003 bootstrap.sh
> >   ^^
> > This is your problem right here -- bootstrap.sh is invoked directly,
> > not via "sh".  Since it doesn't have executable permission, it is
> > reported as "not found"...  This is weird -- it should have executable
> > permissions after checkout from CVS.  Are you running on a FAT or
> > FAT32 partition?
> >   Igor
>
> NTFS
>
> I had a brief glance at
>
> http://cvsbook.red-bean.com/cvsbook.html#CVS_keeps_changing_file_permissions__why_does_it_do_that_
>
> which suggests that it is possible to check the
> executable status of the file in the cvs repository
> (given file level access to the repository), although
> you probably know that.
>
> Cordially,
> Perry

Well, all I know is that for me, bootstrap.sh had executable permissions
on checkout with no extra actions on my part.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: CVS and CR/LF

2003-10-06 Thread Igor Pechtchanski
Stephen,

This doesn't belong on the cygwin-apps list (see
).  I've redirected this to the correct
list and set the Reply-To appropriately.  Please remove cygwin-apps from
further discussion on this.
Igor

On Mon, 6 Oct 2003 [EMAIL PROTECTED] wrote:

> I'll breifly describe my setup.
>
> Server Side:
> Windows 2000 Server
> Cygwin sshd OpenSSH_3.7.1p2, OpenSSL 0.9.7b
> Cygwin cvs version 1.11.6
>
> #1 Client Side
> Windows 2000 Profesional
> Cygwin sshd OpenSSH_3.7.1p2, OpenSSL 0.9.7c
> WinCVS 1.2 / 1.3b13-2
>
> #2 Client Side
> Solaris 2.8
> OpenSSH_3.4p1
> CVS 1.11
>
> #3 Client Side
> Windows 2000 Profesional
> Cygwin sshd OpenSSH_3.7.1p2, OpenSSL 0.9.7c
> Cygwin cvs version 1.11.6
>
> I add image files ( binary ) to the source repository using both the -ko and
> -kb flags
>
> I can check out the imagefiles fine from the Server -> #2 Client.
> When I try to checkout any binary file from the Server to #1 Client or #3
> Any CR will get removed when there is an instance of a CR LF.
>
> At first I thought this might be a WinCVS bug so I created a sourceforge
> bugid = 816582, but it also occurs with cygwin's cvs version.
>
> Can someone help with this or should I go to: http://ccvs.cvshome.org
>
> -Thanks
> Stephen More

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Moving devices from 98SE to XP and back again

2003-10-06 Thread fergus
This is a file-handling problem that I have noticed in other contexts too.

Windows 98/SE is good (faultless?) at preserving upper case and lower case
in filenames, whether long or short or with spaces. However, I have noticed
when moving devices back and forth between 98 and XP machines, that XP is
nothing like as careful, and that in circumstances that I have not yet
precisely identified, one can suddenly lose this distinction when all 8.3
filenames that had been all lower case become all upper case.

Mixtures of case in filenames are preserved (libW11.dll stays libW11.dll,
XWin.exe stays XWin.exe) and so are long file names (cygcrypto.dll stays
cygcrypto.dll) but in all other cases (less.exe, cygwin1.dll) the change
takes place (LESS.EXE, CYGWIN1.DLL).

In an important respect this does not matter at all: Windows is daft enough
not to know there is a difference and so it does not notice it when seeking
and reading a file. Eg when starting Cygwin it does not matter that
cygwin1.dll has become CYGWIN1.DLL. But: Cygwin does notice, and once there,
ls cyg* presents a quite different response to ls CYG* (for instance). So
this is a very nasty occurrence, once it has happened.

I appreciate that the list is well populated with traffic on the subject of
long and short filenames but I have not found the answers to the following:
(1) when moving devices between different OS as described, is there a
particular class of activity that will cause this transformation? (Maybe
something to do with pursuing activities in a XP Command Prompt window, but
I can't confirm this.) (2) assuming the activity is a useful one to be
continued, is there some protection that can be implemented against the
transformation taking place?

Thank you.

Fergus


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