From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Liu Hantang Newsgroups: gmane.emacs.help Subject: Re: Problem in building Emacs 25.1 on Ubuntu 16.04.1 Date: Mon, 19 Sep 2016 10:47:59 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1474294464 32161 195.159.176.226 (19 Sep 2016 14:14:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Sep 2016 14:14:24 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 19 16:14:20 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blzKg-0006NM-F2 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Sep 2016 16:14:06 +0200 Original-Received: from localhost ([::1]:55732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blzKe-0004NN-NW for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Sep 2016 10:14:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blocx-00047w-IN for help-gnu-emacs@gnu.org; Sun, 18 Sep 2016 22:48:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blocu-0004tu-FS for help-gnu-emacs@gnu.org; Sun, 18 Sep 2016 22:48:15 -0400 Original-Received: from mail.zju.edu.cn ([61.164.42.155]:16088 helo=zju.edu.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bloct-0004rM-RT for help-gnu-emacs@gnu.org; Sun, 18 Sep 2016 22:48:12 -0400 Original-Received: from [10.4.12.16] (unknown [202.161.57.226]) by mailapp3 (Coremail) with SMTP id IQbKCkAJtDvgUd9XKoRMAA--.24342S3; Mon, 19 Sep 2016 10:48:02 +0800 (CST) X-CM-TRANSID: IQbKCkAJtDvgUd9XKoRMAA--.24342S3 X-Coremail-Antispam: 1UD129KBjvdXoW7XF13GryxJrWrXw1rXF48Xrb_yoWDtrbE93 y2gFs5Gw1jgFWvkr47XFWkCF9Fkr17Jr1UZw45Zry8Jry5JF4DKanYkryfAr1rK392qrn5 tr15JF9Yyr12qjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbwAYjsxI4VW3JwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJr0_GcWl84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAv7VC0I7IYx2IY 67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y4 8IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21lc2xSY4AK6xAfMxAIw28IcxkI7VAKI48J MxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_JrI_JrWlx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUJVWUXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY X-CM-SenderInfo: qtqziiyqryiio62m3hxhgxhubq/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 61.164.42.155 X-Mailman-Approved-At: Mon, 19 Sep 2016 10:10:27 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111354 Archived-At: I delved into `lib/fcntl.h` and found `O_BINARY` is defined in it. Then I found that `binary-io.h` includes `fcntl.h` with `#include `, which means it mightuse my system's version of `fcntl.h`. I found that system's `fcntl.h` has no `O_BINARY` defined and I happened to have `export C_INCLUDE_PATH=/usr/include...` in my .zshrc so the compiler used system's instead of emacs'(which is supposed to be used). I deleted the `C_INCLUDE_PATH` definition in `.zshrc` then successfully compiled it. Thanks for the help! ============================ > > Date: Sun, 18 Sep 2016 23:33:43 +0800 (GMT+08:00) > > From: "Hantang Liu" > > > > In file included from binary-io.c:3:0: > > binary-io.h: In function ‘set_binary_mode’: > > binary-io.h:57:10: error: ‘O_BINARY’ undeclared (first use in this > > function) > > return O_BINARY; > > O_BINARY is supposed to be defined in lib/fcntl.h, please look there > for why this doesn't work for you. > > In any case, I suggest to report this using report-emacs-bug. -- Hantang Liu