upgrading VIM errors

Joel Thibault (MacPorts) pgijnxn02 at sneakemail.com
Tue Jan 20 09:48:02 PST 2009


On Tue, Jan 20, 2009 at 12:38 PM, Timothy Goins
ohce86-at-kitcarson.net|MacPorts|
<doxvk95gtd0t at sneakemail.com> wrote:

> When I attempt to *upgrade outdated* openssl and vim fail; all other ports
> upgrade.  Here is the error stream for the vim failure:
> tim at cotopaxi:~$ sudo port upgrade vim
> --->  Building vim
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_vim/work/vim72"
> && make all " returned error 2
> Command output: Starting make in the src directory.
> If there are problems, cd to the src directory and run make there
> cd src && make all
> /usr/bin/gcc-4.0 -c -I. -Iproto -DHAVE_CONFIG_H   -I/opt/local/include
> -DMACOS_X_UNIX -no-cpp-precomp -I/Developer/Headers/FlatCarbon  -O
> -D_FORTIFY_SOURCE=1         version.c -o objects/version.o
>   /usr/bin/gcc-4.0   -L/opt/local/lib -L/usr/local/lib -o vim
> objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o
> objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o
> objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o
> objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o
>  objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o
> objects/memfile.o objects/memline.o objects/menu.o objects/message.o
> objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o
> objects/normal.o objects/ops.o objects/option.o objects/os_unix.o
> objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o
> objects/screen.o objects/search.o objects/spell.o objects/syntax.o
>  objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o
>     objects/os_macosx.o objects/os_mac_conv.o  objects/netbeans.o
>  objects/version.o       -lm  -lncurses -liconv -framework Carbon
> Undefined symbols:
>   "__Xsetlocale", referenced from:
>       _get_locale_val in ex_cmds2.o
>       _ex_language in ex_cmds2.o
>       _ex_language in ex_cmds2.o
>       _ex_language in ex_cmds2.o
>       _main in main.o
>       _main in main.o
>       _enc_locale in mbyte.o
>       _mac_lang_init in os_mac_conv.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[1]: *** [vim] Error 1
> make: *** [all] Error 2
>
> Error: Unable to upgrade port: 1
>


Try doing a selfupdate and clean first, at least for vim:

$ sudo port selfupdate
$ port clean --all vim
$ sudo port upgrade vim

That fixed the problem for me.

Joel



-- 
Joel Thibault [AIM: Jole Tebo]
Software Engineer in Boston
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090120/30969145/attachment.html>


More information about the macports-users mailing list