From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bauer, Christoph" Newsgroups: gmane.emacs.devel Subject: Re: [Christoph.Bauer@lms-gmbh.de: HP-UX: link error] Date: Mon, 20 Mar 2006 17:29:40 +0100 Message-ID: <26EB47FDD566A7469FC862DAF373792FE20DBE@kaiserslautern1.lmsintl.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1142884198 5805 80.91.229.2 (20 Mar 2006 19:49:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2006 19:49:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 20 20:49:55 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 1FLQO2-0004nj-2Q for ged-emacs-devel@m.gmane.org; Mon, 20 Mar 2006 20:49:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLQO2-0005Uj-Av for ged-emacs-devel@m.gmane.org; Mon, 20 Mar 2006 14:49:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FLNGZ-0006yf-1t for emacs-devel@gnu.org; Mon, 20 Mar 2006 11:29:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FLNGV-0006va-0k for emacs-devel@gnu.org; Mon, 20 Mar 2006 11:29:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLNGU-0006vQ-Ll for emacs-devel@gnu.org; Mon, 20 Mar 2006 11:29:54 -0500 Original-Received: from [213.68.136.230] (helo=mail-outfwd.lms.be) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FLNM1-0007da-M4; Mon, 20 Mar 2006 11:35:38 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by mail-outfwd.lms.be (Postfix) with ESMTP id 5FF487F406; Mon, 20 Mar 2006 17:35:26 +0100 (CET) Original-Received: from mail-kl.lmsintl.com ([127.0.0.1]) by localhost (kl-ftp [127.0.0.1]) (amavisd-new, port 20024) with ESMTP id 19157-10; Mon, 20 Mar 2006 17:35:26 +0100 (CET) Original-Received: from kaiserslautern1.lmsintl.com (unknown [10.2.0.100]) by mail-kl.lmsintl.com (Postfix) with ESMTP id 4A8A5B6F11; Mon, 20 Mar 2006 17:35:26 +0100 (CET) Original-Received: by kaiserslautern1.lmsintl.com with Internet Mail Service (5.5.2653.19) id ; Mon, 20 Mar 2006 17:29:47 +0100 Original-To: rms@gnu.org, Chong Yidong , Christoph.Bauer@lms-gmbh.de X-Mailer: Internet Mail Service (5.5.2653.19) X-Virus-Scanned: by IT Services X-Mailman-Approved-At: Mon, 20 Mar 2006 14:48:28 -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:51912 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? I renamed - as you suggested - append_glyph to store_next_glyph and produce_stretch_glyph to generate_stretch_glyph in xdisp.c and tried to build with the original cc and gcc. The linker error is gone for both compilers. With gcc make bootstrap and make install succeeded. emacs could be started. cc fails with this error in lib-src: cc -DHAVE_CONFIG_H -I. -I../src -I/T/tools/unix/build/emacs/emacs/lib-src -I/T/tools/unix/build/emacs/emacs/lib-src/../src -g /T/tools/unix/build/emacs/emacs/lib-src/fakemail.c -l:libdld.sl -o fakemail cpp: "/T/tools/unix/build/emacs/emacs/lib-src/../src/s/hpux9.h", line 63: warning 2001: Redefinition of macro HAVE_PSTAT_GETDYNAMIC. cc: "/usr/include/sys/_mbstate_t.h", line 11: error 1000: Unexpected symbol: "int". cc: "/usr/include/stdlib.h", line 117: warning 573: Parameter list is inconsistent for "getenv". cc: "/T/tools/unix/build/emacs/emacs/lib-src/fakemail.c", line 140: warning 573: Parameter list is inconsistent for "popen". cc: "/T/tools/unix/build/emacs/emacs/lib-src/fakemail.c", line 141: warning 573: Parameter list is inconsistent for "fclose". cc: "/T/tools/unix/build/emacs/emacs/lib-src/fakemail.c", line 141: warning 573: Parameter list is inconsistent for "pclose". make: *** [fakemail] Error 1 Of course I'm happy with the gcc-build :-) Thanks for the help, Christoph