[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] mktime(3) not detected on FreeBSD with -static
From: |
arnold |
Subject: |
Re: [bug-gawk] mktime(3) not detected on FreeBSD with -static |
Date: |
Sun, 23 Jul 2017 02:06:16 -0600 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Hi.
Thanks for the report.
This is an issue in the Autoconf AC_FUNC_MKTIME macro which gawk uses.
I am forwarding this to the bug-autocof list, in the hope that they
can help.
I will try to add a README file in the gawk distribution about this
issue until there's a new Autoconf release that fixes it...
Thanks,
Arnold
-------------------
Eric Pruitt <address@hidden> wrote:
> When running ./configure for GAWK 4.1.4, the mktime(3) function is not
> detected on FreeBSD 11 when using -static with CFLAGS and LDFLAGS. This
> causes the build to fail:
>
> /usr/lib/libc.a(localtime.o): In function `mktime':
> /usr/src/lib/libc/../../contrib/tzcode/stdtime/localtime.c:(.text+0x910):
> multiple definition of `mktime'
>
> If I add "#define HAVE_MKTIME 1" to config.h, the build succeeds, and it
> also succeeds if I remove "-static" from CFLAGS and LDFLAGS. I'm using
> the default compiler on FreeBSD, "FreeBSD clang version 3.8.0". I have
> attached config.log to this message. Is there an additional flag I
> should pass to the configure script to make static linking work without
> modifying the configuration header?
>
> Thanks,
> Eric
>
config.log
Description: Text document