From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14108 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: __strftime_l: symbol not found Date: Wed, 8 May 2019 12:26:15 -0400 Message-ID: Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000056101b058862cee4" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="37014"; mail-complaints-to="usenet@blaine.gmane.org" Cc: John Mudd To: musl Original-X-From: musl-return-14124-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 08 18:27:29 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hOPPk-0009XR-OR for gllmg-musl@m.gmane.org; Wed, 08 May 2019 18:27:28 +0200 Original-Received: (qmail 10069 invoked by uid 550); 8 May 2019 16:27:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 10032 invoked from network); 8 May 2019 16:27:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=NCYFtd2Qics+p6zq4o14s/KLwNB8E0MOr7qEUZaHGHA=; b=KXKXgWPl+/tzcL1peo+eg6GiR3Ethwzsp/IByniENUpOXK2UwZkDqTs3DDm0AIQ7Lh bLFy3R2ZJ+6ZSmH/bynasEK+EkUuDe96+d+MxUVU4Dv5a5jI4qMlkoM9MP/WBbs3Ti+p 06ODMinVS+C4xN3cYmW9VqTSpyH9LoXzkFvGodt3smnHUiLIhokp5zyjWl8w5qOckavF Cj7pRy+ShwU2eMxgZwcu4UgRquT/JIBXWizlXGmdH3uQxuR8478oU8heHenoaBUZ2zB0 3TVo9iAp7MDKUpeffN/7eSCC6RdEnh/j5g8JkFNXUeqNIy81yvwdZiPrmsmiTUnaFI9z +m8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=NCYFtd2Qics+p6zq4o14s/KLwNB8E0MOr7qEUZaHGHA=; b=T1BEBJ8B0gCE0XXV9diL5h7a/Nbo7fhLB6huDZVNAulUuGB2vo/OlvTT59FYHkfwsw 1Mg7xYCec91NXYSBlOEmI76QcyfcfIWF8oizkqK90DLhtFZ692DwWLszXa4Dqtotpmt5 qPG3QXEyTVWHFDV500LU5xAWRpUPw4TL9cwRsToAnNYLl9/AYwrs24fufN35QppssQYK cV7V1OcFwHlsz/M9U1NvzQoKDCk9I9vmJ4RHiJb7IUI86dU2LKOwsoEdClrg/4Yi15yE eHUfeBInHA3VOyMb8dTxhChGfIifm69sSo3LNBSK2X/fyMDXr6ppey2eIGXCu3xdN2IZ SPdg== X-Gm-Message-State: APjAAAUtPiqDVhtyWqyta9gp6VeH/D8jnVS+yQOIZ1vsR4ng9zVH3oCW RMkhHmT7MrZvrFUUu0cuj1K2d20aPd2mAb/fa+7JAev9D28= X-Google-Smtp-Source: APXvYqwZZ7wwFLoERpmWTrqFfLKzXOix8/7vwBG1mk/VvW5NNdBSyut9I5W5VcDXAvzlufl6alKXyRvx0rmTfCZcljU= X-Received: by 2002:a25:3b04:: with SMTP id i4mr26526917yba.261.1557332833470; Wed, 08 May 2019 09:27:13 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:14108 Archived-At: --00000000000056101b058862cee4 Content-Type: text/plain; charset="UTF-8" Hi, I'm upgrading my musl from 1.19 to 1.22 but it looks like I lost the __strftime_l function. It's present in the 1.19 libc.so but not in 1.22. $ nm -D /home/mudd/musl-1.1.19.install/lib/libc.so | grep __strftime_l 0007b6a0 T __strftime_l $ nm -D /home/mudd/musl-1.1.22.install/lib/libc.so | grep __strftime_l $ Here's the diff on the source code. I can't explain how this diff would cause the function to disappear. Any suggestions? $ diff musl-1.1.19/src/time/strftime.c /musl-1.1.22/src/time/strftime.c 9d8 < #include "libc.h" 12,13d10 < const char *__nl_langinfo_l(nl_item, locale_t); < 48,50d44 < const char *__tm_to_tzname(const struct tm *); < size_t __strftime_l(char *restrict, size_t, const char *restrict, const struct tm *restrict, locale_t); < 184,186c178,179 < *l = snprintf(*s, sizeof *s, "%+.2d%.2d", < (tm->__tm_gmtoff)/3600, < abs(tm->__tm_gmtoff%3600)/60); --- > *l = snprintf(*s, sizeof *s, "%+.4ld", > tm->__tm_gmtoff/3600*100 + tm->__tm_gmtoff%3600/60); $ --00000000000056101b058862cee4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, I'm upgrading my musl f= rom 1.19 to 1.22 but it looks like I lost the=C2=A0__strftime_l function. I= t's present in the 1.19=C2=A0libc.so but not in 1.22.

$ nm -D /home/mudd/musl-1.= 1.19.install/lib/libc.so | grep __strftime_l
0007b6a0 T = __strftime_l
$ nm -D /home/mudd/musl-1.1.22.install/lib/libc.so |= grep __strftime_l
$=C2=A0


Here's the diff on the source code. I can't explain how thi= s diff would cause the function to disappear. Any suggestions?
$ diff musl-1.1.19/src/time/strftime.c=C2=A0 /musl-1.1.22= /src/time/strftime.c
9d8
< #include "libc.h&quo= t;
12,13d10
< const char *__nl_langinfo_l(nl_item, l= ocale_t);
<=C2=A0
48,50d44
< const char= *__tm_to_tzname(const struct tm *);
< size_t __strftime_l(cha= r *restrict, size_t, const char *restrict, const struct tm *restrict, local= e_t);
<=C2=A0
184,186c178,179
<=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*l =3D snprintf(*s, sizeof = *s, "%+.2d%.2d",
<=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(tm->__tm_gmtoff)/3600,=
<=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0abs(tm->__tm_gmtoff%3600)/60);
---
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*l =3D sn= printf(*s, sizeof *s, "%+.4ld",
>=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0tm->__= tm_gmtoff/3600*100 + tm->__tm_gmtoff%3600/60);
$
--00000000000056101b058862cee4--