emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Android port


From: Po Lu
Subject: Re: Android port
Date: Fri, 04 Aug 2023 17:44:11 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Angelo Graziosi <angelo.g0@libero.it> writes:

>> Also, would someone ascertain if the branch still builds on MS Windows, 
>> after the past few updates from Gnulib?
>
> No, on MSYS2/MINGW64 it fails:
>
> ============================
> [...]
>  ===> Building ...
>
> make actual-all || make advice-on-failure make-target=all exit-status=$?
> make[1]: ingresso nella directory «/tmp/emacs-master»
> make -C lib all
> make -C doc/lispref info
> make -C doc/lispintro info
> make -C doc/emacs info
> make[2]: ingresso nella directory «/tmp/emacs-master/doc/lispintro»
> /usr/bin/mkdir -p ../../info
> make[2]: ingresso nella directory «/tmp/emacs-master/doc/lispref»
> /usr/bin/mkdir -p ../../info
>   GEN      info/dir
>   GEN      ../../info/eintr.info
> make[2]: ingresso nella directory «/tmp/emacs-master/doc/emacs»
>   GEN      ../../info/emacs.info
>   GEN      ../../info/elisp.info
> make[2]: ingresso nella directory «/tmp/emacs-master/lib»
>   GEN      alloca.h
>   GEN      byteswap.h
>   GEN      errno.h
>   GEN      execinfo.h
>   GEN      getopt.h
>   GEN      getopt-cdefs.h
>   GEN      malloc/dynarray.gl.h
>   GEN      malloc/dynarray-skeleton.gl.h
>   GEN      ieee754.h
>   GEN      limits.h
>   GEN      stdckdint.h
>   GEN      stddef.h
>   GEN      stdint.h
>   GEN      string.h
>   GEN      sys/random.h
>   GEN      time.h
>   CC       fingerprint.o
>   CC       acl_entries.o
>   CC       asnprintf.o
>   CC       asprintf.o
>   CC       frexp.o
>   CC       memmem.o
>   CC       mktime.o
>   CC       printf.o
> asprintf.c:30:1: error: redefinition of 'asprintf'
>    30 | asprintf (char **resultp, const char *format, ...)
>       | ^~~~~~~~
> In file included from C:/msys64/tmp/emacs-master/nt/inc/ms-w32.h:389,
>                  from ../src/conf_post.h:38,
>                  from ../src/config.h:3511,
>                  from asprintf.c:18:
> C:/msys64/mingw64/include/stdio.h:276:5: note: previous definition of 
> 'asprintf' with type 'int(char **, const char *, ...)'
>   276 | int asprintf(char **__ret, const char *__format, ...)
>       |     ^~~~~~~~

Thanks.  What about after applying the following change and rerunning
configure?

diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site
index e8b4711f548..68e264fde4c 100644
--- a/nt/mingw-cfg.site
+++ b/nt/mingw-cfg.site
@@ -178,9 +178,11 @@ gl_cv_func_printf_sizes_c99=yes
 gl_cv_func_printf_long_double=yes
 gl_cv_func_printf_infinite_long_double=yes
 gl_cv_func_printf_directive_a=yes
+gl_cv_func_printf_directive_b=yes
 gl_cv_func_printf_directive_f=yes
 gl_cv_func_printf_directive_n=yes
 gl_cv_func_printf_directive_ls=yes
+gl_cv_func_printf_directive_lc=yes
 gl_cv_func_printf_positions=yes
 gl_cv_func_printf_flag_grouping=yes
 gl_cv_func_printf_flag_leftadjust=yes


reply via email to

[Prev in Thread] Current Thread [Next in Thread]