Bug #48466 localtime_r implicit
Submitted: 2 Nov 2009 12:04 Modified: 27 Apr 2018 12:09
Reporter: Vaclav Sklenar Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:mysql-5.1.40 OS:Solaris (SunOS avalon 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-880)
Assigned to: CPU Architecture:Any

[2 Nov 2009 12:04] Vaclav Sklenar
Description:
While compiling MySQL, I turned out that at least four times error on
implicit definition of localtime_r, I have solved it with definition
of localtime_r:

struct tm *localtime_r(const time_t *clock,
     struct tm *res);

How to repeat:
Maybe it will be good to test localtime_r inside ./configure and include definition in some configuration header file.
[2 Nov 2009 12:31] Valeriy Kravchuk
Thank you for the problem report. What exact configure command line and C compiler you had used?
[2 Nov 2009 12:38] Vaclav Sklenar
I'm using just ./configure
and gcc 2.95.3

Now I have found that the same problem is with gmtime_r.
[2 Nov 2009 15:18] Valeriy Kravchuk
Do you have a chance to try with a newer version of gcc, 4.x.y or 3.4.x at least?
[2 Nov 2009 17:35] Vaclav Sklenar
I think not. But it is one problem, I have proceeded to another,
in sql directory:

ld: elf error: file ./.libs/libndb.a: elf_getarsym
ld: fatal: File processing errors. No output written to mysqld

so I think I will use binaries. 

Thanks a lot, I just wanted to point out my experience.
[19 Nov 2009 8:58] Sveta Smirnova
Thank you for the feedback.

There are no warning about localtime_r with 4.4.0 compiler and check for localtime_r exists in configure. Could you please send us config.log file?
[20 Dec 2009 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[27 Apr 2018 12:09] Yngve Svendsen
Posted by developer:
 
Obsolete MySQL version and build env.