Re: [vim-perl] can't get vim-7.3 to compile against perl 5.16

334 views
Skip to first unread message

Benjamin R. Haskell

unread,
Jul 18, 2012, 2:52:18 AM7/18/12
to vim-...@googlegroups.com
On Mon, 16 Jul 2012, Britton Kerin wrote:

>
> I used a plain ./Configure -des -Dprefix=$HOME/local to build perl
> 5.16.  It seems to work fine passes all tests installs ok etc.

I did:

## (long ago):
git clone git://perl5.git.perl.org/perl.git

## (just now):
cd perl
git clean -xdf
git checkout -b local-build v5.16.0
./Configure -des -Dprefix=$HOME/localperl
make install


> I have all LD_RUN_PATH set up to include $HOME/lib of course, and
> build lots of apps against libs in this dir.  Anyway the errors I'm
> getting don't seem to involve missing stuff.
>
> I configure vim-7.3 like this:
>
>      ./configure --with-features=big --enable-luainterp=dynamic --enable-mzschemeinterp=dynamic --enable-pythoninterp=dynamic --enable-python3interp=dynamic
> --enable-perlinterp=yes --prefix=$HOME/local

I tried both that command (modulo local vs. localperl), and this command with just the Perl interpreter:

./configure --with-features=big --enable-perlinterp=yes --prefix=$HOME/localperl

In both cases, I got a working Vim 7.3.604. And in both cases:

:perl print "$^V\n"

Printed v5.16.0 to the screen.


> The config works and everything in src/auto/config.log shows the perl
> binary and libraries getting found (config.log attached).
>
> But then the build fails like this:
>
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread
> -I/home/bkerin/local/include/gtk-2.0
> -I/home/bkerin/local/lib/gtk-2.0/include
> -I/home/bkerin/local/include/atk-1.0
> -I/home/bkerin/local/include/cairo
> -I/home/bkerin/local/include/gdk-pixbuf-2.0
> -I/home/bkerin/local/include/pango-1.0
> -I/home/bkerin/local/include/glib-2.0
> -I/home/bkerin/local/lib/glib-2.0/include
> -I/home/bkerin/local/include/pixman-1
> -I/home/bkerin/local/include/freetype2 -I/home/bkerin/local/include
> -I/usr/include/libpng12   -I/usr/local/include  -g -O2
> -D_FORTIFY_SOURCE=1       -fstack-protector -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
> -I/home/bkerin/local/lib/perl5/5.16.0/i686-linux/CORE  -o
> objects/if_perl.o auto/if_perl.c
> if_perl.c:1081:1: error: static declaration of ‘XS_VIM_Msg’ follows non-static declaration
> if_perl.xs:895:1: note: previous declaration of ‘XS_VIM_Msg’ was here
>
> [... trim similar static follows non-static declaration errors ...]
>
> Has anyone else encountered/fixed this problem?

I'm using gcc 4.6.2 under OpenSUSE. Maybe it's a case of something in a
newer GCC being more strict?

Is there anything in /home/bkerin/local/include that looks Perl-related?

--
Best,
Ben
Reply all
Reply to author
Forward
0 new messages