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: Sat, 05 Aug 2023 15:12:33 +0300 Message-ID: <83msz5sn66.fsf@gnu.org> References: <1428589171.162865.1691134964773@mail1.libero.it> <4266545.pEEEotNZAM@nimes> <1613375937.6291379.1691233559950@mail1.libero.it> <4484333.4B0zn089NQ@nimes> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25490"; mail-complaints-to="usenet@ciao.gmane.io" Cc: angelo.g0@libero.it, luangruo@yahoo.com, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Bruno Haible Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 05 14:12:47 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 1qSG9G-0006Rw-Ml for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Aug 2023 14:12:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSG8u-0007eQ-HQ; Sat, 05 Aug 2023 08:12:24 -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 1qSG8s-0007eG-N4 for emacs-devel@gnu.org; Sat, 05 Aug 2023 08:12:22 -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 1qSG8p-0005rZ-WB; Sat, 05 Aug 2023 08:12:20 -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=/MhTHUVsjKz4VHqCdImiY5exY7SJm/t5dzbCWoza5NE=; b=UiG14qN8KII1 2ov9UHBqcSZTm1DFTAAGPPXvdhcRXWWSQOCjvtd17V0BYjNLc+R5GbepPzo4+OgtK7cHbIfu6kqdE H6swggGXfZ9Z12IkriYB63YjRvsSZEbQDZqMITI8tPVWbfTG0+TXKEHHgVC0j6fJ2nGa2Euv3DZ3D Nvj/yQgo54o2kC/smIFFwOA98HxkVaXQt/Kpo44Q8g9qKXHPRdUyp1AFGpiF8cRZsxj7D5EujFLUC fw4KTDyvOFGm28lek9xDs1QJqDyQl2WywTT73ItfkcAUyYqZycyAO0xHgejiS7p+ywYN+xN9rTXbF Nu87vlz+pXa9vXIYvIn6Zw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSG8p-0008T0-FQ; Sat, 05 Aug 2023 08:12:19 -0400 In-Reply-To: <4484333.4B0zn089NQ@nimes> (message from Bruno Haible on Sat, 05 Aug 2023 13:20:31 +0200) 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:308313 Archived-At: > From: Bruno Haible > Cc: Po Lu , Paul Eggert , Eli Zaretskii , emacs-devel@gnu.org > Date: Sat, 05 Aug 2023 13:20:31 +0200 > > But from this error log: > > 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 printf.c:18: > C:/msys64/mingw64/include/stdio.h:379:5: note: previous definition of 'printf' with type 'int(const char *, ...)' > > it seems that nt/inc/ms-w32.h directly includes from mingw, without > the interposed lib/stdio.h. > > Do you have a lib/stdio.h in your build tree? The MinGW build omits building the Gnulib's stdio module. We did that since 2017. The exact reasons are probably lost in time, but I can assure you they were real, and I wouldn't want to reintroduce them for this particular reason. Since the *printf family doesn't need to be replaced in the Emacs build on MS-Windows, I'd rather we understood why the above causes compilation errors. Aren't Gnulib replacements for *printf functions supposed to have prototypes compatible to the MinGW headers?