emacs-devel
[Top][All Lists]
Advanced

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

Re: Android port


From: Angelo Graziosi
Subject: Re: Android port
Date: Sun, 6 Aug 2023 20:11:05 +0200 (CEST)

> Il 06/08/2023 19:36 CEST Eli Zaretskii ha scritto:
> 
>  
> > Date: Sun, 6 Aug 2023 17:44:55 +0200 (CEST)
> > From: Angelo Graziosi 
> > Cc: Bruno Haible 
> > 
> > > Il 06/08/2023 17:35 CEST Angelo Graziosi ha scritto:
> > > 
> > >  
> > > Ah, on top applies! Testing wait..
> > > 
> > > > Il 06/08/2023 17:09 CEST Angelo Graziosi  ha scritto:
> > > 
> > > > On top of previous or from scratch?
> > 
> > Ok, the three patches (up today) apply cleanly but the build fails in the 
> > same manner..
> 
> Are you sure you did all the steps starting from autogen.sh and
> running the configure script?

For sanity check I removed the tree and repeated the steps:

$ aunpack emacs-bfbdf4eb892935536fc665d6cc986fd669364263.tar.gz
$ cd emacs-bfbdf4eb892935536fc665d6cc986fd669364263/
$ patch nt/mingw-cfg.site ../android-01.patch
$ patch nt/mingw-cfg.site ../android-02.patch
$ patch nt/mingw-cfg.site ../android-03.patch

$ tail /tmp/emacs-bfbdf4eb892935536fc665d6cc986fd669364263/nt/mingw-cfg.site
gl_cv_func_free_preserves_errno=yes
# Don't build the Gnulib nanosleep module: it requires W2K or later,
# and MinGW does have nanosleep.
gl_cv_func_nanosleep=yes
# Suppress configure-time diagnostic from unnecessary libxattr check,
# as xattr will not be supported here.
enable_xattr=no
# Don't build gnulib printf either.
ac_cv_func_vasprintf=yes
gl_cv_func_vasprintf_posix=yes


$ ./autogen.sh
$ ./configure
$ make
[...]
asprintf.c:30:1: error: redefinition of 'asprintf'
   30 | asprintf (char **resultp, const char *format, ...)
      | ^~~~~~~~
In file included from 
C:/msys64/tmp/emacs-bfbdf4eb892935536fc665d6cc986fd669364263/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, ...)
      |     ^~~~~~~~
make[2]: *** [Makefile:102: asprintf.o] Error 1
make[2]: uscita dalla directory 
«/tmp/emacs-bfbdf4eb892935536fc665d6cc986fd669364263/lib»
make[1]: *** [Makefile:537: lib] Error 2
make[1]: uscita dalla directory 
«/tmp/emacs-bfbdf4eb892935536fc665d6cc986fd669364263»
make[1]: ingresso nella directory 
«/tmp/emacs-bfbdf4eb892935536fc665d6cc986fd669364263»
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
make[1]: *** [Makefile:418: advice-on-failure] Error 2
make[1]: uscita dalla directory 
«/tmp/emacs-bfbdf4eb892935536fc665d6cc986fd669364263»
make: *** [Makefile:374: all] Error 2

> 
> If yes, it means something else causes asnprintf.o to be added to
> LIBOBJ.  What does the below show in the m4 directories (I think there
> are two of them on the Android branch):
> 
>   $ grep 'gl_REPLACE_VASN\?PRINTF' *.m4

$ grep 'gl_REPLACE_VASN\?PRINTF' *.m4
printf-posix.m4:    gl_REPLACE_VASNPRINTF
vasnprintf.m4:    gl_REPLACE_VASNPRINTF
vasnprintf.m4:AC_DEFUN([gl_REPLACE_VASNPRINTF],
vasprintf.m4:    gl_REPLACE_VASPRINTF
vasprintf.m4:AC_DEFUN([gl_REPLACE_VASPRINTF],
vasprintf-posix.m4:    gl_REPLACE_VASNPRINTF
vasprintf-posix.m4:    gl_REPLACE_VASPRINTF
vfprintf-posix.m4:    gl_REPLACE_VASNPRINTF



reply via email to

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