problem starting cron as a service

2003-07-21 Thread Bill McCormick
I get this in the win app error log:

Event Type: Error
Event Source:   cron
Event Category: None
Event ID:   0
Date:   7/21/2003
Time:   2:14:08 AM
User:   BILLHOME\Administrator
Computer:   BILLHOME
Description:
The description for Event ID ( 0 ) in Source ( cron ) cannot be found. The
local computer may not have the necessary registry information or message
DLL files to display messages from a remote computer. The following
information is part of the event: cron : PID 2276 : starting service `cron'
failed: execv: 0, No error.

While trying to start the service as Administrator (or from LocalSytems
account). I rm'd /var/run/cron.pid and /var/log/cron.log before trying to
start.

Thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003


--
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: Remounting /cygdrive/c as /c

2003-07-21 Thread Gavin Sinclair
> Hi.  I searched the archives, but did not find anything on this.

My preferred method of accessing C:/ as /c is the following

  mkdir /c
  mount C:/ /c

I didn't really know about changing the prefix, but I prefer not to rely
on things like that, anyway.

Note that without explicitly creating the directory, as above, Cygwin
won't list "c" in the output of "ls /".  Whether that's good or bad is up
to you.

Regards,
Gavin




--
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: Crash in lynx

2003-07-21 Thread Ronald Landheer-Cieslak
On Fri, 18 Jul 2003, Corinna Vinschen wrote:
> On Fri, Jul 18, 2003 at 04:07:08PM +0200, Ronald Landheer-Cieslak wrote:
> > When wanting to have a look whether a new pcre was available at 
> > www.pcre.org, I had a slight case of fat fingers and made lynx crash :|
> > (cygcheck output below)
> > 
> > $ lynx www.pcre.orgf
> > *crash*
> > 
> > Some particularities about my current setup: sh-utils is built here (but I
> > don't think that matters), Cygwin is the one I checked out from CVS
> > yesterday at 1600 CET (that will probably matter) and aspell is installed 
> > (but I don't think that matters). The rest will show up on the cygcheck 
> > output.
> > 
> > Actually, the same thing happens if I just do `lynx www.pcre.org', so it's 
> > not the fat-fingers part that makes it so..
> 
> Hmm, the strace isn't very helpful, sorry.  There's actually no hint what
> happens.  It's a function inside Cygwin which crashes but I guess you'll
> have to debug that by yourself.
> 
> I tried the current lynx 2.8.4-5 in an ssh session, in rxvt and in a
> console window, both, the fat-fingered as well as the correct link. 
> No crash. 
> 
> Then I rebuilt lynx for 64 bit mode (already uploaded to cygwin.com) and
> tried all of the above again.  No crash.
> 
> Then I rebuilt the latest Cygwin from CVS and tried again.  Guess what?
> No crash.
I just installed the latest lynx - crash.

I'll update my CVS repo & try again. If I have time, I'll debug :)

rlc



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



RE: problem starting cron as a service

2003-07-21 Thread Vince Hoffman
anything in /var/log/cron.log ?

and are you mounts system or user ? 
ie.
$ mount |grep "/ type system"

should give something like

h:\cygwin on / type system (binmode)

> -Original Message-
> From: Bill McCormick [mailto:[EMAIL PROTECTED]
> Sent: 21 July 2003 08:25
> To: Cygwin
> Subject: problem starting cron as a service
> 
> 
> I get this in the win app error log:
> 
> Event Type:   Error
> Event Source: cron
> Event Category:   None
> Event ID: 0
> Date: 7/21/2003
> Time: 2:14:08 AM
> User: BILLHOME\Administrator
> Computer: BILLHOME
> Description:
> The description for Event ID ( 0 ) in Source ( cron ) cannot 
> be found. The
> local computer may not have the necessary registry 
> information or message
> DLL files to display messages from a remote computer. The following
> information is part of the event: cron : PID 2276 : starting 
> service `cron'
> failed: execv: 0, No error.
> 
> While trying to start the service as Administrator (or from 
> LocalSytems
> account). I rm'd /var/run/cron.pid and /var/log/cron.log 
> before trying to
> start.
> 
> Thanks
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> 
> 
> --
> 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: Problem running emacs under XP

2003-07-21 Thread David Sharp
I strongly expect you are typing emacs into the bash shell you are starting
X from. Type it into an xterm...
- Original Message -
From: "martin cohen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 19, 2003 9:05 PM
Subject: Problem running emacs under XP


> I installed cygwin in my D: partition under Win XP.
> Running startx results in the usual screen and the
> 3 windows. However, when I type in my usual
> "emacs . &", I get this
>
> emacs: cannot connect to X server :0.0.
> Check the DISPLAY evironment variable or use '-d'.
> Also use the 'xhost' program to verify that it is set to
> permit
> connections from your machine.
>
> When I enter "xhost +", I get this
>
> xhost: unable to open display ":0.0"
>
> Here are my environment variables:
>
> !C:=C:\Documents and Settings\Marty
> !D:=D:\cygwin\bin
> ALLUSERSPROFILE=C:\Documents and Settings\All Users
> APPDATA=C:\Documents and Settings\Marty\Application Data
> COMMONPROGRAMFILES=C:\Program Files\Common Files
> COMPUTERNAME=COHEN-RZ22G
> COMSPEC=C:\WINDOWS\system32\cmd.exe
> CVS_RSH=/bin/ssh
> DISPLAY=:0.0
> HOME=/home/Marty
> HOMEDRIVE=C:
> HOMEPATH=\Documents and Settings\Marty
> HOSTNAME=Cohen-RZ22G
> LOGNAME=Marty
> LOGONSERVER=\\COHEN-RZ22G
> MAKE_MODE=unix
> MANPATH=:/usr/ssl/man
> NUMBER_OF_PROCESSORS=1
> OS=Windows_NT
>
PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/W
INDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/usr/X11R6/bin
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7,
> GenuineIntel
> PROCESSOR_LEVEL=15
> PROCESSOR_REVISION=0207
> PROGRAMFILES=C:\Program Files
> PROMPT=$P$G
> PS1=\[\033]0;\w\007
> [EMAIL PROTECTED] \[\033[33m\w\033[0m\]
> $
> PWD=/home/Marty
> SESSIONNAME=Console
> SHLVL=2
> SYSTEMDRIVE=C:
> SYSTEMROOT=C:\WINDOWS
> TEMP=/cygdrive/c/DOCUME~1/Marty/LOCALS~1/Temp
> TERM=xterm
> TEXMF={/usr/share/lilypond/1.6.8,/usr/share/texmf}
> TMP=/cygdrive/c/DOCUME~1/Marty/LOCALS~1/Temp
> USER=Marty
> USERDOMAIN=COHEN-RZ22G
> USERNAME=Marty
> USERPROFILE=C:\Documents and Settings\Marty
> WINDIR=C:\WINDOWS
> WINDOWID=8388622
> XAUTHORITY=/home/Marty/.Xauthority
> _=/usr/bin/env
>
> I am sure there is some simple configuration file I am not
> setting up, since do the same thing worked find on a Win
> 2000 machine. The only difference, aside from XP vs 2000,
> is that I had no problems with cygwin on C:, and the
> problems here on D:.
>
> Thanks
>
> Martin Cohen
>
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.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/
>



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



Call dynamic pointer

2003-07-21 Thread Lucien Mathieu
Hello,

in a dll, I'm calling a 

extern "C" {
void * init();
}

where it is define as follow

void * init() {
return (new TObject());
}

it's doing a segment fault,
does the new pointer is automatically deleted?

I was thinking not to use the dlclose in the main program,
but it doesn't work either.

Any idea how to return a pointer from a DLL to a main program?

Thanks in advance,
Lucien.



--
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: Crash in lynx

2003-07-21 Thread Ronald Landheer-Cieslak
A bit more info: I've just rebuilt cygwin1.dll and ran lynx under gdb. It 
crashed with a SIGTRAP. 

(gdb) bt
#0  0x78477705 in ?? ()
#1  0x784aed7c in ?? ()
#2  0x78496695 in ?? ()
#3  0x784958fe in ?? ()
#4  0x78487111 in ?? ()
#5  0x784abeda in ?? ()
#6  0x770c1a2f in RPCRT4!NdrXmitOrRepAsMarshall () from 
/cygdrive/c/WINNT/system32/rpcrt4.dll
#7  0x770d86b6 in RPCRT4!NdrClientInitialize () from 
/cygdrive/c/WINNT/system32/rpcrt4.dll
#8  0x770d0d8b in RPCRT4!NdrConformantArrayMarshall () from 
/cygdrive/c/WINNT/system32/rpcrt4.dll
#9  0x779788ac in DnsValidateUtf8Byte () from /cygdrive/c/WINNT/System32/dnsapi.dll
#10 0x770c96cb in RpcStringFreeW () from /cygdrive/c/WINNT/system32/rpcrt4.dll
#11 0x7712415e in RpcSsDontSerializeContext () from 
/cygdrive/c/WINNT/system32/rpcrt4.dll
#12 0x779794bf in DnsRecordStringForType () from /cygdrive/c/WINNT/System32/dnsapi.dll
#13 0x7797923a in DnsRecordStringForType () from /cygdrive/c/WINNT/System32/dnsapi.dll
#14 0x77979a6f in DnsRecordCopyEx () from /cygdrive/c/WINNT/System32/dnsapi.dll
#15 0x778334cf in RNR20!NSPStartup () from /cygdrive/c/WINNT/System32/RNR20.DLL
(gdb) thread 2
[Switching to thread 2 (thread 1548.0x610)]#0  0x784637b2 in ?? ()
(gdb) bt
#0  0x784637b2 in ?? ()
#1  0x77e7a31d in WaitForMultipleObjects () from 
/cygdrive/c/WINNT/system32/KERNEL32.DLL
#2  0x61067811 in wait_sig(void*) (self=0x610c1af8) at 
../../../../src/winsup/cygwin/sigproc.cc:1108
#3  0x610026e3 in cygthread::stub(void*) (arg=0x610c1af8) at 
../../../../src/winsup/cygwin/cygthread.cc:69
#4  0x77e787dd in KERNEL32!GetModuleFileNameA () from 
/cygdrive/c/WINNT/system32/KERNEL32.DLL
(gdb) thread 3
[Switching to thread 3 (thread 1548.0x6ac)]#0  0x784637b2 in ?? ()
(gdb) bt
#0  0x784637b2 in ?? ()
#1  0x77e7a31d in WaitForMultipleObjects () from 
/cygdrive/c/WINNT/system32/KERNEL32.DLL
#2  0x77e787dd in KERNEL32!GetModuleFileNameA () from 
/cygdrive/c/WINNT/system32/KERNEL32.DLL

I've recompiled lynx and will try to nail the bug down as much as 
possible, if I have time

HTH

rlc


On Mon, 21 Jul 2003, Ronald Landheer-Cieslak wrote:

> On Fri, 18 Jul 2003, Corinna Vinschen wrote:
> > On Fri, Jul 18, 2003 at 04:07:08PM +0200, Ronald Landheer-Cieslak wrote:
> > > When wanting to have a look whether a new pcre was available at 
> > > www.pcre.org, I had a slight case of fat fingers and made lynx crash :|
> > > (cygcheck output below)
> > > 
> > > $ lynx www.pcre.orgf
> > > *crash*
> > > 
> > > Some particularities about my current setup: sh-utils is built here (but I
> > > don't think that matters), Cygwin is the one I checked out from CVS
> > > yesterday at 1600 CET (that will probably matter) and aspell is installed 
> > > (but I don't think that matters). The rest will show up on the cygcheck 
> > > output.
> > > 
> > > Actually, the same thing happens if I just do `lynx www.pcre.org', so it's 
> > > not the fat-fingers part that makes it so..
> > 
> > Hmm, the strace isn't very helpful, sorry.  There's actually no hint what
> > happens.  It's a function inside Cygwin which crashes but I guess you'll
> > have to debug that by yourself.
> > 
> > I tried the current lynx 2.8.4-5 in an ssh session, in rxvt and in a
> > console window, both, the fat-fingered as well as the correct link. 
> > No crash. 
> > 
> > Then I rebuilt lynx for 64 bit mode (already uploaded to cygwin.com) and
> > tried all of the above again.  No crash.
> > 
> > Then I rebuilt the latest Cygwin from CVS and tried again.  Guess what?
> > No crash.
> I just installed the latest lynx - crash.
> 
> I'll update my CVS repo & try again. If I have time, I'll debug :)
> 
> rlc
> 
> 
> 
> --
> 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: Call dynamic pointer

