Re: Running cygwin built programs in Windows XP

2002-12-22 Thread Gareth Pearce

This is a BAD idea (TM).

Gareth

> Just stick cygwin1.dll in your windows\system32 folder.
>
> -Original Message-
> From: John Seeliger [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, December 21, 2002 6:41 PM
> To: [EMAIL PROTECTED]
> Subject: Running cygwin built programs in Windows XP
>
> How do I run a program that I built with gcc under Cygwin in Windows?
When
> I try to run them, it says it can't find cygwin1.dll.
>
> --
> John Seeliger  Limited but increasing content
> [EMAIL PROTECTED]   
> [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/
>

--
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: permission denied for NTFS network shares

2002-12-22 Thread Chris January
> I have some problem using rsh under cygwin.
> It works fine for local disks and local disks of remote computers
> (both UNIX and NT/2000).
>
> But if I am trying to access NTFS network share (that is on file
> server), I receive "permission denied".
>
> Here is an example:
>
>  From unix machine:
> ==
> ==
>  > rsh genadyv --- (genadyv is Window2000 machine with cygwin)
> Fanfare!!!
> You are successfully logged in to this server!!!
>
> genadyv@GENADYV ~
> $ ls -d //mystisun8/vol1/tmp - unix machine
> //mystisun8/vol1/tmp
>
> genadyv@GENADYV ~
> $ ls -d /cygdrive/c/    local disk C
> /cygdrive/c
>
> genadyv@GENADYV ~
> $ ls -d /cygdrive/m/ - network share on file server
> ls: /cygdrive/m: Permission denied
>
> genadyv@GENADYV ~
> $ ls /cygdrive
> c  d  g  m  p  x  y
>
> ==
> ==
>
> I have no problem accessing /cygdrive/m/ from bash prompt in cygwin
> (locally).
> /cygdrive/m is a mount to //mystifile/mixsig$
>
> Any help is appreciated
Have you ever heard anyone say NFS is insecure? One of the reasons for this
is that lots of systems are setup so that if I am root on my local machine,
the NFS server assumes I can access root's files on the remote machine...
Windows NT domains, however, are supposed not to suffer from the same
problem. This is because, in order to access a share, you must be
authenticated by the domain server. The only way to authenticate with the
domain server is to log on with your username and password. Simply rsh'ing
to a machine isn't enough, the domain controller will not trust you. Hence
you will not have access to any network shares as it won't believe who you
say you are.

Chris


--
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: permission denied for NTFS network shares

2002-12-22 Thread Genady Veytsman

Unix/Linux systems are much more secure then NT but they do allow RSH
without password (using .rhosts).

Are you saying that there is no way whatsoever to have RSH without 
passwords? I need it for running scripts/programs on different NT 
machines. Interactive behaviour (login/password) will not allow that 
since you can't hardcode your passwords in scripts.

Thanks
  Genady

>Chris January wrote:
> Have you ever heard anyone say NFS is insecure? One of the reasons 
for this
> is that lots of systems are setup so that if I am root on my local 
machine,
> the NFS server assumes I can access root's files on the remote machine...
> Windows NT domains, however, are supposed not to suffer from the same
> problem. This is because, in order to access a share, you must be
> authenticated by the domain server. The only way to authenticate with the
> domain server is to log on with your username and password. Simply 
rsh'ing
> to a machine isn't enough, the domain controller will not trust you. 
Hence
> you will not have access to any network shares as it won't believe 
who you
> say you are.
>
> Chris
>
>

I have some problem using rsh under cygwin.
It works fine for local disks and local disks of remote computers
(both UNIX and NT/2000).

But if I am trying to access NTFS network share (that is on file
server), I receive "permission denied".

Here is an example:

From unix machine:
==
==
> rsh genadyv --- (genadyv is Window2000 machine with cygwin)
Fanfare!!!
You are successfully logged in to this server!!!

genadyv@GENADYV ~
$ ls -d //mystisun8/vol1/tmp - unix machine
//mystisun8/vol1/tmp

genadyv@GENADYV ~
$ ls -d /cygdrive/c/    local disk C
/cygdrive/c

genadyv@GENADYV ~
$ ls -d /cygdrive/m/ - network share on file server
ls: /cygdrive/m: Permission denied

genadyv@GENADYV ~
$ ls /cygdrive
c  d  g  m  p  x  y

==
==

I have no problem accessing /cygdrive/m/ from bash prompt in cygwin
(locally).
/cygdrive/m is a mount to //mystifile/mixsig$

Any help is appreciated







--
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: permission denied for NTFS network shares

2002-12-22 Thread Chris January
> Unix/Linux systems are much more secure then NT but they do allow RSH
> without password (using .rhosts).
>
> Are you saying that there is no way whatsoever to have RSH without
> passwords? I need it for running scripts/programs on different NT
> machines. Interactive behaviour (login/password) will not allow that
> since you can't hardcode your passwords in scripts.
AFAIK you'll need to supply a password at some point. You could try using
expect or something similar to pass the password through.

Chris


--
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: trying to complibe glib 2.0.7

2002-12-22 Thread Charles Wilson


[EMAIL PROTECTED] wrote:

made some progress.
was complaining about unresolved libuser32 and libkernel32.\
I found the libraries under /usr/lib/win32 and did a symbolic link in /usr/lib

Now it has come to the point of linking and now it complains

/usr/lib/libcygwin.a(libcmain.o)(.text+0x7c): undefined reference to 
`_WinMain@16'


I've gotten this to compile, and pass all but two self tests.  It requires:
  1) some patches to glib
  2) some modifications to libtool (these still need some tweaking, and 
then I'll release a libtool that includes them)
  3) re-autotool the glib source

And after than, configure/make and viola!  Stay tuned.

--Chuck




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



RE: [PATCH] exclude runtime-pseudo-reloc symbols from auto-export

2002-12-22 Thread Ralf Habacker
Hi Chris,

1.
>I don't see how you could do that since the symbol is associated with an
>existing place in memory.  We could put the whole function in a
>different segment but that's not the kind of solution I was thinking of.

2.
> I was thinking that there might be an unused attribute that could be
> pressed into service as a "don't auto export" (doesn't linux/elf have
> something like this?) or that there was a way to name the symbol in some
> way that wasn't easily available from a C program, like putting a "." in
> the name with an asm alias.

this would require a special attribute definition and special asm code and some
work in the ld.
Let me ask one question: Why do you like to make a new non standard way (2) to
mark such things where the section setting stuff (1) is already part of the gcc
standard.

In both cases an ld patch is necessary, so it seems to me, that 1 would be
lesser efforts.

Ralf


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




Re: permission denied for NTFS network shares

2002-12-22 Thread Genady Veytsman

It seems you are right. I tried to use RSH without ".rhosts", supplying 
password and then all the shares were accessible.
Now I just need to find a way to supply a password noninteractivly.
I know that "rexec" allows to do it on unix, but there is no "rexec" in 
cygwin.

Thanks
  Genady

>Chris January wrote:

Unix/Linux systems are much more secure then NT but they do allow RSH
without password (using .rhosts).

Are you saying that there is no way whatsoever to have RSH without
passwords? I need it for running scripts/programs on different NT
machines. Interactive behaviour (login/password) will not allow that
since you can't hardcode your passwords in scripts.


AFAIK you'll need to supply a password at some point. You could try using
expect or something similar to pass the password through.

Chris







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




What's wrong? gcc brain-damaged on cygwin?

2002-12-22 Thread Florin Jurcovici
Hello.

I installed gcc 3.2 on my machine, only the C++ language pack, and it compiled, 
checked and installed without error. Now, when I 
ask gcc about version info it says:

$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: ../gcc-3.2/configure --enable-threads=win32 --enable-languages=
c++
Thread model: win32
gcc version 3.2


Now I try to  compile this:

// start of file
int main(int argc, char *argv[])
{
// printf("Hello, world\n");
char* cc = new char[10];
delete cc;
return 0;
}
// end of file

and get this output:

$ gcc testnewchar.cpp
/tmp/ccQiKAEK.o(.text+0x26):testnewchar.cpp: undefined reference to `operator ne
w[](unsigned)'
/tmp/ccQiKAEK.o(.text+0x34):testnewchar.cpp: undefined reference to `operator de
lete(void*)'
collect2: ld returned 1 exit status

Pls don't tell me to link explicitly with the C++ lib, I tried -lstdc++ but it doesn't 
help. I also tried #include , 
#include  and the like, nothing seems to help.

What do I do wrong?

Best regards,

Florin Jurcovici
[EMAIL PROTECTED]
-
Complex problems have simple, easy to understand wrong answers.



--
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: permission denied for NTFS network shares

2002-12-22 Thread Pierre A. Humblet
Genady Veytsman wrote

> Are you saying that there is no way whatsoever to have RSH without
> passwords? I need it for running scripts/programs on different NT
> machines. Interactive behaviour (login/password) will not allow that
> since you can't hardcode your passwords in scripts.

If you are the only user needing to rsh into the system 
you could try to run the daemons under your own name
(cygrunsrv -u, read the README). You may also have to change
ownership of key files and such.
A more ambitious/risky project is to give privileges to create tokens
etc.. (see README) to a domain account and run the daemons under
that account. 
I have not tried any of that, let us know if it works.

Pierre  

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




What's wrong? gcc brain-damaged on cygwin?

2002-12-22 Thread Dockeen
Looking at your post I see that you compiled your code as follows:

"gcc testnewchar.cpp:

You should use g++ to compile c++ code.

I was able to replicate your errors and eliminate them by using g++,
which, accoriding to a post I saw yesterday on the gcc-help board,
has been the preferred way to compile c++ code for a long time.

Wayne Keen

--
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: What's wrong? gcc brain-damaged on cygwin?

2002-12-22 Thread Florin Jurcovici
Hello.

Got two answers, pointing to the same solution, here's the result when trying to apply 
it:

XXX@yyy /tmp
$ g++ testnewchar.cc
/tmp/cc2MeN0q.o(.text+0x26):testnewchar.cc: undefined reference to `operator new
[](unsigned)'
/tmp/cc2MeN0q.o(.text+0x34):testnewchar.cc: undefined reference to `operator del
ete(void*)'
collect2: ld returned 1 exit status

XXX@yyy /tmp
$ c++ testnewchar.cc
/tmp/ccvys8Rg.o(.text+0x26):testnewchar.cc: undefined reference to `operator new
[](unsigned)'
/tmp/ccvys8Rg.o(.text+0x34):testnewchar.cc: undefined reference to `operator del
ete(void*)'
collect2: ld returned 1 exit status

XXX@yyy /tmp
$ c++ -lstdc++ testnewchar.cc
/tmp/ccFVl1ml.o(.text+0x26):testnewchar.cc: undefined reference to `operator new
[](unsigned)'
/tmp/ccFVl1ml.o(.text+0x34):testnewchar.cc: undefined reference to `operator del
ete(void*)'
collect2: ld returned 1 exit status

Any other ideas? Could it be that when compiling and installing gcc with 
--enable-languages=c++ only gcc doesn't install some 
essential libs?

Best regards,

Florin Jurcovici
[EMAIL PROTECTED]
-
Complex problems have simple, easy to understand wrong answers.


Initial request for help:

> I installed gcc 3.2 on my machine, only the C++ language pack, and it compiled, 
>checked and installed without error. Now,  > 
> when I ask gcc about version info it says:
>
> $ gcc -v
> Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.2/specs
> Configured with: ../gcc-3.2/configure --enable-threads=win32 --enable-languages=
> c++
> Thread model: win32
> gcc version 3.2
>
>
> Now I try to  compile this:
>
> // start of file
> int main(int argc, char *argv[])
> {
>   // printf("Hello, world\n");
>   char* cc = new char[10];
>   delete cc;
>   return 0;
> }
> // end of file
>
> and get this output:
>
> $ gcc testnewchar.cpp
> /tmp/ccQiKAEK.o(.text+0x26):testnewchar.cpp: undefined reference to `operator 
>new[](unsigned)'
> /tmp/ccQiKAEK.o(.text+0x34):testnewchar.cpp: undefined reference to `operator 
>delete(void*)'
> collect2: ld returned 1 exit status
>
> Pls don't tell me to link explicitly with the C++ lib, I tried -lstdc++ but it 
>doesn't help. I also tried #include ,
> #include  and the like, nothing seems to help.
>
> What do I do wrong?
>

Both replies suggested I use g++ instead of gcc for compilation - which I did, as you 
can see above.



--
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: What's wrong? gcc brain-damaged on cygwin?

2002-12-22 Thread Dockeen
"Could it be that when compiling and installing gcc with 
--enable-languages=c++ only gcc doesn't install some 
essential libs?"

Why in the world are you creating your own gcc?  I used to do it
just because I wanted to use the gcc-3.1 code, but it is darn
tricky and completely unneccessary now, as gcc comes pre-built
in the devel directory.  If there is something unique you want
to do with a version of gcc, make a parallel build, don't build
over Cygwin's gcc.

When I was creating my own stuff, I was creating it as an additional
compiler to the Cygwin compiler.  I created it in a directory I called
mygcc.  And I believe, if memory served, when I compiled I had to
do something like the following (I had aliased my new compiler to
newg++):

newg++ hello.cpp -L\mygcc\lib

to make sure that the libstdc++ stuff got found.

But again, I would not do a build of gcc now, certainly not one that
replaces the Cygwin binaries.

Wayne Keen

--
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: What's wrong? gcc brain-damaged on cygwin?

2002-12-22 Thread Lapo Luchini


Any other ideas? Could it be that when compiling and installing gcc with --enable-languages=c++ only gcc doesn't install some essential libs?


Somethin's wrong with the gcc-3.2 package that Christopher Faylor kindly 
creates for us all?
That one is sure to work (or at least is the same that works for others 
in the ML)... if you're using a gcc compiled by yourself, then it's up 
to yourself to solve problems with its configuration IMHO ^_^

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
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: What's wrong? gcc brain-damaged on cygwin?

2002-12-22 Thread Dockeen
When I built my own, I built it with C,C++ and f77 enabled.  The configure
(I had a number of options added, it was not just ./configure) and the make
bootstrap
part of the process took an hour on P4 type machines, 10 hours on this old
P2. (make install was quick).

But back to the fundamental point.  The gcc compiler suite (C,C++,f77) from
the
devel category works really well.  If for some reason you want to do
something
like try to build and play with gcc-3.3, then put it in a parallel directory
structure - use prefix in your configure, it makes a LOT more sense.

Wayne

p.s. Don't try this at home, because there are details of how I set up my
build
directory that play into this, but this is an example of what my configure
command looked like:

srcdir/configure --prefix=/mygcc --enable-threads=win32 --with-system-zlib
--enable-languages=c,c++,f77 --enable-sjlj-exceptions

I also seem to recall using a -k option to skip over some gcj issues.  It
worked,
but it took some time to figure out...



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




rxvt, once again...

2002-12-22 Thread [mn]
Hi,

I'd like to automatically center the rxvt console rather than letting it pop
up in the upper left quarter of my screen, any hints how to influence this?

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: rxvt, once again...

2002-12-22 Thread Randall R Schulz
Svartsjel,

I like to launch things via Windows shortcuts where ever possible. Windows 
shortcuts that target executables have some of the characteristics of 
scripts in that you can program not only the executable to invoke, but most 
notably its arguments, initial working directory and window size and 
position. For character sub-system programs (also know as console 
application or CLI--command line interface--programs) you can also control 
the window colors and font.

So, create a Windows shortcut by right-dragging your RXVT executable icon 
to some new location (start with the desktop; when you're done, put it in 
the Start menu or the QuickLaunch bar, e.g.). Now open the properties 
dialog for the shortcut. In the "Shortcut" tab you can control the 
arguments (set window size and position here using usual X Window -g / 
-geometry option) and any other RXVT options you like (font, scrollback, 
colors, etc.). Here's what I use:

D:\cygwin\bin\rxvt.exe -g 110x89+485+-1 -bg #dd -fg #00 -fn "Lucida 
ConsoleP-11" -sr -sl 5000 -tn rxvt -vb -e /bin/bash --login -i

I set the initial working directory ("Start in:" field) to my Cygwin home 
directory (using Windows path name notation, of course).


I should point out that RXVT is an odd case: it appears to Windows to be a 
character subsystem executable (even though it ends up creating a GUI 
window), so Properties dialogs for shortcuts that target this executable 
include the "Font" and "Layout" tabs even though they have no effect on the 
RXVT window that will result. Use RXVT options to control this as mentioned 
above. For other Cygwin apps (BASH, e.g.) you'd naturally use the settings 
in these tabs to control the corresponding appearance characteristics.

Randall Schulz


At 08:39 2002-12-22, [mn] wrote:
Hi,

I'd like to automatically center the rxvt console rather than letting it pop
up in the upper left quarter of my screen, any hints how to influence this?

best wishes,

svartsjel



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




expat-1.95.5: undefined reference to `XML_ParserCreate'

2002-12-22 Thread Ross Smith II
I'm trying to compile a simple expat program:

#include 
#include 
int main() {
XML_ParserCreate(NULL);
return 0;
}

but I get:

$ gcc -lexpat -L/lib expattest.c
/cygdrive/...:expattest.c: undefined reference to `XML_ParserCreate'

yet:

$ nm /lib/libexpat.a | grep XML_ParserCreate
 T _XML_ParserCreate

So, I tried compiling expat from source via:

cd /usr/src
tar xvzf expat-1.95.5.tar.gz
./expat-1.95.5-1.sh conf
./expat-1.95.5-1.sh prep
./expat-1.95.5-1.sh build

And tried to build one of their examples (make check, the expat test suite,
relies on http://check.sf.net/ to be installed):

cd expat-1.95.5/.obj
$
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/us
r/src/expat-1.95.5/lib -I. -lexpat -L.libs -o examples/outline.c
/usr/src/expat-1.95.5/examples/outline.c
/cygdrive/...: In function `main':
/usr/src/expat-1.95.5/examples/outline.c:60: undefined reference to
`_XML_ParserCreate'

and I *still* get the same error.

I've scanned the mailing list to no avail. What am I possibly doing wrong?

-Ross
CYGWIN_NT-5.0 DURGA 1.3.17(0.67/3/2) 2002-11-27 18:54 i686 unknown


--
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: expat-1.95.5: undefined reference to `XML_ParserCreate'

2002-12-22 Thread Norman Vine
Ross Smith  writes:


> I'm trying to compile a simple expat program:
> 
> #include 
> #include 
> int main() {
> XML_ParserCreate(NULL);
> return 0;
> }
> 
> but I get:
> 
> $ gcc -lexpat -L/lib expattest.c
> /cygdrive/...:expattest.c: undefined reference to `XML_ParserCreate'

try 
% gcc -o expattest expattest.c -lexpat

the order of the arguments to gcc *matter*

Norman

--
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: What's wrong? gcc brain-damaged on cygwin?

2002-12-22 Thread Florin Jurcovici
Hello.

> Why in the world are you creating your own gcc?
:-)
Just a reflex - I use to build everything from sources, no matter if on Linux directly 
or on cygwin, so from time to time I 
just get fresh sources from the gnu site or one of the mirrors, and build the new 
vers. Since ./configure, make and make 
install seem to work flawlesly in most cases, I don't see any problem with this. In 
fact, I like it more when configure tells 
me about something missing than if for instance rpm on linux telling me so. (Does LFS 
sound familiar to you? It's the only way 
I appreciate a clean and solid linux system can be built. Which gives me an idea: 
cygwin from scratch   :-)

>From the answer below I started to think there must be something fishy in the 
>installation of gcc on my machine. So I did a 
search through the file system, dumped the search paths for gcc, got some ideas and 
tried again:

XXX@yyy /tmp
$ g++ -I/usr/local/include -L/usr/local/lib testnewchar.cc
cc1plus.exe: warning: changing search order for system directory "/usr/local/include"
cc1plus.exe: warning:   as it has already been specified as a non-system directory

And magically it worked!

And you ppl which said gcc .cc doesn't compile properly as C++ are right: the 
same command with gcc instead of g++, 
doesn't work if I add a simple #include  at the beginning and some cout << 
 in the code.

Best regards, and thanks a lot to all ppl which helped me solve the mistery. And merry 
Christmas and a happy new year.

Florin Jurcovici
[EMAIL PROTECTED]
-
Complex problems have simple, easy to understand wrong answers.

22 Dec 2002 17:59:08, "Dockeen" <[EMAIL PROTECTED]> wrote:

>"Could it be that when compiling and installing gcc with 
>--enable-languages=c++ only gcc doesn't install some 
>essential libs?"
>
> Why in the world are you creating your own gcc? I used to do it
>just because I wanted to use the gcc-3.1 code, but it is darn
>tricky and completely unneccessary now, as gcc comes pre-built
>in the devel directory.  If there is something unique you want
>to do with a version of gcc, make a parallel build, don't build
>over Cygwin's gcc.
I couldn't find any problem until now (re. "darn tricky") with building anything from 
sources, right over of cygwin's originals 
binaries. I _did_ build over cygwin's gcc, it seems the only problem is I didn't build 
in the same path - I'll fix this asap 
anyway - I usually don't change default prefixes, and the precompiled gcc for cygwin 
doesn't install by default into 
/usr/local.

Regarding long build times: the heaviest build of all stuff I periodically recompile 
is glibc - gcc compiles faster. Not even 
glibc takes longer than 1 hour, and I find this acceptable, since gcc on NT doesn't 
kill the OS, and I can do other things in 
the meantime.

>When I was creating my own stuff, I was creating it as an additional
>compiler to the Cygwin compiler.  I created it in a directory I called
>mygcc.  And I believe, if memory served, when I compiled I had to
>do something like the following (I had aliased my new compiler to
>newg++):
>
>newg++ hello.cpp -L\mygcc\lib
>
>to make sure that the libstdc++ stuff got found.
>
>But again, I would not do a build of gcc now, certainly not one that
>replaces the Cygwin binaries.
>
>Wayne Keen
>
>--
>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/




semaphores

2002-12-22 Thread antreas z



hi.I'm new to this project and i have much more to learn about it.But i have 
a very urgent question.When i try to compile the following code which is 
compiled succesfully on a Sun Unix maschine i get the following error
synch.h no such file
sys/ipc.h no such file
sema_t undeclared.
Can u tell me which libraries i have to work with so that i can use 
semaphores??
thanx.

#include 
#include 
#include 

extern int errno;
main()
{
/*sema_t spreal; */
sema_t sp;
int retval;

 /* Initialize the semaphore. */
 retval = sema_init(&sp,2, USYNC_PROCESS, (void*)0 );
 if (retval != 0) {
	perror("Couldn't initialize.");
	exit(3);
 }

 retval = sema_trywait(&sp);
 printf("Did trywait. Returned %d >\n", retval); getchar();

 retval = sema_trywait(&sp);
 printf("Did trywait. Returned %d >\n", retval); getchar();

 retval = sema_trywait(&sp);
 printf("Did trywait. Returned %d >\n", retval); getchar();

 sema_destroy(&sp);

}



_
MSN 8 with e-mail virus protection service: 3 months FREE*. 
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminateviruses_3mf


--
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: Running cygwin built programs in Windows XP

2002-12-22 Thread John Seeliger
"Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Sat, 21 Dec 2002, John Seeliger wrote:
>
> > How do I run a program that I built with gcc under Cygwin in Windows?
When
> > I try to run them, it says it can't find cygwin1.dll.
>
> Make sure c:\cygwin\bin is in your PATH.  Another alternative is to use
> the mingw runtime by giving gcc the -mno-cygwin option, but be aware that
> there is less posix support there (IIRC).
> Igor

Thanks.  I gave the -mno-cygwin a try and it worked.  I added c:\cygwin\bin
to my autoexec.bat.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32>cd ..\..

C:\>type autoexec.bat
SET CLASSPATH=C:\WINDOWS\Java\Lib;C:\CONNECT!CORP;C:\SOFTWARE
PROJECTS\JAVA\LIB;

SET PATH=%PATH%;C:\JDK1.1\BIN;c:\cygwin\bin;


C:\>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\John Seeliger\Application Data
CLASSPATH=;C:\CONNECT!CORP;
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=YOUR-VIU5VCDUB5
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\John Seeliger
LOGONSERVER=\\YOUR-VIU5VCDUB5
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\PROGRAM
FILES\BO
RLAND\CBUILDER3\BIN;C:\JDK1.1\BIN;;C:\JDK1.1\BIN;C:\JDK1.1\LIB;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=080a
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\JOHNSE~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\JOHNSE~1\LOCALS~1\Temp
USERDOMAIN=YOUR-VIU5VCDUB5
USERNAME=John Seeliger
USERPROFILE=C:\Documents and Settings\John Seeliger
windir=C:\WINDOWS

C:\>

It still will not recognize it and programs developed in cygwin without
the -mno-cygwin option and opened directly from windows give the error
message about cygwin1.dll .  Where does it need to go?

Relating to Randall's comments about distributing cygwin developed s/w, if I
create something that relies on cygwin1.dll, I should put it under the GPL
and release the source code with it and then include cygwin1.dll?  Is this
how it is done?

Also, is there any documentation on using the cygwin java compiler,
especially to create native code.  This is the primary reason I recently
installed the newer cygwin stuff.  The project I am currently working on,
mostly for my own person use, though if it benefited the world I would
release it, is to allow me to add a context menu item
(http://tinyurl.com/3rc7) in IE "Add to Save Queue", for example, and when
this was selected for a link, a program would be activated the would add
this link and the associated name to a queue and proceed to download and
save it to a file with the name of the link on the page.  For example,
suppose:

http://www.foobarnews.com/iceman122202.htm";>Scientists Thaw out Ice
Age Caveman

it would download the file from http://www.foobarnews.com/iceman122202.htm
and save it to a file "Scientists Thaw out Ice Age Caveman" without having
to ask me what filename to use.  (Unless of course there was already another
"Scientists Thaw out Ice Age Caveman" file.)

I have a lot of s/w development packages (MSVB 6.0 Learning Edition, Borland
C++ Builder 3, cygwin, JDK 1.1, J2SDK 1.4.1 (I just downloaded this one),
Borland JBuilder 7 Personal, Digital Mars D, Javascript via IE or Opera,
Squeak), all free stuff except the VB and BCB, but each seemed to lack
something to do what I have been wanting to do earlier with regard to a
spidering tool (http://tinyurl.com/3rc3).  The BCB 3 doesn't have much
(any?) support for downloading web pages (and I am not looking to spend
several hundred dollars necessary to buy the new version to be able to
download pages easier from IE), the Java won't let me save files, unless I
use java.exe to run them (which I am not sure I can legally distribute, if I
made a project worth of doing so) or compile in native mode (which the
JDK1.1 doesn't do and I don't think the J2SDK does either).  The Javascript
won't let me save files either.  I have no idea what Squeak will do (I don't
know Smalltalk) or what libraries are distributed with D (I have not written
anything in either of these) and the BJB will produce native code, but if I
choose to distribute it, I can't under the free license.

That leaves me with cygwin and VB.  At the time I wanted to build the
webtool earlier this year, I couldn't get the documentation on VB working
and I purchased it at a Computer City (that had just become CompUSA because
of the merger) in Sept. 98 and I never got it to register with MS then or
even now, though I have found the documentation on msdn's website and a
couple of free books http://www.mvps.org/vb/hardcore/index.html and
http://tinyurl.com/3rcv (=VB 5), so if necessary, I 

RE: Running cygwin built programs in Windows XP

2002-12-22 Thread Larry Hall (RFK Partners, Inc)
Anyone who decides they want to do this is free to but it will invalidate
their installation and make it unstable.  Future problems they may run into
as a result will not be seriously entertained by this list (assuming said
persons post to this list for help in those cases) until cygwin1.dll is 
put back where setup installed it.  For anyone wondering, copying 
cygwin1.dll to this directory or any other carries the same warning.

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



At 12:55 AM 12/22/2002, Pharas wrote:
>Just stick cygwin1.dll in your windows\system32 folder.
>
>-Original Message-
>From: John Seeliger [mailto:[EMAIL PROTECTED]] 
>Sent: Saturday, December 21, 2002 6:41 PM
>To: [EMAIL PROTECTED]
>Subject: Running cygwin built programs in Windows XP
>
>How do I run a program that I built with gcc under Cygwin in Windows?  When
>I try to run them, it says it can't find cygwin1.dll.
>
>--
>John Seeliger  Limited but increasing content
>[EMAIL PROTECTED]   
>[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/


--
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: sshd and launching e.g. word.exe - no GUI screen shows up

2002-12-22 Thread Larry Hall (RFK Partners, Inc)
At 09:56 PM 12/21/2002, Peter Valdemar Mørch wrote:
>Hi,
>
>I log in fine, and get my prompt and everyting. sshd rocks!
>
>I'm trying to do e.g.:
>me@othermachine :> ssh winmachine word.sh some.doc
>And have the word GUI appear on the machine it is actually running. I'm
>aware, of course that X-forwarding wont work
>
>Here word.sh contains:
>/cygdrive/c/Program\ Files/Microsoft\ Office/Office/WINWORD.exe "$@"
>
>When I do this, WINWORD.EXE sits around in the "Windows Task Manager", and
>the terminal does not return to the prompt, but the Word window does not
>appear either. The same seems to happen with notepad, acdsee, gvim, and
>other windows apps.
>
>Another experiment: I run word.sh from a cygwin terminal, it comes up fine.
>I close it. Then I do "ssh localhost" and log in. I get a prompt that is
>exactly like it was before the ssh localhost. If I then run word.sh, it
>likewise does not appear.
>
>What is the reason for this? Is it possible to lauch windows programs (with
>actual "windows") from another host via ssh / sshd? I'd love to be able to
>launch word, acdsee etc. when bashing away at my Linux dirs...
>
>/var/log/sshd.log is empty.
>I tried 'UsePrivilegeSeparation no' in /etc/sshd_config => no effect
>
>Any help appreciated!



Services don't allow interaction with the desktop by default.  Go to 
Control Panel->Administrative Tools->Services->CYGWIN sshd->Properties.
Click the "Log On" tab and the "Allow service to interact with desktop".
This works on W2K.  I'm not aware of something similar on XP Home.  NT 4
and XP Pro probably have a different way of doing it.  For 9x/Me, why 
bother! ;-)



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/




python-2.2.2-1 Tkinter unsable with tcltk-20021218-1

2002-12-22 Thread SUZUKI Hisao
Tkinter of python-2.2.2-1 is unsable with the recent tcltk-20021218-1.

Python 2.2.2 (#1, Nov 15 2002, 07:49:04)
[GCC 2.95.3-5 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
Traceback (most recent call last):
  File "", line 1, in ?
  File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 35, in ?
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: dlopen: Win32 error 126

You cannot make the Tkinter usable again by just recompiling the Python.
The below is a quick hack for "python-2.2.2-1/setup.py" to fix it.

*** setup.py~   Thu Oct 10 00:59:16 2002
--- setup.pyFri Dec 20 05:02:20 2002
***
*** 699,715 
  tcl_includes = find_file('tcl.h', inc_dirs, debian_tcl_include)
  tk_includes = find_file('tk.h', inc_dirs, debian_tk_include)

! if (tcllib is None or tklib is None and
! tcl_includes is None or tk_includes is None):
  # Something's missing, so give up
! return

  # OK... everything seems to be present for Tcl/Tk.

  include_dirs = [] ; libs = [] ; defs = [] ; added_lib_dirs = []
! for dir in tcl_includes + tk_includes:
! if dir not in include_dirs:
! include_dirs.append(dir)

  # Check for various platform-specific directories
  platform = self.get_platform()
--- 699,715 
  tcl_includes = find_file('tcl.h', inc_dirs, debian_tcl_include)
  tk_includes = find_file('tk.h', inc_dirs, debian_tk_include)

! #if (tcllib is None or tklib is None and
! #tcl_includes is None or tk_includes is None):
  # Something's missing, so give up
! #return

  # OK... everything seems to be present for Tcl/Tk.

  include_dirs = [] ; libs = [] ; defs = [] ; added_lib_dirs = []
! #for dir in tcl_includes + tk_includes:
! #if dir not in include_dirs:
! #include_dirs.append(dir)

  # Check for various platform-specific directories
  platform = self.get_platform()
***
*** 728,738 
  added_lib_dirs.append('/usr/X11/lib')

  # If Cygwin, then verify that X is installed before proceeding
! if platform == 'cygwin':
! x11_inc = find_file('X11/Xlib.h', [], inc_dirs)
! if x11_inc is None:
  # X header files missing, so give up
! return

  # Check for BLT extension
  if self.compiler.find_library_file(lib_dirs + added_lib_dirs,
--- 728,738 
  added_lib_dirs.append('/usr/X11/lib')

  # If Cygwin, then verify that X is installed before proceeding
! #if platform == 'cygwin':
! #x11_inc = find_file('X11/Xlib.h', [], inc_dirs)
! #if x11_inc is None:
  # X header files missing, so give up
! #return

  # Check for BLT extension
  if self.compiler.find_library_file(lib_dirs + added_lib_dirs,
***
*** 741,748 
  libs.append('BLT8.0')

  # Add the Tcl/Tk libraries
! libs.append('tk'+version)
! libs.append('tcl'+version)

  if platform in ['aix3', 'aix4']:
  libs.append('ld')
--- 741,750 
  libs.append('BLT8.0')

  # Add the Tcl/Tk libraries
! #libs.append('tk'+version)
! #libs.append('tcl'+version)
! libs.append("cygtk83")
! libs.append("cygtcl83")

  if platform in ['aix3', 'aix4']:
  libs.append('ld')

By recompiling the python-2.2.2 with this "setup.py", you will get
Tkinter-enabled python again; and besides you can use Input Method
on the Tkinter to input your native language (such as Japanese) now.
(It is the important advantage of using the recent Tcl/Tk, you know.)

-- SUZUKI Hisao



--
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-2.2.2-1 Tkinter unsable with tcltk-20021218-1

2002-12-22 Thread Christopher Faylor
On Mon, Dec 23, 2002 at 06:54:38AM +0900, SUZUKI Hisao wrote:
>Tkinter of python-2.2.2-1 is unsable with the recent tcltk-20021218-1.

FYI (not that it will matter because there will be 27 other reports of
this), I alerted Jason Tishler to the fact that my release of tcltk would
break the use of tk with python when I released tcltk.

So Jason is aware of the problem.

I'm sure he'll be appreciative of the patch, though.

cgf

>*** setup.py~  Thu Oct 10 00:59:16 2002
>--- setup.py   Fri Dec 20 05:02:20 2002
>***
>*** 699,715 

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

2002-12-22 Thread Jim
not supported in official lines, and rumor has it there's a replacement in
the works, but noone's claiming ownership of said project.

http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/

- Original Message -
From: "antreas z" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 22, 2002 10:43 AM
Subject: semaphores


>
>
>
> hi.I'm new to this project and i have much more to learn about it.But i
have
> a very urgent question.When i try to compile the following code which is
> compiled succesfully on a Sun Unix maschine i get the following error
> synch.h no such file
> sys/ipc.h no such file
> sema_t undeclared.
> Can u tell me which libraries i have to work with so that i can use
> semaphores??
> thanx.
>
> #include 
> #include 
> #include 
>
> extern int errno;
> main()
> {
> /*sema_t spreal; */
> sema_t sp;
> int retval;
>
>   /* Initialize the semaphore. */
>   retval = sema_init(&sp,2, USYNC_PROCESS, (void*)0 );
>   if (retval != 0) {
> perror("Couldn't initialize.");
> exit(3);
>   }
>
>   retval = sema_trywait(&sp);
>   printf("Did trywait. Returned %d >\n", retval); getchar();
>
>   retval = sema_trywait(&sp);
>   printf("Did trywait. Returned %d >\n", retval); getchar();
>
>   retval = sema_trywait(&sp);
>   printf("Did trywait. Returned %d >\n", retval); getchar();
>
>   sema_destroy(&sp);
>
> }
>
>
>
> _
> MSN 8 with e-mail virus protection service: 3 months FREE*.
>
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&S
U=
>
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminatevi
ruses_3mf
>
>
> --
> 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/




checksum error on install

2002-12-22 Thread Timothy Sullivan
Hi folks,

I just picked up a setup.exe for cygwin-1.3.17-1 and did a net install.
Everything downloads fine from planetmirror.com, but when setup starts
installing the packages, I get an installation error for the file
cygwin-1.3.17-1.tar.bz2, which I guess is a pretty important file. What
should I do to start using cygwin?

OS: Windows ME
Installation options: Just the default current packages from a net
install. Used IE5 settings for internet connection.
Error Message:
Installation error (Checksum error for
file://c:\tim\cygwin\http...planetmirror.../release/cygwin/cygwin-1.3.17-1.tar.bz2),
Continue with other packages? [yes] [no]

I've tried a few variations on the process, with the same result. I didn't
try getting the "prev" release, because I don't really want to.


--
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: Running cygwin built programs in Windows XP

2002-12-22 Thread Michael A Chase
On Sun, 22 Dec 2002 13:27:18 -0600 John Seeliger <[EMAIL PROTECTED]> wrote:

> "Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> On Sat, 21 Dec 2002, John Seeliger wrote:
>>
>>> How do I run a program that I built with gcc under Cygwin in Windows? When
>>> I try to run them, it says it can't find cygwin1.dll.
>>
>> Make sure c:\cygwin\bin is in your PATH.  Another alternative is to use
>> the mingw runtime by giving gcc the -mno-cygwin option, but be aware that
>> there is less posix support there (IIRC).

> Thanks.  I gave the -mno-cygwin a try and it worked.  I added
> c:\cygwin\bin
> to my autoexec.bat.

As far as I know, autoexec.bat has no effect in WinXP.

> It still will not recognize it and programs developed in cygwin without
> the -mno-cygwin option and opened directly from windows give the error
> message about cygwin1.dll .  Where does it need to go?

You need to add it to PATH in 'My Computer' -> ??? -> Environment.
Look up Environment in WinXP's help.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



--
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: Running cygwin built programs in Windows XP

2002-12-22 Thread Michael A Chase
On Sun, 22 Dec 2002 13:27:18 -0600 John Seeliger <[EMAIL PROTECTED]> wrote:

> "Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> On Sat, 21 Dec 2002, John Seeliger wrote:
>>
>>> How do I run a program that I built with gcc under Cygwin in Windows? When
>>> I try to run them, it says it can't find cygwin1.dll.
>>
>> Make sure c:\cygwin\bin is in your PATH.  Another alternative is to use
>> the mingw runtime by giving gcc the -mno-cygwin option, but be aware that
>> there is less posix support there (IIRC).

> Thanks.  I gave the -mno-cygwin a try and it worked.  I added
> c:\cygwin\bin
> to my autoexec.bat.

Autoexec.bat is not read at startup in WinXP.

> It still will not recognize it and programs developed in cygwin without
> the -mno-cygwin option and opened directly from windows give the error
> message about cygwin1.dll .  Where does it need to go?

You need to add it to PATH in 'My Computer' -> ??? -> Environment.
Look up Environment in WinXP's help.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.





--
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: sshd and launching e.g. word.exe - no GUI screen shows up

2002-12-22 Thread Peter Valdemar Mørch
Thanks a million for your reply to my post.

I tried what you suggested, and sure enough, it allows me to do exactly as I
want. However, when use these settings and the service is started, a
terminal (or "dos box") appears with absolutely nothing in it. ps -ef shows
that sshd is running. If I close the dos box, ps shows that sshd
disappeared, and surely enough I cannot log into the box.

It did however give me the starting point to find a solution that works for
me: I start sshd myself in a windows Start/Programs/Startup/ shortcut, and
then disable the service . I am the only one logged in to this machine, and
I'm always logged in, so that works fine for me. The command for the
shortcut is:

%windir%\system32\wscript.exe c:\data\scr\quiet.vbs
c:\cygwin\bin\bash --login -c "export CYGWIN='binmode ntsec tty';
/usr/sbin/sshd -D"

and quiet.vbs is a little Visual Basic magic to start Cygwin stuff and
avoiding the terminal. VERY cool and useful whenever you want to run a bash
script but don't want the terminal that goes along with it. See below.

Of course the ideal general purpose solution is to get it to work as a
service, that allows interaction with the desktop, but doesn't create a
terminal. I'm pretty sure the solution is in the registry somewhere, but I
couldn't quite figure out the logic in the registry settings. The
"ImagePath" is C:\cygwin\bin\cygrunsrv.exe, the Parameters\AppArgs is "-D",
and Parameters\AppPath is "/usr/sbin/sshd"... The only way I could get it to
work by hand was with cygrunsrv -S sshd, but then the window always seemed
to appear. Anyway...

Thanks again, Larry,

Sincerely

Peter Valdemar Mørch

quiet.vbs:
' This comes from a post found here:
'
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=OnQwYL0iCHA
.1884%40tkmsftngp10&rnum=14
' from the microsoft.public.win2000.cmdprompt.admin newsgroup
' But has been modified some by [EMAIL PROTECTED]

Set oShell = CreateObject ("Wscript.Shell")
Set objArgs = WScript.Arguments
' Join all the arguments
for each arg in objargs
cmd = cmd &  & arg &  & " "
next
oShell.Run cmd , 0, runwait


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




Tip: Running a bash script without the terminal window...

2002-12-22 Thread Peter Valdemar Mørch
This is just a little tip I'd like to share.

It annoyed me for some time, that whenever I ran a bash script, I got a
terminal window whether or not my script needs it. Here is a Visual Basic
snippet that works for me on W2K and XP, and that runs a bash script without
the terminal. I use it to start xterms from windows shortcuts, for instance.
It really can start all kinds of things, also .bat files, if you like...

C:\WINNT\system32\wscript.exe c:\data\scr\quiet.vbs
c:\cygwin\bin\bash --login -c "echo do your bashing stuff here >
/tmp/somefile"

I think all machines have the wscript.exe executable. The VB script is of
course the central element, and here it is:

'
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=OnQwYL0iCHA
.1884%40tkmsftngp10&rnum=14
' from the microsoft.public.win2000.cmdprompt.admin newsgroup
' But has been modified some by [EMAIL PROTECTED]

Set oShell = CreateObject ("Wscript.Shell")
Set objArgs = WScript.Arguments
' Join all the arguments
for each arg in objargs
cmd = cmd &  & arg &  & " "
next
oShell.Run cmd , 0, runwait


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




Re: Cygwin 1.3.17 changes ls -l output

2002-12-22 Thread Jason Tishler
Tim,

Please post instead of sending private email.

On Sat, Dec 21, 2002 at 10:46:22AM -0600, Tim and Kathy Andvaag wrote:
> Note that is appears to be also a problem for client (i.e internet
> explorer) ftp access as the trailing + output by ls (withing ftpd)
> seems to confuse the ftp client.
>  
> Tim
> 
> Cygwin 1.3.17 changes ls -l output
> 
>   * From: Jason Tishler 
>   * To: Cygwin 
>   * Date: Tue, 03 Dec 2002 07:36:49 -0500
>   * Subject: Cygwin 1.3.17 changes ls -l output
> 
> --
> After upgrading to Cygwin 1.3.17, I noticed the following change in ls
> -l output:
> 
> $ ls -ld /
> drwxrwxr-x+  15 Administ Administ 4096 Oct 21 12:07 /
>   ^
>   *
> 
> If I temporarily downgrade to Cygwin 1.3.16, ls -l outputs the
> following:
> 
> $ ls -ld /
> drwxrwxr-x   15 Administ Administ 4096 Oct 21 12:07 /
> 
> I found the following in ls's info:
> 
> `-l'
> `--format=long'
> `--format=verbose'
>  ...
>  Following the permission bits is a single character that
>  specifies whether an alternate access method applies to the
>  file.  When that character is a space, there is no alternate
>  access method.  When it is a printing character (e.g., `+'),
>  then there is such a method.
> 
> Was this change intentional?  Or, was it a side effect of the
> following?
> 
> On Wed, Nov 27, 2002 at 07:15:17PM -0500, Christopher Faylor wrote:
> > - Fix Sun acl functions.  (Corinna Vinschen, Pierre Humblet)

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: python-2.2.2-1 Tkinter unsable with tcltk-20021218-1

2002-12-22 Thread Jason Tishler
SUZUKI Hisao,

On Sun, Dec 22, 2002 at 05:00:56PM -0500, Christopher Faylor wrote:
> On Mon, Dec 23, 2002 at 06:54:38AM +0900, SUZUKI Hisao wrote:
> >Tkinter of python-2.2.2-1 is unsable with the recent
> >tcltk-20021218-1.

Thanks for the above, but...

> FYI (not that it will matter because there will be 27 other reports of
> this), I alerted Jason Tishler to the fact that my release of tcltk
> would break the use of tk with python when I released tcltk.
> 
> So Jason is aware of the problem.

I am already aware of this problem.

In fact, I have devised a patch against Python CVS to fix this problem
already.  I will submit this patch, back port it to Python 2.2.2, and
release a new Cygwin Python with this patch after I return from my
vacation.

> I'm sure he'll be appreciative of the patch, though.

Actually, the confirmation that Cygwin Python 2.2.2 builds cleanly
against Cygwin Tk 8.3 was more helpful.

Thanks,
Jason

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

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




Re: [ANNOUNCEMENT] Updated: expect-20021218-1, gdb-20021218-1,tcltk-20021218-1

2002-12-22 Thread Jason Tishler
Chuck,

On Fri, Dec 20, 2002 at 06:44:43PM -0500, Charles Wilson wrote:
> Python itself needs to be recompiled to use the new tcl/tk dlls,
> because /usr/lib/python2.2/lib-dynload/_tkinter.dll depends on
> cygtcl80.dll and cygtk80.dll, which are no longer present. 
> Jason, oh Jssoon

Sigh...  See the following:

http://cygwin.com/ml/cygwin/2002-12/msg01202.html

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: python-2.2.2-1 Tkinter unsable with tcltk-20021218-1

2002-12-22 Thread Christopher Faylor
On Sun, Dec 22, 2002 at 09:00:27PM -0500, Jason Tishler wrote:
>SUZUKI Hisao,
>
>On Sun, Dec 22, 2002 at 05:00:56PM -0500, Christopher Faylor wrote:
>> On Mon, Dec 23, 2002 at 06:54:38AM +0900, SUZUKI Hisao wrote:
>> >Tkinter of python-2.2.2-1 is unsable with the recent
>> >tcltk-20021218-1.
>
>Thanks for the above, but...
>
>> FYI (not that it will matter because there will be 27 other reports of
>> this), I alerted Jason Tishler to the fact that my release of tcltk
>> would break the use of tk with python when I released tcltk.
>> 
>> So Jason is aware of the problem.
>
>I am already aware of this problem.
>
>In fact, I have devised a patch against Python CVS to fix this problem
>already.  I will submit this patch, back port it to Python 2.2.2, and
>release a new Cygwin Python with this patch after I return from my
>vacation.
>
>> I'm sure he'll be appreciative of the patch, though.
>
>Actually, the confirmation that Cygwin Python 2.2.2 builds cleanly
>against Cygwin Tk 8.3 was more helpful.

Well, you did say "thanks".  I knew you would.  :-)

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: Please help

2002-12-22 Thread Igor Pechtchanski
On Sun, 22 Dec 2002, Ramon Boyd wrote:

> Good afternoon
>
> I have found a really useful software package for chemistry modeling but
> I need to install and run Cygwin to use it.  I don't understand how to
> run Cygwin.  Presently, I am running Windows XP on my system.  I
> understand the premise behind Cygwin as stated on the website.
> However, I find the list of compilation instructions confusing.  I
> appreciate the level of detail the website and detail with which the
> Cygwin program must run.  I am interested in focusing my time on running
> Ghemical.  I am less interested in knowing everything about Linux based
> systems.  That I leave to the experts.  Could you please tell me how to
> install Cygwin properly?  I understand that I need Gnome.  Could you
> also provide a hint at how I am to compile Ghemical?  I would greatly
> appreciate any assistance you could provide.
>
> http://bioinformatics.org/ghemical/download.html
>
> Thanks
> Ramon

Ramon,
The cygwin mailing list is the proper place for such inquiries.  It is
strongly discouraged to send personal mail with such requests, and they
will, in general, be ignored.  I've forwarded this request to the proper
mailing list, and reset the Reply-to: field accordingly for your
convenience.
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: [ANNOUNCEMENT] Updated: expect-20021218-1, gdb-20021218-1, tcltk-20021218-1

2002-12-22 Thread Norman Vine
Jason Tishler writes:
> 
> On Fri, Dec 20, 2002 at 06:44:43PM -0500, Charles Wilson wrote:
> > Python itself needs to be recompiled to use the new tcl/tk dlls,
> > because /usr/lib/python2.2/lib-dynload/_tkinter.dll depends on
> > cygtcl80.dll and cygtk80.dll, which are no longer present. 
> > Jason, oh Jssoon
> 
> Sigh...  See the following:
> 
> http://cygwin.com/ml/cygwin/2002-12/msg01202.html

AFAICT the patch in this message will only work when 'X' is installed

For systems without 'X' we will still want the tk headers 

http://cygwin.com/ml/cygwin/2002-12/msg01102.html
http://sources.redhat.com/ml/cygwin/2001-03/msg01506.html

Cheers

Norman




--
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: what to use in g++ instead of GetOpt?

2002-12-22 Thread Igor Pechtchanski
Umm, Randy, not to downplay the humor or the valid points in your
soliloquy, but he did say "well-dressed C++ programmers", and everybody
knows (tm) that Real Programmers aren't well-dressed (they also don't use
C++, it's for the wavering who can't decide between C and Java [to
paraphrase]).  Of course, this also depends on your definition of
"well-dressed"...
Igor

On Sat, 21 Dec 2002, Randall R Schulz wrote:

> Hello there, Edward, if that is your real name.
>
> Here's how it is, Ed...
>
> Real Programmers (tm) code to the bare metal. They don't use no stinkin'
> libraries. If you can't decode your command line arguments without some
> "support library" (a concept closely related to "support hose"), the Guild
> of Real Programmers recommends a nice job in investment banking where
> you'll never trouble your little head and the most damage you can do is to
> induce abject poverty and homelessness among the thousands of people who
> don't know about the only law that matters: Caveat Emptor.
>
> I hope you found this little lecture informative, enlightening and
> inspirational.
>
> Good luck with those command line arguments.
>
> Randall Schulz
>
> Disclaimer: The author of this humorous missive writes mostly Java code
> these days, and hence would not know a Real Programmer if one had a heart
> attack right in front of him.
>
>
> At 18:51 2002-12-21, Ed wrote:
> >Howdy all!
> >
> >In the old days of libg++ there was something called GetOpt to help
> >parse command line options. In these days of stdlibc++ it seems to be
> >gone.
> >
> >What are well-dressed C++ programmers using to parse their command
> >lines these days?
> >
> >Thanks!
> >
> >Ed

-- 
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: sshd and launching e.g. word.exe - no GUI screen shows up

2002-12-22 Thread Igor Pechtchanski
Peter,

For a non-visual basic solution take a look at the 'run' program at
http://www.neuro.gatech.edu/users/cwilson/cygutils/run/
Incidentally, a similar program also comes with an XFree86 distribution.
Igor

On Mon, 23 Dec 2002, [iso-8859-1] Peter Valdemar Mørch wrote:

> Thanks a million for your reply to my post.
>
> I tried what you suggested, and sure enough, it allows me to do exactly as I
> want. However, when use these settings and the service is started, a
> terminal (or "dos box") appears with absolutely nothing in it. ps -ef shows
> that sshd is running. If I close the dos box, ps shows that sshd
> disappeared, and surely enough I cannot log into the box.
>
> It did however give me the starting point to find a solution that works for
> me: I start sshd myself in a windows Start/Programs/Startup/ shortcut, and
> then disable the service . I am the only one logged in to this machine, and
> I'm always logged in, so that works fine for me. The command for the
> shortcut is:
>
> %windir%\system32\wscript.exe c:\data\scr\quiet.vbs
> c:\cygwin\bin\bash --login -c "export CYGWIN='binmode ntsec tty';
> /usr/sbin/sshd -D"
>
> and quiet.vbs is a little Visual Basic magic to start Cygwin stuff and
> avoiding the terminal. VERY cool and useful whenever you want to run a bash
> script but don't want the terminal that goes along with it. See below.
>
> Of course the ideal general purpose solution is to get it to work as a
> service, that allows interaction with the desktop, but doesn't create a
> terminal. I'm pretty sure the solution is in the registry somewhere, but I
> couldn't quite figure out the logic in the registry settings. The
> "ImagePath" is C:\cygwin\bin\cygrunsrv.exe, the Parameters\AppArgs is "-D",
> and Parameters\AppPath is "/usr/sbin/sshd"... The only way I could get it to
> work by hand was with cygrunsrv -S sshd, but then the window always seemed
> to appear. Anyway...
>
> Thanks again, Larry,
>
> Sincerely
>
> Peter Valdemar Mørch
> [snip quiet.vbs]

-- 
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: Tip: Running a bash script without the terminal window...

2002-12-22 Thread Igor Pechtchanski
For the archives: http://cygwin.com/ml/cygwin/2002-12/msg01208.html
Igor

On Mon, 23 Dec 2002, [iso-8859-1] Peter Valdemar Mørch wrote:

> This is just a little tip I'd like to share.
>
> It annoyed me for some time, that whenever I ran a bash script, I got a
> terminal window whether or not my script needs it. Here is a Visual Basic
> snippet that works for me on W2K and XP, and that runs a bash script without
> the terminal. I use it to start xterms from windows shortcuts, for instance.
> It really can start all kinds of things, also .bat files, if you like...
>
> C:\WINNT\system32\wscript.exe c:\data\scr\quiet.vbs c:\cygwin\bin\bash --login -c 
>"echo do your bashing stuff here > /tmp/somefile"
>
> I think all machines have the wscript.exe executable. The VB script is of
> course the central element, and here it is:
> [snip quiet.vbs]

-- 
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: what to use in g++ instead of GetOpt?

2002-12-22 Thread Randall R Schulz
Howdy, Igor,

Yes. I guess the oxymoron confused me, especially since I always program in 
the buff.

Randy
(why not?)


At 19:12 2002-12-22, Igor Pechtchanski wrote:
Umm, Randy, not to downplay the humor or the valid points in your
soliloquy, but he did say "well-dressed C++ programmers", and everybody
knows (tm) that Real Programmers aren't well-dressed (they also don't use
C++, it's for the wavering who can't decide between C and Java [to
paraphrase]).  Of course, this also depends on your definition of
"well-dressed"...
Igor



--
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: what to use in g++ instead of GetOpt?

2002-12-22 Thread Igor Pechtchanski
Randall,

You'd pretty much have to, being an AI ;-)
Igor
P.S. Sorry for the familiarity...

On Sun, 22 Dec 2002, Randall R Schulz wrote:

> Howdy, Igor,
>
> Yes. I guess the oxymoron confused me, especially since I always program in
> the buff.
>
> Randy
> (why not?)
>
>
> At 19:12 2002-12-22, Igor Pechtchanski wrote:
> >Umm, Randy, not to downplay the humor or the valid points in your
> >soliloquy, but he did say "well-dressed C++ programmers", and everybody
> >knows (tm) that Real Programmers aren't well-dressed (they also don't use
> >C++, it's for the wavering who can't decide between C and Java [to
> >paraphrase]).  Of course, this also depends on your definition of
> >"well-dressed"...
> > 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: Running cygwin built programs in Windows XP

2002-12-22 Thread Pharas
I meant to just copy it not move it outright, as far as unstability I have
been using cygwin for quite a long time and have had no probs with this.
Even when you upgrade the cygwin package and install it, it will ask you if
you would like to remove the old dll from the system32 folder. Then you
could just do a copy of the new one. That said you could just make a copy of
it to the folder where your executable is it will work there to. Thanks for
your time.


Pharas


-Original Message-
From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, December 22, 2002 1:41 PM
To: Pharas; [EMAIL PROTECTED]
Subject: RE: Running cygwin built programs in Windows XP

Anyone who decides they want to do this is free to but it will invalidate
their installation and make it unstable.  Future problems they may run into
as a result will not be seriously entertained by this list (assuming said
persons post to this list for help in those cases) until cygwin1.dll is 
put back where setup installed it.  For anyone wondering, copying 
cygwin1.dll to this directory or any other carries the same warning.

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



At 12:55 AM 12/22/2002, Pharas wrote:
>Just stick cygwin1.dll in your windows\system32 folder.
>
>-Original Message-
>From: John Seeliger [mailto:[EMAIL PROTECTED]] 
>Sent: Saturday, December 21, 2002 6:41 PM
>To: [EMAIL PROTECTED]
>Subject: Running cygwin built programs in Windows XP
>
>How do I run a program that I built with gcc under Cygwin in Windows?  When
>I try to run them, it says it can't find cygwin1.dll.
>
>--
>John Seeliger  Limited but increasing content
>[EMAIL PROTECTED]   
>[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/





--
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: Running cygwin built programs in Windows XP

2002-12-22 Thread Randall R Schulz
Pharas,

Larry is correct. You are not. Problems do occur with multiple copies of 
Cygwin1.dll on a system. We see it here all the time.

Cygwin relies on a shared memory segment and when there's more than one 
copy of the DLL on a given system, eventually a second one will get loaded, 
try to initialize itself and either fail or interfere with the one that's 
already loaded and initialized.

If you want to do this, it's no skin off our nose, but DON'T recommend that 
others do so.

Randall Schulz


At 20:53 2002-12-22, Pharas wrote:
I meant to just copy it not move it outright, as far as unstability I have
been using cygwin for quite a long time and have had no probs with this.
Even when you upgrade the cygwin package and install it, it will ask you if
you would like to remove the old dll from the system32 folder. Then you
could just do a copy of the new one. That said you could just make a copy of
it to the folder where your executable is it will work there to. Thanks for
your time.

Pharas

-Original Message-
From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 22, 2002 1:41 PM
To: Pharas; [EMAIL PROTECTED]
Subject: RE: Running cygwin built programs in Windows XP

Anyone who decides they want to do this is free to but it will invalidate
their installation and make it unstable.  Future problems they may run into
as a result will not be seriously entertained by this list (assuming said
persons post to this list for help in those cases) until cygwin1.dll is
put back where setup installed it.  For anyone wondering, copying
cygwin1.dll to this directory or any other carries the same warning.

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


At 12:55 AM 12/22/2002, Pharas wrote:
>Just stick cygwin1.dll in your windows\system32 folder.
>
>-Original Message-
>From: John Seeliger [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, December 21, 2002 6:41 PM
>To: [EMAIL PROTECTED]
>Subject: Running cygwin built programs in Windows XP
>
>How do I run a program that I built with gcc under Cygwin in Windows?  When
>I try to run them, it says it can't find cygwin1.dll.
>
>--
>John Seeliger



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




Chang Shen is out of the office.

2002-12-22 Thread Chang_Shen
I will be out of the office starting  12/20/2002 and will not return until
12/30/2002.

I will respond to your message when I return.



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

2002-12-22 Thread Randall R Schulz
Ramon,

I took a quick look at the Cygwin support page 
() on the Web site you 
mentioned (I trust you did the same, right?).

Ghemical is a X-based application, which means that before you'll be able 
to either compiler or run this software you'll need to install the 
XFree86/Cygwin packages (available via the same installer you presumably 
used to get your existing Cygw.

Furthermore, according the aforementioned Cygwin support page for Ghemical:

"At the moment (in March 2002) there are no ready GNOME binary packages for 
Cygwin, so in addition to Ghemical, you also have to compile a (minimal) 
GNOME environment. ..."

To be honest, I don't know what is the status of Gnome for XFree86/Cygwin, 
or whether that statement is still valid, but I suspect that it and the 
instructions also included on that page are probably close to the correct.

Assuming you just perform an ordinary install of all of Cygwin, including 
XFree86/Cygwin, using the Cygwin Setup.exe installer, you'll probably have 
a correct Cygwin installation, as far as it goes. That won't get you Gnome, 
so for that part you'll have to follow the instructions on the Ghemical 
Cygwin instructions page and / or ask for more specific help on the 
Cygwin-XFree mailing list.

Good luck.

Randall Schulz


At 18:50 2002-12-22, Igor Pechtchanski wrote:
On Sun, 22 Dec 2002, Ramon Boyd wrote:

> Good afternoon
>
> I have found a really useful software package for chemistry modeling but
> I need to install and run Cygwin to use it.  I don't understand how to
> run Cygwin.  Presently, I am running Windows XP on my system.  I
> understand the premise behind Cygwin as stated on the website.
> However, I find the list of compilation instructions confusing.  I
> appreciate the level of detail the website and detail with which the
> Cygwin program must run.  I am interested in focusing my time on running
> Ghemical.  I am less interested in knowing everything about Linux based
> systems.  That I leave to the experts.  Could you please tell me how to
> install Cygwin properly?  I understand that I need Gnome.  Could you
> also provide a hint at how I am to compile Ghemical?  I would greatly
> appreciate any assistance you could provide.
>
> http://bioinformatics.org/ghemical/download.html
>
> Thanks
> Ramon



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

2002-12-22 Thread S . L .
[...]
> Anyway, thanks for bringing up this issue; it appears that the current 
> libtool is not quite ready for absolutely every possible use that people 
> want...Looks like there are a few things I need to do over Christmas 
> break... :-)
[...]

Anyway, your post should find it's place somewhere in libtool's faq or usage
examples. It's a good hint on how you m4/libtool/autotools folks are seeing
things (much, much different than the rest of the world :) .

SLao

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