From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A2DBD385842C; Fri, 10 Nov 2023 23:28:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2DBD385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1699658892; bh=u342AUkta6d2suwdNO2kwHjxCd7v6TJzCXL2WkJET2c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=poxleV8IWOAgJ8J6SeZ7zScjDnBoWFRBanaBM/rJhg6Rip5YcXFwuB5PWopH6Ru7Y UaXP0cezKvIWXFGNWA/KIh+Y+7hBsg795FBWBu1W0JQyFx98QsGp+conhjdLHCms9m IVfKh2/NW3VTeS2+PgNKinb1Yr0KnQnfPSS8lFys= From: "madebr at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug build/31050] Compile error in gnulib/import/closedir.c Date: Fri, 10 Nov 2023 23:28:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: madebr at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31050 --- Comment #2 from maarten --- It contains the following: configure:23178: checking for closedir configure:23178: i686-w64-mingw32-gcc -o conftest.exe -g -O2=20=20=20=20=20= =20 -Wl,--stack,12582912 conftest.c >&5 /usr/lib/gcc/i686-w64-mingw32/12.2.1/../../../../i686-w64-mingw32/bin/ld: /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libmingwex.a(lib32_libmingw= ex_a-dirent.o):(.text+0x22f): undefined reference to `__strcpy_chk' collect2: error: ld returned 1 exit status I have encountered this issue before with the Fedora mingw toolchains. I need to add -lssp to LDFLAGS. Thanks for pointing me in the correct direction. --=20 You are receiving this mail because: You are on the CC list for the bug.=