From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: boot-time: straighten code Date: Sat, 12 Aug 2023 23:35:04 -0700 Organization: UCLA Computer Science Department Message-ID: <5ee6768b-9af7-313f-3119-93b0a994acbf@cs.ucla.edu> References: <4536176.VaOIPsP7d9@nimes> <5a77c0b9-8692-83bf-1aca-2f1d27122877@cs.ucla.edu> <87v8djoc6n.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------6DlQZBwCUZjiN09WVe6utw9C" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18488"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Bruno Haible , bug-gnulib@gnu.org, Emacs Development To: Po Lu Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Sun Aug 13 08:35:43 2023 Return-path: Envelope-to: gnu-bug-gnulib@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 1qV4hS-0004Xx-J5 for gnu-bug-gnulib@m.gmane-mx.org; Sun, 13 Aug 2023 08:35:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qV4gz-00005v-ON; Sun, 13 Aug 2023 02:35:14 -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 1qV4gx-00005f-BF; Sun, 13 Aug 2023 02:35:11 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qV4gu-00013n-UD; Sun, 13 Aug 2023 02:35:11 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 1EEE03C011BD6; Sat, 12 Aug 2023 23:35:06 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id FItzCRRi9iEN; Sat, 12 Aug 2023 23:35:05 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 45C8B3C011BD7; Sat, 12 Aug 2023 23:35:05 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 45C8B3C011BD7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1691908505; bh=U3TludcToaF/0qJXMdfAS4JXtjHDApggtPCnaAK6kn4=; h=Message-ID:Date:MIME-Version:To:From; b=JpfF+rQE3jY+QrvUGWo8n8U/vbxFs1paa/NE4yuC2HIW6ybQS9Q8cskq0lCTavTbW x/WLTAURud84Weu3I9nOqeesJ6KigIu0WufIcH4lp8WYZplEFZcZ46KtWIqv8zdffC gslNSxpdN+MKHw+3AJXBfQD3OYj2h3/1yUsM6CfXZi5Uw4ZbnVEMrdfPpd1BR7eHjC UonzugPTj5XLNddFGyfHDlkSE6N0eCc/eiDbQrf3ywhMncnxOaoIhtIBajDSOituFg 8TIuBl459W9AoAOedlCfPHJUkRdM0YjUhOSwXe7NXFG46PF3FMExArR1KiF920smA5 PulvVYZKEZ6LA== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jLViaEh2JJ1Z; Sat, 12 Aug 2023 23:35:05 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 16C9E3C011BD6; Sat, 12 Aug 2023 23:35:05 -0700 (PDT) Content-Language: en-US In-Reply-To: <87v8djoc6n.fsf@yahoo.com> Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-0.972, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Original-Sender: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.comp.lib.gnulib.bugs:48171 gmane.emacs.devel:308653 Archived-At: This is a multi-part message in MIME format. --------------6DlQZBwCUZjiN09WVe6utw9C Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-08-12 20:26, Po Lu wrote: > In file included from boot-time.c:54:0: > boot-time-aux.h: In function 'get_linux_uptime': > boot-time-aux.h:70:3: error: implicit declaration of function 'sysinfo' [-Werror=implicit-function-declaration] > if (sysinfo (&info) >= 0) > ^ > boot-time.c: In function 'get_boot_time_uncached': > boot-time.c:111:26: error: 'BOOT_TIME' undeclared (first use in this function) > if (ut->ut_type == BOOT_TIME) > ^ > boot-time.c:111:26: note: each undeclared identifier is reported only once for each function it appears in > boot-time.c:126:3: error: implicit declaration of function 'endutent' [-Werror=implicit-function-declaration] > END_UTMP_ENT (); > ^ > cc1: some warnings being treated as errors Thanks for reporting that. As I understand it, the utmp/utmpx functions are a losing cause on Android since they never return anything. If so, it's simpler to bypass these functions on that platform. Also, Gnulib should bypass sysinfo unless it's available. Please try the attached patch, which I haven't installed onto Emacs master on Savannah. I've tested it only on Ubuntu 23.04. If this patch works we can propagate it to Gnulib. --------------6DlQZBwCUZjiN09WVe6utw9C Content-Type: text/x-patch; charset=UTF-8; name="0001-Temp-patch-for-Android.patch" Content-Disposition: attachment; filename="0001-Temp-patch-for-Android.patch" Content-Transfer-Encoding: base64 RnJvbSBkMmRiNmQ4ZTkyMjgyZGU4ZmZiNTI5M2RkMTQ0NWUzYTJlNTQ5ZWQwIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBTYXQsIDEyIEF1ZyAyMDIzIDIzOjIwOjEyIC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gVGVtcCBwYXRjaCBmb3IgQW5kcm9pZAoKLS0tCiBjb25maWd1cmUuYWMgICAgICAgIHwg MTkgLS0tLS0tLS0tLS0tLS0tLS0tLQogbGliL2Jvb3QtdGltZS1hdXguaCB8IDEwICsrKysr KysrKysKIGxpYi9ib290LXRpbWUuYyAgICAgfCAyNiArKysrKysrKystLS0tLS0tLS0tLS0t LS0tLQogc3JjL2NvbmZfcG9zdC5oICAgICB8IDM0IC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0KIHNyYy9maWxlbG9jay5jICAgICAgfCAxNCArKysrKy0tLS0tLS0tLQog NSBmaWxlcyBjaGFuZ2VkLCAyNCBpbnNlcnRpb25zKCspLCA3OSBkZWxldGlvbnMoLSkKCmRp ZmYgLS1naXQgYS9jb25maWd1cmUuYWMgYi9jb25maWd1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