From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jeffrey Walton Newsgroups: gmane.emacs.help Subject: Duplicate symbols due to /src/termcap.c Date: Wed, 3 Jan 2018 17:39:13 -0500 Message-ID: Reply-To: noloader@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1515020280 31089 195.159.176.226 (3 Jan 2018 22:58:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2018 22:58:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 03 23:57:56 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 1eWryu-0007jS-1q for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 23:57:56 +0100 Original-Received: from localhost ([::1]:40423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWs0t-0005GP-Bc for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 17:59:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWrgq-0004j7-4H for help-gnu-emacs@gnu.org; Wed, 03 Jan 2018 17:39:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWrgp-0006Uo-3w for help-gnu-emacs@gnu.org; Wed, 03 Jan 2018 17:39:16 -0500 Original-Received: from mail-ot0-x232.google.com ([2607:f8b0:4003:c0f::232]:45296) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWrgo-0006Tt-U5 for help-gnu-emacs@gnu.org; Wed, 03 Jan 2018 17:39:15 -0500 Original-Received: by mail-ot0-x232.google.com with SMTP id o1so53607oti.12 for ; Wed, 03 Jan 2018 14:39:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=SK808JjRugMKcUHc4KKdjirxRUeUXGVmghtxKTux29Y=; b=tcRCHZ4o1gv9KEimyLqSWlMKv8To6kukv7Ohpno9sx1gvfQupUtJY4eSAk67CsVLMP Twbir0Bn7d+s7s5wSc1elGET8rwqTXybS2f8SGM8HvGewid3rJusIcLE1OAJ2F//m+9R BrOUml9CuVD/vyKVhKXd1CIIr6vXqnc+GPek5xW/Z1u4oTNziUsdVxVuTiTRj5zEhgBp ZawOCDx/myBO7MVFuQNxzdhn4Swuzib474FOIAEv27kUPqmehAObDdcQ/Y2Wv6UVxui1 PRX3DRYG43YfChEfawX3xD+hxMJqLkyloaM639lzsZqyDi2Lnt/+HU4DlTjUxd0r3P6r MM4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=SK808JjRugMKcUHc4KKdjirxRUeUXGVmghtxKTux29Y=; b=jhbaAQosCZxu3R16YPsuArSU/W/k9Vc2NdFPPYXrZcdcwiYbQQbjSlwO/0jp4ZC7wy W+DYhkyj0UzF0hHXd4KnX3mkWNjG8IAn38xMvgzugc2Nn2QH9cubUss4J7/JssLmHCfV JCD+6uSqhwPzTzTvMUBAypMcMR6HwQeg2Y/q96jeXV8BybqnFeE8mqkJeXn2hvqYQsz4 motdxayrttEa1I+h1DGgD91STFRO6ibTWcoBNPQ7cNyrU9KtI+heTikVDBOyk2Q2NfOH A9i0UTDZ8ZZt8CjSrI8kMiXYYUuRm8CFX/qp517nwrbPy8TPNvsKGYmLM+ZNPAO1KJMK eRaQ== X-Gm-Message-State: AKGB3mLIDkxnzXhQb1gHlJjpfQWkPa62A94yjUxtsYr8tFBFoHjO/CpP pzjBklxxUk0S0EJ8A7IigXLulCvN8Ub0DThQVnF+pqBq X-Google-Smtp-Source: ACJfBotncFfnp1vUg1WaZt4UdsECstYAdqJosjshWuSZATz0Po8IRJtwV1/0loDeyqe2OEEUuo8FlCnZGzZYfdspaYk= X-Received: by 10.157.83.2 with SMTP id g2mr2081187oth.340.1515019153921; Wed, 03 Jan 2018 14:39:13 -0800 (PST) Original-Received: by 10.74.15.89 with HTTP; Wed, 3 Jan 2018 14:39:13 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::232 X-Mailman-Approved-At: Wed, 03 Jan 2018 17:56:36 -0500 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:115559 Archived-At: I'm building Emacs from sources. Termcap, Ncurses, GetText and friends are already installed. As the build finishes I see: ... /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 How do I tell Emacs to avoid its copy of Termcap, and use the one already built and installed ****************************** Here is how Emacs was configured: PKG_CONFIG_PATH="${BUILD_PKGCONFIG[*]}" \ CPPFLAGS="${BUILD_CPPFLAGS[*]}" \ CFLAGS="${BUILD_CFLAGS[*]}" CXXFLAGS="${BUILD_CXXFLAGS[*]}" \ LDFLAGS="${BUILD_LDFLAGS[*]}" LIBS="${BUILD_LIBS[*]}" \ ./configure --prefix="$INSTALL_PREFIX" --libdir="$INSTALL_LIBDIR" \ --with-xml2 --without-x --without-sound --without-xpm \ --without-jpeg --without-tiff --without-gif --without-png --without-rsvg \ --without-imagemagick --without-xft --without-libotf --without-m17n-flt \ --without-xaw3d --without-toolkit-scroll-bars --without-gpm --without-dbus \ --without-gconf --without-gsettings --without-makeinfo \ --without-compress-install And here are the variables it was asked to use: INSTALL_PREFIX: /usr/local INSTALL_LIBDIR: /usr/local/lib64 PKGCONFIG: /usr/local/lib64/pkgconfig CPPFLAGS: -I/usr/local/include -DNDEBUG CFLAGS: -m64 -march=native -fPIC CXXFLAGS: -m64 -march=native -fPIC LDFLAGS: -L/usr/local/lib64 -m64 -Wl,-R,/usr/local/lib64 -Wl,--enable-new-dtags LDLIBS: -ldl -lpthread ****************************** 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 /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 gmake[1]: *** [Makefile:664: temacs] Error 1 gmake[1]: Leaving directory '/home/scripts/emacs-24.5/src' gmake: *** [Makefile:387: src] Error 2