mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Cc: John Mudd <johnbmudd@gmail.com>
Subject: Re: __strftime_l: symbol not found
Date: Wed, 8 May 2019 20:31:29 +0200	[thread overview]
Message-ID: <20190508183129.GR26605@port70.net> (raw)
In-Reply-To: <CAGDMk9HUOKT_-74j0Cnwy4rchn=tcgdCchyYpE8kPJX_DQd3Kw@mail.gmail.com>

* John Mudd <johnbmudd@gmail.com> [2019-05-08 12:26:15 -0400]:
> 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.

user binary is not supposed to have reference to this symbol,
it's musl internal (now hidden, previously visible)

it can be argued that the symbol is part of the glibc abi
compat since glibc exports it, but even on glibc i'm not
sure how you would end up with such symbol reference
(glibc headers don't refer to it).


> 
> $ 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);
> $


  reply	other threads:[~2019-05-08 18:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-08 16:26 John Mudd
2019-05-08 18:31 ` Szabolcs Nagy [this message]
2019-05-08 19:54 ` John Mudd
2019-05-08 20:03   ` Szabolcs Nagy
2019-05-08 20:47     ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190508183129.GR26605@port70.net \
    --to=nsz@port70.net \
    --cc=johnbmudd@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).