windows-tls: implement TLS key destructors for native Windows

2019-06-25 Thread Bruno Haible
Finally got around at implementing support for destructors in the 'tls' and 'tss' modules for native Windows. I'm also enhancing the unit tests of these modules. These new tests happen to crash on musl libc (Alpine Linux 3.9); I've reported the bug on the musl libc list. 2019-06-25 Bruno

threadlib: Avoid autoconf warning "was expanded before it was required"

2019-06-25 Thread Bruno Haible
Creating a testdir for the module 'tls', I got an autoconf warning that gl_THREADLIB was expanded before it was required. This patch fixes it. 2019-06-25 Bruno Haible threadlib: Avoid autoconf warning "was expanded before it was required". * modules/threadlib (configure.ac):

Re: macosx linking fails: _freea referenced from: _rpl_realpath

2019-06-25 Thread Bruno Haible
Sam Steingold wrote: > I re-run gnulib-tool and it fixed it. > (alas, emacs maintainers pushed the changes before me ;-) So, what was the cause? What can be done to avoid similar errors in the future? When I look at the history of emacs/lib/gnulib.mk.in, it looks like (1) there was a change that

Re: macosx linking fails: _freea referenced from: _rpl_realpath

2019-06-25 Thread Sam Steingold
> * Bruno Haible [2019-06-25 19:11:03 +0200]: > >> $ find . -name \*alloc\*.o >> ./lib/allocator.o >> ./src/alloc.o > > Oh, this is surprising. aha! I re-run gnulib-tool and it fixed it. (alas, emacs maintainers pushed the changes before me ;-) thanks and sorry about bothering you! -- Sam

Re: macosx linking fails: _freea referenced from: _rpl_realpath

2019-06-25 Thread Bruno Haible
Sam Steingold wrote: > > If you don't remember: Does the issue persist after a "make distclean" > > followed by a reconfiguration? > > yes, I just did "make distclean; ../configure ...; make bootstrap" and > got the above error. OK. > > 2) Which symbols does > > nm lib/malloca.o > > show? >

Re: macosx linking fails: _freea referenced from: _rpl_realpath

2019-06-25 Thread Sam Steingold
> * Bruno Haible [2019-06-25 17:00:58 +0200]: > > Sam Steingold wrote: >> I get this error when linking Emacs: >> >> --8<---cut here---start->8--- >> CCLD temacs >> Undefined symbols for architecture x86_64: >> "_freea", referenced from: >>

Re: macosx linking fails: _freea referenced from: _rpl_realpath

2019-06-25 Thread Bruno Haible
Sam Steingold wrote: > I get this error when linking Emacs: > > --8<---cut here---start->8--- > CCLD temacs > Undefined symbols for architecture x86_64: > "_freea", referenced from: > _rpl_realpath in libgnu.a(canonicalize-lgpl.o) > ld: symbol(s)

Re: maintainer-makefile: catch uses of $< in non-implicit rules

2019-06-25 Thread Tim Rühsen
Here is a Dockerfile for reproducing the issue on Fedora 30. docker build ... docker run ... git clone https://gitlab.com/gnuwget/wget2.git cd wget2 git checkout tmp-stuff ./bootstrap ./configure make syntax-check Regards, Tim FROM fedora:latest LABEL maintainer "Tim Rühsen " WORKDIR

Re: maintainer-makefile: catch uses of $< in non-implicit rules

2019-06-25 Thread Tim Rühsen
Hi Bruno, sorry, it doesn't. On 6/25/19 4:37 PM, Bruno Haible wrote: > Hi Tim, > >> the command expands to >> >> if gawk --version | grep GNU >/dev/null 2>&1; then \ >> (cd . && autoconf --trace AC_CONFIG_FILES:'$1') | \ >> tr ' ' '\n' |

Re: maintainer-makefile: catch uses of $< in non-implicit rules

2019-06-25 Thread Bruno Haible
Hi Tim, > the command expands to > > if gawk --version | grep GNU >/dev/null 2>&1; then \ > (cd . && autoconf --trace AC_CONFIG_FILES:'$1') | \ > tr ' ' '\n' | \ > /usr/bin/sed -ne '/Makefile/{s/\.in$//;p;}' |

macosx linking fails: _freea referenced from: _rpl_realpath

2019-06-25 Thread Sam Steingold
Hi, I get this error when linking Emacs: --8<---cut here---start->8--- CCLD temacs Undefined symbols for architecture x86_64: "_freea", referenced from: _rpl_realpath in libgnu.a(canonicalize-lgpl.o) ld: symbol(s) not found for architecture x86_64

Re: maintainer-makefile: catch uses of $< in non-implicit rules

2019-06-25 Thread Tim Rühsen
Hi Akim, the command expands to if gawk --version | grep GNU >/dev/null 2>&1; then \ (cd . && autoconf --trace AC_CONFIG_FILES:'$1') | \ tr ' ' '\n' | \ /usr/bin/sed -ne '/Makefile/{s/\.in$//;p;}' | \

Re: maintainer-makefile: catch uses of $< in non-implicit rules

2019-06-25 Thread Tim Rühsen
Hi Akim, On 6/24/19 5:56 PM, Akim Demaille wrote: > Hi Tim, > >> Le 24 juin 2019 à 11:42, Tim Rühsen a écrit : >> >> Hi Akim, >> >> Your proposal works here on Debian after I switched to mawk via >> 'update-alternatives --config awk', selecting mawk. It detects two >> occurrences of $< in our

Re: argmatch: accept perfect matches in documented arglists

2019-06-25 Thread Akim Demaille
Hi Bruno, I pushed this. commit 47405621b3066c035b4b98d2db934d550aaed1ad Author: Akim Demaille Date: Tue Jun 25 08:11:34 2019 +0200 argmatch: remove duplicate const qualifier * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here. diff --git a/ChangeLog b/ChangeLog index