delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/10/24/05:41:44

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EB60385801C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1635056846;
bh=D4mfzInPKLdBmNJPPn6iiJZjrVzAnWsxJXMd2Nd+XNw=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=MwvBUnJD4aZoT8cp7VZFX3xdFjb4txU21GUQhMQqZrPW0LO+6l/lZb/tkEpnCBHH2
sa7Rs9HlLSwYXLkFdtk6rlsaIZmkMlQc+AFHC6rYJcK1WAMrwRGPWymBaU4NtQ7dz6
EL7C2wikoVjUMCzm5/IcFS5lG4sKMHPLVeQp6ot4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3D23D3858D28
To: cygwin AT cygwin DOT com
Subject: Problem/Bug with binutils-gdb and strsignal ?
Message-ID: <672ed09c-7452-0e12-fea1-4e7aadfc48aa@mailzone.com>
Date: Sun, 24 Oct 2021 08:26:45 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
X-Pobox-Relay-ID: 5DD767DA-3493-11EC-8761-98D80D944F46-70095823!pb-smtp21.pobox.com
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,
SPF_PASS, TXREP, URIBL_CSS autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: =?utf-8?q?Claudius_Schn=C3=B6rr_via_Cygwin?= <cygwin AT cygwin DOT com>
Reply-To: =?UTF-8?Q?Claudius_Schn=c3=b6rr?= <schnoerr AT mailzone DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 19O9fhf8006649

Hello,

when compiling binutils-gdb I got stuck with an error concerning the strsignal function.
This also occurs when trying to compile the insight gdb-frontend on cygwin64 that I tried to build.

  * platform:
      o cygwin 64bit on Win-10
      o gcc (GCC) 11.2.0, g++ (GCC) 11.2.0

  * commands submitted:
      o git clone --recursive git://sourceware.org/git/binutils-gdb.git
      o autoconf
      o ./configure
      o make

  * Error message:
      o event-top.c: In function ‘void handle_fatal_signal(int)’:
        event-top.c:893:18: error: ‘strsignal’ was not declared in this
        scope; did you mean ‘strsigno’?
           893 |       sig_write (strsignal (sig));

  * comment:
      o strsignal() is declared in string.h. However, including it
        doesn't work.
        Then I inspected string.h on cygwin64 in /usr/include and found
        this:
      o #ifndef DEFS_H    /* Kludge to work around problem compiling in
        gdb */
        char    *strsignal (int __signo);
        #endif
      o suggestion: undefining DEFS_H might be risky -> to be added at
        line 55:
          + #ifndef DEFS_H
            #    include <string.h>             /* for strsignal on
            cygwin */
            #else
            char *strsignal (int __signo);      /* see
            /usr/include/string.h on cygwin */
            #endif
      o then it compiles, however a library is missed now:
          + x86_64-pc-cygwin/bin/ld:
            event-top.o:.../insight/bundle/gdb/event-top.c:899:
            undefined reference to `strsignal(int)'
            collect2: error: ld returned 1 exit status

Hope this helps somehow.

Kind regards,

Claudius


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

- Raw text -


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