From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E8AF03857369; Thu, 23 Jun 2022 13:44:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8AF03857369 From: "mliska at suse dot cz" To: glibc-bugs@sourceware.org Subject: [Bug libc/29279] New: undefined reference to `mbstowcs_chk' after 464d189b9622932a75302290625de84931656ec0 Date: Thu, 23 Jun 2022 13:44:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mliska at suse dot cz 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 13:44:13 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29279 Bug ID: 29279 Summary: undefined reference to `mbstowcs_chk' after 464d189b9622932a75302290625de84931656ec0 Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: mliska at suse dot cz CC: drepper.fsp at gmail dot com, goldstein.w.n at gmail do= t com Target Milestone: --- After the revision, the following fails: $ cat /tmp/x.c #include const char *name; int len; int main() { if (mbstowcs (NULL, name, len) =3D=3D -1) return 0; } $ gcc /tmp/x.c -D_FORTIFY_SOURCE=3D2 -O2 /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccWxqRJf.o: in function `main': x.c:(.text.startup+0x15): undefined reference to `mbstowcs_chk' collect2: error: ld returned 1 exit status --=20 You are receiving this mail because: You are on the CC list for the bug.=