On 11 December 2013, Bram Moolenaar <[email protected]> wrote:
> 
> Patch 7.4.117
> Problem:    Can't build with Cygwin/MingW and Perl 5.18.
> Solution:   Add a linker argument for the Perl library. (Cesar Romani)
>           Adjust CFLAGS and LIB. (Cesar Romani)
>           Move including inline.h further down. (Ken Takata)
> Files:            src/Make_cyg.mak, src/Make_ming.mak, src/if_perl.xs
[...]

    Sadly, this no longer compiles on Linux:

link.sh: $LINK_AS_NEEDED set to 'yes': invoking linker directly.
  gcc   -Wl,-E -Wl,-rpath,/usr/lib/perl5/CORE   -s -L/usr/local/lib 
-Wl,--as-needed     -o vim objects/buffer.o objects/blowfish.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/mark.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/sha256.o 
objects/spell.o objects/syntax.o  objects/tag.o objects/term.o objects/ui.o 
objects/undo.o objects/version.o objects/window.o    objects/if_perl.o 
objects/if_perlsfio.o objects/if_python.o      objects/netbeans.o  
objects/main.o objects/memfile.o    -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM 
-lICE  -lm -lelf -lnsl   -lncurses -lacl -lattr -lgpm -ldl   -Wl,-E 
-Wl,-rpath,/usr/lib/perl5/CORE  -fstack-protector -L/usr/local/lib  
-L/usr/lib/perl5/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc 
-L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker 
-export-dynamic      
objects/if_perl.o: In function `newWINrv':
if_perl.c:(.text+0x39): undefined reference to `S_SvREFCNT_inc'
objects/if_perl.o: In function `newBUFrv':
if_perl.c:(.text+0x129): undefined reference to `S_SvREFCNT_inc'
objects/if_perl.o: In function `ex_perl':
if_perl.c:(.text+0x38fc): undefined reference to `S_SvREFCNT_dec'
objects/if_perl.o: In function `ex_perldo':
if_perl.c:(.text+0x3e3a): undefined reference to `S_SvREFCNT_dec'
collect2: error: ld returned 1 exit status
link.sh: Linking failed
make[1]: *** [vim] Error 1
make[1]: Leaving directory `/tmp/vim74/src'
make: *** [first] Error 2

    Perl version:

This is perl 5, version 18, subversion 1 (v5.18.1) built for 
i486-linux-thread-multi

    /lcd

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui