[MacPorts] #49882: neovim fails to compile with Symbol not found: _cur_term
#49882: neovim fails to compile with Symbol not found: _cur_term ---------------------+-------------------------------- Reporter: aaron@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: neovim ---------------------+-------------------------------- The new neovim port fails to compile, ending with this in main.log: {{{ :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/runtime/doc && /opt/local/bin/cmake -E copy_directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/runtime/doc /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/runtime/doc :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/runtime/doc && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/bin/nvim -u NONE -i NONE -esX --headless -c helptags\ ++t\ . -c quit :info:build dyld: Symbol not found: _cur_term :info:build Referenced from: /opt/local/lib/libtermkey.1.dylib :info:build Expected in: flat namespace :info:build in /opt/local/lib/libtermkey.1.dylib :info:build /bin/sh: line 1: 16774 Trace/BPT trap: 5 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0/bin/nvim -u NONE -i NONE -esX --headless -c helptags\ ++t\ . -c quit :info:build make[2]: *** [runtime/doc/tags] Error 133 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0' :info:build make[1]: *** [runtime/CMakeFiles/runtime.dir/all] Error 2 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_neovim/neovim/work/neovim-0.1.0" && /usr/bin/make -j8 -w all VERBOSE=ON :info:build Exit code: 2 :error:build org.macports.build for port neovim returned: command execution failed }}} -- Ticket URL: <https://trac.macports.org/ticket/49882> MacPorts <https://www.macports.org/> Ports system for OS X
#49882: neovim fails to compile with Symbol not found: _cur_term ----------------------+-------------------------------- Reporter: aaron@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: neovim | ----------------------+-------------------------------- Comment (by aaron@…): Could be related? https://github.com/neovim/neovim/issues/2033#issuecomment-75364945 "This error happens when libtermkey fails to find unibilium and tries to link against libterminfo" -- Ticket URL: <https://trac.macports.org/ticket/49882#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49882: neovim fails to compile with Symbol not found: _cur_term ----------------------+-------------------------------- Reporter: aaron@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: neovim | ----------------------+-------------------------------- Comment (by aaron@…): Removing and recompiling libtermkey from source resolves the problem: {{{ port uninstall libtermkey port install -s libtermkey }}} I suspect this means that the pre-compiled package for libtermkey was built without a depdency on unibilium? -- Ticket URL: <https://trac.macports.org/ticket/49882#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49882: neovim fails to compile with Symbol not found: _cur_term ----------------------+-------------------------------- Reporter: aaron@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: neovim | ----------------------+-------------------------------- Comment (by aaron@…): Now I'm confused. The patch-Makefile for libtermkey explicltly removes the unibilium dependency, in favor of ncursesw? {{{ cat /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libtermkey/files /patch-Makefile.diff --- Makefile.orig 2015-10-03 19:37:52.000000000 +0200 +++ Makefile 2015-10-03 19:39:01.000000000 +0200 @@ -19,25 +19,14 @@ LDFLAGS+=-pg endif -ifeq ($(shell pkg-config --atleast-version=0.1.0 unibilium && echo 1),1) - CFLAGS +=$(shell pkg-config --cflags unibilium) -DHAVE_UNIBILIUM - LDFLAGS+=$(shell pkg-config --libs unibilium) -else ifeq ($(shell pkg-config ncursesw && echo 1),1) - CFLAGS +=$(shell pkg-config --cflags ncursesw) - LDFLAGS+=$(shell pkg-config --libs ncursesw) -else - LDFLAGS+=-lncurses -endif +CFLAGS +=$(shell pkg-config --cflags ncursesw) +LDFLAGS+=$(shell pkg-config --libs ncursesw) OBJECTS=termkey.lo driver-csi.lo driver-ti.lo LIBRARY=libtermkey.la DEMOS=demo demo-async -ifeq ($(shell pkg-config glib-2.0 && echo 1),1) - DEMOS+=demo-glib -endif - DEMO_OBJECTS=$(DEMOS:=.lo) TESTSOURCES=$(wildcard t/[0-9]*.c) }}} -- Ticket URL: <https://trac.macports.org/ticket/49882#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49882: neovim fails to compile with Symbol not found: _cur_term ----------------------+---------------------- Reporter: aaron@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: neovim | ----------------------+---------------------- Changes (by mf2k@…): * owner: macports-tickets@… => raimue@… * cc: raimue@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/49882#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#49882: neovim fails to compile with Symbol not found: _cur_term --------------------------------+---------------------- Reporter: aaron@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: neovim libtermkey | --------------------------------+---------------------- Changes (by raimue@…): * status: new => assigned * port: neovim => neovim libtermkey Comment: I was confused as well. The port builds fine for me on my local system, but [https://build.macports.org/builders/buildports-yosemite- x86_64/builds/6520 failed] on the yosemite buildbot. I just noticed the missing dependency on ncurses in libtermkey. Fixed in r143098. Please test again. -- Ticket URL: <https://trac.macports.org/ticket/49882#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#49882: neovim fails to compile with Symbol not found: _cur_term --------------------------------+---------------------- Reporter: aaron@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: neovim libtermkey | --------------------------------+---------------------- Comment (by aaron@…): Both libtermkey and neovim now install from packages without trouble. Recompiling neovim with the pre-built libtermkey package also works. Thank you! -- Ticket URL: <https://trac.macports.org/ticket/49882#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#49882: neovim fails to compile with Symbol not found: _cur_term --------------------------------+---------------------- Reporter: aaron@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: neovim libtermkey | --------------------------------+---------------------- Changes (by raimue@…): * status: assigned => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/49882#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts