From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: `print' does not print Date: Mon, 25 Mar 2002 16:35:04 +0200 (IST) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <15519.10877.452978.802301@jupiter.akutech-local.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1017067157 20542 127.0.0.1 (25 Mar 2002 14:39:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2002 14:39:17 +0000 (UTC) Cc: rms@gnu.org, bug-gnu-emacs@gnu.org, David Kaelbling Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16pVcy-0005LD-00 for ; Mon, 25 Mar 2002 15:39:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16pVcw-0000CR-00; Mon, 25 Mar 2002 09:39:14 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16pVal-000064-00; Mon, 25 Mar 2002 09:36:59 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id QAA16737; Mon, 25 Mar 2002 16:35:05 +0200 (IST) X-Sender: eliz@is Original-To: Ralf Fassel In-Reply-To: <15519.10877.452978.802301@jupiter.akutech-local.de> Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:155 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:155 On Mon, 25 Mar 2002, Ralf Fassel wrote: > I then had a look what had actually changed in unexelf.c, and with the > following diff applied to unexelf.c I can make it work again > (i.e. disabling the SGI-specials introduced for the .got section): > > *** unexelf.c.21.2 Mon Jan 28 17:33:22 2002 > --- unexelf.c Mon Mar 25 14:40:55 2002 > *************** > *** 1033,1038 **** > --- 1033,1039 ---- > ".lit4") > || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name), > ".lit8") > + #if 0 > #if __sgi > /* According to David Kaelbling , > the SGI-specific section below is required to avoid core So it is possible that the change which does the damage is the one about .got sections, not the fact that file I/O is used instead of mmap. Could you try unexelf.c from v21.2 with the .got sections and see if that makes Emacs 21.1 unable to print? David, can you help us here and explain why those additions were necessary? Perhaps the new unexelf.c in Emacs 21.2 makes them redundant? To fill you in, this thread (which you can find on gnu.emacs.bug) was about "emacs -batch" being unable to print to stdout when compiled with GCC. Ralf's debugging indicates that this happens because fwrite somehow fails to allocate the buffer for the FILE object (this is in part a speculation, since we don't have access to library sources). Also, do you have any clue why does the problem happen with GCC, but not with the native compiler? TIA