From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Duplicate symbols due to /src/termcap.c Date: Fri, 05 Jan 2018 22:15:52 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515209243 10804 195.159.176.226 (6 Jan 2018 03:27:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2018 03:27:23 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: help-gnu-emacs@gnu.org To: noloader@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 06 04:27:18 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXf8g-0002Z3-Eq for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Jan 2018 04:27:18 +0100 Original-Received: from localhost ([::1]:44130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXfAf-0003EH-IE for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jan 2018 22:29:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXexf-0000a1-QT for help-gnu-emacs@gnu.org; Fri, 05 Jan 2018 22:15:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXexe-0001cN-OT for help-gnu-emacs@gnu.org; Fri, 05 Jan 2018 22:15:55 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXexd-0001XM-6t; Fri, 05 Jan 2018 22:15:53 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eXexc-0002Ar-Kp; Fri, 05 Jan 2018 22:15:52 -0500 X-Spook: Exposure Evacuation Cartel de Golfo Tehrik-i-Taliban X-Ran: %2fqVO.^%N(ZZ'mO.YK=,)ygu+KnpGqVGM+RZ*1lZ,"}"fy3Df#0|oDBgE!3P*&0`6=S]e X-Hue: brightcyan X-Attribution: GM In-Reply-To: (Jeffrey Walton's message of "Wed, 3 Jan 2018 17:39:13 -0500") 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:115599 Archived-At: Jeffrey Walton wrote: > /usr/local/lib64/libtermcap.a(tparam.o): In function `tparam': > /home/scripts/termcap-1.3.1/tparam.c:101: multiple definition of `tparam' > terminfo.o:terminfo.c:(.text+0x0): first defined here > terminfo.o: In function `tparam': > terminfo.c:(.text+0x4a): undefined reference to `tparm' > collect2: error: ld returned 1 exit status > > It looks like it is due to a local copy of termcap.c: > > $ find . -name termcap.c > ./emacs-24.5/src/termcap.c I think your conclusion about the cause of this issue is incorrect. Emacs does not use its file src/termcap.c, except on MS-DOS. > gcc -Demacs -I. -I. -I../lib -I./../lib -MMD -MF deps/.d -MP -m64 > -march=native -fPIC -Wl,-znocombreloc -L/usr/local/lib64 -m64 > -Wl,-R,/usr/local/lib64 -Wl,--enable-new-dtags \ > -o temacs vm-limit.o dispnew.o frame.o scroll.o xdisp.o menu.o > window.o charset.o coding.o category.o ccl.o character.o chartab.o > bidi.o cm.o term.o terminal.o xfaces.o emacs.o keyboard.o macros.o > keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o > fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o > regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o > floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o > process.o gnutls.o callproc.o region-cache.o sound.o atimer.o doprnt.o > intervals.o textprop.o composite.o xml.o inotify.o profiler.o > decompress.o terminfo.o lastfile.o gmalloc.o ralloc.o > ../lib/libgnu.a -lrt -ltermcap > -lpthread -lm -lz Note lack of "termcap.o" in the above. > /usr/local/lib64/libtermcap.a(tparam.o): In function `tparam': > /home/scripts/termcap-1.3.1/tparam.c:101: multiple definition of `tparam' > terminfo.o:terminfo.c:(.text+0x0): first defined here > terminfo.o: In function `tparam': > terminfo.c:(.text+0x4a): undefined reference to `tparm' So it looks like you have a hand-compiled, static version of libtermcap, which is rather unusual. I think the problem is internal to your libtermcap installation. Emacs's configure script will use any of libtinfo, libncurses, libterminfo in preference to libtermcap. So you might try installing one of those, preferably the standard version from your (unspecified) distribution, and retry with a clean build. Note also that Emacs 25.3 is the latest release.