From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Compiling emacs 24.5 Date: Thu, 28 Apr 2016 12:45:24 -0400 Message-ID: <5k4malbs2j.fsf@fencepost.gnu.org> References: <800413511.4243172.1461850609933.JavaMail.yahoo.ref@mail.yahoo.com> <800413511.4243172.1461850609933.JavaMail.yahoo@mail.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461861956 5320 80.91.229.3 (28 Apr 2016 16:45:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 16:45:56 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Rich S Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 18:45:55 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1avp4c-0004e1-3Y for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 18:45:54 +0200 Original-Received: from localhost ([::1]:50176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avp4b-000711-LC for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 12:45:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avp4B-0006xM-KD for help-gnu-emacs@gnu.org; Thu, 28 Apr 2016 12:45:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avp4A-0004hM-TK for help-gnu-emacs@gnu.org; Thu, 28 Apr 2016 12:45:27 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avp48-0004h3-O9; Thu, 28 Apr 2016 12:45:24 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1avp48-0002MU-8f; Thu, 28 Apr 2016 12:45:24 -0400 X-Spook: global unclassified Chemical burn Domestic Nuclear X-Ran: kkhodM4ZSA^X>I1vx=oic;GNhO"\yn!i>nr5QO~OoX\83{|sx%6%oR2r,nYLf'@E=*avZc X-Hue: magenta X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:109823 Archived-At: Rich S wrote: > I am having trouble compiling emacs 24.5 on Redhat release 6.6 FWIW, works fine for me. > In file included from ../lib/stdlib.h:37:0, [...] > /usr/local/include/stdlib.h:509:14: note: previous declaration of [...] > gcc (GCC) 5.3.0 > GNU Make 4.1 Various red flags: That's not the default gcc for RHEL 6.6. Try using the default one. Why do you have stdlib.h in /usr/local? Looks like Emacs is using its own lib/stdlib.h, which it should not need to do. My guess is that your system has an extra gcc/glibc installation in /usr/local, which is causing confusion/inconsistencies. Try excluding it (somehow).