[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs pretest 28.0.90 is out
From: |
Po Lu |
Subject: |
Re: Emacs pretest 28.0.90 is out |
Date: |
Thu, 09 Dec 2021 20:42:11 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Po Lu <luangruo@yahoo.com>
>> Cc: emacs-devel@gnu.org
>> Date: Thu, 09 Dec 2021 19:00:12 +0800
>>
>> After implementing the missing functions, the linker complained about
>> duplicate copies of mktime, one in libc.a, and the other in gnulib's
>> mktime module
>
> If we have mktime from Gnulib, then why does linker pull mktime from
> libc.a as well? It's supposed to be satisfied by the first function
> by that name that it sees in any library it links in.
>
> Can you add -Wl,-t -Wl,-t (yes, the same option twice) to the link
> command line, and see what libraries are involved in this and why?
ld: c:/djgpp/lib/libc.a(ctime.o):ctime.c:(.text+0x27c0): multiple
definition of `_mktime';
../lib/libgnu.a(mktime.o):c:/djgpp/src/emacs-28.0.90/lib/mktime.c:525:
first defined here
This is the error, which is odd because it first considers mktime.o in
libgnu.a, and only ctime.o in libc.a much later, which is evident from
the output of ld:
../lib/libgnu.a
[...]
(../lib/libgnu.a)mktime.o
[...]
c:/djgpp/lib/libc.a
[...]
(c:/djgpp/lib/libc.a)ctime.o
ld: c:/djgpp/lib/libc.a(ctime.o):ctime.c:(.text+0x27c0): multiple definition of
`_mktime';
../lib/libgnu.a(mktime.o):c:/djgpp/src/emacs-28.0.90/lib/mktime.c:525: first
defined here
- Re: Emacs pretest 28.0.90 is out, (continued)
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/07
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/08
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/08
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/08
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/08
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/09
- Re: Emacs pretest 28.0.90 is out,
Po Lu <=
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Po Lu, 2021/12/09
- Re: Emacs pretest 28.0.90 is out, Eli Zaretskii, 2021/12/09