nfs-server questions

2003-01-16 Thread Brendan J Simon
I've installed Universal  NFS Server and am very happy with it.
I have noticed the follwing "features"

1) Symbolic links aren't followed

2) /cygdrive/c is not accessible.

Are these features likely to be fixed soon?
Any ideas on how to solve them.

Many thanks,
Brendan Simon.



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




RE: Emacs Problem

2003-01-16 Thread Dieter Meinert
-BEGIN PGP SIGNED MESSAGE-

Will this go into the FAQ ?

For me the hint solved the problem (cygwin window running
tcsh: setenv CYGWIN tty; emacs [C-X C-C];)

Regards, Dieter 



***
 * Dr. Dieter Meinert  
   *
 * c/o H. Rosen Engineering GmbHPhone +49-591-9136-493 
   *
 * Am Seitenkanal 8 Fax +49-591-9136-121   
   *
 * D-49811 Lingen (Ems) Email
[EMAIL PROTECTED] *
 * Germany 
   *


***


|=> -Original Message-
|=> From: Randall R Schulz [mailto:[EMAIL PROTECTED]]
|=> Sent: Wednesday, January 15, 2003 11:14 PM
|=> To: [EMAIL PROTECTED]
|=> Subject: Re: Emacs Problem
|=> 
|=> 
|=> Frank, Scott,
|=> 
|=> This is more likely a Cygwin options problem than it is
| => non-standard key 
|=> bindings in Emacs.
|=> 
|=> This is reaching the proportions of a FAQ: You need to 
|=> include "tty" in 
|=> your CYGWIN environment variable, lest the Cygwin tty 
|=> driver commandeer the 
|=> CTRL-C and send a SIGINT when it's typed.
|=> 
|=> Randall Schulz
|=> 
|=> 
|=> At 13:25 2003-01-15, Frank Schmitt wrote:
|=> >"Scott Purcell" <[EMAIL PROTECTED]> writes:
|=> >
|=> > > I run a standalone emacs on my box and when I quit
|I  => hit the keys [
|=> > > ctrl x c ] and it quits the app.  But in the one
|that  => runs in cygwin,
|=> > > it does not.
|=> >
|=> >It's "control+c control+x" in Emacs language "C-x
|C-c". If  => this doesn't
|=> >work try "Meta+x save-buffers-kill-emacs RETURN" (Meta
|is  => usually the
|=> >Alt key under Cygwin, in Emacs terminology "M-x 
|=> save-buffers-kill-emacs
|=> >RET").
|=> >
|=> >If the C-x C-c doesn't work, this keys are probably
|bound  => in some way by
|=> >your terminal, over here using rxvt as terminal and
|tcsh  => as shell it
|=> >works as expected.
|=> 
|=> 
|=> --
|=> Unsubscribe info: 
|http://cygwin.com/ml/#unsubscribe-simple => Bug reporting:
|http://cygwin.com/bugs.html
|=> Documentation: http://cygwin.com/docs.html
|=> FAQ:   http://cygwin.com/faq/
|=> 
|=> 

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.3 for non-commercial use 

iQEVAwUBPiZcRLYBkYAdGmPFAQEhlAf+JPp9vu60t5ZL0UgspybVtVQ2lQJNnvxK
6Tqqbj34UIuKgjoQt1ixMXl5lCrbD2tj+p6sREiVD6zWkRYuqc1qgPmd9lgtJA6S
/0siOBKOx6+5bdoTi2Cbhmp/IlyCXnWq3+z9JGtvcTwjPyS4F3mLBl7/Cisz7mSc
oZIBfJCG0GXbj7Bqf0kn7BaIA+HIfrRYkOTlkTacc0rt3O11Fogmg1Mw6iN09QBu
MmPznctOpDXsPlC8xxNWGe2p9AMj0rsret445M7tddohXrrU/igcjeRk+v8eE5/s
5gy3dsElK4P8Mskt0ZpUc7YtnIKK/Hqtl+nJdpOqCISPgDykJhhs8g==
=jmVC
-END PGP SIGNATURE-


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




Re: Support for DDWARF-2 debug info? (on Cygwin)

2003-01-16 Thread Nick Clifton
Hi Brian,

> The coff versions of sec_to_styp_flags and styp_to_sec_flag in bfd
> look to see if the section name begins with .debug and modify the
> section flags appropriately.  The PE versions do not even look at
> the section name.

Ahh, yes, you are right.  I guess that no-one has tried to
incporporate DWARF2 sections into the PE format before.  I guess that,
for now you are going to have to add similar name-checking code to the
PE versions.

Ideally what we ought to do is give gcc some way to tell gas that
"this section is a debug section" and then gas could do the right
thing.  Perhaps a new pseudo op ".debug_section " ?

Cheers
Nick


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




Re: cygrunsrv and apache

2003-01-16 Thread Stipe Tolj
Elfyn McBratney wrote:
> 
> Stipe,
> 
> I have the correct permissions (log files owned by system (the SYSTEM user)
> and even tried with the config files and modules too) and I was still
> getting error 1062. I ended up giving in to the windows version. Is there
> any way this can be degugged? If so I'd be happy too help ;-)

you should be checking what /var/log/apache/error_log is reporting.

Another option is the module rebasing clash. But you said you can
start it from shell by hand, with the same setup, right?!

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

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




Re: cygrunsrv and apache

2003-01-16 Thread Stipe Tolj
> Does adding the --nodetach to cygrunsrv (I think that's the correct
> spelling ) help?
> 
> I had a similar problem with rsyncd and adding it resolved my
> problem.

no, the -k flag tells httpd to keep attached to the shell. This is
what cygrunsrv expects.

> >  > cygrunsrv -I apache -d "Cygwin apache" -p /usr/sbin/httpd -a -k -e
> > "CYGWIN=ntsec nosmbntsec binmode tty"

I see here that you may have a problem with the way you installed it.
You should be using -a "-k" to identify the atribute flag -k for
httpd. Maybe cygrunsrv does not pass that correcly, and I assume it
does not, because it will thing the -k is an argument of cygrunsrv
itself.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

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




Re: Losing data with routine cp and mv -- "cannot create hard link"

2003-01-16 Thread Thomas Baker
In the absence of responses to my earlier note (below), and
having made a second fruitless search of FAQs and archives,
I'd like to make a second and final attempt with a simpler
question:

   If cp and mv are not reliably copying all of the contents
   of an (apparently) normal directory tree with 89,000 normal
   data files, of 1.4 GB total size, using WIN2000 and NTFS,
   is it most likely due to inherent size limits of cygwin?

If the problems are due to inherent limits, then I can
adjust by copying such big directories in smaller chunks,
as I have already done successfully.  I just want to make
sure that this is in fact the problem.

Thanks,
Tom Baker


On Sun, Jan 12, 2003 at 08:17:32PM +0100, Thomas Baker wrote:
> I use Cygwin 1.3.17, NTFS file systems, and Win2000 (see
> excerpt from cygcheck -s below).  Both with cp and mv, I am
> getting error messages when copying or moving rather large
> directories (1.4 GB, 89,000 files).  For example, the command:
> 
> $ cp -Rip p:/rchive q:/
> 
> starts off fine, but half-way through the job, error messages such
> as the following start to appear:
> 
> cp: will not create hard link `q:/rchive/foo/bar' to directory 
>`q:/rchive/fli/bers.gif'
> 
> ..where the both filename A is always a directory name
> and filename B (called a "directory" in the error message)
> is usually a file, not a directory.
> 
> While showing these messages, cp and mv continue to execute
> normally -- with error messages appearing intermittently --
> except the directories named by filenames A are not copied,
> i.e. the data is lost.  (Good thing I was paying attention
> and not running these in batch mode!)
> 
> I could not find anything relevant in the mailing list archive
> or FAQ.  Can anyone advise?  Is this an inherent limit of
> these commands?  Should I perhaps be using xargs?
> 
> Tom
> 
> 
> 
> Cygwin Win95/NT Configuration Diagnostics
> Current System Time: Sun Jan 12 18:41:03 2003
> 
> Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 1
> 
> SysDir: C:\WINNT\System32
> WinDir: C:\WINNT
> 
> Cygwin DLL version info:
> DLL version: 1.3.17
> DLL epoch: 19
> DLL bad signal mask: 19005
> DLL old termios: 5
> DLL malloc env: 28
> API major: 0
> API minor: 67
> Shared data: 3
> DLL identifier: cygwin1
> Mount registry: 2
> Cygnus registry name: Cygnus Solutions
> Cygwin registry name: Cygwin
> Program options name: Program Options
> Cygwin mount registry name: mounts v2
> Cygdrive flags: cygdrive flags
> Cygdrive prefix: cygdrive prefix
> Cygdrive default prefix: 
> Build date: Wed Nov 27 18:54:29 EST 2002
> Shared id: cygwin1S3
> 
> -- 
> Dr. Thomas Baker[EMAIL PROTECTED]
> Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
> Fraunhofer-Gesellschaft  work +49-30-8109-9027
> 53754 Sankt Augustin, Germanyfax +49-2241-144-2352
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 

-- 
Dr. Thomas Baker[EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
Fraunhofer-Gesellschaft  work +49-30-8109-9027
53754 Sankt Augustin, Germanyfax +49-2241-144-2352

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




Re: Losing data with routine cp and mv -- "cannot create hard link"

2003-01-16 Thread Bjoern Kahl AG Resy

 Hallo!

 I do not know what is going on really, but I have seen something
 like that before.

On Thu, 16 Jan 2003, Thomas Baker wrote:

>If cp and mv are not reliably copying all of the contents
>of an (apparently) normal directory tree with 89,000 normal
>data files, of 1.4 GB total size, using WIN2000 and NTFS,
>is it most likely due to inherent size limits of cygwin?

  

 There seems to be a random delay in the NT-Filesystem when renaming
 files. This can be easily triggert on smb-shares, but also on
 "normal" drives.

 If renaming (that is: moving around) files, there is a short,
 load-dependend delay between removing the old direktory entry and
 creating the new one. This can even be observed in the windows
 explorer, and I *think* that is not a slow-gui-issue, but the file
 is *really* *not* *there* form some time.

 

 So dont think there is any thing cygwin can do.

> If the problems are due to inherent limits, then I can
> adjust by copying such big directories in smaller chunks,
> as I have already done successfully.  I just want to make
> sure that this is in fact the problem.

 If I move/copy some files over the net, I add sleep instructions
 ("for i in * ; do mv $i $i.bak ; sleep 1 ; sed <$i.bak >$i ... ; done")
 slow, but works. On *my* system, the magic number is around 50 files.
 Less than 50 files works without sleep, more files require the
 sleep. (Else I get a lot random "No such file xxx.bak".)


   Bjoern

-- 
+-+
| Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de   |
+-+


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




Re: Python/Tkinter bug on Cygwin

2003-01-16 Thread Jason Tishler
Eric,

On Tue, Jan 14, 2003 at 11:18:21PM -0800, Eric McRae wrote:
> If you can confirm

I can confirm the above behavior.

Unfortunately, my only suggestion is a standard one.  Try to isolate the
problem.  Can you reproduce the problem directly with Cygwin Tk?

> or at least point me to the proper group to report this bug, I would
> appreciate it.

If so, then I would take this to the Insight list.  If not, then try the
Python list.  Maybe someone there has stumbled across this too...

Jason

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

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




Re: xinted rsync bluescreen

2003-01-16 Thread Dan Holmsand
Danilo,

Danilo Turina wrote:

I also have a very similar problem (writing in /etc when X is running, 
always cause a BSOD, regardless of antivirus packages), if I can have 
that hacked cygwin1.dll I can try it on my systems and tell if it's the 
same problem.

Sure. I'll send you one in private mail.

/dan



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




Re: cygrunsrv and apache

2003-01-16 Thread Corinna Vinschen
On Thu, Jan 16, 2003 at 10:35:21AM +0100, Stipe Tolj wrote:
> > >  > cygrunsrv -I apache -d "Cygwin apache" -p /usr/sbin/httpd -a -k -e
> > > "CYGWIN=ntsec nosmbntsec binmode tty"
> 
> I see here that you may have a problem with the way you installed it.
> You should be using -a "-k" to identify the atribute flag -k for
> httpd. Maybe cygrunsrv does not pass that correcly, and I assume it

It does.

Corinna

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

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




Re: Unable to login through telnet via 1.3.18-1

2003-01-16 Thread Corinna Vinschen
On Wed, Jan 15, 2003 at 07:01:24PM -0800, Andrew DeFaria wrote:
> Recently updated to 1.3.18-1 and telnet/rlogin/etc have stopped working. 
> inetd is running as a service just like before. The problem now is that 
> I cannot authenticate! No password works:
> 
> $ telnet $(hostname)
> Trying 192.168.1.121...
> Connected to adefaria.SALIRA.COM.
> Escape character is '^]'.
> 
> CYGWIN_NT-5.1 1.3.18(0.69/3/2) (adefaria) (tty7)
> 
> login: adefaria
> Password:
> Login incorrect
> login: Connection closed by foreign host.
> 
> Tried several times with what I know is my correct password. When I do 
> the same telnet to a machine running 1.3.17 it works fine.
> 
> Another interesting thing is:
> 
> $ passwd --status
> passwd: unknown user adefaria

So... did you check your passwd and group files?  Regenerate them.
I have no problems connecting with telnet so it's probably something
with these files.

Corinna

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

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




How can I abbreviate /cygdrive/DRIVELETTER ?

2003-01-16 Thread svartsjel
Hi everyone!

As I often access different drives from within the bash I'm wondering if
there's a quicker way to get on, say, drive l (a network drive) than entering
'cd /cygdrive/l'?
I alias'd '/cygdrive/l' to 'l' which works fine for cd, but not for commands
like chmod, cp, mv etc. Among others I'd like to use the automatic command
line completion which doesn't work for /cygdrive/... either.
Any suggestions?

Best wishes,

Svartsjel

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


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




Re: How can I abbreviate /cygdrive/DRIVELETTER ?

2003-01-16 Thread Max Bowsher
[EMAIL PROTECTED] wrote:
> Hi everyone!
>
> As I often access different drives from within the bash I'm wondering
> if there's a quicker way to get on, say, drive l (a network drive)
> than entering 'cd /cygdrive/l'?
> I alias'd '/cygdrive/l' to 'l' which works fine for cd, but not for
> commands like chmod, cp, mv etc. Among others I'd like to use the
> automatic command line completion which doesn't work for
> /cygdrive/... either.

Make a real directory /cygdrive. Command completion will then work.

Or, ln -s /cygdrive/c /c
Or, ln -s /cygdrive /drv

(Yes, I know you *can* change the cygdrive prefix itself, but you never know
when you will run into some script that tries to use it.)

Max.


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




Re: How can I abbreviate /cygdrive/DRIVELETTER ?

2003-01-16 Thread Corinna Vinschen
On Thu, Jan 16, 2003 at 02:13:37PM +0100, [EMAIL PROTECTED] wrote:
> Hi everyone!
> 
> As I often access different drives from within the bash I'm wondering if
> there's a quicker way to get on, say, drive l (a network drive) than entering
> 'cd /cygdrive/l'?

/cygdrive is the so called cygdrive prefix.  `mount --help' reveals:

  Usage: mount [OPTION] [ ]
[...]
-c, --change-cygdrive-prefix  change the cygdrive path prefix to 

so you can do sth. like

  mount --change-cygdrive-prefix /mnt

Corinna

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

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




Re: xinted rsync bluescreen

2003-01-16 Thread Danilo Turina
Dan Holmsand wrote:

Danilo,

Danilo Turina wrote:


I also have a very similar problem (writing in /etc when X is running, 
always cause a BSOD, regardless of antivirus packages), if I can have 
that hacked cygwin1.dll I can try it on my systems and tell if it's 
the same problem.


Sure. I'll send you one in private mail.

/dan


Thank you. I tried the patched cygwin1.dll and BSOD not occurred (even 
with McAfee enabled).

After replacing the original cygwin1.dll BSOD not occurred anymore.
But note that this happened to me also in the past, i.e. in some cases 
(e.g. entirely disabling antivirus or with other tries) I was able to 
avoid BSOD.

When this happened to me, restoring the original conditions did not 
immediately cause BSOD to reappear immediately, but only after a while.

Unfortunately I'm unable to understand what made the BSOD reappear (or 
what delayed it). I only had the sensation that once avoided the BSOD 
the first time, the system does not BSOD anymore even if the previous 
situation is restored (I think until a reboot). It is somewhat like the 
first time an handle must be requested or some resource must be 
allocated if this succeeds, the next time the system does not need 
anymore to perform that operation.

Ciao,

			Danilo



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



Question concerning fortune

2003-01-16 Thread svartsjel
I'm fond of fortune and therefore would like to know whether a new version
of this neat little prog is to be released with Cygwin. Maybe with new
libraries of quotes?
Another point is this behaviour I noticed a while ago. Let's suppose, we
created a library looking like this:


One quote
%
Another one
%
And finally, a third one
%


and now we compile the corresponding .dat file, fortune (or rather strfile?)
assumes four different quotes because of the last '%' that precedes the
.
It's not exactly a bug, though...

Best wishes,

Svartsjel

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


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




Re: cygrunsrv and apache

2003-01-16 Thread Jim Drash
This is been covered in many messages on the mailing list.  In most cases
the problem starts with cygwin being installed for "Just Me".  If you use
cygrunsrv then apache or what have you runs as SYSTEM not your account.
Make sure that the mounts for /, /usr/bin, and /usr/lib are system and
binary. Make sure that SYSTEM can write /var/run and /var/log

Hope this helps

jim drash




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




Re: cygrunsrv and apache

2003-01-16 Thread Elfyn McBratney
> you should be checking what /var/log/apache/error_log is reporting.

Sorry for the late reply. The error_log contains the usual startup/shutdown
messages and nothing serious that would indicate that apache is not
operating correctly.

> Another option is the module rebasing clash. But you said you can
> start it from shell by hand, with the same setup, right?!

The fact that apache functions normally from the shell leads me to believe
that this is not a dll base issue as the only time I recieve an error (and
nothing more) is when I start apache through the service manager. Like I
said previously I have the log file(s) and log dir are owned by system with
write permission, also the modules are owned by system (the SYSTEM user). If
I change this there is no effect and I still recieve error 1062.

To install the service I used this:

  $ cygrunsrv -I httpd -p /usr/sbin/httpd -d "CYGWIN httpd" \
  > -a '-k' -e "CYGWIN=binmode ntsec ntea"

My user and group database files are all up-to-date and I can't think of
anything else this can be :/

Elfyn
[EMAIL PROTECTED]



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




Re: cygrunsrv and apache

2003-01-16 Thread Stipe Tolj
Corinna Vinschen schrieb:
> 
> On Thu, Jan 16, 2003 at 10:35:21AM +0100, Stipe Tolj wrote:
> > > >  > cygrunsrv -I apache -d "Cygwin apache" -p /usr/sbin/httpd -a -k -e
> > > > "CYGWIN=ntsec nosmbntsec binmode tty"
> >
> > I see here that you may have a problem with the way you installed it.
> > You should be using -a "-k" to identify the atribute flag -k for
> > httpd. Maybe cygrunsrv does not pass that correcly, and I assume it
> 
> It does.

it does not pass, or it does pass?!

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

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




Re: cron, Oracle, and sqlplus

2003-01-16 Thread Chiranth
On Jan 9, James Schnedar wrote

>I am experiencing a problem with running Oracle sqlplus within a shell
>script using cron.  The shell script runs correctly from the command
>line, but once I add it to cron, the shell script will execute up until
>the sqlplus command.  Therefore, cron is working correctly as well, but
>the addition of the sqlplus command causes it to hang.  The sqlplus
>session has started, but appears hung.
>

sqlplus needs some environment variables to be set, like ORACLE_HOME ( I
am not sure what others).  Andd cron does not set these variables while
starting your process.  Hence sqlplus hangs.

Solution: Use the line #!/bin/bash  as the first line of your shell script
and define the required environment variables in your .bashrc file.  Ig
you are using the Korn shell, ensure that these variables are set in
your .profile and use #!/bin/ksh as the first line of your shell script.
It will ensure that the correct shell interpreter is invoked and the
environment variables read appropriately.

-- 
Chiranth M.C.
Netkraft Pvt Ltd


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




Re: cygrunsrv and apache

2003-01-16 Thread Corinna Vinschen
On Thu, Jan 16, 2003 at 03:17:40PM +0100, Stipe Tolj wrote:
> Corinna Vinschen schrieb:
> > It does.
> 
> it does not pass, or it does pass?!

Just try it.

Corinna

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

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




Re: cygrunsrv and apache

2003-01-16 Thread Stipe Tolj
> Just try it.

Corinna, 

I'm as busy as you. And if I ask you kindly such a simple question,
it's more efficient for both of us to get it answered from you then to
make the overhead to try it on my own.

When I asked you (and others) to debug an Apache TCP connection
problem you were also very picky about that time issue!

I think this is not fair!

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Gordon R. Keehn
The GWD editor (http://www.gwdsoft.com) is another good choice.  It
features language specific hilighting and a bunch of other great tools,
and has a C-like macro language.  I have used it to edit scripts and
makefiles while running a cygwin shell.  It's not open-source, but then
not all great software is.
Cheers,
Gordon Keehn

--


  Gordon R. Keehn, CPSM Change Team
  CICS/390 Service, USA
  Gordon Keehn/Raleigh/IBM@IBMUS, 1-919-254-1690


- wrote:

> using textfiles for saving in unix text format from a
> windows editor is a breeze such as the editor
> http://www.editpadlite.com/ The lite freeware version
> is an alternative if you need to make some change now
> and don't have a working vim or pico at hand for
> startup scripts... you can immediately change the
> end-of-the-line newline hexcode hassles with this
> speedy editor (unix<->win32<->mac as well).. this is
> good for ascii files and shouldn't be used on files
> under the cygwin branch tree while running
> cygwin..editpad automatically recognizes the text end
> of line format and gets worked with it
> accordingly...just a tip if you need to rescue a
> profile file and need to have things working properly
> for cygwin startup scripts...
>
> jagg
>
> __
> Post your free ad now! http://personals.yahoo.ca





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




Re: Losing data with routine cp and mv -- "cannot create hard link"

2003-01-16 Thread Larry Hall (RFK Partners, Inc)

At 04:55 AM 1/16/2003, Thomas Baker wrote:
>In the absence of responses to my earlier note (below), and
>having made a second fruitless search of FAQs and archives,
>I'd like to make a second and final attempt with a simpler
>question:
>
>If cp and mv are not reliably copying all of the contents
>of an (apparently) normal directory tree with 89,000 normal
>data files, of 1.4 GB total size, using WIN2000 and NTFS,
>is it most likely due to inherent size limits of cygwin?
>
>If the problems are due to inherent limits, then I can
>adjust by copying such big directories in smaller chunks,
>as I have already done successfully.  I just want to make
>sure that this is in fact the problem.


If you're looking for some 'official' validation of what you see, 
I'm not sure that you'll find it here.  It's not that we wouldn't like
to give it (or even refute your findings ;-) ).  It's just that I don't 
believe anyone has done as much analysis of this issue as you have.  
Certainly, the values you report (89000 files occupying 1.4GB of space) are
not, in and of themselves, an obvious red-flag.  If you'd like to get a 
better handle on the situation (and help the list understand your problem as
well), it would be worthwhile to run strace on this process and look
for any suspect results.  Be warned.  This will generate a huge file
with lots of output, most of which is not going to indicate any problems.
However, if you can help isolate a problem area, it may be easier for 
someone here to diagnose the problem and offer a fix... or at least an
explanation.

Sorry I don't have the magic bullet for you.

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


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




Re: cygrunsrv and apache

2003-01-16 Thread Corinna Vinschen
On Thu, Jan 16, 2003 at 03:37:46PM +0100, Stipe Tolj wrote:
> > Just try it.
> 
> Corinna, 
> 
> I'm as busy as you. And if I ask you kindly such a simple question,
> it's more efficient for both of us to get it answered from you then to
> make the overhead to try it on my own.

It's a simple getopt thingy: `--option foo' takes foo as argument if
option expects an argument, regardless of first character of the argument.

> When I asked you (and others) to debug an Apache TCP connection
> problem you were also very picky about that time issue!

I asked you for a *simple* testcase more than once.  You never sent one.
Apache is a fairly big chunk of code and it's not quite my job to debug
Apache to find a possible fault in Cygwin.  You saw Jason's testcase
two days ago?  How long did it take to fix the error in Cygwin with
the help of that testcase?

> I think this is not fair!

Well, I assume Chris meanness is taking me over.

Corinna

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

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




[ANNOUNCEMENT] Updated: cygwin-doc-1.3

2003-01-16 Thread Joshua Daniel Franklin
A new version of the cygwin-doc package is now available.
This release updates to the latest CVS of the cygwin documentation
and has more straightforward build instructions. 

  *** INFORMATION ON UPDATING CYGWIN ***

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

In the US,
ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin/
is a reliable high bandwidth connection.

In Germany,
ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/mirrors/cygnus/
is usually pretty good.

In the UK,
http://programming.ccp14.ac.uk/ftp-mirror/programming/cygwin/pub/cygwin/
is usually up-to-date within 48 hours.

If one of the above doesn't have the latest version of this package
then you can either wait for the site to be updated or find another
mirror.

The setup.exe program will figure out what needs to be updated on your
system and will install newer packages automatically.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .  This includes ideas and comments
about the setup utility or Cygwin in general.

If you want to make a point or ask a question, the Cygwin mailing list
is the appropriate place.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you have trouble, please use the resources at

http://cygwin.com/ml/

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


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




Re: cygrunsrv and apache

2003-01-16 Thread Stipe Tolj
> It's a simple getopt thingy: `--option foo' takes foo as argument if
> option expects an argument, regardless of first character of the argument.

ok, so id does pass. Thanks for pointing this out.

> > When I asked you (and others) to debug an Apache TCP connection
> > problem you were also very picky about that time issue!
> 
> I asked you for a *simple* testcase more than once.  You never sent one.
> Apache is a fairly big chunk of code and it's not quite my job to debug
> Apache to find a possible fault in Cygwin.  You saw Jason's testcase
> two days ago?  How long did it take to fix the error in Cygwin with
> the help of that testcase?

No, I didn't see that. But as you may imagine setting up a testcase
out of apache for one specific problem that is not determined very
well is as complicated as checking the underlying TCP connection
system.

It's not the will that lacks, it's the time -- same as you.

> > I think this is not fair!
> 
> Well, I assume Chris meanness is taking me over.

maybe ;)

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

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




Re: Support for DDWARF-2 debug info? (on Cygwin)

2003-01-16 Thread Brian Ford
On 16 Jan 2003, Nick Clifton wrote:

> Hi Brian,
>
> > The coff versions of sec_to_styp_flags and styp_to_sec_flag in bfd
> > look to see if the section name begins with .debug and modify the
> > section flags appropriately.  The PE versions do not even look at
> > the section name.
>
> Ahh, yes, you are right.  I guess that no-one has tried to
> incporporate DWARF2 sections into the PE format before.  I guess that,
> for now you are going to have to add similar name-checking code to the
> PE versions.
>
I have and it works fine.

> Ideally what we ought to do is give gcc some way to tell gas that
> "this section is a debug section" and then gas could do the right
> thing.  Perhaps a new pseudo op ".debug_section " ?
>
Agreed.

My current problem is that all previous DWARF2 implementations assign a
VMA of zero to the .debug_* sections in the link script.  This violates
the PE format and makes the executable unusable.

I am making the VMAs adjacent at the end of the image as the PE spec
requires.  The offsets in the DWARF2 information are then parsed
incorrectly in bfd/dwarf2.c and gdb/dwarf2read.c, because they are
no longer section relative offsets, but VMA addresses.

I am still consulting the DWARF2 spec to see if gcc and gas are
correct in generating VMA addresses.  If so, I guess I have to fix the
dwarf parsing code in bfd and gdb to subtract the section base VMA.

As always, hints, tips, and comments are welcome.

Examples:

addr2line 0x401040 -e xyz.exe
BFD: Dwarf Error: Abbrev offset (4251648) greater than or equal to
.debug_abbrev size (512).

gdb xyz.exe
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions.  Type "show copying" to see the conditions.  There is
absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...Dwarf Error: bad offset
(0x40e000) in compilation unit header (offset 0x0 + 6).

Thanks.

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


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




Re: cygrunsrv and apache - success

2003-01-16 Thread Jonathan Albrecht
Thanks for the tip. That fixed it for me. For posterity, here is 
everything that I did:

1. Create a new local user named apache. I put it in the Users group. 
Add it to /etc/passwd using a command like:

> mkpasswd -l | grep apache >>/etc/passwd

The apache user was assigened to the existing None group so I left it 
like that.

2. Modify /etc/apache/httpd.conf to set:
User apache
Group None

3. Run:
> chown SYSTEM:SYSTEM /var/log/apache/*
> chown SYSTEM:SYSTEM /var/log/apache.log

Check that /var/log/apache/ and /var/run are writable by SYSTEM.

4. Run:
> cygrunsrv -I apache -d "Cygwin apache" -p /usr/sbin/httpd -a '-k' -e 
"CYGWIN=ntsec nosmbntsec binmode tty"
> cygrunsrv -S apache

No errors were reported.

5. Check the Control Panel\Administrative Tools\Services app (I'm on 
Win2k) to see if Cygwin apache is running.

6. Check if

> net stop apache
> net start apache

work.

7. Point your browser at your machine and see if you get the Apache 
default page.

Well that's all I remember doing anyway. Let me know if I'm missing 
anything.

So far it looks like everything is working. Thanks everyone for your help.

Jon

Stipe Tolj wrote:
Jonathan Albrecht schrieb:


I've been trying to run apache as a service using cygrunsrv. I haven't
changed the httpd.conf and running /usr/sbin/httpd from the command line
works fine. Here is what I have done:

> cygrunsrv -I apache -d "Cygwin apache" -p /usr/sbin/httpd -a -k -e
"CYGWIN=ntsec nosmbntsec binmode tty"

 > cygrunsrv -S apache

cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

I've tried variations on the spaces and quotes in the command line but
nothing has worked. Any ideas?



check file permissions. 

cygrunsrv will start the httpd processes as SYSTEM, hence all logging
directory have to have write permissions for that user or group.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




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




Re: Question concerning fortune

2003-01-16 Thread Christopher Faylor
On Thu, Jan 16, 2003 at 02:37:12PM +0100, [EMAIL PROTECTED] wrote:
>I'm fond of fortune and therefore would like to know whether a new version
>of this neat little prog is to be released with Cygwin. Maybe with new
>libraries of quotes?

Our fortune maintainer has moved on.  If you are interested in taking over,
send a proposal to cygwin-apps.

cgf

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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Christopher Faylor
On Thu, Jan 16, 2003 at 09:43:50AM -0500, Gordon R. Keehn wrote:
>The GWD editor (http://www.gwdsoft.com) is another good choice.  It
>features language specific hilighting and a bunch of other great tools,
>and has a C-like macro language.  I have used it to edit scripts and
>makefiles while running a cygwin shell.  It's not open-source, but then
>not all great software is.

No, but the non-cygwin software is pretty off-topic for this list.

cgf

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




Re: Losing data with routine cp and mv -- "cannot create hard link"

2003-01-16 Thread Thomas Baker
Dear Bjoern,

This sounds very plausible and fits with my impression that
the files which cause problems are really random, with no
obvious pattern or periodicity, and with my observation that
this problem seems to come up even more frequently when I move
files from one machine to another (notably slow) machine than
when I just copy them between partitions on the same machine.

Many thanks for sharing your observation.
Tom

On Thu, Jan 16, 2003 at 11:19:14AM +0100, Bjoern Kahl AG Resy wrote:
>  I do not know what is going on really, but I have seen something
>  like that before.
> 
> On Thu, 16 Jan 2003, Thomas Baker wrote:
> 
> >If cp and mv are not reliably copying all of the contents
> >of an (apparently) normal directory tree with 89,000 normal
> >data files, of 1.4 GB total size, using WIN2000 and NTFS,
> >is it most likely due to inherent size limits of cygwin?
> 
>   
> 
>  There seems to be a random delay in the NT-Filesystem when renaming
>  files. This can be easily triggert on smb-shares, but also on
>  "normal" drives.
> 
>  If renaming (that is: moving around) files, there is a short,
>  load-dependend delay between removing the old direktory entry and
>  creating the new one. This can even be observed in the windows
>  explorer, and I *think* that is not a slow-gui-issue, but the file
>  is *really* *not* *there* form some time.
> 
>  
> 
>  So dont think there is any thing cygwin can do.
> 
> > If the problems are due to inherent limits, then I can
> > adjust by copying such big directories in smaller chunks,
> > as I have already done successfully.  I just want to make
> > sure that this is in fact the problem.
> 
>  If I move/copy some files over the net, I add sleep instructions
>  ("for i in * ; do mv $i $i.bak ; sleep 1 ; sed <$i.bak >$i ... ; done")
>  slow, but works. On *my* system, the magic number is around 50 files.
>  Less than 50 files works without sleep, more files require the
>  sleep. (Else I get a lot random "No such file xxx.bak".)
> 
> 
>Bjoern
> 
> -- 
> +-+
> | Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
> | Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
> | phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de   |
> +-+
> 

-- 
Dr. Thomas Baker[EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
Fraunhofer-Gesellschaft  work +49-30-8109-9027
53754 Sankt Augustin, Germanyfax +49-2241-144-2352

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




Re: Losing data with routine cp and mv -- "cannot create hard link"

2003-01-16 Thread Thomas Baker
Simply knowing that this is not a frequently reported problem
is helpful.  I'm inclined to suspect now that Bjoern (previous
post) is on the right track by looking at the timing of the
deleting and creating that goes on under Win2000 (in this case)
in order to "mv" something.

Many thanks,
Tom Baker

On Thu, Jan 16, 2003 at 09:55:01AM -0500, Larry Hall (RFK Partners, Inc) wrote:
> At 04:55 AM 1/16/2003, Thomas Baker wrote:
> >In the absence of responses to my earlier note (below), and
> >having made a second fruitless search of FAQs and archives,
> >I'd like to make a second and final attempt with a simpler
> >question:
> >
> >If cp and mv are not reliably copying all of the contents
> >of an (apparently) normal directory tree with 89,000 normal
> >data files, of 1.4 GB total size, using WIN2000 and NTFS,
> >is it most likely due to inherent size limits of cygwin?
> >
> >If the problems are due to inherent limits, then I can
> >adjust by copying such big directories in smaller chunks,
> >as I have already done successfully.  I just want to make
> >sure that this is in fact the problem.
> 
> If you're looking for some 'official' validation of what you see, 
> I'm not sure that you'll find it here.  It's not that we wouldn't like
> to give it (or even refute your findings ;-) ).  It's just that I don't 
> believe anyone has done as much analysis of this issue as you have.  
> Certainly, the values you report (89000 files occupying 1.4GB of space) are
> not, in and of themselves, an obvious red-flag.  If you'd like to get a 
> better handle on the situation (and help the list understand your problem as
> well), it would be worthwhile to run strace on this process and look
> for any suspect results.  Be warned.  This will generate a huge file
> with lots of output, most of which is not going to indicate any problems.
> However, if you can help isolate a problem area, it may be easier for 
> someone here to diagnose the problem and offer a fix... or at least an
> explanation.
> 
> Sorry I don't have the magic bullet for you.

-- 
Dr. Thomas Baker[EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
Fraunhofer-Gesellschaft  work +49-30-8109-9027
53754 Sankt Augustin, Germanyfax +49-2241-144-2352

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




Re: Support for DDWARF-2 debug info? (on Cygwin)

2003-01-16 Thread Nick Clifton
Hi Brian,

> My current problem is that all previous DWARF2 implementations
> assign a VMA of zero to the .debug_* sections in the link script.
> This violates the PE format and makes the executable unusable.

I saw your post about this to the binutils list.

Does the PE format require that the debugging sections be loaded into
memory when the executable is invoked ?  The reason that the ELF
format allows the .debug sections to have a VMA of zero is that they
also do not have the ALLOC flag, so they are not loaded into memory.
(A debugger wanting to access the sections for a running process must
locate the executable on disk an load them/mmap them from there).

> I am still consulting the DWARF2 spec to see if gcc and gas are
> correct in generating VMA addresses.  If so, I guess I have to fix
> the dwarf parsing code in bfd and gdb to subtract the section base
> VMA.

I do not believe that the DWARF2 spec mandates the VMA addresses of
the .debug sections.  It does say that their contents must be
contiguous, and it does specify the meaning of their contents, but it
does not specify the meaning of partially-complete .debug sections.
(ie ones attached to relocations that have not yet been resolved).

So, I think it is the case that BFD and GDB are both assuming that the
VMA of the sections will be zero, but that this is not required.

Cheers
   Nick


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




Re: cron, Oracle, and sqlplus

2003-01-16 Thread James Schnedar
> > I am experiencing a problem with running Oracle sqlplus within a shell
> > script using cron.  The shell script runs correctly from the command
> > line, but once I add it to cron, the shell script will execute up until
> > the sqlplus command.  Therefore, cron is working correctly as well, but
> > the addition of the sqlplus command causes it to hang.  The sqlplus
> > session has started, but appears hung.
> >
> > ps -ef yields:
> >
> >  UID PIDPPID TTY STIME COMMAND
> >   SYSTEM3296 552   ?  14:53:00 /usr/sbin/cron
> > Administ33123296   ?  14:53:00 /usr/bin/sh
> > Administ33883312   ?  14:53:00 /usr/bin/sh
> > Administ34723296   ?  14:53:01 /usr/sbin/ssmtp
> > Administ35083388   ?Dec 31 /cygdrive/d/ORACLE/806/bin/sqlplus
> >
> > Any suggestions?
> > Thanks,
> > James Schnedar

Reply #1:
Igor Pechtchanski wrote:
> 
> James,
> 
> Is sqlplus trying to open a window or access a network share?  Try
> checking the "Allow service to interact with the desktop" box for the cron
> service,and see if it helps (having restarted cron, of course).
> Igor

Reply #2:
"Peter A. Castro" wrote:
> 
> sqlplus is a native windows app, so perhaps you are trying to invoke it
> with a cygwin-ized path to a command file?  If you can send us a section
> of your shell script, where it's invoking sqlplus, perhaps we can figure
> out what's going on.  Also, there are some environmental variables that
> can effect sqlplus execution, and cron doesn't invoke things in a full
> environment.
> 
> 
> --
> Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
> "Cats are just autistic Dogs" -- Dr. Tony Attwood

Reply #3:
Chiranth wrote:
> 
> sqlplus needs some environment variables to be set, like ORACLE_HOME ( I
> am not sure what others).  Andd cron does not set these variables while
> starting your process.  Hence sqlplus hangs.
> 
> Solution: Use the line #!/bin/bash  as the first line of your shell script
> and define the required environment variables in your .bashrc file.  Ig
> you are using the Korn shell, ensure that these variables are set in
> your .profile and use #!/bin/ksh as the first line of your shell script.
> It will ensure that the correct shell interpreter is invoked and the
> environment variables read appropriately.
> 
> --
> Chiranth M.C.
> Netkraft Pvt Ltd


All,
Thank you for the replies.  Through researching these replies, I
discovered:

1) sqlplus does indeed open a window.  Therefore, the "Allow service to
interact with the desktop" box needs to be clicked.  Since I am coming
from a UNIX environment and am fairly ignorant of Windows, here's how to
get to it (for Windows 2000) (this portion primarily for archiving on
Cygwin mailing list):

a) right click My Computer
b) select Manage.  This will open Computer Management window.
c) select/double click Servies and Applications on right side
d) select/double click Services on the right side
e) Assuming cron has been set up correctly, you should see it as a
service.  Right click on cron.
f) select Properties
g) select Log On tab
h) click "Allow service to interact with desktop" box.  Done.

It also took me awhile to start cron, so in case someone comes across
this post to starting cron:

cygrunsrv -I cron -p /usr/sbin/cron -a -D
cygrunsrv -S cron
to stop cron:
cygrunsrv -E cron

Also, if you are not logging in as Adminstrator, then you will be
required to have an entry in /etc/passwd for cron to run your scripts. 
Administrator already exists, so copy that line and change Administrator
to your user name and give yourself a new user ID.

These actions allowed the cron service to run my shell script.  But, see
below for further sqlplus information.

2) ORACLE_HOME is inherited from the Window's repository.  I did not
(and should not) reset it in the shell script.  I also should not set
LD_LIBRARY_PATH.

3) Evidentally, sqlplus in windows environment behaves differnently than
a unix environment.  Primarily, it opens a new window, end of story.  In
UNIX, the -s option is silent mode and not interactive.  For windows,
the command line sqlplus command is "plusxx" where xx is the version you
are on.  This allows for the -s option and works with directing files in
(< in_file) and redirecting output out (> out_file).

4) While working with sql scripts and running Oracle Reports from Cygwin
shell scripts, once control is passed to the Oracle environments
(spool'ing in sqlplus, Oracle Reports, etc.), it requires window's path
names (i.e. d:\cygwin\tmp) as opposed to relying on Cygwin to interpret
the path name.

Background information:  We are in the midst of moving from a Unix
backend to a Linux backend.  Oracle 9i is certified on Red Hat Advance
Server 2.1.  Oracle ReportWriter is not certified as stand alone on
Linux.  You have to buy Oracle 9i App Server (that's how they get you). 
Oracle Report Writer 6i is certified as stand alone on windows. 
Therefore, overnight batch process th

Re: Support for DDWARF-2 debug info? (on cygwin)

2003-01-16 Thread Christopher Faylor
On Thu, Jan 16, 2003 at 03:58:09PM +, Nick Clifton wrote:
>Hi Brian,
>
>> My current problem is that all previous DWARF2 implementations
>> assign a VMA of zero to the .debug_* sections in the link script.
>> This violates the PE format and makes the executable unusable.
>
>I saw your post about this to the binutils list.
>
>Does the PE format require that the debugging sections be loaded into
>memory when the executable is invoked ?

I didn't think that STABS debug information was loaded into memory.

cgf

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




COM port setup

2003-01-16 Thread Paul Munden


Hi,

I'm hoping you could help me. I'm using CYGWIN to run some SMS tools and
the tools config files need setting up to add the details of which com port
I'm using. Basically I just need to know how I would go about creating the
com4 object in /dev so that it does actually point at the com port as when
installed, CYGWIN came with no /dev or any example of how I would setup the
com object.

Any help appreciated

Paul.


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




Re: Support for DDWARF-2 debug info? (on Cygwin)

2003-01-16 Thread Brian Ford
On 16 Jan 2003, Nick Clifton wrote:

> Hi Brian,
>
> > My current problem is that all previous DWARF2 implementations
> > assign a VMA of zero to the .debug_* sections in the link script.
> > This violates the PE format and makes the executable unusable.
>
> I saw your post about this to the binutils list.
>
> Does the PE format require that the debugging sections be loaded into
> memory when the executable is invoked ?  The reason that the ELF
> format allows the .debug sections to have a VMA of zero is that they
> also do not have the ALLOC flag, so they are not loaded into memory.
> (A debugger wanting to access the sections for a running process must
> locate the executable on disk an load them/mmap them from there).
>
No, they do not need to be loaded into memory, and they do not have the
ALLOC flag set.  But, the PE format requires all sections to be adjacent
and in ascending order of VMA.  It also specifies debug sections should be
last.  I think it just tries to load everything up to the fist non-ALLOC
section, or so it seams.

> > I am still consulting the DWARF2 spec to see if gcc and gas are
> > correct in generating VMA addresses.  If so, I guess I have to fix
> > the dwarf parsing code in bfd and gdb to subtract the section base
> > VMA.
>
> I do not believe that the DWARF2 spec mandates the VMA addresses of
> the .debug sections.  It does say that their contents must be
> contiguous, and it does specify the meaning of their contents, but it
> does not specify the meaning of partially-complete .debug sections.
> (ie ones attached to relocations that have not yet been resolved).
>
No, it does not, but I did find out it mandates section relative offsets.
So, the dwarf parsing code is correct.  It is gcc that has taken a
short cut.  BTW, these problems are with fully linked executables.

>From gcc/dwarf2asm.c:122

/* Output a section-relative reference to a label.  In general this
   can only be done for debugging symbols.  E.g. on most targets with
   the GNU linker, this is accomplished with a direct reference and
   the knowledge that the debugging section will be placed at VMA 0.
   Some targets have special relocations for this that we must use.  */

void
dw2_asm_output_offset VPARAMS ((int size, const char *label,
   const char *comment, ...))
{
  VA_OPEN (ap, comment);
  VA_FIXEDARG (ap, int, size);
  VA_FIXEDARG (ap, const char *, label);
  VA_FIXEDARG (ap, const char *, comment);

#ifdef ASM_OUTPUT_DWARF_OFFSET
  ASM_OUTPUT_DWARF_OFFSET (asm_out_file, size, label);
#else
  dw2_assemble_integer (size, gen_rtx_SYMBOL_REF (Pmode, label));
#endif

[snip]

So, all I need to do is define ASM_OUTPUT_DWARF_OFFSET correctly in
gcc/config/i386/cygwin.h.

Does anyone have I good way to define a section relative offset in
assembly for Cygwin, or do I need to define labels for the sections in the
link script as use them?  That seems messy.

> So, I think it is the case that BFD and GDB are both assuming that the
> VMA of the sections will be zero, but that this is not required.
>
Actually, as stated above, bfd and gdb are correct.  The VMA should not
be relevant as section relative offsets are specified.

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


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




Re: Support for DDWARF-2 debug info? (on cygwin)

2003-01-16 Thread Brian Ford
On Thu, 16 Jan 2003, Christopher Faylor wrote:

> On Thu, Jan 16, 2003 at 03:58:09PM +, Nick Clifton wrote:
> >Does the PE format require that the debugging sections be loaded into
> >memory when the executable is invoked ?
>
> I didn't think that STABS debug information was loaded into memory.
>
That's true.  It is not.  See my previous post.

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


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




Re: How can I abbreviate /cygdrive/DRIVELETTER ?

2003-01-16 Thread Igor Pechtchanski
On Thu, 16 Jan 2003 [EMAIL PROTECTED] wrote:

> Hi everyone!
>
> As I often access different drives from within the bash I'm wondering if
> there's a quicker way to get on, say, drive l (a network drive) than entering
> 'cd /cygdrive/l'?
> I alias'd '/cygdrive/l' to 'l' which works fine for cd, but not for commands
> like chmod, cp, mv etc. Among others I'd like to use the automatic command
> line completion which doesn't work for /cygdrive/... either.
> Any suggestions?
>
> Best wishes,
> Svartsjel

Try

$ mkdir /l
$ mount l:/ /l

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

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


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




Re: cygrunsrv and apache

2003-01-16 Thread Igor Pechtchanski
On Thu, 16 Jan 2003, Elfyn McBratney wrote:

> > you should be checking what /var/log/apache/error_log is reporting.
>
> Sorry for the late reply. The error_log contains the usual startup/shutdown
> messages and nothing serious that would indicate that apache is not
> operating correctly.
>
> > Another option is the module rebasing clash. But you said you can
> > start it from shell by hand, with the same setup, right?!
>
> The fact that apache functions normally from the shell leads me to believe
> that this is not a dll base issue as the only time I recieve an error (and
> nothing more) is when I start apache through the service manager. Like I
> said previously I have the log file(s) and log dir are owned by system with
> write permission, also the modules are owned by system (the SYSTEM user). If
> I change this there is no effect and I still recieve error 1062.
>
> To install the service I used this:
>
>   $ cygrunsrv -I httpd -p /usr/sbin/httpd -d "CYGWIN httpd" \
>   > -a '-k' -e "CYGWIN=binmode ntsec ntea"
>
> My user and group database files are all up-to-date and I can't think of
> anything else this can be :/
>
> Elfyn
> [EMAIL PROTECTED]

Elfyn,

Just for kicks, did you try starting Apache from a SYSTEM-owned shell?
I posted instructions on how to get one to this list a couple of months
ago.  It'd be interesting to know whether it works.  Certainly would
eliminate some variables from the equation (i.e., the username).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

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


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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Igor Pechtchanski
On Thu, 16 Jan 2003, Christopher Faylor wrote:

> On Thu, Jan 16, 2003 at 09:43:50AM -0500, Gordon R. Keehn wrote:
> >The GWD editor (http://www.gwdsoft.com) is another good choice.  It
> >features language specific hilighting and a bunch of other great tools,
> >and has a C-like macro language.  I have used it to edit scripts and
> >makefiles while running a cygwin shell.  It's not open-source, but then
> >not all great software is.
>
> No, but the non-cygwin software is pretty off-topic for this list.
>
> cgf

What I don't understand is why this thread has even come up, when at least
two editors available for Cygwin (vim and emacs) handle all the above
issues perfectly (and have many of the same features, e.g., syntax
highlighting)?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

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


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




Re: cygipc...

2003-01-16 Thread Jason Tishler
Colin,

Please post instead of sending private email.

On Thu, Jan 16, 2003 at 09:13:33AM -0800, Colin wrote:
> Can't seem to get ipc-daemon to compile on my w2k machine???

Do you Google?

http://www.google.com/search?q=cygipc

Jason


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

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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Larry Hall (RFK Partners, Inc)
At 12:47 PM 1/16/2003, Igor Pechtchanski wrote:
>On Thu, 16 Jan 2003, Christopher Faylor wrote:
>
> > On Thu, Jan 16, 2003 at 09:43:50AM -0500, Gordon R. Keehn wrote:
> > >The GWD editor (http://www.gwdsoft.com) is another good choice.  It
> > >features language specific hilighting and a bunch of other great tools,
> > >and has a C-like macro language.  I have used it to edit scripts and
> > >makefiles while running a cygwin shell.  It's not open-source, but then
> > >not all great software is.
> >
> > No, but the non-cygwin software is pretty off-topic for this list.
> >
> > cgf
>
>What I don't understand is why this thread has even come up, when at least
>two editors available for Cygwin (vim and emacs) handle all the above
>issues perfectly (and have many of the same features, e.g., syntax
>highlighting)?


People like editor war threads.  Why, don't you? ;-)

  

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


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




Re: COM port setup

2003-01-16 Thread Igor Pechtchanski
On Thu, 16 Jan 2003, Paul Munden wrote:

> Hi,
>
> I'm hoping you could help me. I'm using CYGWIN to run some SMS tools and
> the tools config files need setting up to add the details of which com port
> I'm using. Basically I just need to know how I would go about creating the
> com4 object in /dev so that it does actually point at the com port as when
> installed, CYGWIN came with no /dev or any example of how I would setup the
> com object.
>
> Any help appreciated
> Paul.

Paul,

/dev is a virtual directory on Cygwin, just like /proc or /cygdrive.  You
should still be able to access /dev/com4.  You can create a real /dev
directory, but I don't think you can actually get a list of the devices
there using "ls" (not yet, at least.  Perhaps when Christopher Faylor's
mknod code comes out).  You can "ls" any individual device, though...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

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


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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Igor Pechtchanski
On Thu, 16 Jan 2003, Larry Hall (RFK Partners, Inc) wrote:

> At 12:47 PM 1/16/2003, Igor Pechtchanski wrote:
> >On Thu, 16 Jan 2003, Christopher Faylor wrote:
> >
> > > On Thu, Jan 16, 2003 at 09:43:50AM -0500, Gordon R. Keehn wrote:
> > > >The GWD editor (http://www.gwdsoft.com) is another good choice.  It
> > > >features language specific hilighting and a bunch of other great tools,
> > > >and has a C-like macro language.  I have used it to edit scripts and
> > > >makefiles while running a cygwin shell.  It's not open-source, but then
> > > >not all great software is.
> > >
> > > No, but the non-cygwin software is pretty off-topic for this list.
> > >
> > > cgf
> >
> >What I don't understand is why this thread has even come up, when at least
> >two editors available for Cygwin (vim and emacs) handle all the above
> >issues perfectly (and have many of the same features, e.g., syntax
> >highlighting)?
>
> People like editor war threads.  Why, don't you? ;-)
>
> Larry Hall  [EMAIL PROTECTED]

Me?  Nah.  O:)  Waste of time and bandwidth.  Never any conclusion,
either.
Igor
P.S. vi rulez! vi forever! ;-)
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

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


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




W2K: cvs hangs after ci and update

2003-01-16 Thread Jari Aalto+mail.linux

I have a very weird problem which is irrating. I would apreciate if
anyone had any suggesting what I could check or test - I'm 
even prepared to gdb cvs (any instructions where to start?)

Now:

-  If I connect to my sourceforge projects, the cvs behaves normally

-  If I connect to my work server, running Debian linux 3.1 unstable
   (always up to date), the prompt hangs and cvs never ends.

   [Concurrent Versions System (CVS) 1.11.2-debian (client/server)]

I mean, no matter what command I run, which connects to my work
server, it never return the prompt without hititng C-c after which
the output is:

  
  cvs [commit aborted]: received interrupt signal
  bash$ 
 
 I wonder if this has anything to do with line endings somehow?
 It does not matter what file I process with cvs (.txt, .pdf, .jpg)
 It makes no difference whether I'm in dos-bash or rxvt-bash.
 
Jari


--


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Jan 15 22:44:42 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3

Path:   H:/bin/emacs/XEmacs/bin/i686-pc-cygwin
h:/unix-root/u/bin
h:/unix-root/u/usr/bin
H:\unix-root\u\usr\local\bin
H:\unix-root\u\bin
H:\unix-root\u\usr\bin
H:\unix-root\u\usr\sbin
H:\unix-root\u\sbin
H:\unix-root\u\usr\X11R6\bin
E:\home\jaalto\bin\bat\picasso\bin
E:\home\jaalto\tmp\sforge\perl-text2html\bin
E:\home\jaalto\tmp\sforge\perl-webget\bin
E:\home\jaalto\bin\perl\my
H:\bin\dos
H:\bin\dos\misc
H:\bin\dos\other
H:\bin\dos\zip
E:\home\jaalto\bin\shell
E:\home\jaalto\elisp\tiny\bin
H:\bin\dos
H:\bin\dos
H:\bin\dos\expat
H:\bin\dos\expat\Libs
G:\Program Files\commercial\Perforce
d:\wbin\server\sql\mysql\bin
D:\wbin\server\apache
H:\bin\lang\php\php4
H:\bin\lang\php\php4\dlls
D:\java\sun\jdk-1.4.1\bin
H:\bin\oracle\ora81\bin
G:\Program Files\Oracle\jre\1.1.7\bin
G:\WINNT\system32
G:\WINNT
G:\WINNT\System32\Wbem
G:\Program Files\Resource Pro Kit\
H:\unix-root\u\usr\share\site-perl\script\misc
E:\home\jaalto\tmp\sforge\perl-dyndns\bin

SysDir: G:\WINNT\System32
WinDir: G:\WINNT

CYGWIN = `tty ntsec binmode'
HOME = `E:\home\jaalto'
PWD = `/cygdrive/e/home/jaalto'
USER = `jaalto'

ALLUSERSPROFILE = `G:\Documents and Settings\All Users.WINNT'
APPDATA = `G:\Documents and Settings\Administrator.W2KPICASSO.000\Application Data'
BASH_UNIX_ROOT_START = `h:/unix-root/u'
BLASTER = `A220 I5 D1 H5 P330  T6'
CATALINA_HOME = `D:\wbin\server\http\apache\jakarta-tomcat-4.1.7-LE-jdk14'
CLASSPATH = 
`.;d:\wbin\server\http\apache\jakarta-tomcat-4.1.7-LE-jdk14\common\lib\servlet.jar'
COMMONPROGRAMFILES = `G:\Program Files\Common Files'
COMPUTERNAME = `W2KPICASSO'
COMSPEC = `G:\WINNT\system32\cmd.exe'
CTSYN = `C:\WINDOWS'
DYNDNS_PL_CFG = `E:\home\jaalto\config\other\dyndns.conf'
EMACSDATA = `H:/bin/emacs/gnu-emacs/emacs-20.7.3/etc'
EMACSDOC = `H:/bin/emacs/gnu-emacs/emacs-20.7.3/etc'
EMACSLOADPATH = 
`H:/bin/emacs/gnu-emacs/emacs-20.7.3/site-lisp;H:/bin/emacs/gnu-emacs/emacs-20.7.3/../site-lisp;H:/bin/emacs/gnu-emacs/emacs-20.7.3/lisp;H:/bin/emacs/gnu-emacs/emacs-20.7.3/leim'
EMACSLOCKDIR = `H:/bin/emacs/gnu-emacs/emacs-20.7.3/lock'
EMACSPATH = `H:/bin/emacs/gnu-emacs/emacs-20.7.3/bin'
EMACS_DIR = `H:/bin/emacs/gnu-emacs/emacs-20.7.3'
EMAIL = `[EMAIL PROTECTED]'
EM_PARENT_PROCESS_ID = `1776'
HOMEDRIVE = `G:'
HOMEPATH = `\'
ISP_FLAG = `E:\home\jaalto\tmp\dial-ok.flag'
ISP_WEEKEND = `E:\home\jaalto\tmp\dial-weekend.flag'
JAVA_HOME = `D:\java\sun\jdk-1.4.1'
JRE = `D:\java\sun\jdk-1.4.1\jre'
LC_ALL = `en_US.iso88591'
LOGNAME = `jaalto'
LOGONSERVER = `\\W2KPICASSO'
MAILHOST = `mail.koti.tpo.fi'
MYWEBGET_PL_CFG = `E:\home\jaalto\config\mywebget\mywebget.conf'
MY_EMACS_ROOT = `h:/bin/emacs'
MY_HOME_NEWS_ROOT = `f:/home/jaalto/News'
MY_JAVA_ROOT = `D:\java\sun'
NNTPSERVER = `news.koti.tpo.fi'
NUMBER_OF_PROCESSORS = `1'
OS2LIBPATH = `G:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PERL5LIB = `/usr/share/site-perl/CPAN'
PERL5LIB_1 = `h:/unix-root/u/usr/share/site-perl/CPAN'
PGPPATH = `e:\home\jaalto\.pgp'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 2, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0502'
PROGRAMFILES = `G:\Program Files'
RCSINIT = `-x,v -zLT'
SHELL = `h:/unix-root/u/bin/bash.exe'
SHLVL = `1'
SITE_LISP_ROOT_START = `h:/unix-root/u/usr/share/site-lisp'
SITE_NEWTON_PASS = `1Takamine'
SITE_SAUNALAHTI_PASS = `nets'
SITE_TPO_PASS = `mxnfyt3a'
SITE_UTA_PASS = `1Can2jon'
SMTPSERVER = `smtp.sooninternet.net'
SYSTEMDRIVE = `G:'
SYSTEMROOT = `G:\WINNT'
TEMP = `G:\DOCUME~1

Re: cvs hangs after ci and update

2003-01-16 Thread Max Bowsher
Jari Aalto+mail.linux wrote:
> I have a very weird problem which is irrating. I would apreciate
> if anyone had any suggesting what I could check or test - I'm
> even prepared to gdb cvs (any instructions where to start?)
>
> Now:
>
> -  If I connect to my sourceforge projects, the cvs behaves
> normally
>
> -  If I connect to my work server, running Debian linux 3.1
>unstable (always up to date), the prompt hangs and cvs never
> ends.
>
>[Concurrent Versions System (CVS) 1.11.2-debian
> (client/server)]

Running cvs with the -t option would be the obvious place to start. If that
doesn't give any clues, then you might try strace.

Max.


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




HELP! How to add secrel psuedo op for pe-i386? Was Re: Support forDDWARF-2 debug info? (on Cygwin)

2003-01-16 Thread Brian Ford
On Thu, 16 Jan 2003, Brian Ford wrote:

> So, all I need to do is define ASM_OUTPUT_DWARF_OFFSET correctly in
> gcc/config/i386/cygwin.h.
>
> Does anyone have a good way to define a section relative offset in
> assembly for Cygwin, or do I need to define labels for the sections in the
> link script and use them?  That seems messy.
>
I think the "correct" way to handle this is to implement the secrel psuedo
op like IA64 does.  I only have a very vauge idea what this means.

Can a binutils guru enlighten me on what's involved here?  Thanks.

More below if your interested.

> On 16 Jan 2003, Nick Clifton wrote:
>
> > Hi Brian,
> >
> > > My current problem is that all previous DWARF2 implementations
> > > assign a VMA of zero to the .debug_* sections in the link script.
> > > This violates the PE format and makes the executable unusable.
> >
> > I saw your post about this to the binutils list.
> >
> > Does the PE format require that the debugging sections be loaded into
> > memory when the executable is invoked ?  The reason that the ELF
> > format allows the .debug sections to have a VMA of zero is that they
> > also do not have the ALLOC flag, so they are not loaded into memory.
> > (A debugger wanting to access the sections for a running process must
> > locate the executable on disk an load them/mmap them from there).
> >
> No, they do not need to be loaded into memory, and they do not have the
> ALLOC flag set.  But, the PE format requires all sections to be adjacent
> and in ascending order of VMA.  It also specifies debug sections should be
> last.  I think it just tries to load everything up to the fist non-ALLOC
> section, or so it seams.
>
After further reading, the PE format may load all sections, I just can't
tell.  But I know putting one at a VMA of 0, even if it is not marked
ALLOC or LOAD, and it is marked NEVER_LOAD and EXCLUDE, will break the
executable.

From: "Microsoft Portable Executable and Common Object File Format
Specification 6.0"

6.1.1. Debug Directory (Image Only)

Each debug directory entry identifies the location and size of a block of
debug information. The RVA specified may be 0 if the debug information is
not covered by a section header (i.e., it resides in the image file and is
not mapped into the run-time address space). If it is mapped, the RVA is
its address.

> > > I am still consulting the DWARF2 spec to see if gcc and gas are
> > > correct in generating VMA addresses.  If so, I guess I have to fix
> > > the dwarf parsing code in bfd and gdb to subtract the section base
> > > VMA.
> >
> > I do not believe that the DWARF2 spec mandates the VMA addresses of
> > the .debug sections.  It does say that their contents must be
> > contiguous, and it does specify the meaning of their contents, but it
> > does not specify the meaning of partially-complete .debug sections.
> > (ie ones attached to relocations that have not yet been resolved).
> >
> No, it does not, but I did find out it mandates section relative offsets.
> So, the dwarf parsing code is correct.  It is gcc that has taken a
> short cut.  BTW, these problems are with fully linked executables.
>
> From gcc/dwarf2asm.c:122
>
> /* Output a section-relative reference to a label.  In general this
>can only be done for debugging symbols.  E.g. on most targets with
>the GNU linker, this is accomplished with a direct reference and
>the knowledge that the debugging section will be placed at VMA 0.
>Some targets have special relocations for this that we must use.  */
>
> void
> dw2_asm_output_offset VPARAMS ((int size, const char *label,
>const char *comment, ...))
> {
>   VA_OPEN (ap, comment);
>   VA_FIXEDARG (ap, int, size);
>   VA_FIXEDARG (ap, const char *, label);
>   VA_FIXEDARG (ap, const char *, comment);
>
> #ifdef ASM_OUTPUT_DWARF_OFFSET
>   ASM_OUTPUT_DWARF_OFFSET (asm_out_file, size, label);
> #else
>   dw2_assemble_integer (size, gen_rtx_SYMBOL_REF (Pmode, label));
> #endif
>
> [snip above]
>
> > So, I think it is the case that BFD and GDB are both assuming that the
> > VMA of the sections will be zero, but that this is not required.
> >
> Actually, as stated above, bfd and gdb are correct.  The VMA should not
> be relevant as section relative offsets are specified.
>

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


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




Re: cygrunsrv and apache

2003-01-16 Thread Elfyn McBratney
Igor,

> Just for kicks, did you try starting Apache from a SYSTEM-owned shell?
> I posted instructions on how to get one to this list a couple of months
> ago.  It'd be interesting to know whether it works.  Certainly would
> eliminate some variables from the equation (i.e., the username).

I cant seem to get htdig to help me find it... It's awfully slow. I'm going
through the archives by hand starting in October '02 so I hope to find it
;-)

Elfyn
[EMAIL PROTECTED]



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




Installation

2003-01-16 Thread Scott Taylor
I seem to have the basic packages and directories installed, but I have
ended up with 2 additional directories labelled with the name of the mirror
site I used (think I attempted download more than once).

i.e.

bin
etc
ftp mirror site
ftp mirror site
home
lib
tmp
usr
var

In the ftp directories I have the same files that are in /etc/setup, but
instead of them being lst.gz files they are tar.bz2. I can use the CLI to
view the directories with "ls -l" but not run commands like "locate".

The /bin directory seems to have all the executables, and my PATH statement
has C:\cygwin\bin.

Please help

Scott


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




Re: cygrunsrv and apache

2003-01-16 Thread Max Bowsher
Elfyn McBratney wrote:
> Igor,
>
>> Just for kicks, did you try starting Apache from a SYSTEM-owned
>> shell?
>> I posted instructions on how to get one to this list a couple of
>> months ago.  It'd be interesting to know whether it works.
>> Certainly would eliminate some variables from the equation (i.e.,
>> the username).
>
> I cant seem to get htdig to help me find it... It's awfully slow. I'm
> going through the archives by hand starting in October '02 so I hope
> to find it ;-)

To do it with no extra tools, you can do run "at hh:mm /interactive cmd",
with hh:mm being the next minute. Then you just have to wait for the Task
Scheduler to give you your shell when the clock ticks over.

Alternatively, http://www.google.co.uk/search?q=cmdasuser is a convenient
little program, to accomplish this without the wait.

Once you have your cmd shell, just run bash, and go from there.

Max.


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




Command-line email?

2003-01-16 Thread Michael Hipp
Does cygwin have a simple command-line email tool to toss an email to an
SMTP server (without having to configure and run a full-taco MTA)?

Thanks,
Michael


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




Re: Command-line email?

2003-01-16 Thread dmeans
ssmtp, pine, mutt,  and there's always perl Mail::Sender.

David

> 
> Does cygwin have a simple command-line email tool to toss an email to an
> SMTP server (without having to configure and run a full-taco MTA)?
> 
> Thanks,
> Michael
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 


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




Re: Installation

2003-01-16 Thread Max Bowsher
Scott Taylor wrote:
> I seem to have the basic packages and directories installed, but I
> have ended up with 2 additional directories labelled with the name of
> the mirror site I used (think I attempted download more than once).
>
> i.e.
>
> bin
> etc
> ftp mirror site
> ftp mirror site
> home
> lib
> tmp
> usr
> var
>
> In the ftp directories I have the same files that are in /etc/setup,
> but instead of them being lst.gz files they are tar.bz2. I can use
> the CLI to view the directories with "ls -l" but not run commands
> like "locate".
>
> The /bin directory seems to have all the executables, and my PATH
> statement has C:\cygwin\bin.
>
> Please help

You are using the same directory as the package cache and install root. This
is not recommended.

Choose somewhere else as your package cache dir, and move the
ftp-mirror-site dirs there. Tell setup about this new cache dir next time
you run it. Setup stores the packages it downloads in the cache dir, in case
you want to reinstall. That is what the tar.* files are. The lst.gz files
are part of setup's accounting of what is installed - leave them alone.

Max.


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




Re: Command-line email?

2003-01-16 Thread Max Bowsher
Michael Hipp wrote:
> Does cygwin have a simple command-line email tool to toss an email to
> an SMTP server (without having to configure and run a full-taco MTA)?

I've never used it, but ssmtp might do what you want. Otherwise, exim is
*very* easy to set up.

Max.


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




Re: Command-line email?

2003-01-16 Thread Randall R Schulz
Michael,

Yes.

Apropros (man -k) is helpful if you have a package installed. With a full 
Cygwin installation:

% apropos mail
Net::SMTP (3)- Simple Mail Transfer Protocol Client
Net::SMTP (3pm)  - Simple Mail Transfer Protocol Client
exim (8) - a Mail Transfer Agent
fetchmail (1)- fetch mail from a POP, IMAP, ETRN, or ODMR-capable 
server
formail (1)  - mail (re)formatter
mbox (5) - Format for mail message storage.
mutt (1) - The Mutt Mail User Agent
mutt_dotlock (1) - Lock mail spool files.
muttrc (5)   - Configuration file for the Mutt Mail User Agent
pine (1) - a Program for Internet News and Email
procmail (1) - autonomous mail processor
procmailex (5)   - procmail rcfile examples
procmailrc (5)   - procmail rcfile
procmailsc (5)   - procmail weighted scoring technique
ssmtp, sendmail (8)  - send a message using smtp


The Cygwin package search page () can help, 
too (patience required). With a simple search for "mail" there, 72 packages 
are listed. Not all seem completely relevant: BASH? Vim? Lilypond? I don't 
know why all those hits are produced.


And what's that search engine? Oh, yeah. Google... I've heard it's good.


I use "ssmtp" with some cover scripts to send automated change notification 
mail to my partners when I do CVS updates, e.g.

Randall Schulz


At 10:45 2003-01-16, Michael Hipp wrote:
Does cygwin have a simple command-line email tool to toss an email to an
SMTP server (without having to configure and run a full-taco MTA)?

Thanks,
Michael



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




Re: cygrunsrv and apache

2003-01-16 Thread Elfyn McBratney
> To do it with no extra tools, you can do run "at hh:mm /interactive cmd",
> with hh:mm being the next minute. Then you just have to wait for the Task
> Scheduler to give you your shell when the clock ticks over.

Cheers Max and Igor, neat little trick.

I just tried starting the service as the system user and I get the same
error (1062). Again if I run apache from the command line it works...

Before I gave in to windows the last time I tried everything imaginable and
it still wouldn't budge. I'm in the same situation now :/

I'm about to dig out to my old stash of dll's and reload 1.3.12-4 which is
the last time I had apache working as a service. Is there anything I can do
to find out where the problem is other than a long old strace?

Elfyn
[EMAIL PROTECTED]



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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Christopher Faylor
On Thu, Jan 16, 2003 at 12:47:02PM -0500, Igor Pechtchanski wrote:
>On Thu, 16 Jan 2003, Christopher Faylor wrote:
>
>> On Thu, Jan 16, 2003 at 09:43:50AM -0500, Gordon R. Keehn wrote:
>> >The GWD editor (http://www.gwdsoft.com) is another good choice.  It
>> >features language specific hilighting and a bunch of other great tools,
>> >and has a C-like macro language.  I have used it to edit scripts and
>> >makefiles while running a cygwin shell.  It's not open-source, but then
>> >not all great software is.
>>
>> No, but the non-cygwin software is pretty off-topic for this list.
>>
>> cgf
>
>What I don't understand is why this thread has even come up, when at least
>two editors available for Cygwin (vim and emacs) handle all the above
>issues perfectly (and have many of the same features, e.g., syntax
>highlighting)?

Heh.  My email had this observation in it originally but then I thought it
sounded too mean.

Hey, wait a minute.  Am I slipping or something?

cgf

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




Re: cygrunsrv and apache

2003-01-16 Thread Igor Pechtchanski
On Thu, 16 Jan 2003, Elfyn McBratney wrote:

> Igor,
>
> > Just for kicks, did you try starting Apache from a SYSTEM-owned shell?
> > I posted instructions on how to get one to this list a couple of months
> > ago.  It'd be interesting to know whether it works.  Certainly would
> > eliminate some variables from the equation (i.e., the username).
>
> I cant seem to get htdig to help me find it... It's awfully slow. I'm going
> through the archives by hand starting in October '02 so I hope to find it
> ;-)
>
> Elfyn
> [EMAIL PROTECTED]

Elfyn,

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

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


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




Re: COM port setup

2003-01-16 Thread Christopher Faylor
On Thu, Jan 16, 2003 at 12:54:24PM -0500, Igor Pechtchanski wrote:
>On Thu, 16 Jan 2003, Paul Munden wrote:
>
>> Hi,
>>
>> I'm hoping you could help me. I'm using CYGWIN to run some SMS tools and
>> the tools config files need setting up to add the details of which com port
>> I'm using. Basically I just need to know how I would go about creating the
>> com4 object in /dev so that it does actually point at the com port as when
>> installed, CYGWIN came with no /dev or any example of how I would setup the
>> com object.
>>
>> Any help appreciated
>> Paul.
>
>Paul,
>
>/dev is a virtual directory on Cygwin, just like /proc or /cygdrive.  You
>should still be able to access /dev/com4.  You can create a real /dev
>directory, but I don't think you can actually get a list of the devices
>there using "ls" (not yet, at least.  Perhaps when Christopher Faylor's
>mknod code comes out).  You can "ls" any individual device, though...

mknod will allow you to create device files but it doesn't handle /dev.
When my mount changes come out, you'll be able to mount /dev anywhere
and then Chris January's /dev handler will be possible.

So maybe in six months or so, we'll have a real /dev directory possible
either as a 'devfs' type directory or as a more traditional standard
directory with a lot of 'device files' in it.

I hope to have mknod and mkfifo in 1.3.20.

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
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Igor Pechtchanski
On Thu, 16 Jan 2003, Christopher Faylor wrote:

> On Thu, Jan 16, 2003 at 12:47:02PM -0500, Igor Pechtchanski wrote:
> >On Thu, 16 Jan 2003, Christopher Faylor wrote:
> >
> >> On Thu, Jan 16, 2003 at 09:43:50AM -0500, Gordon R. Keehn wrote:
> >> >The GWD editor (http://www.gwdsoft.com) is another good choice.  It
> >> >features language specific hilighting and a bunch of other great tools,
> >> >and has a C-like macro language.  I have used it to edit scripts and
> >> >makefiles while running a cygwin shell.  It's not open-source, but then
> >> >not all great software is.
> >>
> >> No, but the non-cygwin software is pretty off-topic for this list.
> >>
> >> cgf
> >
> >What I don't understand is why this thread has even come up, when at least
> >two editors available for Cygwin (vim and emacs) handle all the above
> >issues perfectly (and have many of the same features, e.g., syntax
> >highlighting)?
>
> Heh.  My email had this observation in it originally but then I thought it
> sounded too mean.
>
> Hey, wait a minute.  Am I slipping or something?
> cgf

Nah, just avoiding predictability...  I mean, everyone *expects* you to
sound mean... ;-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

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


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




Re: cygrunsrv and apache

2003-01-16 Thread Max Bowsher
Elfyn McBratney wrote:
>> To do it with no extra tools, you can do run "at hh:mm /interactive
>> cmd", with hh:mm being the next minute. Then you just have to wait
>> for the Task Scheduler to give you your shell when the clock ticks
>> over.
>
> Cheers Max and Igor, neat little trick.
>
> I just tried starting the service as the system user and I get the
> same error (1062). Again if I run apache from the command line it
> works...

It shouldn't matter who you issue the service start request as.

Did you try running apache from the SYSTEM command line?

I don't know much about apache, but when in similar circumstances with ssh,
I turn debugging up to maximum, and look at /var/log/.log.
Apache has its own logs that it might be worthwhile to look in as well.

Max.


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




gcc installation problem - entry point not found

2003-01-16 Thread Steve Marks
I just installed gcc as part of a new cygwin installation. I did a very
simple test of gcc (compiling "Hello world") to see if it works. I get a
error pop up. The header says "cc1.exe - Entry Point Not Found". The
message is "The procedure entry point putc_unlocked could not be located
in the dynamic link library cygwin1.dll.". Obviuosly something is wrong
with my installation. Can anyone help?
Thanks


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




Re: gcc installation problem - entry point not found

2003-01-16 Thread Max Bowsher
Steve Marks wrote:
> I just installed gcc as part of a new cygwin installation. I did a
> very simple test of gcc (compiling "Hello world") to see if it works.
> I get a error pop up. The header says "cc1.exe - Entry Point Not
> Found". The message is "The procedure entry point putc_unlocked could
> not be located in the dynamic link library cygwin1.dll.". Obviuosly
> something is wrong with my installation. Can anyone help?
> Thanks

You've got an old cygwin1.dll somewhere on your system.
Remove it.

Max.


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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread -
It seems that if there's no editor for modifying
bootup scripts and if there's no alternative, the
editpad-lite editor for text end-of-line formatting
was emphasized in my original message, however once a
cygwin has been initialized i'd set my pointers up for
no other means than encouraging users to bend
themselves to vim and emacs...don't get me wrong!
cygwin does a great job preserving the cr-lf issues
while crossing windows partitions to edit text files
from within cygwin...i use vim most of the time on my
textfiles (after I manually setup cygwin) and so I
hope you too don't have to rely on non-cygwin tools...

asher


 --- "Larry Hall (RFK Partners, Inc)" <[EMAIL PROTECTED]>
wrote: > At 12:47 PM 1/16/2003, Igor Pechtchanski
wrote:
> >On Thu, 16 Jan 2003, Christopher Faylor wrote:
> >
> > > On Thu, Jan 16, 2003 at 09:43:50AM -0500, Gordon
> R. Keehn wrote:
> > > >The GWD editor (http://www.gwdsoft.com) is
> another good choice.  It
> > > >features language specific hilighting and a
> bunch of other great tools,
> > > >and has a C-like macro language.  I have used
> it to edit scripts and
> > > >makefiles while running a cygwin shell.  It's
> not open-source, but then
> > > >not all great software is.
> > >
> > > No, but the non-cygwin software is pretty
> off-topic for this list.
> > >
> > > cgf
> >
> >What I don't understand is why this thread has even
> come up, when at least
> >two editors available for Cygwin (vim and emacs)
> handle all the above
> >issues perfectly (and have many of the same
> features, e.g., syntax
> >highlighting)?
> 
> 
> People like editor war threads.  Why, don't you? ;-)
> 
>   
> 
> Larry Hall 
> [EMAIL PROTECTED]
> RFK Partners, Inc. 
> http://www.rfk.com
> 838 Washington Street   (508)
> 893-9779 - RFK Office
> Holliston, MA 01746 (508)
> 893-9889 - FAX
> 
> 
> --
> Unsubscribe info: 
> http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>  

__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Christopher Faylor
On Thu, Jan 16, 2003 at 03:43:31PM -0500, - wrote:
>It seems that if there's no editor for modifying bootup scripts

I don't know what a "bootup script" is, but the sequence of events
should be:

  run setup.exe
  install base installation + editor of your choice
  use editor

If you think there is more to it than that, then you are probably
missing something.

cgf

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




why do i get duplicate messages from this mailinglist??

2003-01-16 Thread -
I think someone should check this out, instead of 33
messages from this mailing list that arrives in my
mailbox, an additional 33 duped arrive. My guess is
that the the digest feature would surpass this, i'll
try and see if this helps...


-jagg


__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: cygrunsrv and apache

2003-01-16 Thread Elfyn McBratney
> Did you try running apache from the SYSTEM command line?

Yeah, same as usual... Working!?!

> I don't know much about apache, but when in similar circumstances with
ssh,
> I turn debugging up to maximum, and look at /var/log/.log.
> Apache has its own logs that it might be worthwhile to look in as well.

I don't think there's a debug command-line options, and if there is it's
certainly not documented very well :( BTW I was checking the service log for
apache (/var/log/apache.log) after every attempted start and it is still
empty and the error_log doesn't doesn't contain anything but the normal
startup/shutdown messages.

Elfyn
[EMAIL PROTECTED]



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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread -
actually there are problems with that, i've noticed
and i'm posting them...so that's why i did things
manually and having to rely on an exterior editor if
you read my original message carefully.

jagg

 --- Christopher Faylor <[EMAIL PROTECTED]> wrote: > On
Thu, Jan 16, 2003 at 03:43:31PM -0500, - wrote:
> >It seems that if there's no editor for modifying
> bootup scripts
> 
> I don't know what a "bootup script" is, but the
> sequence of events
> should be:
> 
>   run setup.exe
>   install base installation + editor of your choice
>   use editor
> 
> If you think there is more to it than that, then you
> are probably
> missing something.
> 
> cgf
> 
> --
> Unsubscribe info: 
> http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>  

__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: cygrunsrv and apache

2003-01-16 Thread Max Bowsher
Elfyn McBratney wrote:
>> Did you try running apache from the SYSTEM command line?
>
> Yeah, same as usual... Working!?!
>
>> I don't know much about apache, but when in similar circumstances
>> with ssh, I turn debugging up to maximum, and look at
>> /var/log/.log. Apache has its own logs that it might be
>> worthwhile to look in as well.
>
> I don't think there's a debug command-line options, and if there is
> it's certainly not documented very well :( BTW I was checking the
> service log for apache (/var/log/apache.log) after every attempted
> start and it is still empty and the error_log doesn't doesn't contain
> anything but the normal startup/shutdown messages.

I have just set up apache on my machine to see if I could reproduce this.
This is what I did:

Install apache from setup.exe
$ cygrunsrv -I apache -p /usr/sbin/httpd -a -k -d "CYGWIN apache"
(I have a global CYGWIN="binmode tty ntsec" in the system environment)
Edit httpd.conf:
Set ServerName to silence a warning
Set User and Group to "#18" (Yes, I'm lazy, and no, I'm not going to be
leaving this running!)
$ cygrunsrv -S apache
View the Apache test page in Internet Explorer. It works!

(I did get a "Service has not started" at one point, but that was when I
made a typo in httpd.conf. Info was dumped to /var/log/apache.log)

I don't see how this simple success story will help you much, apart from
confirming that it is possible with dll 1.3.18-1.

Max.


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




Re: using text files unix<->windows<-> macintosh tip

2003-01-16 Thread Christopher Faylor
On Thu, Jan 16, 2003 at 04:46:48PM -0500, - wrote:
>actually there are problems with that, i've noticed and i'm posting
>them...so that's why i did things manually and having to rely on an
>exterior editor if you read my original message carefully.

I read your original message.  You seemed to be working under the
impression that cygwin needs "startup scripts" in order for an editor to
work.  That is not the case.

If you are finding problems then they are either cockpit errors on your
part or there are problems in the installation which need to be
corrected.

Think about it.  What you're saying is essentially "I bought a new car,
brought it home, and then had to take a bus to go buy a new key to make
it run.  This is what everybody who buys a car has to do."

It doesn't make any sense.

cgf

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




editing automount points via registry question

2003-01-16 Thread -
i think there was an error when i saw key /usr/bin
with the registry value of /bin, i guess i
decided to post this here to mention about the
automounting feature i don't see quite oftenly talked
about...editing the registry is repelling since you'll
have to search for two spots for cygwin-> (find
'cygwin' using this text string works good...)
- one for root section, the other for X11 font paths, 
- I'm not sure if there's another way to tell cygwin
where the root path is, anyone? (CYGWIN_ROOT ?)
- Does cygwin always need at least these two points in
the registry?

- Also i noticed that issuing 'mount' after using my
custom registry values for cygwin paths, tells me that
any relative symbolinks or relative paths of the same
pathnames that are on fat or ntfs records are
irrelevant, the registry settings would override them,
more appropriate 'mount' typed in cygwin after the
registry settings would show that they're mounted
automatically and I assume that the 'mount' features
of cygwin ovverides them. a silly question, but is
this safe, or should i resort more closely with cygwin
scripts using mount..?

jagg


__ 
Post your free ad now! http://personals.yahoo.ca

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




Re: editing automount points via registry question

2003-01-16 Thread Max Bowsher
- wrote:
> i think there was an error when i saw key /usr/bin
> with the registry value of /bin

No error. This is intentional.

>  i guess i
> decided to post this here to mention about the
> automounting feature i don't see quite oftenly talked
> about...

What automounting feature?

> editing the registry is repelling since you'll
> have to search for two spots for cygwin-> (find
> 'cygwin' using this text string works good...)

DON'T EDIT THE REGISTRY. The mount/umount commands are there for a reason!

> - one for root section, the other for X11 font paths,
> - I'm not sure if there's another way to tell cygwin
> where the root path is, anyone? (CYGWIN_ROOT ?)

 Do you mean the root mount? i.e. "/" ? As in this line of mount output:
M:\cygwin on / type system (binmode)

> - Does cygwin always need at least these two points in
> the registry?

Which 2 points? It's not clear what you are asking.

> - Also i noticed that issuing 'mount' after using my
> custom registry values for cygwin paths, tells me that
> any relative symbolinks or relative paths of the same
> pathnames that are on fat or ntfs records are
> irrelevant, the registry settings would override them,
> more appropriate 'mount' typed in cygwin after the
> registry settings would show that they're mounted
> automatically and I assume that the 'mount' features
> of cygwin ovverides them. a silly question, but is
> this safe, or should i resort more closely with cygwin
> scripts using mount..?

Parse error !
If you want your questions to be answered, I suggest you make them
understandable!

Max.


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




CVS problem

2003-01-16 Thread Frédéric L. W. Meunier
I don't know if it's a problem with the mICQ repository, but
the following shows up on latest Cygwin:

$ cvs -d :pserver:[EMAIL PROTECTED]:/var/lib/cvs up
? prepare.new
cvs server: cannot open directory /var/lib/cvs/micq/doc/html:
No such file or directory
cvs server: skipping directory doc/html

and it doesn't return to the shell prompt.

The same if there were any updates.

$ ps

I1540119615404000 1004 20:35:34 /usr/bin/cvs

It works fine with other repositories.

Rico: It used to work before the server move you performed.

-- 
0@pervalidus.{net, {dyndns.}org}

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




Re: editing automount points via registry question

2003-01-16 Thread Igor Pechtchanski
On Thu, 16 Jan 2003, you (whoever you are) wrote:

> i think there was an error when i saw key /usr/bin with the registry
> value of /bin, i guess i decided to post this here to mention
> about the automounting feature i don't see quite oftenly talked about...
> editing the registry is repelling since you'll have to search for two
> spots for cygwin-> (find 'cygwin' using this text string works good...)

If I understood your question correctly, this is normal behavior.  Under
Cygwin, /usr/bin is the same as /bin.  ISTR that the User Guide has some
reasoning for this.

> - one for root section, the other for X11 font paths,
> - I'm not sure if there's another way to tell cygwin where the root path
>   is, anyone? (CYGWIN_ROOT ?)

Not that I know of.  Cygwin looks in the mount table (which is currently
in the Windows registry, but may not stay there) to find out where its
root is.

> - Does cygwin always need at least these two points in the registry?

It needs at least three: "/", "/usr/bin", and "/usr/lib".  The X11 font
mount is there to ensure binary mode (and thus is only needed in case you
mounted your root as text).  The only "automounts" are the /cygdrive
pseudo-mounts for the various drive letters.

> - Also i noticed that issuing 'mount' after using my custom registry
> values for cygwin paths, tells me that any relative symbolinks or
> relative paths of the same pathnames that are on fat or ntfs records are
> irrelevant, the registry settings would override them, more appropriate
> 'mount' typed in cygwin after the registry settings would show that
> they're mounted automatically and I assume that the 'mount' features of
> cygwin ovverides them. a silly question, but is this safe, or should i
> resort more closely with cygwin scripts using mount..?
>
> jagg

It's generally a good idea when managing Cygwin applications to use the
provided tools or configuration scripts.  If you do that, things are
generally expected to work OOTB.  Also take care to read the relevant
*readme and *howto files.  Use the "mount" command to manipulate the mount
table; use "setup.exe" to install Cygwin.

It is *not* safe to use alternate methods, even if they seem appropriate
(e.g., do *not* use "cd / && tar -xzf tarball" to install stuff).  You
may, of course, do so, but be prepared when any complaints about stuff not
working are met with the question "Did you use appropriate Cygwin tools?".
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

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


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




Re: Installation

2003-01-16 Thread Max Bowsher
Please keep replies on the mailing list.

Scott Taylor wrote:
> OK thanks. But what is the problem with running certain commands like
> "locate"? The bin directory is in my PATH.

What is what problem? I'm not psychic.

> Also, can I assume that because there is the postgresql.exe
> application in /bin, that PostgreSQL has been installed. I never
> built it with cygipc as instructed.

PostgreSQL is a bit of an exception. It is the only package which depends on
software outside the main Cygwin distro. You *need* cygipc for postgresql to
work.

Max.


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




Re: editing automount points via registry question

2003-01-16 Thread Christopher Faylor
On Thu, Jan 16, 2003 at 05:30:45PM -0500, - wrote:
>i think there was an error when i saw key /usr/bin with the registry
>value of /bin,

You know how I keep mentioning "cockpit errors" and "missing something"?

Well...

cgf

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




Re: How can I abbreviate /cygdrive/DRIVELETTER ?

2003-01-16 Thread Andrew DeFaria
[EMAIL PROTECTED] wrote:


Hi everyone!

As I often access different drives from within the bash I'm wondering 
if there's a quicker way to get on, say, drive l (a network drive) 
than entering 'cd /cygdrive/l'? I alias'd '/cygdrive/l' to 'l' which 
works fine for cd, but not for commands like chmod, cp, mv etc. Among 
others I'd like to use the automatic command line completion which 
doesn't work for /cygdrive/... either.
Any suggestions?

I've long since changed the cygdrive prefix to /dev. Seemed like a 
natural place to put it and it's fairly short. Never encountered a problem.

However for cd'ing to a common location I tend to use environment 
variables such as:

$ export src="//server/share/path/to/src/file"

Then do things like cd $src. Normally, important areas are set up in my 
startup scripts. The nice thing is that if you wanted to say "more" a 
file that works to, with file name completion as in:

$ more $src/a/sub

Changes to

$ more //server/share/path/to/src/file/a/subdirectory.

Oh, and I also tend to use UNC names instead of mounting drive letters. 
So even if one did

$ net use L: server\\share\\path\\to\\src\\file

I would still tend to use the UNC name of 
//server/share/path/to/src/file or $src. One reason for this is that one 
persons L: drive may be another server/share all together on another 
desktop machine. With UNC names there is no ambiguity.

Note that while file name completion doesn't work on just a /cydri 
it will work after /cygdrive. Similarly filename completion does not 
work on //server/sha but if you type //server/share/pa it will 
start working. IOW you need to get past the server and share portions 
fully before file name completion is operative.



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



Re: nfs-server questions

2003-01-16 Thread Brendan J Simon

My mistake.  It looks like symlinks are followed.  It's just that the 
one I tested actually pointed to /cygdrive/c which is not followed 
correctly.

Cheers,
Brendan Simon.


Brendan J Simon wrote:

I've installed Universal  NFS Server and am very happy with it.
I have noticed the follwing "features"

1) Symbolic links aren't followed

2) /cygdrive/c is not accessible.

Are these features likely to be fixed soon?
Any ideas on how to solve them.

Many thanks,
Brendan Simon.






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




Re: RESOLVED: Using gcc to build a DLL discovered and linked at runtime

2003-01-16 Thread Jim Kleckner
After carefully inspecting the symbols from
generated dlls and dlls provided by TradeStation,
I found that symbols occurred with and without the
@decorations.  e.g. PPI@4 and PPI.

Adding -Wl,--add-stdcall-alias to the gcc line,
all worked fine.

Could this generally be a requirement for dlls
that are opened at runtime in a fashion similar to
dlopen?  If so, then some FAQ annotation would be
in order here:
 http://www.cygwin.com/cygwin-ug-net/dll.html

Jim


Jim Kleckner wrote:


 I'm using a program called TradeStation that allows
specifying a path name to a DLL, specifying the
signature of a function to call, and then
loading/calling that function.  The documentation is
very sparse for how to do this and probably built in
some way that depends in an obscure way on having a
Microsoft compiler such as VisualC++ or VisualBasic to
work properly.  I am trying to use GCC under cygwin to
create a DLL that will dynamically open and running
into roadblocks.

A simple test file test.cpp:
 #include "windef.h"
 extern int __stdcall PPI(int);

 __declspec(dllexport) int __stdcall PPI(int notused)
 {
 return 1;
 }

commands used:
 gcc -shared -mno-cygwin -Wl,--export-dynamic 
-Wl,--export-all-symbols  -c vmi.cpp
 dlltool -e exports.o vmi.o -l vmi.lib
 gcc -shared -mno-cygwin -Wl,--export-dynamic 
-Wl,--export-all-symbols  -shared exports.o vmi.o -o vmi.dll

The program just says "can't load user function".

I have tried various combinations of commands but am
wondering if there is something I'm missing.  I'm
hoping to avoid getting out the ancient copy of VC5
from my shelf...

I will append cyg

Thanks - Jim


Resources for future travelers down this path:

I have looked at a variety of sources describing
using cygwin/gcc tools to build DLLs.

The manual is here:
 http://www.cygwin.com/cygwin-ug-net/dll.html

This message contains a bug report with a complex
example that is interesting to examine:
 http://www.cygwin.com/ml/cygwin/2000-05/msg00663.html

This one describes a "ld/dlltool/ld/dlltool/ld trick":
 http://www.cygwin.com/ml/cygwin/2002-08/msg01002.html
It suggests that what I am trying to do should be
possible by just using the -shared flag.

Christopher Faylor indicates that the cygwin dll
cannot be linked at runtime because it is broken:
 http://www.cygwin.com/ml/cygwin/2002-08/msg01042.html

The dllhelpers stuff is also useful:
 http://www.neuro.gatech.edu/users/cwilson/cygutils/dll-stuff/index.html


[snip]




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




build php4.3.0 as a module for apache_1.3.27 (Cygwin) fail

2003-01-16 Thread sailsoft
Hallo,
I've try to build php4.3.0 as a module for apache_1.3.27 (Cygwin) as below:

cd apache-1.3.27
./configure
cd php-4.3.0
./configure --with-apache=/apache-1.3.27
make

but make fail, I get the error: 

cli.lo -lcrypt -lm -lcrypt  -o sapi/cli/php.exe
ext/xml/xml.o(.text+0xad5): In function `zm_info_xml':
/php-4.3.0/ext/xml/xml.c:233: undefined reference to `__imp__php_XML_ExpatVersio
n'
ext/xml/xml.o(.text+0xdbb): In function `xml_parser_dtor':
/php-4.3.0/ext/xml/xml.c:297: undefined reference to `__imp__php_XML_ParserFree'

ext/xml/xml.o(.text+0x2516): In function `zif_xml_parser_create':
/php-4.3.0/ext/xml/xml.c:1043: undefined reference to `__imp__php_XML_ParserCrea
te'
ext/xml/xml.o(.text+0x2537):/php-4.3.0/ext/xml/xml.c:1047: undefined reference t
o `__imp__php_XML_SetUserData'
ext/xml/xml.o(.text+0x275b): In function `zif_xml_parser_create_ns':
/php-4.3.0/ext/xml/xml.c:1099: undefined reference to `__imp__php_XML_ParserCrea
teNS'
ext/xml/xml.o(.text+0x277f):/php-4.3.0/ext/xml/xml.c:1103: undefined reference t
o `__imp__php_XML_SetUserData'
ext/xml/xml.o(.text+0x2afa): In function `zif_xml_set_element_handler':
/php-4.3.0/ext/xml/xml.c:1163: undefined reference to `__imp__php_XML_SetElement
Handler'
ext/xml/xml.o(.text+0x2bc9): In function `zif_xml_set_character_data_handler':
/php-4.3.0/ext/xml/xml.c:1182: undefined reference to `__imp__php_XML_SetCharact
erDataHandler'
ext/xml/xml.o(.text+0x2c99): In function `zif_xml_set_processing_instruction_han
dler':
/php-4.3.0/ext/xml/xml.c:1201: undefined reference to `__imp__php_XML_SetProcess
ingInstructionHandler'
ext/xml/xml.o(.text+0x2d69): In function `zif_xml_set_default_handler':
/php-4.3.0/ext/xml/xml.c:1219: undefined reference to `__imp__php_XML_SetDefault
Handler'
ext/xml/xml.o(.text+0x2e39): In function `zif_xml_set_unparsed_entity_decl_handl
er':
/php-4.3.0/ext/xml/xml.c:1238: undefined reference to `__imp__php_XML_SetUnparse
dEntityDeclHandler'
ext/xml/xml.o(.text+0x2f09): In function `zif_xml_set_notation_decl_handler':
/php-4.3.0/ext/xml/xml.c:1256: undefined reference to `__imp__php_XML_SetNotatio
nDeclHandler'
ext/xml/xml.o(.text+0x2fd9): In function `zif_xml_set_external_entity_ref_handle
r':
/php-4.3.0/ext/xml/xml.c:1274: undefined reference to `__imp__php_XML_SetExterna
lEntityRefHandler'
ext/xml/xml.o(.text+0x30a9): In function `zif_xml_set_start_namespace_decl_handl
er':
/php-4.3.0/ext/xml/xml.c:1293: undefined reference to `__imp__php_XML_SetStartNa
mespaceDeclHandler'
ext/xml/xml.o(.text+0x3179): In function `zif_xml_set_end_namespace_decl_handler
':
/php-4.3.0/ext/xml/xml.c:1312: undefined reference to `__imp__php_XML_SetEndName
spaceDeclHandler'
ext/xml/xml.o(.text+0x3274): In function `zif_xml_parse':
/php-4.3.0/ext/xml/xml.c:1340: undefined reference to `__imp__php_XML_Parse'
ext/xml/xml.o(.text+0x3495): In function `zif_xml_parse_into_struct':
/php-4.3.0/ext/xml/xml.c:1375: undefined reference to `__imp__php_XML_SetDefault
Handler'
ext/xml/xml.o(.text+0x34b1):/php-4.3.0/ext/xml/xml.c:1376: undefined reference t
o `__imp__php_XML_SetElementHandler'
ext/xml/xml.o(.text+0x34c5):/php-4.3.0/ext/xml/xml.c:1377: undefined reference t
o `__imp__php_XML_SetCharacterDataHandler'
ext/xml/xml.o(.text+0x34ed):/php-4.3.0/ext/xml/xml.c:1379: undefined reference t
o `__imp__php_XML_Parse'
ext/xml/xml.o(.text+0x361a): In function `zif_xml_get_error_code':
/php-4.3.0/ext/xml/xml.c:1397: undefined reference to `__imp__php_XML_GetErrorCo
de'
ext/xml/xml.o(.text+0x36a7): In function `zif_xml_error_string':
/php-4.3.0/ext/xml/xml.c:1412: undefined reference to `__imp__php_XML_ErrorStrin
g'
ext/xml/xml.o(.text+0x37aa): In function `zif_xml_get_current_line_number':
/php-4.3.0/ext/xml/xml.c:1431: undefined reference to `__imp__php_XML_GetCurrent
LineNumber'
ext/xml/xml.o(.text+0x383a): In function `zif_xml_get_current_column_number':
/php-4.3.0/ext/xml/xml.c:1447: undefined reference to `__imp__php_XML_GetCurrent
ColumnNumber'
ext/xml/xml.o(.text+0x38ca): In function `zif_xml_get_current_byte_index':
/php-4.3.0/ext/xml/xml.c:1463: undefined reference to `__imp__php_XML_GetCurrent
ByteIndex'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php.exe] Error 1

when you know the solution, please help me.
thanks.
regards,

sail 


-- 
freenet Email-Office: 
E-Mail, Kalender und 30 MB virtuelle Festplatte. 
Jetzt testen unter www.freenet.de/tipp/emo


Bug in enscript-1.6.3/states/hl/perl.st

2003-01-16 Thread Morris M. Siegel

The following is a copy of a bug report I e-mailed
to [EMAIL PROTECTED]  It is not a cygwin problem
per se, but is relevant to cygwin since it includes
the enscript-1.6.3 package.

-- Forwarded message --
Date: Thu, 16 Jan 2003 19:45:12 -0500 (EST)
From: Morris M. Siegel <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Bug in hl/perl.st

To whom it may concern:

There is a typo in enscript-1.6.3/states/hl/perl.st (which in
cygwin is installed as /usr/share/enscript/hl/perl.st):
line 9, which currently reads
state perl_pod extends Highligth
should obviously be corrected to
state perl_pod extends Highlight

I made this correction to my own copy and the error message
states: undefined super state `Highligth'
disappeared.

-- Morris M. Siegel
   [EMAIL PROTECTED]
   212/999-5636


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




[ADMINISTRIVIA] Saturday down time for gcc.gnu.org/sources.redhat.com/cygwin.com/sourceware.org

2003-01-16 Thread Christopher Faylor
The systems mentioned in the subject (which are all of the same machine
of course) will be down on Saturday.  The IP address will be changing and
due to a change in location and a change to a bigger beefier system.

Expected downtime starts:

  Sat 2003-01-18 18:00 GMT

  Sat 2003-01-18 10:00 US/Pacific
  Sat 2003-01-18 11:00 US/Arizona
  Sat 2003-01-18 11:00 US/Mountain
  Sat 2003-01-18 12:00 US/Central
  Sat 2003-01-18 13:00 US/Eastern
  Sat 2003-01-18 13:00 Canada/Eastern
  Sat 2003-01-18 16:00 America/Sao_Paulo
  Sat 2003-01-18 18:00 Europe/London
  Sat 2003-01-18 19:00 Europe/Berlin
  Sat 2003-01-18 13:00 Australia/Victoria
  Sat 2003-01-18 13:00 Australia/Sydney

The system will be down for *at least* three hours.

Please do not send me "Is it up yet?" questions.  The system should be
up on Monday, at the very latest..  If you have problems after that then
please send email to [EMAIL PROTECTED]

cgf

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




Re: build php4.3.0 as a module for apache_1.3.27 (Cygwin) fail

2003-01-16 Thread Elfyn McBratney
The only way you can build php-apache OOTB (well sort of) is by using the
sources provided with cygwin, downloaded/installed by setup.exe. The source
package contains a few patches and a utility to create the dll which the
stock release (4.3.0) does not contain.

> cd apache-1.3.27
> ./configure
> cd php-4.3.0
> ./configure --with-apache=/apache-1.3.27
> make

The undefined references below are because you don't have libxml installed.
FYI xml support is now enabled by default.

>
> but make fail, I get the error:
>
> [...]
> ext/xml/xml.o(.text+0x38ca): In function `zif_xml_get_current_byte_index':
> /php-4.3.0/ext/xml/xml.c:1463: undefined reference to
`__imp__php_XML_GetCurrent
> ByteIndex'
> collect2: ld returned 1 exit status
> make: *** [sapi/cli/php.exe] Error 1

Elfyn
[EMAIL PROTECTED]



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




gcc-2 ..../bin/as.exe: Permission denied

2003-01-16 Thread Brendan Kosowski

Hi,

I have just installed cygwin on win98se using setup.exe. I selected gcc-2
as the only extra on top of the base install. I told setup that I am the
only user and I use unix style text files.

When I run "Cygwin Bash Shell" and try to compile a C program in my home
dir (eg. "gcc-2 -o mytest.exe mytest.c ) I get the following error
message:

gcc-2: installation problem, cannot exec
'/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/
bin/as.exe': Permission denied



Thanks for any help.


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




RE: gcc-2 ..../bin/as.exe: Permission denied

2003-01-16 Thread Robert McNulty Junior
Get binutils.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Brendan Kosowski
Sent: Thursday, January 16, 2003 11:35 PM
To: [EMAIL PROTECTED]
Subject: gcc-2 /bin/as.exe: Permission denied



Hi,

I have just installed cygwin on win98se using setup.exe. I selected gcc-2
as the only extra on top of the base install. I told setup that I am the
only user and I use unix style text files.

When I run "Cygwin Bash Shell" and try to compile a C program in my home
dir (eg. "gcc-2 -o mytest.exe mytest.c ) I get the following error
message:

gcc-2: installation problem, cannot exec
'/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/
bin/as.exe': Permission denied



Thanks for any help.


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




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




Re: gcc-2 ..../bin/as.exe: Permission denied

2003-01-16 Thread Christopher Faylor
On Fri, Jan 17, 2003 at 04:35:15PM +1100, Brendan Kosowski wrote:
>I have just installed cygwin on win98se using setup.exe. I selected gcc-2
>as the only extra on top of the base install. I told setup that I am the
>only user and I use unix style text files.
>
>When I run "Cygwin Bash Shell" and try to compile a C program in my home
>dir (eg. "gcc-2 -o mytest.exe mytest.c ) I get the following error
>message:
>
>gcc-2: installation problem, cannot exec
>'/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/
>bin/as.exe': Permission denied
>
>Thanks for any help.

Check out http://cygwin.com/bugs.html, specifically the part about sending
cygcheck output.

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
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: gcc-2 ..../bin/as.exe: Permission denied

2003-01-16 Thread Brendan Kosowski


I have binutils, when I chose gcc-2 it included it (as well as
mingw-runtime) in the devel packages. All have been installed.


On Thu, 16 Jan 2003, Robert McNulty Junior wrote:

> Get binutils.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Brendan Kosowski
> Sent: Thursday, January 16, 2003 11:35 PM
> To: [EMAIL PROTECTED]
> Subject: gcc-2 /bin/as.exe: Permission denied
> 
> 
> 
> Hi,
> 
> I have just installed cygwin on win98se using setup.exe. I selected gcc-2
> as the only extra on top of the base install. I told setup that I am the
> only user and I use unix style text files.
> 
> When I run "Cygwin Bash Shell" and try to compile a C program in my home
> dir (eg. "gcc-2 -o mytest.exe mytest.c ) I get the following error
> message:
> 
> gcc-2: installation problem, cannot exec
> '/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/
> bin/as.exe': Permission denied
> 
> 
> 
> Thanks for any help.
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 
> 
> 
> 


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




please try the latest snapshot

2003-01-16 Thread Christopher Faylor
The latest snapshot should fix some /etc handling problems (thanks to
ideas and code from Pierre Humblet), like the dreaded BSOD.  It may also
solve the "pipes are slow" problem.  There are also all of the fixes
accumulated since 1.3.18, of course.

If I don't hear too many whines about this snapshot, it may become
1.3.19.

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
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: gcc-2 ..../bin/as.exe: Permission denied

2003-01-16 Thread Brendan Kosowski

Some more info to add...

When I first install Cygwin, gcc-2 works O.K., but when I re-boot my P.C.
and try again it gets the error message mentioned previously.


Regards...

--

On Thu, 16 Jan 2003, Robert McNulty Junior wrote:

> Get binutils.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Brendan Kosowski
> Sent: Thursday, January 16, 2003 11:35 PM
> To: [EMAIL PROTECTED]
> Subject: gcc-2 /bin/as.exe: Permission denied
> 
> 
> 
> Hi,
> 
> I have just installed cygwin on win98se using setup.exe. I selected gcc-2
> as the only extra on top of the base install. I told setup that I am the
> only user and I use unix style text files.
> 
> When I run "Cygwin Bash Shell" and try to compile a C program in my home
> dir (eg. "gcc-2 -o mytest.exe mytest.c ) I get the following error
> message:
> 
> gcc-2: installation problem, cannot exec
> '/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/
> bin/as.exe': Permission denied
> 
> 
> 
> Thanks for any help.
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 
> 
> 
> 


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




Re: please try the latest snapshot

2003-01-16 Thread Eugene Rosenzweig
It does fix the slow pipes on my machine when seti@home is running.

- Original Message -
From: "Christopher Faylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 4:52 PM
Subject: please try the latest snapshot


> The latest snapshot should fix some /etc handling problems (thanks to
> ideas and code from Pierre Humblet), like the dreaded BSOD.  It may also
> solve the "pipes are slow" problem.  There are also all of the fixes
> accumulated since 1.3.18, of course.
>
> If I don't hear too many whines about this snapshot, it may become
> 1.3.19.
>
> 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
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>


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




Re: please try the latest snapshot

2003-01-16 Thread Christopher Faylor
On Fri, Jan 17, 2003 at 05:54:57PM +1100, Eugene Rosenzweig wrote:
>It does fix the slow pipes on my machine when seti@home is running.

Ok, thanks.

If this is true to form, the next message will be from someone who
indicates that the snapshot either shows no change or makes things
worse.

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
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Command-line email?

2003-01-16 Thread Dr. Volker Zell
> "dmeans" == dmeans  <[EMAIL PROTECTED]> writes:

dmeans> ssmtp, pine, mutt,  and there's always perl Mail::Sender.
dmeans> David

>> 
>> Does cygwin have a simple command-line email tool to toss an email to an
>> SMTP server (without having to configure and run a full-taco MTA)?
>> 
>> Thanks,
>> Michael

And there's also nail.

http://omnibus.uni-freiburg.de/~gritter/

>From the web page:

Nail is a mail user agent derived from Berkeley Mail 8.1. 
It is intended to provide the functionality of the POSIX.2 
mailx command with additional support for MIME messages, POP3 and SMTP. 
In recent system environments, nail is Unicode/UTF-8 capable. It 
further contains some minor enhancements like the ability to set 
a From: Address.

I have it working here.

Ciao
  Volker


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




Re: Installation

2003-01-16 Thread Scott Taylor
As I have previously mentioned, I can run commands like "ls -l" but not ones
like "locate". These commands both seem to appear in /bin, which is in my
PATH.

What how is this possible and what can I do?

Scott


- Original Message -
From: "Max Bowsher" <[EMAIL PROTECTED]>
To: "Scott Taylor" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 11:00 PM
Subject: Re: Installation


> Please keep replies on the mailing list.
>
> Scott Taylor wrote:
> > OK thanks. But what is the problem with running certain commands like
> > "locate"? The bin directory is in my PATH.
>
> What is what problem? I'm not psychic.
>
> > Also, can I assume that because there is the postgresql.exe
> > application in /bin, that PostgreSQL has been installed. I never
> > built it with cygipc as instructed.
>
> PostgreSQL is a bit of an exception. It is the only package which depends
on
> software outside the main Cygwin distro. You *need* cygipc for postgresql
to
> work.
>
> Max.
>
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>


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