From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) by sourceware.org (Postfix) with ESMTPS id 497473857827 for ; Sat, 16 Oct 2021 16:12:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 497473857827 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 1DF8EF1CD9; Sat, 16 Oct 2021 12:12:43 -0400 (EDT) (envelope-from schnoerr@mailzone.com) Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 16D67F1CD8; Sat, 16 Oct 2021 12:12:43 -0400 (EDT) (envelope-from schnoerr@mailzone.com) Received: from [192.168.178.104] (unknown [109.125.106.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 391F6F1CD6; Sat, 16 Oct 2021 12:12:42 -0400 (EDT) (envelope-from schnoerr@mailzone.com) To: gdbadmin@sourceware.org Cc: brobecker@adacore.com From: =?UTF-8?Q?Claudius_Schn=c3=b6rr?= Subject: Bugreport for binutils-gdb on cygwin Message-ID: Date: Sat, 16 Oct 2021 18:12:39 +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: E42C724C-2E9B-11EC-A125-CD991BBA3BAF-70095823!pb-smtp2.pobox.com X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdbadmin@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdbadmin mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Oct 2021 16:12:47 -0000 Hello, I write to you since I don't know where to submit a bugreport. After trying to compile the insight gdb-frontent on cygwin=20 (git://sourceware.org/git/insight.git) the maintainer classified the=20 following issue to directly be addressed to binutils-gdb package: * 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 =E2=80=98void handle_fatal_signal(int)=E2= =80=99: event-top.c:893:18: error: =E2=80=98strsignal=E2=80=99 was not de= clared in this scope; did you mean =E2=80=98strsigno=E2=80=99? =C2=A0 893 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sig_write (strs= ignal (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=C2=A0=C2=A0=C2=A0 /* Kludge to work around problem= compiling in gdb */ char=C2=A0=C2=A0=C2=A0 *strsignal (int __signo); #endif o suggestion: undefining DEFS_H might be risky -> to be added at line 55: + #ifndef DEFS_H #=C2=A0=C2=A0=C2=A0 include =C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* for strsignal on cygwin */ #else char *strsignal (int __signo);=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = /* 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