From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Android port Date: Sun, 06 Aug 2023 21:19:29 +0300 Message-ID: <835y5sowy6.fsf@gnu.org> References: <1428589171.162865.1691134964773@mail1.libero.it> <87il9s5vmv.fsf@yahoo.com> <83o7jkpbi1.fsf@gnu.org> <7795730.O3cEFmX14Z@nimes> <83leeopaw1.fsf@gnu.org> <87cz0047ar.fsf@yahoo.com> <300293781.6205921.1691334594442@mail1.libero.it> <1869652718.6207009.1691336124300@mail1.libero.it> <373515283.6207381.1691336695284@mail1.libero.it> <83cz00oyy5.fsf@gnu.org> <93167225.6214467.1691345465378@mail1.libero.it> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20683"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, bruno@clisp.org, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 06 20:19:32 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qSiLk-0005Ba-JM for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Aug 2023 20:19:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSiLT-0000Zk-0S; Sun, 06 Aug 2023 14:19:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSiLQ-0000ZN-WB for emacs-devel@gnu.org; Sun, 06 Aug 2023 14:19:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSiLQ-0007Hi-Iy; Sun, 06 Aug 2023 14:19:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NK3Sh2PvYtJtldxn1lot6qbFZvhZNsmfofCjqgrfT6o=; b=NONDWXiSfBjo LyvVSD+yK171q9KRXSRN4BeagWrglMB0tvMyM9gk1zUE0hvfeuDMRFQQCLnB449G0+G9uEbTUlFG/ lRuRWsHcdQxdFIlWnqY1eRge/bGaUqeG76AJlXeSn2y1S5JzoUNiiK+JAu41eyizPFqkgIQ/bTWwp f/nJNwBQnkgJfY52uJKr5ukZNmJOooXa1YamfGWoJSsfrfXivJYorZ+ZF9DxZLExcPNPVmn+fkH7u nkepPZnrxZ3r04Rl2rw20L3iXscPan6d5jZaSVELnunFy/KmM2SkI/bvpiBc8vUG1cnj7YPyCI5DU pEq3pMkZeujGGCruYmxJNQ==; In-Reply-To: <93167225.6214467.1691345465378@mail1.libero.it> (message from Angelo Graziosi on Sun, 6 Aug 2023 20:11:05 +0200 (CEST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308386 Archived-At: > Date: Sun, 6 Aug 2023 20:11:05 +0200 (CEST) > From: Angelo Graziosi > Cc: luangruo@yahoo.com, bruno@clisp.org, eggert@cs.ucla.edu, > emacs-devel@gnu.org > > > 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, ...) > | ^~~~~~~~ OK, thanks. > > $ 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 So I think we need to set 3 more variables: gl_cv_func_printf_posix=yes gl_cv_func_vfprintf_posix=yes gl_cv_vasprintf_posix=yes