2003-07-21 Thread Ronald Landheer-Cieslak
On Mon, 21 Jul 2003, Lucien Mathieu wrote:
> Hello,
> 
>   in a dll, I'm calling a
> 
>   extern "C" {
>   void * init();
>   }
> 
>   where it is define as follow
> 
>   void * init() {
>   return (new TObject());
>   }
> 
>   it's doing a segment fault,
>   does the new pointer is automatically deleted?
>   
>   I was thinking not to use the dlclose in the main program,
>   but it doesn't work either.
> 
>   Any idea how to return a pointer from a DLL to a main program?
> 
> Thanks in advance,
You're not providing nearly enough information about your problem. Have a 
look at http://www.cygwin.com/problems.html for more information.

HTH

rlc



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



Re: Problem with xinetd as a service

2003-07-21 Thread Larry Hall
Christopher Faylor wrote:

On Sun, Jul 20, 2003 at 07:41:42PM -0700, Martin Gainty wrote:

verify
[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/]
"native"="C:\\local\\cygwin"


What's the opposite of a gold star?  A raspberry?  A piece of coal?
From my primary school penmanship days, the opposite of a gold star
was a black star.  Sounds ominous in cosmological terms (at least to me)
though I think it was just supposed to be plain ugly to the recipient in
those days.  Perhaps this is what you want.  Or you could go more
contemporary and simply give those offenders a "time-out".  Alternatively,
how about a swat on the nose?  Hm, I'm starting to like this one, provided
we can find a good image to go with it. ;-)
--
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: Remounting /cygdrive/c as /c

2003-07-21 Thread Larry Hall
Richard Anderson wrote:

