Re: configure:2090: error: C compiler cannot create executables

2008-07-08 Thread sugitakukun

Thanks a lot!!

As you say, I have 2 cygwin1.dll in my PC.
When I deleted one in C:\..\SYSTEM ,then

$ cygcheck `gcc -print-prog-name=cc1`
D:\cygwin/lib\gcc/i686-pc-cygwin/3.4.4/cc1.exe
  D:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
  C:\WINDOWS\system32\ntdll.dll
  C:\WINDOWS\system32\KERNEL32.dll
  C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\Secur32.dll
  D:\cygwin\bin\cygiconv-2.dll
  D:\cygwin\bin\cygintl-3.dll


And gcc&g++ run!

$ gcc hello.c
$ ./a
Hello World!


Thanks for DaveK,Brian and everyone.

sugitakukun



Brian Dessent wrote:
> 
> sugitakukun wrote:
> 
>> $ cygcheck `gcc -print-prog-name=cc1`
>> D:\cygwin/lib\gcc/i686-pc-cygwin/3.4.4/cc1.exe
>>   C:\WINDOWS\SYSTEM\cygwin1.dll
>> C:\WINDOWS\system32\ADVAPI32.DLL
>>   C:\WINDOWS\system32\ntdll.dll
>>   C:\WINDOWS\system32\KERNEL32.dll
>>   C:\WINDOWS\system32\RPCRT4.dll
>> C:\WINDOWS\system32\Secur32.dll
>>   D:\cygwin\bin\cygiconv-2.dll
>>   D:\cygwin\bin\cygintl-3.dll
> 
> That looks like you have a multiple Cygwin DLL problem.  It is finding
> Cygwin1.dll in C:\Windows\System but it looks like you installed Cygwin
> in D:\Cygwin.  This usually means you've installed some other software
> from a third party that uses Cygwin under the hood, and they have
> decided to pollute your system by putting their Cygwin1.Dll in the
> system dir.  You get to clean up the mess.
> 
> If you can't figure it out, post the cygcheck output as requested in
> .
> 
> Brian
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/configure%3A2090%3A-error%3A-C-compiler-cannot-create-executables-tp18345234p18352034.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



[ANNOUNCEMENT] Updated: binutils-20080523-2

2008-07-08 Thread Christopher Faylor
I've made a new version of binutils available for installation.  This
version contains a bug fix for the problem described here:

http://sourceware.org/ml/binutils/2008-07/msg00106.html

i.e., "nm -C" did not remove leading underscores.

There should be no other changes besides this one fix from Alan Modra.


For a listing of the files contained in this package see
http://cygwin.com/packages/binutils .  The project web page has more
details: http://sourceware.org/binutils/ .

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 click Next repeatedly.  This will update
any out-of-date packages on your computer.

  *** 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 need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at the above URL.

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



Re: configure:2090: error: C compiler cannot create executables

2008-07-08 Thread Brian Dessent
sugitakukun wrote:

> $ cygcheck `gcc -print-prog-name=cc1`
> D:\cygwin/lib\gcc/i686-pc-cygwin/3.4.4/cc1.exe
>   C:\WINDOWS\SYSTEM\cygwin1.dll
> C:\WINDOWS\system32\ADVAPI32.DLL
>   C:\WINDOWS\system32\ntdll.dll
>   C:\WINDOWS\system32\KERNEL32.dll
>   C:\WINDOWS\system32\RPCRT4.dll
> C:\WINDOWS\system32\Secur32.dll
>   D:\cygwin\bin\cygiconv-2.dll
>   D:\cygwin\bin\cygintl-3.dll

That looks like you have a multiple Cygwin DLL problem.  It is finding
Cygwin1.dll in C:\Windows\System but it looks like you installed Cygwin
in D:\Cygwin.  This usually means you've installed some other software
from a third party that uses Cygwin under the hood, and they have
decided to pollute your system by putting their Cygwin1.Dll in the
system dir.  You get to clean up the mess.

