delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/30/18:51:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <5016969F.3050204@cygwin.com>
References: <CA+7conmf=HORJ9nscNe4CA67EAeO+n7H6GkpVK4cPq315wJtzg AT mail DOT gmail DOT com> <CAHiT=DFFxBH=EoQx1karYBhAEVmNk1n9Ocn6kjLvnjWboXJ7Ow AT mail DOT gmail DOT com> <CA+7con=8oSTpx1W5uHnyMFkQ2f+Ynz2YOtGTLs9L02jXJeQe_g AT mail DOT gmail DOT com> <5016969F DOT 3050204 AT cygwin DOT com>
Date: Tue, 31 Jul 2012 00:50:26 +0200
Message-ID: <CA+7conn6_Qje41DkpvgMVRagypCnX5sTLO-xECtCQD0tQbwzJA@mail.gmail.com>
Subject: Re: sshd crashing
From: Pawel Jasinski <pawel DOT jasinski AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

hi,

I have already tried. So my first step is to recompile sshd without
any changes (adding debug etc.)
As far as I can tell from documentation, sshd is type 3, covered by
cygport tool.
So I did:

$ cygport /usr/src/openssh-6.0p1-2.cygport prep
>>> Preparing openssh-6.0p1-2
*** Info: gnupg must be installed in order to check signatures.
>>> Unpacking source openssh-6.0p1.tar.gz
>>> Preparing working source directory
*** Info: applying patch openssh-6.0p1-2.cygwin.patch:
patching file CYGWIN-PATCHES/setup.hint
*** Info: applying patch openssh-6.0p1-2.src.patch:

things are ok until now. If I should do anything else, please tell me.

now step 2:

$ cygport /usr/src/openssh-6.0p1-2.cygport compile
>>> Compiling openssh-6.0p1-2
/usr/src/openssh-6.0p1-2/src/openssh-6.0p1/configure
--srcdir=/usr/src/openssh-6.0p1-2/src/openssh-6.0p1 --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --datarootdir=/usr/share
--docdir=/usr/share/doc/openssh -C --libexecdir=/usr/sbin
--with-kerberos5=/usr --with-tcp-wrappers --with-libedit
--with-xauth=/usr/bin/xauth
configure: loading cache config.cache
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/src/openssh-6.0p1-2/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
*** ERROR: configure failed

If I look at config,log the things look funny around gcc invocation,
but I am kind of novice to cygport and can not figure out what's going
on:

gcc -ggdb -O2 -pipe
-fdebug-prefix-map=/usr/src/openssh-6.0p1-2/build=/usr/src/debug/openssh-6.0p1-2
-fdebug-prefix-ma
p=/usr/src/openssh-6.0p1-2/src/openssh-6.0p1=/usr/src/debug/openssh-6.0p1-2
  conftest.c  >&5
cc1: error: unrecognized command line option
"-fdebug-prefix-map=/usr/src/openssh-6.0p1-2/build=/usr/src/debug/openssh-6.0p1-2"
cc1: error: unrecognized command line option
"-fdebug-prefix-map=/usr/src/openssh-6.0p1-2/src/openssh-6.0p1=/usr/src/debug/openssh-6.0

What am I missing?

Cheers,
Pawel

On Mon, Jul 30, 2012 at 4:13 PM, Larry Hall (Cygwin) <your spam filter
complains about it> wrote:
> On 7/28/2012 5:27 AM, Pawel Jasinski wrote:
>
> <snip>
>
>
>> I also tried to core dump with:
>> /usr/bin/cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a "-D"
>> -y tcpip -u cyg_server -w xxxxxx  -e CYGWIN="error_start=dumper -d %1
>> %2"
>>
>> The file is there (/sshd.exe.core), but again gdb doesn't show any
>> encouraging information:
>>
>>
>> $ gdb /usr/sbin/sshd.exe sshd.exe.core
>> GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
>> Copyright (C) 2011 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later
>> <http://gnu.org/licenses/gpl.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>> and "show warranty" for details.
>> This GDB was configured as "i686-cygwin".
>> For bug reporting instructions, please see:
>> <http://www.gnu.org/software/gdb/bugs/>...
>> Reading symbols from /usr/sbin/sshd.exe...(no debugging symbols
>> found)...done.
>
>                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
> Without debug symbols, you're not going to see much useful in the debugger.
> I'd recommend rebuilding the package as debug and trying again.
>
> --
> Larry
>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019