Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Apr 2021 17:54:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 254891] editors/vim: Linking fails for vim 8.2.2725 on 13-STABLE amd64
Message-ID:  <bug-254891-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254891

            Bug ID: 254891
           Summary: editors/vim: Linking fails for vim 8.2.2725 on
                    13-STABLE amd64
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: adamw@FreeBSD.org
          Reporter: rsmith@xs4all.nl
          Assignee: adamw@FreeBSD.org
             Flags: maintainer-feedback?(adamw@FreeBSD.org)

When trying to build vim 8.2.2725 with a ports tree freshly checked out with
git, I get a linking failure:

link.sh: $LINK_AS_NEEDED set to 'yes': invoking linker directly.
  cc   -fstack-protector-strong  -L/usr/local/lib -Wl,--as-needed  -o vim
objects/arabic.o  objects/arglist.o  objects/autocmd.o  objects/beval.o=20
objects/buffer.o  objects/change.o  objects/blob.o  objects/blowfish.o=20
objects/cindent.o  objects/clientserver.o  objects/clipboard.o=20
objects/cmdexpand.o  objects/cmdhist.o  objects/crypt.o  objects/crypt_zip.=
o=20
objects/debugger.o  objects/dict.o  objects/diff.o  objects/digraph.o=20
objects/drawline.o  objects/drawscreen.o  objects/edit.o  objects/eval.o=20
objects/evalbuffer.o  objects/evalfunc.o  objects/evalvars.o=20
objects/evalwindow.o  objects/ex_cmds.o  objects/ex_cmds2.o  objects/ex_doc=
md.o
 objects/ex_eval.o  objects/ex_getln.o  objects/fileio.o  objects/filepath.=
o=20
objects/findfile.o  objects/fold.o  objects/getchar.o  objects/gui_xim.o=20
objects/hardcopy.o  objects/hashtab.o  objects/help.o  objects/highlight.o=
=20
objects/if_cscope.o  objects/if_xcmdsrv.o  objects/indent.o=20
objects/insexpand.o  objects/list.o  objects/locale.o  objects/map.o=20
objects/mark.o  objects/match.o  objects/mbyte.o  objects/memline.o=20
objects/menu.o  objects/misc1.o  objects/misc2.o  objects/mouse.o=20
objects/move.o  objects/normal.o  objects/ops.o  objects/option.o=20
objects/optionstr.o  objects/os_unix.o  objects/pathdef.o  objects/popupmen=
u.o=20
objects/popupwin.o  objects/profiler.o  objects/pty.o  objects/quickfix.o
objects/regexp.o  objects/register.o  objects/screen.o  objects/scriptfile.=
o=20
objects/search.o  objects/session.o  objects/sha256.o  objects/sign.o=20
objects/sound.o  objects/spell.o  objects/spellfile.o  objects/spellsuggest=
.o=20
objects/syntax.o  objects/tag.o  objects/term.o  objects/terminal.o=20
objects/testing.o
 objects/textformat.o  objects/textobject.o  objects/textprop.o  objects/ti=
me.o
 objects/typval.o  objects/ui.o  objects/undo.o  objects/usercmd.o=20
objects/userfunc.o  objects/version.o  objects/vim9compile.o
objects/vim9execute.o  objects/vim9script.o  objects/vim9type.o=20
objects/viminfo.o  objects/window.o  objects/bufwrite.o=20=20=20
objects/vterm_encoding.o objects/vterm_keyboard.o objects/vterm_mouse.o
objects/vterm_parser.o objects/vterm_pen.o objects/vterm_screen.o
objects/vterm_state.o objects/vterm_unicode.o objects/vterm_vterm.o=20=20=
=20=20=20=20=20=20=20
objects/if_python3.o        objects/netbeans.o  objects/job.o objects/chann=
el.o
objects/xdiffi.o  objects/xemit.o  objects/xprepare.o  objects/xutils.o=20
objects/xhistogram.o  objects/xpatience.o objects/charset.o  objects/json.o=
=20
objects/main.o  objects/memfile.o  objects/message.o
       -lm -lelf  -pthread -lncursesw=20=20=20=20=20=20=20=20=20
-L/usr/local/lib/python3.9/config-3.9 -lpython3.9 -lcrypt
-lintl -ldl -L/usr/local/lib -lintl -lutil -lm -lm
ld: error: undefined symbol: sysinfo
>>> referenced by memline.c
>>>               objects/memline.o:(findswapname)
>>> referenced by memline.c
>>>               objects/memline.o:(ml_recover)
>>> referenced by memline.c
>>>               objects/memline.o:(swapfile_info)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
link.sh: Linking failed
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/editors/vim/work/vim-8.2.2725/src
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/editors/vim/work/vim-8.2.2725
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/editors/vim
*** Error code 1


For now, I've added this to the Makefile.
Not sure if this is the most elegant solution, but works for me.

diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 6e7e10617..feea79d53 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -18,6 +18,8 @@ USE_GITHUB=3D   yes

 CONFLICTS_INSTALL?=3D    vim-console vim-tiny

+LIBS+=3D         -L${LOCALBASE}/lib -lsysinfo
+
 CONFIGURE_ARGS=3D        --enable-gui=3D${GUI} \
                --enable-multibyte \
                --with-tlib=3Dncursesw

In case it matters, this is my port config:

# make showconfig
=3D=3D=3D> The following configuration options are available for vim-8.2.27=
25:
     CSCOPE=3Doff: cscope support
     DEFAULT_VIMRC=3Doff: Install bundled vimrc as default setting
     MAKE_JOBS=3Doff: Enable parallel build
     NLS=3Doff: Native Language Support
     XTERM_SAVE=3Don: Restore xterm screen after exit
=3D=3D=3D=3D> Optional language bindings
     LUA=3Doff: Lua scripting language support
     PERL=3Doff: Perl scripting language support
     PYTHON=3Don: Python bindings or support
     RUBY=3Doff: Ruby bindings or support
     SCHEME=3Doff: MzScheme (Racket) bindings
     TCL=3Doff: Tcl scripting language support
=3D=3D=3D=3D> Options available for the single CTAGS: you have to select ex=
actly one of
them
     CTAGS_BASE=3Doff: Use system ctags
     CTAGS_EXUBERANT=3Doff: Use exctags instead of ctags
     CTAGS_UNIVERSAL=3Don: Use uctags instead of ctags
=3D=3D=3D=3D> User interface: you have to select exactly one of them
     ATHENA=3Doff: Athena GUI toolkit
     CONSOLE=3Don: Console/terminal mode
     GNOME=3Doff: GNOME desktop environment support
     GTK2=3Doff: GTK+ 2 GUI toolkit support
     GTK3=3Doff: GTK+ 3 GUI toolkit support
     MOTIF=3Doff: Motif widget library support
     X11=3Doff: X11 (graphics) support

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254891-7788>