From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Hin-Tak Leung Newsgroups: gmane.emacs.bugs Subject: Re: emacs-19.34 segfauls when built with Xfree 4.3.0 (glibc 2.3.x,gcc 3.2) Date: Fri, 16 May 2003 11:38:16 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3EC4BF98.3000209@yahoo.co.uk> References: <3EBFB256.4000504@yahoo.co.uk> <3EC27019.1060307@yahoo.co.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053083758 29505 80.91.224.249 (16 May 2003 11:15:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 May 2003 11:15:58 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 16 13:15:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19GdBr-0007fR-00 for ; Fri, 16 May 2003 13:15:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GdD1-0005nr-02 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 16 May 2003 07:17:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19GdCt-0005nU-00 for bug-gnu-emacs@gnu.org; Fri, 16 May 2003 07:16:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19GdCr-0005n0-00 for bug-gnu-emacs@gnu.org; Fri, 16 May 2003 07:16:58 -0400 Original-Received: from smtp017.mail.yahoo.com ([216.136.174.114]) by monty-python.gnu.org with smtp (Exim 4.10.13) id 19GcW4-0007Vb-00 for bug-gnu-emacs@gnu.org; Fri, 16 May 2003 06:32:44 -0400 Original-Received: from m143-mp1.cvx1-c.cam.dial.ntli.net (HELO yahoo.co.uk) (hintak?leung@62.253.152.143 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 16 May 2003 10:32:41 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en, en-us Original-To: rms@gnu.org In-Reply-To: X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5077 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5077 Richard Stallman wrote: > As it turns out, the solution (adding '-z nocombreloc' to LDFLAGS) > fixes problem with building current version of emacs as well. > > That is very strange. The current version (21.3) contains code to use > those options automatically--see src/s/gnu-linux.h. Can you debug why > this automatic mechanism failed to work for you? Many Apologies, you are right - 21.3 does build correctly on my system (GNU/Linux). But I also had a quick look around, and found that: (a) the other bug report with that symptom (-nw ok, die at XtInitializeWidgetClass () in XFree86 4.3), filed against CVS emacs was for x86-freebsd5.0. (oops). (b) '-z nocombreloc' is set for gnu-linux, not for any of the other system type or machine type. Shouldn't GNU/Hurd gets it as well, as there is no other linker but GNU ld on GNU/Hurd? (c) there doesn't seem to be any check for recent version (<14 months) of GNU ld (where the precise problem is)? or indeed, the presence of any version of GNU ld? I believe it is possible to build gcc on freebsd (and many other systems) '--with-gnu-ld'? How often this is done, I don't know - it is probably not recommended to build gcc like that either. And I have no idea which ld gcc's ./configure will pick by default if GNU ld is somehow available in addition to the BSD one, but I do know that if both gcc and another cc is available, emacs's ./configure picks gcc. It is possibly quite difficult to check for exactly (c), because it is buried underneath gcc in how it was built? Unfortunately the person who submitted that particular bug report is no longer contactable, and there didn't seem to be any follow up; but given he had Xfree86 4.3, his system would have been quite recent otherwise, and it is not unthinkable that he has a recent version of GNU ld.