If you can't figure it out, post the cygcheck output as requested in
.

Brian

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



Re: Event viewer application error?

2008-07-08 Thread Larry Hall (Cygwin)

Kevin M wrote:

Hello,
I'm getting this error.


/AUXSOURCE= flag to retrieve this description; see Help and Support for 
details. The following information is part of the event: /usr/sbin/cron: 
PID 2784: (CRON) error (can't switch user context).


I checked and found something that said to add execute permsisions to 
the cygwin1.dll and give permissions to /etc/cron.d. This has not worked 
if anybody has any ideas I would apprcieate it. I have no idea where to 
put the /AUXSOURCE= flag and also don't know what value it is looking for.


This would be helpful:


Problem reports:   http://cygwin.com/problems.html


Or at least who the 'cron' service is running as.  My guess is that when you
installed cron, you chose to run it as yourself or some other unprivileged
(including 'Administrator') user.  Windows services cannot switch user
contexts unless they use a special privileged account (SYSTEM on XP or older
systems).  That's why you get the message.  The solution?  Reinstall it and
let it run under a privileged account.


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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



RE: configure:2090: error: C compiler cannot create executables

2008-07-08 Thread sugitakukun

Thanks for advice.

Try cygcheck, then


$ cygcheck `gcc -print-prog-name=cc1`
D:\cygwin/lib\gcc/i686-pc-cygwin/3.4.4/cc1.exe
  C:\WINDOWS\SYSTEM\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
  C:\WINDOWS\system32\ntdll.dll
  C:\WINDOWS\system32\KERNEL32.dll
  C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\Secur32.dll
  D:\cygwin\bin\cygiconv-2.dll
  D:\cygwin\bin\cygintl-3.dll


But I can't find out what file is "missing".
All DLL files exist.
Some other files are missing from my PC?



Dave Korn wrote:
> 
> sugitakukun wrote on 08 July 2008 18:55:
> 
>> Hi everyone.
>> 
>> I installed Cygwin a little days ago to use gcc & g++.
>> I tried "gcc hello.c -o test" ,but no error messages were printed and no
>> file were made.(So do g++ & hello.cpp)
> 
>   Missing DLL, most likely.  Run "cygcheck `gcc -print-prog-name=cc1`" to
> verify and find out what's missing, then re-run setup.exe - it should pick
> up the missing dependencies automatically.
> 
> 
> cheers,
>   DaveK
> -- 
> Can't think of a witty .sigline today
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/configure%3A2090%3A-error%3A-C-compiler-cannot-create-executables-tp18345234p18345887.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Event viewer application error?

2008-07-08 Thread Kevin M

Hello,
I'm getting this error.


/AUXSOURCE= flag to retrieve this description; see Help and Support for 
details. The following information is part of the event: 
/usr/sbin/cron: PID 2784: (CRON) error (can't switch user context).


I checked and found something that said to add execute permsisions to 
the cygwin1.dll and give permissions to /etc/cron.d. This has not 
worked if anybody has any ideas I would apprcieate it. I have no idea 
where to put the /AUXSOURCE= flag and also don't know what value it is 
looking for.

Thanks!
Kevin M




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



re: openssh error 1062

2008-07-08 Thread Lee Parsons
> and one for how to uninstall a cygwin service:
> http://cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-service

Aha, that seems to have solved the problem.  I uninstalled it as a service,
and then re-ran ssh-host-config to re-install it as a service.  Now things
seem to be working correctly.

If only I could figure out what caused it to roll over and die on me in the
first place ...  But this is good enough for my purposes.

thank you
Lee



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



RE: configure:2090: error: C compiler cannot create executables

2008-07-08 Thread Dave Korn
sugitakukun wrote on 08 July 2008 18:55:

> Hi everyone.
> 
> I installed Cygwin a little days ago to use gcc & g++.
> I tried "gcc hello.c -o test" ,but no error messages were printed and no
> file were made.(So do g++ & hello.cpp)

  Missing DLL, most likely.  Run "cygcheck `gcc -print-prog-name=cc1`" to
verify and find out what's missing, then re-run setup.exe - it should pick
up the missing dependencies automatically.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



RE: openssh error 1062

2008-07-08 Thread Dave Korn
Lee Parsons wrote on 08 July 2008 17:36:

> 
> I'm not sure if this is important, but I noticed when I ran
> 'ssh-host-config -y' as administrator, it never gave a "CYGWIN=" prompt. 
> I haven't found a good explanation for this behavior, either.

  Your uninstall-fu is weak.  You didn't delete the service when you moved
C:\cygwin to one side and reinstalled.  Hence ssh-host-config didn't
reinstall the service because it thought it was already installed.

  There's a procedure in the FAQ for comprehensively uninstalling cygwin.
http://cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all
and one for how to uninstall a cygwin service:
http://cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-service

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



configure:2090: error: C compiler cannot create executables

2008-07-08 Thread sugitakukun

Hi everyone.

I installed Cygwin a little days ago to use gcc & g++.
I tried "gcc hello.c -o test" ,but no error messages were printed and no
file were made.(So do g++ & hello.cpp)

I tried Automake for hello.c on Cygwin, then


$ ./configure
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.



And config.log says



This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by FULL-PACKAGE-NAME configure VERSION, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure 

## - ##
## Platform. ##
## - ##

hostname = your-dz88tzdc7k
uname -m = i686
uname -r = 1.5.25(0.156/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2008-06-12 19:34

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = i686
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/bin
PATH: /usr/lib/lapack


## --- ##
## Core tests. ##
## --- ##

configure:1697: checking for gcc
configure:1724: result: gcc
configure:1962: checking for C compiler version
configure:1969: gcc --version >&5
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1972: $? = 0
configure:1979: gcc -v >&5
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure
--verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls
--without-included-gettext --enable-version-specific-runtime-libs
--without-x --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-libgcj-debug --enable-threads=posix
--enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
configure:1982: $? = 0
configure:1989: gcc -V >&5
gcc: `-V' option must have argument
configure:1992: $? = 1
configure:2015: checking for C compiler default output file name
configure:2042: gccconftest.c  >&5
configure:2045: $? = 1
configure:2083: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2090: error: C compiler cannot create executables
See `config.log' for more details.

##  ##
## Cache variables. ##
##  ##

ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_CC=gcc

## - ##
## Output variables. ##
## - ##

CC='gcc'
CFLAGS=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
PACKAGE_NAME='FULL-PACKAGE-NAME'
PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
PACKAGE_TARNAME='full-package-name'
PACKAGE_VERSION='VERSION'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## --- ##
## confdefs.h. ##
## --- ##

#define PACKAGE_NAME "FULL-PACKAGE-NAME"
#define PACKAGE_TARNAME "full-package-name"
#define PACKAGE_VERSION

re: openssh error 1062

2008-07-08 Thread Lee Parsons
I just noticed a typo that was returned on the 'cygrunsrv -VQ sshd' command.
 The environment line came back as "CYGWIN="htsec tty"".   I then ran

 cygrunsrv -R sshd

followed by

 cygrunsrv -I sshd -p /usr/sbin/sshd -a '-D' -d 'CYGWIN sshd' -e
'CYGWIN=ntsec
tty' -y tcpip

and then

cygrunsrv -VQ sshd

which gave me

Service : sshd
Display name: CYGWIN sshd
Current State   : Stopped
Command : /usr/sbin/sshd -D
stdin path  : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN="ntsec tty"
Process Type: Own Process
Startup : Automatic
Dependencies: tcpip
Account : LocalSystem


To be less verbose, sshd still doesn't start.  I still get error 1062 when
trying to start it with cygrunsrv.



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



Re: Connect cygwin with old version of gcc

2008-07-08 Thread Larry Hall (Cygwin)

yu xuesheng wrote:

Thank you Larry!
You said
"You could then point 'setup.exe' at that local directory and
install from it. "

I already downloaded gcc-core-3.3.3-3-src.tar.bz2, how can I make
setup.exe do the installation from this file?


If you believe that this package is the sum total of what you need to
do what you want, then you want to:


...download
all the needed packages at that via 'wget' or something similar to your
local disk with the same directory structure as your usual download
directory.  


When I say your "usual download directory", I mean your local Cygwin
download directory.  That's the directory you tell 'setup.exe' to use
for the packages it downloads.  You may be able to get away with putting
the package in a directory by itself and pointing 'setup.exe' at that
(i.e. specifying this as the local download directory and telling
'setup.exe' to install from the local directory).  I've never tried this
but I believe that such functionality was at least once supported in
'setup.exe'.  If that doesn't work, then:


...you may find it simpler
to install the packages manually (tar + running postinstall scripts).


I'll take this opportunity to repeat myself a little more:


But that's advanced stuff too and should only be done "if you know what
you're doing"(tm).  If not or if you're not willing or able to solve any
problems that might arise from taking these approaches, you shouldn't
bother.  All of this puts you into the realm of things not supported by
this list.  So if you complain to this list later about problems you see
in the process or with the result, it may very well fall on deaf ears.


But you sound like the adventurous type so go ahead and have fun! ;-)

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



re: openssh error 1062

2008-07-08 Thread Lee Parsons
>What does 'cygrunsrv -VQ sshd' show?

$ cygrunsrv -VQ sshd
Service : sshd
Display name: CYGWIN sshd
Current State   : Stopped
Command : /usr/sbin/sshd -D
stdin path  : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN="htsec tty"
Process Type: Own Process
Startup : Automatic
Dependencies: tcpip
Account : LocalSystem




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



Re: Updating cygwin from a remote shell?

2008-07-08 Thread cuicui

Thomas Walker a écrit :

Apologies if this is a newbie question... I did a decent amount of
looking through mailing lists but couldn't find anything relevant.

I'm a Linux/Unix person by hobby and profession and don't really do
much Windows but my family (living in another state) is still rather
Windows centric.  A hard disk failure ago I decided to place a dirt
cheap headless Linux box with mirrored raid on their network and setup
cygwin on their Windows machines so that I could cobble together an
easy backup solution based on cron, ssh, rdist, and fuse.

That all works fine and has done so for some time.  I'm a little bit
of a security nut though (and sometime also want to be able to add new
features for myself and for them) and would like to be able to easily
update cygwin and/or install new packages onto the Windows/Cygwin
boxes from a remote shell.

I know I can setup VNC and all that fun stuff and run setup.exe but is
there an easier way?  The usual yum, apt, up2date, etc. don't seem to
be options...


I think that dpkg exists but you cannot update binaries that are 
running. If you are connected with ssh, the setup process will stop if 
it has to update bash, openssh, cygrunsrv and cygwin...


Cheers,


Nicolas

--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.


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



Re: openssh error 1062

2008-07-08 Thread René Berber

Lee Parsons wrote:


I am working on a windows 2000 box that openssh recently stopped working on.

[snip]

What does 'cygrunsrv -VQ sshd' show?

Any messages on Windows' Event Viewer?
--
René Berber


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



Re: Connect cygwin with old version of gcc

2008-07-08 Thread yu xuesheng
Thank you Larry!
You said
"You could then point 'setup.exe' at that local directory and
install from it. "

I already downloaded gcc-core-3.3.3-3-src.tar.bz2, how can I make setup.exe do 
the installation from this file?

Xuesheng


---
yu xuesheng wrote:

Hi. I just wonder how to connect the old version of GCC to Cygwin? I have
a large code, which only can run under GCC 3.3.3. Thank you for your help!


Looks like it's still an available Cygwin package but it's old enough that
'setup.exe' won't present it to you by default.  You'd need to download
all the needed packages at that via 'wget' or something similar to your
local disk with the same directory structure as your usual download
directory.  You could then point 'setup.exe' at that local directory and
install from it.  If you already have these packages in your existing
local download directory, you may be able to get 'setup.exe' to look
at those directly by removing the newer versions and removing/hiding
the top-level 'setup.ini'.  This is advanced manipulation of 'setup.exe'.
If you understand this well enough to try it, you may find it simpler
to install the packages manually (tar + running postinstall scripts).
But that's advanced stuff too and should only be done "if you know what
you're doing"(tm).  If not or if you're not willing or able to solve any
problems that might arise from taking these approaches, you shouldn't
bother.  All of this puts you into the realm of things not supported by
this list.  So if you complain to this list later about problems you see
in the process or with the result, it may very well fall on deaf ears.


Good luck


  

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



Re: Connect cygwin with old version of gcc

2008-07-08 Thread Larry Hall (Cygwin)

yu xuesheng wrote:

Hi. I just wonder how to connect the old version of GCC to Cygwin? I have
a large code, which only can run under GCC 3.3.3. Thank you for your help!


Looks like it's still an available Cygwin package but it's old enough that
'setup.exe' won't present it to you by default.  You'd need to download
all the needed packages at that via 'wget' or something similar to your
local disk with the same directory structure as your usual download
directory.  You could then point 'setup.exe' at that local directory and
install from it.  If you already have these packages in your existing
local download directory, you may be able to get 'setup.exe' to look
at those directly by removing the newer versions and removing/hiding
the top-level 'setup.ini'.  This is advanced manipulation of 'setup.exe'.
If you understand this well enough to try it, you may find it simpler
to install the packages manually (tar + running postinstall scripts).
But that's advanced stuff too and should only be done "if you know what
you're doing"(tm).  If not or if you're not willing or able to solve any
problems that might arise from taking these approaches, you shouldn't
bother.  All of this puts you into the realm of things not supported by
this list.  So if you complain to this list later about problems you see
in the process or with the result, it may very well fall on deaf ears.

Good luck.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



openssh error 1062

2008-07-08 Thread Lee Parsons
I am working on a windows 2000 box that openssh recently stopped working on.
 For several months openssh worked correctly through cygwin as a service,
until the box was errantly shut down by a power outage.  Subsequent attempts
to log in to said box through ssh resulted in authentication errors.

Several different attempts to solve the problem have since been attempted,
including the re-installation of openssh, followed by later the
re-installation of cygwin into a new directory.  Now we are instead blessed
with the windows "error 1062" when trying to start openssh.  

I have seen a variety of solutions for this problem (such as checking the
permissions on /var/empty, correcting /etc/passwd for the user 'sshd',
explicitly setting windows permissions for the cygwin directory to the user
SYSTEM, and verifying the windows registry keys).  None of the proposed
solutions have made a difference.  

I have also tried running it from the cygwin prompt as administrator (after
adjusting permissions on /var/empty accordingly).  This does not work
correctly, either.  If I run it this way, I am back to where I was before -
password authentication fails, even when connecting to localhost as a
non-administrator user who has a valid home directory and valid shell path.

I am out of ideas on this problem.  My current installation of cygwin is in
a completely new directory - I moved my previous installation from
"C:\cygwin" to "C:\cygwin-old" and installed the new one as "C:\cygwin".  

I'm not sure if this is important, but I noticed when I ran 'ssh-host-config
-y' as administrator, it never gave a "CYGWIN=" prompt.  I haven't found a
good explanation for this behavior, either.  

This is "OpenSSH_5.0p1, OpenSSL 0.9.8h May 2008" on cygwin from setup
2.573.2.2.

thank you
Lee Parsons


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



Connect cygwin with old version of gcc

2008-07-08 Thread yu xuesheng
Hi. I just wonder how to connect the old version of GCC to Cygwin? I have a 
large code, which only can run under GCC 3.3.3. Thank you for your help!


  

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



Re: Poor man's mailer??

2008-07-08 Thread Kevin M

David,
Here is my crontab -l output:

[EMAIL PROTECTED] ~
$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.QulgheVy6A installed on Tue Jul  8 12:07:04 2008)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie 
Exp $)
*   *   *   *   *   
/home/sys-scheduler/testcron.bash >/dev/null 2>&1





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