Hi.  I searched the archives, but did not find anything on this.  According
to the man page for mount and Christopher Faylor original announcement
(http://sources.redhat.com/ml/cygwin/2001-09/msg00014.html ), the command:
mount -s --change-cygdrive-prefix /

should remount the /cygdrive/c filesystem as /c.  When I do this and type ls
/c, I see:
ls /c
ls: /c: No such file or directory
and the df command shows the mount points have not changed.  I am doing this
from an account with Administrator priviledges on Win XP, cygwin release
version is 1.3.22-1.
What am I missing?


What does the output of 'mount -m' say about '--change-cygdrive-prefix'?
BTW, the steps above work fine for me.


--
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: Remounting /cygdrive/c as /c

2003-07-21 Thread Rob
Try restarting your computer

- Original Message - 
From: "Larry Hall" <[EMAIL PROTECTED]>
To: "Richard Anderson" <[EMAIL PROTECTED]>
Cc: "Cygwin" <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2003 10:26 AM
Subject: Re: Remounting /cygdrive/c as /c


> Richard Anderson wrote:
>
> > Hi.  I searched the archives, but did not find anything on this.
According
> > to the man page for mount and Christopher Faylor original announcement
> > (http://sources.redhat.com/ml/cygwin/2001-09/msg00014.html ), the
command:
> >
> > mount -s --change-cygdrive-prefix /
> >
> > should remount the /cygdrive/c filesystem as /c.  When I do this and
type ls
> > /c, I see:
> >
> > ls /c
> > ls: /c: No such file or directory
> >
> > and the df command shows the mount points have not changed.  I am doing
this
> > from an account with Administrator priviledges on Win XP, cygwin release
> > version is 1.3.22-1.
> >
> > What am I missing?
>
>
> What does the output of 'mount -m' say about '--change-cygdrive-prefix'?
> BTW, the steps above work fine for me.
>
>
>
> -- 
> 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/
>
>


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



RE: problem starting cron as a service

2003-07-21 Thread Vince Hoffman
Hi Bill,
Off hand there are a few things to try, but Mark Harig on the cygwin
list seems pretty up on cron, and has a script which will diagnose common
problems, heres a link to a message which has it attached,


You'll do better keeping messages on list as theres a whole lot more
experience out there than I have. One thing you could try is running cron
manualy from the command line as localsystem and seeing if you get any clues
in the output. (appologys if you have and i missed that message.)

Vince
ps. the output of cygcheck -s -v -r as an uncompressed attachment might help
too.
> -Original Message-
> From: Bill McCormick [mailto:[EMAIL PROTECTED]
> Sent: 21 July 2003 15:18
> To: Vince Hoffman
> Subject: RE: problem starting cron as a service
> 
> 
> Thanks Vince,
> 
> Nothing in cron.log (file created but empty) and mount is 
> system. Any other
> ideas?
> 
> 
> Bill
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Behalf
> > Of Vince Hoffman
> > Sent: Monday, July 21, 2003 4:08 AM
> > To: '[EMAIL PROTECTED]'; Cygwin
> > Subject: RE: problem starting cron as a service
> >
> >
> > anything in /var/log/cron.log ?
> >
> > and are you mounts system or user ?
> > ie.
> > $ mount |grep "/ type system"
> >
> > should give something like
> >
> > h:\cygwin on / type system (binmode)
> >
> > > -Original Message-
> > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > Sent: 21 July 2003 08:25
> > > To: Cygwin
> > > Subject: problem starting cron as a service
> > >
> > >
> > > I get this in the win app error log:
> > >
> > > Event Type:   Error
> > > Event Source: cron
> > > Event Category:   None
> > > Event ID: 0
> > > Date: 7/21/2003
> > > Time: 2:14:08 AM
> > > User: BILLHOME\Administrator
> > > Computer: BILLHOME
> > > Description:
> > > The description for Event ID ( 0 ) in Source ( cron ) cannot
> > > be found. The
> > > local computer may not have the necessary registry
> > > information or message
> > > DLL files to display messages from a remote computer. The 
> following
> > > information is part of the event: cron : PID 2276 : starting
> > > service `cron'
> > > failed: execv: 0, No error.
> > >
> > > While trying to start the service as Administrator (or from
> > > LocalSytems
> > > account). I rm'd /var/run/cron.pid and /var/log/cron.log
> > > before trying to
> > > start.
> > >
> > > Thanks
> > > ---
> > > Outgoing mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> > >
> > >
> > > --
> > > 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/
> >
> >
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> >
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> 

--
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: Call dynamic pointer

2003-07-21 Thread Larry Hall
Lucien Mathieu wrote:

Hello,

	in a dll, I'm calling a 

extern "C" {
void * init();
}
	where it is define as follow

void * init() {
return (new TObject());
}
it's doing a segment fault,
does the new pointer is automatically deleted?

I was thinking not to use the dlclose in the main program,
but it doesn't work either.
	Any idea how to return a pointer from a DLL to a main program?


Is this issue Cygwin specific?  If so, please provide details of the
problem if you'd like someone here to be able to help solve it.
Otherwise, you might want to make a similar inquiry to a Windows C++
development forum.  I'd suggest including sample code that reproduces
the problem too.
--
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: problem starting cron as a service

2003-07-21 Thread Bill McCormick

Thanks,

One more clue: I can start cron from the command line just fine (no errors)
and am running other services including Apache, sshd and inetd. I like your
ideas though and I'll give them a try.

Thanks,

Bill

P.S. I did "reply all" on the last message, so it went to you and the list.

> -Original Message-
> From: Vince Hoffman [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 9:38 AM
> To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> Subject: RE: problem starting cron as a service
>
>
> Hi Bill,
>   Off hand there are a few things to try, but Mark Harig on the cygwin
> list seems pretty up on cron, and has a script which will diagnose common
> problems, heres a link to a message which has it attached,
> 
>
>   You'll do better keeping messages on list as theres a whole lot more
> experience out there than I have. One thing you could try is running cron
> manualy from the command line as localsystem and seeing if you
> get any clues
> in the output. (appologys if you have and i missed that message.)
>
> Vince
> ps. the output of cygcheck -s -v -r as an uncompressed attachment
> might help
> too.
> > -Original Message-
> > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > Sent: 21 July 2003 15:18
> > To: Vince Hoffman
> > Subject: RE: problem starting cron as a service
> >
> >
> > Thanks Vince,
> >
> > Nothing in cron.log (file created but empty) and mount is
> > system. Any other
> > ideas?
> >
> >
> > Bill
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf
> > > Of Vince Hoffman
> > > Sent: Monday, July 21, 2003 4:08 AM
> > > To: '[EMAIL PROTECTED]'; Cygwin
> > > Subject: RE: problem starting cron as a service
> > >
> > >
> > > anything in /var/log/cron.log ?
> > >
> > > and are you mounts system or user ?
> > > ie.
> > > $ mount |grep "/ type system"
> > >
> > > should give something like
> > >
> > > h:\cygwin on / type system (binmode)
> > >
> > > > -Original Message-
> > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > Sent: 21 July 2003 08:25
> > > > To: Cygwin
> > > > Subject: problem starting cron as a service
> > > >
> > > >
> > > > I get this in the win app error log:
> > > >
> > > > Event Type: Error
> > > > Event Source:   cron
> > > > Event Category: None
> > > > Event ID:   0
> > > > Date:   7/21/2003
> > > > Time:   2:14:08 AM
> > > > User:   BILLHOME\Administrator
> > > > Computer:   BILLHOME
> > > > Description:
> > > > The description for Event ID ( 0 ) in Source ( cron ) cannot
> > > > be found. The
> > > > local computer may not have the necessary registry
> > > > information or message
> > > > DLL files to display messages from a remote computer. The
> > following
> > > > information is part of the event: cron : PID 2276 : starting
> > > > service `cron'
> > > > failed: execv: 0, No error.
> > > >
> > > > While trying to start the service as Administrator (or from
> > > > LocalSytems
> > > > account). I rm'd /var/run/cron.pid and /var/log/cron.log
> > > > before trying to
> > > > start.
> > > >
> > > > Thanks
> > > > ---
> > > > Outgoing mail is certified Virus Free.
> > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> > > >
> > > >
> > > > --
> > > > 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/
> > >
> > >
> > > ---
> > > Incoming mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> > >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> >
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003


--
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: Remounting /cygdrive/c as /c

2003-07-21 Thread Larry Hall
Just curious, why do you think this will be helpful?
I'd be interested in understanding your reasoning on this.
I can't see an obvious reason why this would be necessary
but I'm always interested in hearing other people's
experiences and solutions.
Thanks,
Larry
Rob wrote:

Try restarting your computer

- Original Message - 
From: "Larry Hall" <[EMAIL PROTECTED]>
To: "Richard Anderson" <[EMAIL PROTECTED]>
Cc: "Cygwin" <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2003 10:26 AM
Subject: Re: Remounting /cygdrive/c as /c



Richard Anderson wrote:


Hi.  I searched the archives, but did not find anything on this.
According

to the man page for mount and Christopher Faylor original announcement
(http://sources.redhat.com/ml/cygwin/2001-09/msg00014.html ), the
command:

mount -s --change-cygdrive-prefix /

should remount the /cygdrive/c filesystem as /c.  When I do this and
type ls

/c, I see:

ls /c
ls: /c: No such file or directory
and the df command shows the mount points have not changed.  I am doing
this

from an account with Administrator priviledges on Win XP, cygwin release
version is 1.3.22-1.
What am I missing?


What does the output of 'mount -m' say about '--change-cygdrive-prefix'?
BTW, the steps above work fine for me.


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



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



--
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: Remounting /cygdrive/c as /c

2003-07-21 Thread Richard Anderson
This worked, thanks.

Richard Anderson
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.richard-anderson.org
www.raycosoft.com
- Original Message - 
From: "Rob" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Richard Anderson" <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2003 7:32 AM
Subject: Re: Remounting /cygdrive/c as /c


> Try restarting your computer
>
> - Original Message - 
> From: "Larry Hall" <[EMAIL PROTECTED]>
> To: "Richard Anderson" <[EMAIL PROTECTED]>
> Cc: "Cygwin" <[EMAIL PROTECTED]>
> Sent: Monday, July 21, 2003 10:26 AM
> Subject: Re: Remounting /cygdrive/c as /c
>
>
> > Richard Anderson wrote:
> >
> > > Hi.  I searched the archives, but did not find anything on this.
> According
> > > to the man page for mount and Christopher Faylor original announcement
> > > (http://sources.redhat.com/ml/cygwin/2001-09/msg00014.html ), the
> command:
> > >
> > > mount -s --change-cygdrive-prefix /
> > >
> > > should remount the /cygdrive/c filesystem as /c.  When I do this and
> type ls
> > > /c, I see:
> > >
> > > ls /c
> > > ls: /c: No such file or directory
> > >
> > > and the df command shows the mount points have not changed.  I am
doing
> this
> > > from an account with Administrator priviledges on Win XP, cygwin
release
> > > version is 1.3.22-1.
> > >
> > > What am I missing?
> >
> >
> > What does the output of 'mount -m' say about '--change-cygdrive-prefix'?
> > BTW, the steps above work fine for me.
> >
> >
> >
> > -- 
> > 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/
> >
> >
>
>
> --
> 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: problem starting cron as a service

2003-07-21 Thread Bill McCormick
How do I run a prog as localsystem? 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Vince Hoffman
> Sent: Monday, July 21, 2003 9:38 AM
> To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> Subject: RE: problem starting cron as a service
> 
> 
> Hi Bill,
>   Off hand there are a few things to try, but Mark Harig on the cygwin
> list seems pretty up on cron, and has a script which will diagnose common
> problems, heres a link to a message which has it attached,
> 
> 
>   You'll do better keeping messages on list as theres a whole lot more
> experience out there than I have. One thing you could try is running cron
> manualy from the command line as localsystem and seeing if you 
> get any clues
> in the output. (appologys if you have and i missed that message.)
> 
> Vince
> ps. the output of cygcheck -s -v -r as an uncompressed attachment 
> might help
> too.
> > -Original Message-
> > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > Sent: 21 July 2003 15:18
> > To: Vince Hoffman
> > Subject: RE: problem starting cron as a service
> > 
> > 
> > Thanks Vince,
> > 
> > Nothing in cron.log (file created but empty) and mount is 
> > system. Any other
> > ideas?
> > 
> > 
> > Bill
> > > -Original Message-
> > > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] Behalf
> > > Of Vince Hoffman
> > > Sent: Monday, July 21, 2003 4:08 AM
> > > To: '[EMAIL PROTECTED]'; Cygwin
> > > Subject: RE: problem starting cron as a service
> > >
> > >
> > > anything in /var/log/cron.log ?
> > >
> > > and are you mounts system or user ?
> > > ie.
> > > $ mount |grep "/ type system"
> > >
> > > should give something like
> > >
> > > h:\cygwin on / type system (binmode)
> > >
> > > > -Original Message-
> > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > Sent: 21 July 2003 08:25
> > > > To: Cygwin
> > > > Subject: problem starting cron as a service
> > > >
> > > >
> > > > I get this in the win app error log:
> > > >
> > > > Event Type: Error
> > > > Event Source:   cron
> > > > Event Category: None
> > > > Event ID:   0
> > > > Date:   7/21/2003
> > > > Time:   2:14:08 AM
> > > > User:   BILLHOME\Administrator
> > > > Computer:   BILLHOME
> > > > Description:
> > > > The description for Event ID ( 0 ) in Source ( cron ) cannot
> > > > be found. The
> > > > local computer may not have the necessary registry
> > > > information or message
> > > > DLL files to display messages from a remote computer. The 
> > following
> > > > information is part of the event: cron : PID 2276 : starting
> > > > service `cron'
> > > > failed: execv: 0, No error.
> > > >
> > > > While trying to start the service as Administrator (or from
> > > > LocalSytems
> > > > account). I rm'd /var/run/cron.pid and /var/log/cron.log
> > > > before trying to
> > > > start.
> > > >
> > > > Thanks
> > > > ---
> > > > Outgoing mail is certified Virus Free.
> > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> > > >
> > > >
> > > > --
> > > > 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/
> > >
> > >
> > > ---
> > > Incoming mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> > >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> > 
> 
> --
> 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/
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003


--
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: Crash in lynx

2003-07-21 Thread Corinna Vinschen
On Mon, Jul 21, 2003 at 03:45:51PM +0200, Ronald Landheer-Cieslak wrote:
> A bit more info: I've just rebuilt cygwin1.dll and ran lynx under gdb. It 
> crashed with a SIGTRAP. 
> 
> (gdb) bt
> #0  0x78477705 in ?? ()
> #1  0x784aed7c in ?? ()
> #2  0x78496695 in ?? ()
> #3  0x784958fe in ?? ()
> #4  0x78487111 in ?? ()
> #5  0x784abeda in ?? ()
> #6  0x770c1a2f in RPCRT4!NdrXmitOrRepAsMarshall () from 
> /cygdrive/c/WINNT/system32/rpcrt4.dll
> #7  0x770d86b6 in RPCRT4!NdrClientInitialize () from 
> /cygdrive/c/WINNT/system32/rpcrt4.dll
> #8  0x770d0d8b in RPCRT4!NdrConformantArrayMarshall () from 
> /cygdrive/c/WINNT/system32/rpcrt4.dll
> #9  0x779788ac in DnsValidateUtf8Byte () from /cygdrive/c/WINNT/System32/dnsapi.dll
> #10 0x770c96cb in RpcStringFreeW () from /cygdrive/c/WINNT/system32/rpcrt4.dll
> #11 0x7712415e in RpcSsDontSerializeContext () from 
> /cygdrive/c/WINNT/system32/rpcrt4.dll
> #12 0x779794bf in DnsRecordStringForType () from 
> /cygdrive/c/WINNT/System32/dnsapi.dll
> #13 0x7797923a in DnsRecordStringForType () from 
> /cygdrive/c/WINNT/System32/dnsapi.dll
> #14 0x77979a6f in DnsRecordCopyEx () from /cygdrive/c/WINNT/System32/dnsapi.dll
> #15 0x778334cf in RNR20!NSPStartup () from /cygdrive/c/WINNT/System32/RNR20.DLL

That's deep inside Windows.  Looks like a problem with requesting info
from DNS, apparently.

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: Remounting /cygdrive/c as /c

2003-07-21 Thread Rob
Yeah, sorry for not putting in any detail.  The reason why I suggested this
is because I've had the same problem, and restarting solved it.  I can't say
for sure, but I'm guessing that the change doesn't take effect until the
cygwin dll gets loaded into memory.  On my system, I'm running cygwin
services like inetd, so the dll is always loaded and simply starting another
bash instance won't reload the dll anything.

Just a guess though

rob.

> Just curious, why do you think this will be helpful?
> I'd be interested in understanding your reasoning on this.
> I can't see an obvious reason why this would be necessary
> but I'm always interested in hearing other people's
> experiences and solutions.
>
> Thanks,
> Larry
>
> Rob wrote:
>
> > Try restarting your computer
> >
> > - Original Message - 
> > From: "Larry Hall" <[EMAIL PROTECTED]>
> > To: "Richard Anderson" <[EMAIL PROTECTED]>
> > Cc: "Cygwin" <[EMAIL PROTECTED]>
> > Sent: Monday, July 21, 2003 10:26 AM
> > Subject: Re: Remounting /cygdrive/c as /c
> >
> >
> >
> >>Richard Anderson wrote:
> >>
> >>
> >>>Hi.  I searched the archives, but did not find anything on this.
> >
> > According
> >
> >>>to the man page for mount and Christopher Faylor original announcement
> >>>(http://sources.redhat.com/ml/cygwin/2001-09/msg00014.html ), the
> >
> > command:
> >
> >>>mount -s --change-cygdrive-prefix /
> >>>
> >>>should remount the /cygdrive/c filesystem as /c.  When I do this and
> >
> > type ls
> >
> >>>/c, I see:
> >>>
> >>>ls /c
> >>>ls: /c: No such file or directory
> >>>
> >>>and the df command shows the mount points have not changed.  I am doing
> >
> > this
> >
> >>>from an account with Administrator priviledges on Win XP, cygwin
release
> >>>version is 1.3.22-1.
> >>>
> >>>What am I missing?
> >>
> >>
> >>What does the output of 'mount -m' say about '--change-cygdrive-prefix'?
> >>BTW, the steps above work fine for me.
> >>
> >>
> >>
> >>-- 
> >>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/
> >>
> >>
> >
> >
> >
> > --
> > 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/
> >
> >
>
>
> -- 
> 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/
>
>


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



RE: problem starting cron as a service

2003-07-21 Thread Vince Hoffman
Opps thought from your previous message you already knew or i would have
said.
the easiest way is the "at" trick, from a command line,type 
"at \\yourcomputername 15:49 /interactive cmd.exe"
this will give you a cmd shell running as SYSTEM. from there cd to your
cygwin\bin directory and type "bash --login -i" which will give you a bash
shell running as SYSTEM.

> -Original Message-
> From: Bill McCormick [mailto:[EMAIL PROTECTED]
> Sent: 21 July 2003 16:41
> To: [EMAIL PROTECTED]
> Subject: RE: problem starting cron as a service
> 
> 
> How do I run a prog as localsystem? 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Behalf
> > Of Vince Hoffman
> > Sent: Monday, July 21, 2003 9:38 AM
> > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > Subject: RE: problem starting cron as a service
> > 
> > 
> > Hi Bill,
> > Off hand there are a few things to try, but Mark Harig 
> on the cygwin
> > list seems pretty up on cron, and has a script which will 
> diagnose common
> > problems, heres a link to a message which has it attached,
> > 
> > 
> > You'll do better keeping messages on list as theres a 
> whole lot more
> > experience out there than I have. One thing you could try 
> is running cron
> > manualy from the command line as localsystem and seeing if you 
> > get any clues
> > in the output. (appologys if you have and i missed that message.)
> > 
> > Vince
> > ps. the output of cygcheck -s -v -r as an uncompressed attachment 
> > might help
> > too.
> > > -Original Message-
> > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > Sent: 21 July 2003 15:18
> > > To: Vince Hoffman
> > > Subject: RE: problem starting cron as a service
> > > 
> > > 
> > > Thanks Vince,
> > > 
> > > Nothing in cron.log (file created but empty) and mount is 
> > > system. Any other
> > > ideas?
> > > 
> > > 
> > > Bill
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] 
> > > [mailto:[EMAIL PROTECTED] Behalf
> > > > Of Vince Hoffman
> > > > Sent: Monday, July 21, 2003 4:08 AM
> > > > To: '[EMAIL PROTECTED]'; Cygwin
> > > > Subject: RE: problem starting cron as a service
> > > >
> > > >
> > > > anything in /var/log/cron.log ?
> > > >
> > > > and are you mounts system or user ?
> > > > ie.
> > > > $ mount |grep "/ type system"
> > > >
> > > > should give something like
> > > >
> > > > h:\cygwin on / type system (binmode)
> > > >
> > > > > -Original Message-
> > > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > > Sent: 21 July 2003 08:25
> > > > > To: Cygwin
> > > > > Subject: problem starting cron as a service
> > > > >
> > > > >
> > > > > I get this in the win app error log:
> > > > >
> > > > > Event Type:   Error
> > > > > Event Source: cron
> > > > > Event Category:   None
> > > > > Event ID: 0
> > > > > Date: 7/21/2003
> > > > > Time: 2:14:08 AM
> > > > > User: BILLHOME\Administrator
> > > > > Computer: BILLHOME
> > > > > Description:
> > > > > The description for Event ID ( 0 ) in Source ( cron ) cannot
> > > > > be found. The
> > > > > local computer may not have the necessary registry
> > > > > information or message
> > > > > DLL files to display messages from a remote computer. The 
> > > following
> > > > > information is part of the event: cron : PID 2276 : starting
> > > > > service `cron'
> > > > > failed: execv: 0, No error.
> > > > >
> > > > > While trying to start the service as Administrator (or from
> > > > > LocalSytems
> > > > > account). I rm'd /var/run/cron.pid and /var/log/cron.log
> > > > > before trying to
> > > > > start.
> > > > >
> > > > > Thanks
> > > > > ---
> > > > > Outgoing mail is certified Virus Free.
> > > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > > Version: 6.0.502 / Virus Database: 300 - Release 
> Date: 7/18/2003
> > > > >
> > > > >
> > > > > --
> > > > > 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/
> > >
> > >
> > > ---
> > > Incoming mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> > >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
> > 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> D

Re: Crash in lynx

2003-07-21 Thread Ronald Landheer-Cieslak
Hi Corinna,

> That's deep inside Windows.  Looks like a problem with requesting info
> from DNS, apparently.

Yeah, but the weird thing is that this is not the error I get when I run 
it outside of the debugger.

i.e., a STC shows that there is no problem with the call in question 
(gethostname) *unless* run from withing gdb.

Here's the code:

-- BEGIN STC --
#include 

int main( void )
{
   char buffer[2000];

   gethostname( buffer, 2000 );
   printf( "host name: %s\n", buffer );

   return ( 0 );
}
--- END STC ---

When I save this as main.c and do a 

$ make main CFLAGS=-g
gcc -gmain.c   -o main
$ ./main
host name: w2k-rlandheer
$ gdb ./main
...
(gdb) r
Starting program: /home/RLandheer/test/gethostname/main.exe 
warning: HEAP[main.exe]: 
warning: Heap block at 00252DC0 modified at 00252DAA past requested size 
of ffe2


Program received signal SIGTRAP, Trace/breakpoint trap.
0x78477705 in ?? ()


This is regardless of whether I use canonical Cygwin 1.5.0 or current CVS 
Cygwin.The Lynx problem only occurs in current CVS Cygwin. (Hence, this is 
not the Lynx problem)

An oddity:
> warning: HEAP[main.exe]: 
> warning: Heap block at 00252DC0 modified at 00252DAA past requested size of ffe2

Anyways, this makes the Lynx problem very hard to debug, as I can't 
single-step through the code because that breaks the code..

Something interesting, though: gethostname is one of the auto-loaded 
functions which uses spiffy self-modifying assembler code. I have a 
feeling that might have something to do with this "can't step through 
code" problem, but that is just a WAG..

I'm going home, but if you have any ideas on how I can debug the Lynx 
problem without running into this SIGTRAP business I'm all ears. (i.e. 
I'll take a look tomorow during my coffee and/or lunchbreaks(s)

rlc

On Mon, 21 Jul 2003, Corinna Vinschen wrote:

> On Mon, Jul 21, 2003 at 03:45:51PM +0200, Ronald Landheer-Cieslak wrote:
> > A bit more info: I've just rebuilt cygwin1.dll and ran lynx under gdb. It 
> > crashed with a SIGTRAP. 
> > 
> > (gdb) bt
> > #0  0x78477705 in ?? ()
> > #1  0x784aed7c in ?? ()
> > #2  0x78496695 in ?? ()
> > #3  0x784958fe in ?? ()
> > #4  0x78487111 in ?? ()
> > #5  0x784abeda in ?? ()
> > #6  0x770c1a2f in RPCRT4!NdrXmitOrRepAsMarshall () from 
> > /cygdrive/c/WINNT/system32/rpcrt4.dll
> > #7  0x770d86b6 in RPCRT4!NdrClientInitialize () from 
> > /cygdrive/c/WINNT/system32/rpcrt4.dll
> > #8  0x770d0d8b in RPCRT4!NdrConformantArrayMarshall () from 
> > /cygdrive/c/WINNT/system32/rpcrt4.dll
> > #9  0x779788ac in DnsValidateUtf8Byte () from /cygdrive/c/WINNT/System32/dnsapi.dll
> > #10 0x770c96cb in RpcStringFreeW () from /cygdrive/c/WINNT/system32/rpcrt4.dll
> > #11 0x7712415e in RpcSsDontSerializeContext () from 
> > /cygdrive/c/WINNT/system32/rpcrt4.dll
> > #12 0x779794bf in DnsRecordStringForType () from 
> > /cygdrive/c/WINNT/System32/dnsapi.dll
> > #13 0x7797923a in DnsRecordStringForType () from 
> > /cygdrive/c/WINNT/System32/dnsapi.dll
> > #14 0x77979a6f in DnsRecordCopyEx () from /cygdrive/c/WINNT/System32/dnsapi.dll
> > #15 0x778334cf in RNR20!NSPStartup () from /cygdrive/c/WINNT/System32/RNR20.DLL
> 
> That's deep inside Windows.  Looks like a problem with requesting info
> from DNS, apparently.
> 
> Corinna
> 
> 


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



Re: Problem with tty

2003-07-21 Thread Philippe Fremy

> Setting 'tty' for Cygwin will not have any affect on Windows programs.
> Only Cygwin ones.  Running a Windows program from a Cygwin shell prompt
> can cause output from the Windows program to get "lost" since they don't
> understand ptys.  Use Cygwin's python and you won't have the particular
> problem you mentioned when run from a Cygwin shell prompt with 'tty' set.

Thank you for the information. I suppose there is no workaround for this ? 
Like launching vim inside a bash script ?

regards,

PHilippe


-- 
The box said it should run Windows 98 or better, so it should run Linux!


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



Re: Problem with tty

2003-07-21 Thread Larry Hall
Philippe Fremy wrote:

Setting 'tty' for Cygwin will not have any affect on Windows programs.
Only Cygwin ones.  Running a Windows program from a Cygwin shell prompt
can cause output from the Windows program to get "lost" since they don't
understand ptys.  Use Cygwin's python and you won't have the particular
problem you mentioned when run from a Cygwin shell prompt with 'tty' set.


Thank you for the information. I suppose there is no workaround for this ? 
Like launching vim inside a bash script ?
The easiest "workaround" I can think of is to avoid the situation
wherever possible.  If you run Cygwin's vim, there's no problem.
The Cygwin distribution doesn't include gvim though, if that's what
you're looking for.  Another option is Egor's ttyfier program.
See:


--
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: Remounting /cygdrive/c as /c

2003-07-21 Thread Christopher Faylor
On Mon, Jul 21, 2003 at 12:09:48PM -0400, Rob wrote:
>Yeah, sorry for not putting in any detail.  The reason why I suggested this
>is because I've had the same problem, and restarting solved it.  I can't say
>for sure, but I'm guessing that the change doesn't take effect until the
>cygwin dll gets loaded into memory.

For the record, this is not the way things are supposed to work.  A cygdrive
change should be recognized instaneously by all cygwin processes.

I suspect that this particular problem was due to a user-mode cygdrive
mount taking precedence over the system mode.  cygcheck output would have
confirmed or denied that theory, of course.

cgf
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.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/



cut and paste problem with xemacs Was Re: [ANNOUNCEMENT] Available for test: cygwin-1.5.0-1

2003-07-21 Thread Antoine Levy-Lambert
Hi Christopher, Corinna,

My xemacs is XEmacs 21.4.1.0 "Military Intelligence (Windows)" configured
for `i686-pc.cywin`

With cygwin 1.3, cut and paste between other applications and Xemacs works.
With cygwin 1.5.0-1, cut and paste between other applications and Xemacs
does not work

After having copied some text to the Windows buffer, trying to paste into
xemacs brings an error message in the status/command line of xemacs
: "kill ring is empty"

Let me know if you can fix this issue on the cygwin side, or if Xemacs needs
to be recompiled and relinked to interoperate with Windows in terms of cut
and paste.

Antoine

"Christopher Faylor" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> I've made a new version of the Cygwin DLL and associated utilities
> available for download.  As usual, a list of what has changed is below.
>
> This version is currently only available for testing.  It contains major
> changes in some APIs such that 64 bit file I/O operations are now
> available.  This means that some structures, such as those found in
> 'stat' and 'dirent', have changed.  Older applications will continue to
> work correctly but DLLs and libraries which use any structures whose
> size has changed as a result of changes from 32 bit integers to long (or
> in some cases long long) will need to be recompiled and relinked.  There
> will be an announcement in the cygwin-apps mailing list talking about
> what needs to be done to get your libraries and dlls working with this
> version of the DLL.
>
> The plan is to release test versions of affected DLLs and libraries and,
> when everything seems to be working ok, move cygwin and all of the
> libraries from the test classification to current.
>




--
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 : Call dynamic pointer

2003-07-21 Thread Lucien Mathieu
Hello again,

following this example:

TObject.hpp:

class Tobject {
...
};

extern "C" {
void * init();
}

TObject.cpp

void * init() {
return (new Tobject());
}

I create a DLL, g++ -c Tobject.cpp
g++ -shared -o Tobject.dll Tobject.o

When calling the init function after initialising everything
with
dlopen, dlsym, dlcose... It's generating a segmentation fault,
is
it due to the load and unload of the DLL? Even if I don't call
the
dlclose at the end, it's still doing the segmentation fault, is
there
a way of passing the pointer from the DLL to the main program
using
dlopen/dlsym stuff?

Let me know if I can't ask this kind of question to the list ;-P

Thanks in advance,
Lucien.

-Message d'origine-
De : Ronald Landheer-Cieslak [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 21 juillet 2003 15:48
À : Lucien Mathieu
Cc : [EMAIL PROTECTED]
Objet : Re: Call dynamic pointer


On Mon, 21 Jul 2003, Lucien Mathieu wrote:
> Hello,
> 
>   in a dll, I'm calling a
> 
>   extern "C" {
>   void * init();
>   }
> 
>   where it is define as follow
> 
>   void * init() {
>   return (new TObject());
>   }
> 
>   it's doing a segment fault,
>   does the new pointer is automatically deleted?
>   
>   I was thinking not to use the dlclose in the main program,
>   but it doesn't work either.
> 
>   Any idea how to return a pointer from a DLL to a main program?
> 
> Thanks in advance,
You're not providing nearly enough information about your problem. Have
a 
look at http://www.cygwin.com/problems.html for more information.

HTH

rlc






--
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 version 1.3.20

2003-07-21 Thread Henry Da Costa
Hello Mr. Faylor,

I hope you can help me. I'm looking for a complete Cygwin version 1.3.20
set of packages but have so far been unable to find it. I need that
particular version of Cygwin because other versions including the latest
one give us an error when used from a development tool for which we
don't have the source. Do you know if that Cygwin version is archived
anywhere?

Thanks.

Henry da Costa
Director, Software Development
Immersion Corporation

--
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: RE : Call dynamic pointer

2003-07-21 Thread Larry Hall
Sorry, this still isn't enough to see exactly what you're doing and
where the problem is.  If you can't make a simple case that can be
sent to the list so others can easily build and try your code to
reproduce the problem, then you're unlikely to see much help coming
from anyone on this list.  Also, as I mentioned in my previous response,
this really isn't a general C/C++ inquiry list.  It's a list to discuss
Cygwin.  If you find that your problem is relative to Cygwin's
implementation of dlopen and friends, this is the proper list to report/
discuss that.  If the problem is caused by some obscure compiler bug that
is specific to Cygwin, this is the right list.  If you're just not sure
how to get code like this working or you have some other non-Cygwin
specific issue, then a different forum is more appropriate.
Larry

Lucien Mathieu wrote:

Hello again,

	following this example:

	TObject.hpp:

class Tobject {
...
};
extern "C" {
void * init();
}
	TObject.cpp

void * init() {
return (new Tobject());
}
I create a DLL, g++ -c Tobject.cpp
g++ -shared -o Tobject.dll Tobject.o
When calling the init function after initialising everything
with
dlopen, dlsym, dlcose... It's generating a segmentation fault,
is
it due to the load and unload of the DLL? Even if I don't call
the
dlclose at the end, it's still doing the segmentation fault, is
there
a way of passing the pointer from the DLL to the main program
using
dlopen/dlsym stuff?
	Let me know if I can't ask this kind of question to the list ;-P

Thanks in advance,
Lucien.
-Message d'origine-
De : Ronald Landheer-Cieslak [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 21 juillet 2003 15:48
À : Lucien Mathieu
Cc : [EMAIL PROTECTED]
Objet : Re: Call dynamic pointer

On Mon, 21 Jul 2003, Lucien Mathieu wrote:

Hello,

	in a dll, I'm calling a

extern "C" {
void * init();
}
	where it is define as follow

void * init() {
return (new TObject());
}
it's doing a segment fault,
does the new pointer is automatically deleted?

I was thinking not to use the dlclose in the main program,
but it doesn't work either.
	Any idea how to return a pointer from a DLL to a main program?

Thanks in advance,
You're not providing nearly enough information about your problem. Have
a 
look at http://www.cygwin.com/problems.html for more information.

HTH

rlc


--
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 version 1.3.20

2003-07-21 Thread Max Bowsher
Henry Da Costa wrote:
> Hello Mr. Faylor,

You have sent this message to a public mailing list.

> I hope you can help me. I'm looking for a complete Cygwin version 1.3.20
> set of packages but have so far been unable to find it.

The phrase "complete Cygwin version 1.3.20 set of packages" is meaningless.
A Cygwin DLL version number does not uniquely identify a set of packages.

> I need that
> particular version of Cygwin because other versions including the latest
> one give us an error when used from a development tool for which we
> don't have the source. Do you know if that Cygwin version is archived
> anywhere?

It isn't.




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 : RE : Call dynamic pointer

2003-07-21 Thread Lucien Mathieu
Thanks,

sorry to have disturbed, I finally find out that dlclose should
be used later ;-P

By the way, do you know a very good C++ dist list?

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part
de Larry Hall
Envoyé : lundi 21 juillet 2003 21:39
À : Lucien Mathieu
Cc : 'Ronald Landheer-Cieslak'; [EMAIL PROTECTED]
Objet : Re: RE : Call dynamic pointer


Sorry, this still isn't enough to see exactly what you're doing and
where the problem is.  If you can't make a simple case that can be sent
to the list so others can easily build and try your code to reproduce
the problem, then you're unlikely to see much help coming from anyone on
this list.  Also, as I mentioned in my previous response, this really
isn't a general C/C++ inquiry list.  It's a list to discuss Cygwin.  If
you find that your problem is relative to Cygwin's implementation of
dlopen and friends, this is the proper list to report/ discuss that.  If
the problem is caused by some obscure compiler bug that is specific to
Cygwin, this is the right list.  If you're just not sure how to get code
like this working or you have some other non-Cygwin specific issue, then
a different forum is more appropriate.

Larry

Lucien Mathieu wrote:

> Hello again,
> 
>   following this example:
> 
>   TObject.hpp:
> 
>   class Tobject {
>   ...
>   };
> 
>   extern "C" {
>   void * init();
>   }
> 
>   TObject.cpp
> 
>   void * init() {
>   return (new Tobject());
>   }
> 
>   I create a DLL, g++ -c Tobject.cpp
>   g++ -shared -o Tobject.dll Tobject.o
> 
>   When calling the init function after initialising everything
with
>   dlopen, dlsym, dlcose... It's generating a segmentation fault,
> is
>   it due to the load and unload of the DLL? Even if I don't call
> the
>   dlclose at the end, it's still doing the segmentation fault, is
> there
>   a way of passing the pointer from the DLL to the main program
> using
>   dlopen/dlsym stuff?
> 
>   Let me know if I can't ask this kind of question to the list ;-P
> 
> Thanks in advance,
> Lucien.
> 
> -Message d'origine-
> De : Ronald Landheer-Cieslak [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 21 juillet 2003 15:48
> À : Lucien Mathieu
> Cc : [EMAIL PROTECTED]
> Objet : Re: Call dynamic pointer
> 
> 
> On Mon, 21 Jul 2003, Lucien Mathieu wrote:
> 
>>Hello,
>>
>>  in a dll, I'm calling a
>>
>>  extern "C" {
>>  void * init();
>>  }
>>
>>  where it is define as follow
>>
>>  void * init() {
>>  return (new TObject());
>>  }
>>
>>  it's doing a segment fault,
>>  does the new pointer is automatically deleted?
>>  
>>  I was thinking not to use the dlclose in the main program,
>>  but it doesn't work either.
>>
>>  Any idea how to return a pointer from a DLL to a main program?
>>
>>Thanks in advance,
> 
> You're not providing nearly enough information about your problem. 
> Have a look at http://www.cygwin.com/problems.html for more 
> information.
> 
> HTH
> 
> rlc


--
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: problem starting cron as a service

2003-07-21 Thread Bill McCormick
Oops ... my bad.

It's running; it's just not displayed as running as a service to windows.
ps -x -f shows the grand truth. That being the case, doesn't cron startup
really belong in rc.local? Umm ... does rc.local even get called on system
boot?

Thanks,

Bill

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Vince Hoffman
> Sent: Monday, July 21, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: problem starting cron as a service
>
>
> Opps thought from your previous message you already knew or i would have
> said.
> the easiest way is the "at" trick, from a command line,type
> "at \\yourcomputername 15:49 /interactive cmd.exe"
> this will give you a cmd shell running as SYSTEM. from there cd to your
> cygwin\bin directory and type "bash --login -i" which will give you a bash
> shell running as SYSTEM.
>
> > -Original Message-
> > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > Sent: 21 July 2003 16:41
> > To: [EMAIL PROTECTED]
> > Subject: RE: problem starting cron as a service
> >
> >
> > How do I run a prog as localsystem?
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf
> > > Of Vince Hoffman
> > > Sent: Monday, July 21, 2003 9:38 AM
> > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > Subject: RE: problem starting cron as a service
> > >
> > >
> > > Hi Bill,
> > >   Off hand there are a few things to try, but Mark Harig
> > on the cygwin
> > > list seems pretty up on cron, and has a script which will
> > diagnose common
> > > problems, heres a link to a message which has it attached,
> > > 
> > >
> > >   You'll do better keeping messages on list as theres a
> > whole lot more
> > > experience out there than I have. One thing you could try
> > is running cron
> > > manualy from the command line as localsystem and seeing if you
> > > get any clues
> > > in the output. (appologys if you have and i missed that message.)
> > >
> > > Vince
> > > ps. the output of cygcheck -s -v -r as an uncompressed attachment
> > > might help
> > > too.
> > > > -Original Message-
> > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > Sent: 21 July 2003 15:18
> > > > To: Vince Hoffman
> > > > Subject: RE: problem starting cron as a service
> > > >
> > > >
> > > > Thanks Vince,
> > > >
> > > > Nothing in cron.log (file created but empty) and mount is
> > > > system. Any other
> > > > ideas?
> > > >
> > > >
> > > > Bill
> > > > > -Original Message-
> > > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] Behalf
> > > > > Of Vince Hoffman
> > > > > Sent: Monday, July 21, 2003 4:08 AM
> > > > > To: '[EMAIL PROTECTED]'; Cygwin
> > > > > Subject: RE: problem starting cron as a service
> > > > >
> > > > >
> > > > > anything in /var/log/cron.log ?
> > > > >
> > > > > and are you mounts system or user ?
> > > > > ie.
> > > > > $ mount |grep "/ type system"
> > > > >
> > > > > should give something like
> > > > >
> > > > > h:\cygwin on / type system (binmode)
> > > > >
> > > > > > -Original Message-
> > > > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > > > Sent: 21 July 2003 08:25
> > > > > > To: Cygwin
> > > > > > Subject: problem starting cron as a service
> > > > > >
> > > > > >
> > > > > > I get this in the win app error log:
> > > > > >
> > > > > > Event Type: Error
> > > > > > Event Source:   cron
> > > > > > Event Category: None
> > > > > > Event ID:   0
> > > > > > Date:   7/21/2003
> > > > > > Time:   2:14:08 AM
> > > > > > User:   BILLHOME\Administrator
> > > > > > Computer:   BILLHOME
> > > > > > Description:
> > > > > > The description for Event ID ( 0 ) in Source ( cron ) cannot
> > > > > > be found. The
> > > > > > local computer may not have the necessary registry
> > > > > > information or message
> > > > > > DLL files to display messages from a remote computer. The
> > > > following
> > > > > > information is part of the event: cron : PID 2276 : starting
> > > > > > service `cron'
> > > > > > failed: execv: 0, No error.
> > > > > >
> > > > > > While trying to start the service as Administrator (or from
> > > > > > LocalSytems
> > > > > > account). I rm'd /var/run/cron.pid and /var/log/cron.log
> > > > > > before trying to
> > > > > > start.
> > > > > >
> > > > > > Thanks
> > > > > > ---
> > > > > > Outgoing mail is certified Virus Free.
> > > > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > > > Version: 6.0.502 / Virus Database: 300 - Release
> > Date: 7/18/2003
> > > > > >
> > > > > >
> > > > > > --
> > > > > > 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://cygw

RE: problem starting cron as a service

2003-07-21 Thread Bowden, Todd
You have to install it as a service in order to see in from a Windows
perspective.

cygrunsrv -I cron -p /usr/sbin/cron -a -D
Cygrunsrv -S cron

net start | grep -i cron

I see it in my Services.  Why wouldn't you see it in yours

The doc /usr/doc/Cygwin/cron.README tells you how to install it.

Todd C. Bowden 
HP Certified 
AtosOrigin 
5000 S. Bowen 
Arlington, TX 76017 
Office: 817-264-8211
E-mail: [EMAIL PROTECTED]


-Original Message-
From: Bill McCormick [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 21, 2003 3:12 PM
To: [EMAIL PROTECTED]
Subject: RE: problem starting cron as a service


Oops ... my bad.

It's running; it's just not displayed as running as a service to windows. ps
-x -f shows the grand truth. That being the case, doesn't cron startup
really belong in rc.local? Umm ... does rc.local even get called on system
boot?

Thanks,

Bill

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Behalf Of Vince Hoffman
> Sent: Monday, July 21, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: problem starting cron as a service
>
>
> Opps thought from your previous message you already knew or i would 
> have said. the easiest way is the "at" trick, from a command line,type
> "at \\yourcomputername 15:49 /interactive cmd.exe"
> this will give you a cmd shell running as SYSTEM. from there cd to your
> cygwin\bin directory and type "bash --login -i" which will give you a bash
> shell running as SYSTEM.
>
> > -Original Message-
> > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > Sent: 21 July 2003 16:41
> > To: [EMAIL PROTECTED]
> > Subject: RE: problem starting cron as a service
> >
> >
> > How do I run a prog as localsystem?
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf
> > > Of Vince Hoffman
> > > Sent: Monday, July 21, 2003 9:38 AM
> > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > Subject: RE: problem starting cron as a service
> > >
> > >
> > > Hi Bill,
> > >   Off hand there are a few things to try, but Mark Harig
> > on the cygwin
> > > list seems pretty up on cron, and has a script which will
> > diagnose common
> > > problems, heres a link to a message which has it attached, 
> > > 
> > >
> > >   You'll do better keeping messages on list as theres a
> > whole lot more
> > > experience out there than I have. One thing you could try
> > is running cron
> > > manualy from the command line as localsystem and seeing if you get 
> > > any clues in the output. (appologys if you have and i missed that 
> > > message.)
> > >
> > > Vince
> > > ps. the output of cygcheck -s -v -r as an uncompressed attachment 
> > > might help too.
> > > > -Original Message-
> > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > Sent: 21 July 2003 15:18
> > > > To: Vince Hoffman
> > > > Subject: RE: problem starting cron as a service
> > > >
> > > >
> > > > Thanks Vince,
> > > >
> > > > Nothing in cron.log (file created but empty) and mount is 
> > > > system. Any other ideas?
> > > >
> > > >
> > > > Bill
> > > > > -Original Message-
> > > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] Behalf
> > > > > Of Vince Hoffman
> > > > > Sent: Monday, July 21, 2003 4:08 AM
> > > > > To: '[EMAIL PROTECTED]'; Cygwin
> > > > > Subject: RE: problem starting cron as a service
> > > > >
> > > > >
> > > > > anything in /var/log/cron.log ?
> > > > >
> > > > > and are you mounts system or user ?
> > > > > ie.
> > > > > $ mount |grep "/ type system"
> > > > >
> > > > > should give something like
> > > > >
> > > > > h:\cygwin on / type system (binmode)
> > > > >
> > > > > > -Original Message-
> > > > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > > > Sent: 21 July 2003 08:25
> > > > > > To: Cygwin
> > > > > > Subject: problem starting cron as a service
> > > > > >
> > > > > >
> > > > > > I get this in the win app error log:
> > > > > >
> > > > > > Event Type: Error
> > > > > > Event Source:   cron
> > > > > > Event Category: None
> > > > > > Event ID:   0
> > > > > > Date:   7/21/2003
> > > > > > Time:   2:14:08 AM
> > > > > > User:   BILLHOME\Administrator
> > > > > > Computer:   BILLHOME
> > > > > > Description:
> > > > > > The description for Event ID ( 0 ) in Source ( cron ) cannot 
> > > > > > be found. The local computer may not have the necessary 
> > > > > > registry information or message
> > > > > > DLL files to display messages from a remote computer. The
> > > > following
> > > > > > information is part of the event: cron : PID 2276 : starting 
> > > > > > service `cron'
> > > > > > failed: execv: 0, No error.
> > > > > >
> > > > > > While trying to start the service as Administrator (or from 
> > > > > > LocalSytems account). I rm'd /var/run/cron.pid and 
> > > > > > /var/log/cron.log before trying to
> > > > > > start.
> > > > > >
> > > > > > Thanks
> > >

Re: 1.5.0: rxvt copy/paste problems

2003-07-21 Thread David Rothenberger
Christopher Faylor writes:
 > On Sat, Jul 19, 2003 at 10:57:54AM -0400, Rolf Campbell wrote:
 > >When I have CYGWIN=tty, I was able to reproduce the same exact problem.
 > 
 > Sounds like an extremely simple fix then.  There is no need to use
 > CYGWIN=tty if you are using rxvt.

Thanks for the work-around, Chris.  I didn't understand from the
Cygwin User Guide that CYGWIN=tty wasn't required for rxvt.

However, I do think there is a problem here.  I am also having
problems getting copy/paste with Windows to work with my
locally-compiled copy of XEmacs, unless I start XEmacs from an rxvt
window.  The CYGWIN variable is unset now on my system, but even
setting it to tty doesn't change this behavior.  Interestingly, the
copy/paste works fine until I start a bash shell within XEmacs, then
everything stops working.  Unless I started XEmacs from rxvt.

Yes, I know that XEmacs is not a support Cygwin tool or even part of
the release.  And I do have a work-around.  But I'm mentioning it
because it is behavior apparent only with 1.5.0 and not with 1.3.22,
and the work-around proposed above doesn't fix the behavior.

I can live with starting XEmacs from rxvt as a work-around, but
perhaps others will encounter similar problems with other apps when
1.5.0 is officially released and more people update to it.

BTW, I haven't recompiled XEmacs against the latest experimental
anything, since as I understand it, I need to wait for all the
libraries XEmacs uses (including X) to be recompiled for 1.5.0.  Is
that correct?

I have cygwin checked out and built from CVS.  The behavior is
unchanged using the CVS dll (no surprise, I'm sure).  I am willing
to do some debugging and research here, but have no idea where to
start.  If someone can point me in a direction, I can do more
investigation.

David


--
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: generate a .lib file for VC++

2003-07-21 Thread Todorovic Vladica-VTODORO1

As far as I know, there is no way to do the conversion you want/need. 

However, you can still use a dll generated by cygwin toolset by manully
loading the dll (i.e., use LoadLibrary and GetProcAddress) in your VC++
code. 

You can find more info on this topic in the archives.

Vladica



-Original Message-
From: Jérôme DESPATIS [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 19, 2003 2:30 PM
To: [EMAIL PROTECTED]
Subject: generate a .lib file for VC++


Hello

i have compiled a foo.dll with cygwin and a
libfoo.dll.a

but i need also a foo.lib to use this .dll in visual
studio.

and it seems vc++ has its own format for .lib which is
not the posix format libfool.dll.a

Do you knwo a way to transform a libfoo.dll.a in
foo.lib ?

thanks
enzo


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo!
Mail : http://fr.mail.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 version 1.3.20

2003-07-21 Thread Henry Da Costa
Max Bowsher wrote:
> You have sent this message to a public mailing list.

Thanks for replying. I didn't realize that the "Christopher Faylor" link
at http://www.cygwin.com/ led to the cygwin mailing list. I should have
been more vigilant.

> The phrase "complete Cygwin version 1.3.20 set of packages" is
meaningless.
> A Cygwin DLL version number does not uniquely identify a set of
packages.

I realize that each package has its own versioning and is released
separately, but I was looking for a "snapshot" of the whole system at
the time when Cygwin DLL version 1.3.20 came out, because even after
installing just the files that are part of cygwin-1.3.20-1.tar.bz2, I'm
still having problems.

Henry


--
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: cut and paste problem with xemacs Was Re: [ANNOUNCEMENT] Available for test: cygwin-1.5.0-1

2003-07-21 Thread David Rothenberger
Antoine Levy-Lambert writes:
 > Hi Christopher, Corinna,
 > 
 > My xemacs is XEmacs 21.4.1.0 "Military Intelligence (Windows)" configured
 > for `i686-pc.cywin`
 > 
 > With cygwin 1.3, cut and paste between other applications and Xemacs works.
 > With cygwin 1.5.0-1, cut and paste between other applications and Xemacs
 > does not work

I'm experiencing the same problem with XEmacs 21.4.13, compiled
myself from CVS sources with X support enabled (using 1.3.22).

(See  for my post
about the problem.)

One work-around I've discovered is to start XEmacs from an rxvt
window instead of directly from bash.  That fixes the problem for
me.  I use the following shortcut for starting XEmacs:

  start /min c:\cygwin\bin\rxvt -T "start XEmacs" -e /bin/bash --login -i -c "DISPLAY= 
/usr/local/bin/xemacs &"

This causes a minimized rxvt window to be created, but it quickly
goes away once XEmacs starts starting.

HTH,
Dave


--
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: ImageMagick

2003-07-21 Thread Gerrit P. Haase
Hallo Bill,

Am Montag, 21. Juli 2003 um 07:39 schriebst du:

> Hi all,

> Anybody have ImageMagick installed?

> I'm having installation problems with some of the required libs (the ones I
> want), specifically, the IJG jpeg lib and libexif. When running
> ./configure --enable-shared for the IJG jpeg lib, shared lib build doesn't
> appear to happen, however it does make and install. The libexif build
> appears to be okay but when I run the build on ImageMagick it tells me that
> tests failed (for both libexif and jpeg support.)

JPEG is already included in the Cygwin netrelease, why don't you use
it?

Have you compiled libexif yourself? You may want to try my version:
http://anfaenger.de/cygwin/libexif/


Gerrit
-- 
=^..^=


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



RE: problem starting cron as a service

2003-07-21 Thread Bill McCormick
Ok, I missed the -D param. Just going from the man pages, cron takes no
params. I also didn't find any info regarding running cron as a service in
the /usr/doc's. So, as always, it's the littlest things that bite.

Any idea regarding my previous post about ImageMagick?

thanks mucho,

Bill

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Bowden, Todd
> Sent: Monday, July 21, 2003 3:21 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: problem starting cron as a service
>
>
> You have to install it as a service in order to see in from a Windows
> perspective.
>
> cygrunsrv -I cron -p /usr/sbin/cron -a -D
> Cygrunsrv -S cron
>
> net start | grep -i cron
>
> I see it in my Services.  Why wouldn't you see it in yours
>
> The doc /usr/doc/Cygwin/cron.README tells you how to install it.
>
> Todd C. Bowden
> HP Certified
> AtosOrigin
> 5000 S. Bowen
> Arlington, TX 76017
> Office: 817-264-8211
> E-mail: [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Bill McCormick [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 3:12 PM
> To: [EMAIL PROTECTED]
> Subject: RE: problem starting cron as a service
>
>
> Oops ... my bad.
>
> It's running; it's just not displayed as running as a service to
> windows. ps
> -x -f shows the grand truth. That being the case, doesn't cron startup
> really belong in rc.local? Umm ... does rc.local even get called on system
> boot?
>
> Thanks,
>
> Bill
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Behalf Of Vince Hoffman
> > Sent: Monday, July 21, 2003 11:10 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: problem starting cron as a service
> >
> >
> > Opps thought from your previous message you already knew or i would
> > have said. the easiest way is the "at" trick, from a command line,type
> > "at \\yourcomputername 15:49 /interactive cmd.exe"
> > this will give you a cmd shell running as SYSTEM. from there cd to your
> > cygwin\bin directory and type "bash --login -i" which will give
> you a bash
> > shell running as SYSTEM.
> >
> > > -Original Message-
> > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > Sent: 21 July 2003 16:41
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: problem starting cron as a service
> > >
> > >
> > > How do I run a prog as localsystem?
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf
> > > > Of Vince Hoffman
> > > > Sent: Monday, July 21, 2003 9:38 AM
> > > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > > Subject: RE: problem starting cron as a service
> > > >
> > > >
> > > > Hi Bill,
> > > > Off hand there are a few things to try, but Mark Harig
> > > on the cygwin
> > > > list seems pretty up on cron, and has a script which will
> > > diagnose common
> > > > problems, heres a link to a message which has it attached,
> > > > 
> > > >
> > > > You'll do better keeping messages on list as theres a
> > > whole lot more
> > > > experience out there than I have. One thing you could try
> > > is running cron
> > > > manualy from the command line as localsystem and seeing if you get
> > > > any clues in the output. (appologys if you have and i missed that
> > > > message.)
> > > >
> > > > Vince
> > > > ps. the output of cygcheck -s -v -r as an uncompressed attachment
> > > > might help too.
> > > > > -Original Message-
> > > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > > Sent: 21 July 2003 15:18
> > > > > To: Vince Hoffman
> > > > > Subject: RE: problem starting cron as a service
> > > > >
> > > > >
> > > > > Thanks Vince,
> > > > >
> > > > > Nothing in cron.log (file created but empty) and mount is
> > > > > system. Any other ideas?
> > > > >
> > > > >
> > > > > Bill
> > > > > > -Original Message-
> > > > > > From: [EMAIL PROTECTED]
> > > > > [mailto:[EMAIL PROTECTED] Behalf
> > > > > > Of Vince Hoffman
> > > > > > Sent: Monday, July 21, 2003 4:08 AM
> > > > > > To: '[EMAIL PROTECTED]'; Cygwin
> > > > > > Subject: RE: problem starting cron as a service
> > > > > >
> > > > > >
> > > > > > anything in /var/log/cron.log ?
> > > > > >
> > > > > > and are you mounts system or user ?
> > > > > > ie.
> > > > > > $ mount |grep "/ type system"
> > > > > >
> > > > > > should give something like
> > > > > >
> > > > > > h:\cygwin on / type system (binmode)
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: Bill McCormick [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: 21 July 2003 08:25
> > > > > > > To: Cygwin
> > > > > > > Subject: problem starting cron as a service
> > > > > > >
> > > > > > >
> > > > > > > I get this in the win app error log:
> > > > > > >
> > > > > > > Event Type:   Error
> > > > > > > Event Source: cron
> > > > > > > Event Category:   None
> > > > > > > Event ID: 0
> > > > > > > Date: 7/21/2003
> > > > > > > Time: 2:14:08 AM

RE: Cygwin version 1.3.20

2003-07-21 Thread Elfyn McBratney
On Mon, 21 Jul 2003, Henry Da Costa wrote:

> Max Bowsher wrote:
> > You have sent this message to a public mailing list.
>
> Thanks for replying. I didn't realize that the "Christopher Faylor" link
> at http://www.cygwin.com/ led to the cygwin mailing list. I should have
> been more vigilant.

Perhaps reading that pege in it's entirity (I mean the bottom of) would have
helped.

> > The phrase "complete Cygwin version 1.3.20 set of packages" is
> meaningless.
> > A Cygwin DLL version number does not uniquely identify a set of
> packages.
>
> I realize that each package has its own versioning and is released
> separately, but I was looking for a "snapshot" of the whole system at
> the time when Cygwin DLL version 1.3.20 came out, because even after
> installing just the files that are part of cygwin-1.3.20-1.tar.bz2, I'm
> still having problems.

Well, there's really not a lot we can help you with then. The Cygwin net release
is an ever-changing box of mean'ness. We only keep the mainline version, perhaps
a test version, and n previous versions. If it's not there, it's not available.

I will add this though: If you have a program that worked on 1.3.20* which does
not work on 1.3.22* it's more productive to try and find out the cause of the
problem rather than going back in time. If it turns out to be a problem in the
Cygwin DLL, matbe the royal we can fix it.

Elfyn

-- 
Elfyn McBratney, EMCB  |  http://www.nongnu.org/wwwauth/
http://www.emcb.co.uk  |  http://www.emcb.co.uk/webauth/
[EMAIL PROTECTED]   |  wwwauth-users AT nongnu DOT org


--
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 version 1.3.20

2003-07-21 Thread Henry Da Costa
Elfyn McBratney wrote:
> I will add this though: If you have a program that worked on 1.3.20*
which does
> not work on 1.3.22* it's more productive to try and find out the cause
of the
> problem rather than going back in time. If it turns out to be a
problem in the
> Cygwin DLL, matbe the royal we can fix it.

Unfortunately, we have only an executable. Of course we're trying to
solve the problem in other ways and will take whatever solution we get.

Henry

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



Subject: Corrupt characters in cygwin console (:310)

2003-07-21 Thread phil

Subject: Corrupt characters in cygwin console (:310)

I have recently installed cygwin on a Windows98 machine.
In the cygwin console (and also the bash.exe console), I
get corrupt characters after I type every 5 or so letters.
Usually something like \:310, or \316\310.

These seem to occur at a random frequency, independent of the
actual letters typed, and can be removed by backspacing a few
times.  Needless to say this makes it tiresome to type in 
commands!!

Any help much appreciated,

Thanks,

Phil Shepherd
[EMAIL PROTECTED]

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



Re: Cygwin version 1.3.20

2003-07-21 Thread Larry Hall
Henry Da Costa wrote:
Elfyn McBratney wrote:

I will add this though: If you have a program that worked on 1.3.20*
which does

not work on 1.3.22* it's more productive to try and find out the cause
of the

problem rather than going back in time. If it turns out to be a
problem in the

Cygwin DLL, matbe the royal we can fix it.


Unfortunately, we have only an executable. Of course we're trying to
solve the problem in other ways and will take whatever solution we get.


Why do you only have the executable?  Also, why can't the provider of
this executable give you with the support you need?  Strictly
speaking, if the provider hasn't purchased a commercial license from
Red Hat, they are legally bound by the GPL.  If they aren't providing
source for all parts of the Cygwin distribution they're using, as well as
source for their executable, they are in violation of the GPL.  If this is
the case, this list would like to know about this violation so it can be
resolved.  Can you enlighten us on this aspect?


--
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: Cygwin version 1.3.20

2003-07-21 Thread Henry Da Costa
Larry Hall wrote:
> Why do you only have the executable?  Also, why can't the provider of
> this executable give you with the support you need?  Strictly
> speaking, if the provider hasn't purchased a commercial license from
> Red Hat, they are legally bound by the GPL.  If they aren't providing
> source for all parts of the Cygwin distribution they're using, as well
as
> source for their executable, they are in violation of the GPL.  If
this is
> the case, this list would like to know about this violation so it can
be
> resolved.  Can you enlighten us on this aspect?

I'm trying to get what I need from the provider of that executable. The
executable only calls Cygwin executables, much like a perl or shell
script. It doesn't incorporate any Cygwin or Gnu code. Thanks for your
help.

Henry

--
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: cut and paste problem with xemacs Was Re: [ANNOUNCEMENT] Available for test: cygwin-1.5.0-1

2003-07-21 Thread David Rothenberger
Antoine,

Please keep your replies on the list.  I set the Reply-To: header;
please make sure your mailer honors it.

> I have tried your workaround ... and it works for me, much to my surprise
> because my XEmacs is a Windows/Cygwin build, not an XWindows/Cygwin build,
> and so I do not understand what rxvt does to solve the problem.

I also don't understand why it works.  You shouldn't be surprised about
X, though, since rxvt is not (exclusively) an XWindows app and even if
it were, there is no requirement that only X apps can be run from other
X apps.

(BTW, since your XEmacs is not X-enabled, you can probably remove the
"DISPLAY= " bit from the shortcut.)

Obviously there is something different about processes spawned from a
console window (like CMD.EXE) versus those spawned from rxvt.  I have no
idea what it is...

Dave

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



Re: perl with cygwin 1.5 doesn't fly.

2003-07-21 Thread Gerrit P. Haase
Hallo George,

Am Sonntag, 20. Juli 2003 um 20:17 schriebst du:

> Check u're perl code again

Hey, I try to build perl from sources with the new 64bit Cygwin 1.5
prerelease.  All the code that is failing is the perl code from the
perl sources which is used to build Perl.


> Use strict;   # that way you must use 'my' to define all scalars

> My %module = ( 'cygwin'=>'Cygwin' ); # note 'cygwin'
> My $var = $module{$^0} || 'Unix'  # can't remember what special variable =
> # $^0 but note that since %module and
> # $var are in the same scope you should try not to name %module and $module
> bcos $module refers to an entry in the hash of %modules

> Print "$var\n";

Unfortunately, the static miniperl compiled with Cygwin 1.5 fails.  It
seems that every 'my' is treated like a '#' and so it is not visible.


Gerrit

P.S. please fix your quoting, these mails are archived and open to
every harvester (that means, please don't include email adresses in
the body of your mails!)
-- 
=^..^=


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



RE: perl with cygwin 1.5 doesn't fly.

2003-07-21 Thread Matthew O. Persico
On Sun, 20 Jul 2003 14:17:23 -0400, George Njoku wrote:
>Check u're perl code again
>
>Use strict;   # that way you must use 'my' to define all scalars
>
>My %module = ( 'cygwin'=>'Cygwin' ); # note 'cygwin' My $var =
>$module{$^0} || 'Unix'  # can't remember what special variable = #
>$^0 but note that since %module and # $var are in the same scope you
>should try not to name %module and $module bcos $module refers to an
>entry in the hash of %modules

Um, no.

%module is a hash
$module{somekey} locates a value in the hash %module
$module is a separate scalar.

Try this:

use strict;
use warnings;

my %module = ('cygwin' => 'Cygwin');
my $module = 'Lunar';

print "hash el: " . $module{'cygwin'} . "\n";
print "scalar: " . $module . "\n";

I will admit might be confusing to use a scalar $module and a hash %module, but it is 
not an error.

>
>Print "$var\n";
>
>
>[EMAIL PROTECTED]
>
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>Behalf Of Gerrit P. Haase Sent: Saturday, July 19, 2003 6:20 PM To:
>[EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: perl with
>cygwin 1.5 doesn't fly.
>
>Hallo,
>
>I'm getting strange errors when I compile Perl 5.8 with Cygwin 1.5,
>well, miniperl.exe compiles, but then the first simple tests break:
>
>1. This as script executed with miniperl.exe: %module = ( cygwin  =>
>'Cygwin' );
>$module = $module{$^O} || 'Unix';
>print "$module\n";
>
>gives what is expected: $ ./miniperl ./minitest.pl Cygwin
>
>
>2. If I change the script now to be: my %module = ( cygwin  =>
>'Cygwin' );
>$module = $module{$^O} || 'Unix';
>print "$module\n";
>
>I get: $ ./miniperl ./minitest.pl Unix
>
>
>3. And if a second 'my' is added: my %module = ( cygwin  => 'Cygwin'
>);
>my $module = $module{$^O} || 'Unix';
>print "$module\n";
>
>I get: $ ./miniperl ./minitest.pl
>
>
>
>What is wrong with 'my' on Cygwin 1.5?
>
>
>Gerrit


--
Matthew O. Persico




--
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: Anyone trying 1.5.0 for anything other than managed mode?

2003-07-21 Thread Billinghurst, David (CRTS)
I can build and test gcc HEAD with 1.5.0 and latest (well yesterday's latest)
test packages.  The testsuite results are similar to 1.3, but I haven't
checked the output line by line.

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



when is it useful to attach strace outputs to the M/L

2003-07-21 Thread Carlo Florendo
Hello,

Sometimes, when I post problems here, I attach the output of cygcheck and strace.  
Could anyone point out when it's relevant to
attach strace outputs here?  In the post 
http://cygwin.com/ml/cygwin/2003-07/msg01072.html the output of strace was not deemed 
to be
useful.

Thanks!

Best Regards,

Carlo
--
Carlo Florendo
Astra Philippines Inc.
URL: http://www.hq.astra.ph/resources/




--
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: when is it useful to attach strace outputs to the M/L

2003-07-21 Thread Christopher Faylor
On Tue, Jul 22, 2003 at 09:37:16AM +0800, Carlo Florendo wrote:
>Sometimes, when I post problems here, I attach the output of cygcheck
>and strace.  Could anyone point out when it's relevant to attach strace
>outputs here?  In the post
>http://cygwin.com/ml/cygwin/2003-07/msg01072.html the output of strace
>was not deemed to be useful.

cygcheck output is always useful.

strace is one of those "If you don't understand if or why it is useful
then don't send it" situations.  Just wait to be asked for an strace.

Again, if you have to ask when or why it is relevant then you should not
be sending it without being asked to send it.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.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: when is it useful to attach strace outputs to the M/L

2003-07-21 Thread Carlo Florendo

> From: "Christopher Faylor" 


> On Tue, Jul 22, 2003 at 09:37:16AM +0800, Carlo Florendo wrote:
> >Sometimes, when I post problems here, I attach the output of cygcheck
> >and strace.  Could anyone point out when it's relevant to attach strace
> >outputs here?  In the post
> >http://cygwin.com/ml/cygwin/2003-07/msg01072.html the output of strace
> >was not deemed to be useful.
> 
> cygcheck output is always useful.
> 
> strace is one of those "If you don't understand if or why it is useful
> then don't send it" situations.  Just wait to be asked for an strace.
> 
> Again, if you have to ask when or why it is relevant then you should not
> be sending it without being asked to send it.

Thanks a lot for the pointers.  :-)


Best Regards,
Carlo
--
Carlo Florendo
Astra Philippines Inc.
URL: http://www.hq.astra.ph/resources/












--
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: ImageMagick

2003-07-21 Thread Bill McCormick
Thanks Gerrit,

I thought I had the jpeg lib from cygwin installed and that I needed
something more. Your note prompted me to check again and sure enough, I
didn't have it installed - DUH!! So after installing that - Imagemagick is
now ready to fly with jpeg.

I DL'd your lib's from your link (note that the files want to save as
*.tar.tar as opposed to *.tar.bz2,) renamed them and untarzip'd them into
place. I run Imagemagick configure again and it looks like things are still
broken there:

*snip*
EXIF  --with-exif=yes   no (failed tests)
*snip*

So now I'm trying to rebuild from your sources ...

[EMAIL PROTECTED]/usr/local/exif-0.6

*snip*

checking for libexif >= 0.5.9... gnome-config: not found
gnome-config: not found
Package libexif was not found in the pkg-config search path.
Perhaps you should add the directory containing `libexif.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libexif' found

configure: error: Library requirements (libexif >= 0.5.9) not met; consider
adjusting the PKG_CONFIG_PATH environment variable if your libraries are in
a nonstandard prefix so pkg-config can find them.



The same for gexif-0.5.

So off I go pouring over doc's and such (actually, now I need to work on
something else for a while and I don't need to chew camera tags at the
moment.) I'll get back to this before too long though.

I'll check the PKG_CONFIG_PATH env var - could that be the whole problem?.
I'm pretty sure I need to use the --enable-shared switch during configure
and I think that means I neither need nor want --enable-static; True? Is
there a specific build order I need to follow or maybe I've yet to install
some other prerequisite?

Your thoughts?

Thanks,

Bill

> -Original Message-
> From: Gerrit P. Haase [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 4:26 PM
> To: Bill McCormick
> Cc: Cygwin
> Subject: Re: ImageMagick
>
>
> Hallo Bill,
>
> Am Montag, 21. Juli 2003 um 07:39 schriebst du:
>
> > Hi all,
>
> > Anybody have ImageMagick installed?
>
> > I'm having installation problems with some of the required libs
> (the ones I
> > want), specifically, the IJG jpeg lib and libexif. When running
> > ./configure --enable-shared for the IJG jpeg lib, shared lib
> build doesn't
> > appear to happen, however it does make and install. The libexif build
> > appears to be okay but when I run the build on ImageMagick it
> tells me that
> > tests failed (for both libexif and jpeg support.)
>
> JPEG is already included in the Cygwin netrelease, why don't you use
> it?
>
> Have you compiled libexif yourself? You may want to try my version:
> http://anfaenger.de/cygwin/libexif/
>
>
> Gerrit
> --
> =^..^=
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003


--
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 Errors - two versions released

2003-07-21 Thread William J. Moulton
Has anyone noticed that two versions of GCC were released with the latest
versions of cygwin?

I experienced many compile and makefile errors only to discover it was the
GCC compiler version.  And have watched problem after problem be reported to
the newsgroup about the compiler and makefile.  Version 2.95 is called by
adding -2 to the call for the compiler (eg. gcc-2 or g++-2, etc.)  Using
just GCC (or g++) calls version 3.x.  After making this change all my
compile and makefile problems disappeared.

Also wouldn't it make sense to release the most stable version as gcc and
the newer version as gcc2 of gcc-dev?  The everyone could avoid some
headaches.

William J. Moulton



--
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 prevents normal Windows shutdown

2003-07-21 Thread Richard Anderson
When I start Cygwin 1.3.22-1 with the installed shortcut (which points to
C:\cygwin\cygwin.bat) and then try to shut down Windows XP using the normal
Start / Turn Off Computer procedure, Windows pops up the "End Program -
Cygwin ... Windows cannot end this program" dialog box.  The cygwin ps
command shows only a bash shell running.

Is there some way to prevent this behavior?

Richard Anderson
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.richard-anderson.org
www.raycosoft.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/



GCC: Split it ?

2003-07-21 Thread Frédéric L. W. Meunier
The GCC 3.2-3 package is almost 3 times the size of the
2.95.4-10 mainly due to the Java part. Wouldn't it help split
it in various packages, like one for C and C++, and others for
the remaining (and less used) languages ?

Just a suggestion.

--
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: ImageMagick

2003-07-21 Thread Billinghurst, David (CRTS)
ImageMagick-5.5.3 builds out of the box for me with shared libraries, and I have
been using it for months without problem.

I did re-autotool it before I built, but I am not sure if that is required  

  libtoolize --copy --force && \
  aclocal && \
  automake && \
  autoconf

I then configured with 

  ${srcdir}/configure  \
  --srcdir=${srcdir} --prefix=${prefix} \
  --exec-prefix=${prefix} --sysconfdir=${sysconfdir} \
  --libdir=${prefix}/lib --includedir=${prefix}/include \
  --libexecdir='${sbindir}' --localstatedir=/var \
  --datadir='${prefix}/share'  \
  --enable-shared --disable-static \
  --disable-largefile --without-frozenpaths \
  --with-magick-plus-plus --without-perl -without-wmf

 o perl works, but I was going to put together a cygwin distribution
 o libwmf works too, but isn't distributed with cygwin

Output from configure is given below.  The 

---
ImageMagick is configured as follows. Please verify that this
configuration matches your expectations.

Host system type : i686-pc-cygwin

OptionConfigure option  Configured value
-
$
Static libraries  --enable-static=nono
GNU ld--with-gnu-ld=yes yes
LZW support   --enable-lzw=no   no
Quantum depth --with-quantum-depth=16   16

Delegate Configuration:
BZLIB --with-bzlib=yes  yes
DPS   --with-dps=yesyes
FlashPIX  --with-fpx=yesno
FreeType 2.0  --with-ttf=yesyes
Ghostscript   None  gs
Ghostscript fonts --with-gs-font-dir=default/usr/X11R6/share/ghostscript/fonts/
Ghostscript lib   --with-gslib=yes  no
JBIG  --with-jbig=yes   yes
JPEG v1   --with-jpeg=yes   yes
JPEG v2   --with-jp2=yesno
LCMS  --with-lcms=yes   no
Magick++  --with-magick-plus-plus=yes   yes
PERL  --with-perl=nono
PNG   --with-png=yesyes
TIFF  --with-tiff=yes   yes
Windows fonts --with-windows-font-dir=  none
WMF   --with-wmf=no no
X11   --with-x= yes
XML   --with-xml=yesyes
ZLIB  --with-zlib=yes   yes

X11 Configuration:
  X_CFLAGS = -I/usr/X11R6/include
  X_PRE_LIBS   = -lSM -lICE
  X_LIBS   = -L/usr/X11R6/lib
  X_EXTRA_LIBS =

Options used to compile and link:
  CC   = gcc
  CFLAGS   = -O2 -Wall
  CPPFLAGS = -I/usr/X11R6/include/freetype2 -D_REENTRANT -I/usr/include/libpng12
 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2
  CXX  = g++
  CXXFLAGS = -g -O2
  LDFLAGS  = -L/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/lib
  LIBS = -ljbig -ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXext -lSM -lICE 
-lX11 -lbz2 -lxml2 -lz -lgdi32 -lpthread -lm

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



Thread.start()

2003-07-21 Thread P.B. Dushkin

Greetings. I hope this is the appropriate way to correspond with the list.

I have been building an rmi client/server program using cygwin.
my development environment is the jdk1.3.1 08. The GNU bash is version
2.05b.0(9)-release (i686-pc-cygwin). My problem is when
I try to start the rmiregistry. When I type "rmiregistry &" I get:

java.rmi.RemoteException: failed to export: class gnu.java.rmi.dgc.DGCImpl
Exception in thread "main" java.lang.InternalError: Thread.start called
but threads are not available.

I have read through the list and it seems that this is a common problem
with gcc but I am using the JDK under Cygwin (and ontop of XP).

Any help at this point would be much appreciated.

Thanks in advance.

Peter


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