[Bug libc/29279] New: undefined reference to `mbstowcs_chk' after 464d189b9622932a75302290625de84931656ec0

mliska at suse dot cz sourceware-bugzilla@sourceware.org
Thu Jun 23 13:44:12 GMT 2022


https://sourceware.org/bugzilla/show_bug.cgi?id=29279

            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 dot com
  Target Milestone: ---

After the revision, the following fails:

$ cat /tmp/x.c
#include <stdlib.h>

const char *name;
int len;

int main()
{
        if (mbstowcs (NULL, name, len) ==  -1)
              return 0;
}

$ gcc /tmp/x.c -D_FORTIFY_SOURCE=2 -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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list