Re: perl-5.10.0-4 -> perl-5.10.0-5 update appears to break DateTime

2008-07-08 Thread Reini Urban
2008/7/8 Gary R. Van Sickle <[EMAIL PROTECTED]>:
> Hi Reini,
>
> It looks like something changed between perl 5.10.0-4 and -5 which breaks
> the DateTime module from CPAN (version 0.4302, latest).  The attached Simple
> Test Case(tm) results in only the following errors:
>
> Use of uninitialized value $id in pattern match (m//) at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 65.

Bad side-effect with a third party module in site_perl.
Strange that I didn't see this in my tests, because I tested over
thousand CPAN modules with this release.
Oh, I see, I reported that it failed on June 5.

$ cpan DateTime
requires DateTime::Locale

DateTime::Locale cannot be installed because of this error,
but since you upgraded perl we have to fix DateTime::Locale now.

Oops. This seems to affect more modules.
Params::Validate with type => SCALAR seems to be broken.
  http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Params%3A%3AValidate

I have to go now, but will provide a patch soon.
As workaround I would disable the validation in DateTime::Locale::_register
but this also doesn't work as expected.

if (! defined $p{id} or !$id) {
# cygperl5 error in Params::Validate?
#warn "Broken Params::Validate. Given ".join(",",@_);
$p{id} = $_[0];
$p{en_language} = $_[1];
my @keys = qw(en_script en_territory en_variant native_language
native_script native_territory native_variant class replace);
for my $i (2 .. @_) {
$p{$keys[$i]} = $_[$i];
}
}


> Use of uninitialized value $id in exists at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 68.
> Use of uninitialized value $native_pieces[0] in join or string at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 83.
> Use of uninitialized value $id in hash element at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 85.
> Use of uninitialized value $id in hash element at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 90.
> Use of uninitialized value $id in pattern match (m//) at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 65.
> Use of uninitialized value $id in exists at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 68.
> Use of uninitialized value $id in concatenation (.) or string at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 68.
> You cannot replace an existing locale ('') unless you also specify the
> 'replace' parameter as true
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.10/DateTime/Locale.pm line 151.
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.10/i686-cygwin/DateTime.pm line 46.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.10/i686-cygwin/DateTime.pm line 46.
> Compilation failed in require at ./simple_test_case_datetime.pl line 3.
> BEGIN failed--compilation aborted at ./simple_test_case_datetime.pl line 3.
>
> Doing the "perl -MExtUtils::Installed [...]"/"cpan `cat module.list`" thing
> (and also a "force install DateTime") results in the same errors, and
> needless to say doesn't end up generating a working DateTime module.  This
> same version of DateTime did work without error in 5.10.0-4 and does work
> with 5.8.8-4.
>
> --
> Gary R. Van Sickle
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>



-- 
Reini Urban
http://phpwiki.org/ http://murbreak.at/

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



Re: Updating cygwin from a remote shell?

2008-07-08 Thread Larry Hall (Cygwin)

Thomas Walker wrote:

Apologies if this is a newbie question... I did a decent amount of
looking through mailing lists but couldn't find anything relevant.

I'm a Linux/Unix person by hobby and profession and don't really do
much Windows but my family (living in another state) is still rather
Windows centric.  A hard disk failure ago I decided to place a dirt
cheap headless Linux box with mirrored raid on their network and setup
cygwin on their Windows machines so that I could cobble together an
easy backup solution based on cron, ssh, rdist, and fuse.

That all works fine and has done so for some time.  I'm a little bit
of a security nut though (and sometime also want to be able to add new
features for myself and for them) and would like to be able to easily
update cygwin and/or install new packages onto the Windows/Cygwin
boxes from a remote shell.

I know I can setup VNC and all that fun stuff and run setup.exe but is
there an easier way?  The usual yum, apt, up2date, etc. don't seem to
be options...


In order to install Cygwin without a reboot (and a message asking you to
close running Cygwin processes), you need a remote shell not based on
Cygwin.  That said (or perhaps notwithstanding), did you see?




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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



Re: Becoming a mirror of Cygwin

2008-07-08 Thread Christopher Faylor
On Tue, Jul 08, 2008 at 03:43:37PM +0100, Dave Korn wrote:
>Christopher Faylor wrote on 08 July 2008 15:35:
>
>> On Tue, Jul 08, 2008 at 09:47:09AM +0200, Thorsten Kampe wrote:
>>> * [EMAIL PROTECTED] (Tue, 08 Jul 2008 14:16:56 +0700)
 I'm a system administrator of FPT Telecom - one of the largest ISP in
 Vietnam. I'm being responsible for becoming a mirror of community sites.
 
 I have a question:
 How does our site become a mirror of Cygwin?
>>> 
>>> "Contact sourcemaster at this site [...]. sourcemaster is also the place
>>> to send requests to be added to this list."
>>> http://www.cygwin.com/mirrors.html
>> 
>>That's right.
>>
>>Remember that sending email there just will get you added to the list.
>>We (i.e., I) don't advise you in *how* to do this but setting up an
>>rsync mirror should be fairly straightforward.
>
>...  and one way of doing it is documented (in the section "Creating a
>local Cygwin mirror with rsync") at
>
>http://sourceware.org/cygwin-apps/package-server.html

Hmm.  That page tells people to rsync from a mirror.  I don't see any
reason to do that when you can use rsync from cygwin.com directly.

Was that just to save on sourceware.org bandwidth?  If so, I don't think
this is an issue anymore.

cgf

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



Re: Updating cygwin from a remote shell?

2008-07-08 Thread Andrew DeFaria

Thomas Walker wrote:
Apologies if this is a newbie question... I did a decent amount of 
looking through mailing lists but couldn't find anything relevant.


I'm a Linux/Unix person by hobby and profession and don't really do 
much Windows but my family (living in another state) is still rather 
Windows centric. A hard disk failure ago I decided to place a dirt
cheap headless Linux box with mirrored raid on their network and setup 
cygwin on their Windows machines so that I could cobble together an 
easy backup solution based on cron, ssh, rdist, and fuse.


That all works fine and has done so for some time. I'm a little bit of 
a security nut though (and sometime also want to be able to add new 
features for myself and for them) and would like to be able to easily
update cygwin and/or install new packages onto the Windows/Cygwin 
boxes from a remote shell.


I know I can setup VNC and all that fun stuff and run setup.exe but is 
there an easier way? The usual yum, apt, up2date, etc. don't seem to 
be options...
There is no yum, apt, up2date, etc. You don't need VNC. RDP is already 
on XP machines. Use rdesktop(1).

--
Andrew DeFaria 
If I want your opinion, I'll ask you to fill out the necessary forms.


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



RE: Becoming a mirror of Cygwin

2008-07-08 Thread Dave Korn
Christopher Faylor wrote on 08 July 2008 15:35:

> On Tue, Jul 08, 2008 at 09:47:09AM +0200, Thorsten Kampe wrote:
>> * [EMAIL PROTECTED] (Tue, 08 Jul 2008 14:16:56 +0700)
>>> I'm a system administrator of FPT Telecom - one of the largest ISP in
>>> Vietnam. I'm being responsible for becoming a mirror of community sites.
>>> 
>>> I have a question:
>>> How does our site become a mirror of Cygwin?
>> 
>> "Contact sourcemaster at this site [...]. sourcemaster is also the place
>> to send requests to be added to this list."
>> http://www.cygwin.com/mirrors.html
> 
> That's right.
> 
> Remember that sending email there just will get you added to the list.
> We (i.e., I) don't advise you in *how* to do this but setting up an
> rsync mirror should be fairly straightforward.

... and one way of doing it is documented (in the section "Creating a local
Cygwin mirror with rsync") at

  http://sourceware.org/cygwin-apps/package-server.html

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: Becoming a mirror of Cygwin

2008-07-08 Thread Christopher Faylor
On Tue, Jul 08, 2008 at 09:47:09AM +0200, Thorsten Kampe wrote:
>* [EMAIL PROTECTED] (Tue, 08 Jul 2008 14:16:56 +0700)
>> I'm a system administrator of FPT Telecom - one of the largest ISP in
>> Vietnam. I'm being responsible for becoming a mirror of community
>> sites.
>> 
>> I have a question:
>> How does our site become a mirror of Cygwin?
>
>"Contact sourcemaster at this site [...]. sourcemaster is also the place 
>to send requests to be added to this list."
>http://www.cygwin.com/mirrors.html

That's right.

Remember that sending email there just will get you added to the list.
We (i.e., I) don't advise you in *how* to do this but setting up an
rsync mirror should be fairly straightforward.

cgf

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



Re: Poor man's mailer??

2008-07-08 Thread Kevin M

Dave Korn has brought this to us :

Kevin M wrote on 03 July 2008 18:40:


Hello,

A while ago Pierre gave me a "poor mans mailer" and I have lost he
email that contained the instructions. Sorry about that. I recall
setting up a MAILTO= something or another in the crontab file and after
that I can't remember. Forgive me for losing the information can
somebody help me.


  Have you ever heard of a thing called a "search engine"?  There's one
called "Google" that is quite well-known...

http://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-G
B%3Aofficial&hs=XFT&q=%22poor+man%27s+mailer%22+pierre+kevin&btnG=Search&met
a=


[ or http://tinyurl.com/4883ml to avoid line-wrapping. ]

cheers,
  DaveK



Thanks!




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



Updating cygwin from a remote shell?

2008-07-08 Thread Thomas Walker
Apologies if this is a newbie question... I did a decent amount of
looking through mailing lists but couldn't find anything relevant.

I'm a Linux/Unix person by hobby and profession and don't really do
much Windows but my family (living in another state) is still rather
Windows centric.  A hard disk failure ago I decided to place a dirt
cheap headless Linux box with mirrored raid on their network and setup
cygwin on their Windows machines so that I could cobble together an
easy backup solution based on cron, ssh, rdist, and fuse.

That all works fine and has done so for some time.  I'm a little bit
of a security nut though (and sometime also want to be able to add new
features for myself and for them) and would like to be able to easily
update cygwin and/or install new packages onto the Windows/Cygwin
boxes from a remote shell.

I know I can setup VNC and all that fun stuff and run setup.exe but is
there an easier way?  The usual yum, apt, up2date, etc. don't seem to
be options...


Thanks.

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



Re: Becoming a mirror of Cygwin

2008-07-08 Thread Thorsten Kampe
* [EMAIL PROTECTED] (Tue, 08 Jul 2008 14:16:56 +0700)
> I'm a system administrator of FPT Telecom - one of the largest ISP in
> Vietnam. I'm being responsible for becoming a mirror of community
> sites.
> 
> I have a question:
> How does our site become a mirror of Cygwin?

"Contact sourcemaster at this site [...]. sourcemaster is also the place 
to send requests to be added to this list."
http://www.cygwin.com/mirrors.html


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



Re: Becoming a mirror of Cygwin

2008-07-08 Thread Corinna Vinschen
On Jul  8 14:16, [EMAIL PROTECTED] wrote:
> How does our site become a mirror of Cygwin?

See http://cygwin.com/mirrors.html.  Send mail to sourcemaster AT
sourceware DOT org.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



Becoming a mirror of Cygwin

2008-07-08 Thread [EMAIL PROTECTED]

Hi,

I'm a system administrator of FPT Telecom - one of the largest ISP in 
Vietnam. I'm being responsible for becoming a mirror of community sites.


I have a question:
How does our site become a mirror of Cygwin?

Looking forward your feedbacks.

Thanks & Best regards,
[EMAIL PROTECTED]

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