From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [Christoph.Bauer@lms-gmbh.de: HP-UX: link error] Date: Mon, 20 Mar 2006 10:05:46 -0500 Message-ID: References: <87u09uv54m.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1142867204 1713 80.91.229.2 (20 Mar 2006 15:06:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2006 15:06:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 20 16:06:36 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FLLxp-0007Cs-Eq for ged-emacs-devel@m.gmane.org; Mon, 20 Mar 2006 16:06:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLLxn-0004nG-C8 for ged-emacs-devel@m.gmane.org; Mon, 20 Mar 2006 10:06:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FLLxA-0004jm-5s for emacs-devel@gnu.org; Mon, 20 Mar 2006 10:05:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FLLx6-0004hS-H5 for emacs-devel@gnu.org; Mon, 20 Mar 2006 10:05:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLLx5-0004hC-NV for emacs-devel@gnu.org; Mon, 20 Mar 2006 10:05:47 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FLM2f-0007MS-9h for emacs-devel@gnu.org; Mon, 20 Mar 2006 10:11:33 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FLLx4-0005qe-7J; Mon, 20 Mar 2006 10:05:46 -0500 Original-To: Chong Yidong , Christoph.Bauer@lms-gmbh.de In-reply-to: <87u09uv54m.fsf@stupidchicken.com> (message from Chong Yidong on Sun, 19 Mar 2006 10:14:17 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51878 Archived-At: > on HP-UX I got this error (latest CVS version of emacs). > > > /usr/ccs/bin/ld: Duplicate symbol "append_glyph" in files xdisp.o and term.o I think I see the cause of this. There is a static function called append_glyph defined in xdisp.o. Apparently that version of GCC compiles it in a way that isn't static, effectively producing two global definitions of append_glyph. I think that is a bug in the compiler and/or linker. However, I wonder why we do this confusing thing in Emacs. Couldn't we rename the function append_glyph that is defined and used in xdisp.c? If we rename it to store_next_glyph, does that fix that bug? Likewise, we could rename produce_stretch_glyph in xdisp.c to generate_stretch_glyph. Christoph, could you try that?