Hi Ken, thanks for continuing to help with build issues...
On Fri, Nov 29, 2013 at 5:15 PM, Ken Takata <[email protected]> wrote:
>
> A fix for ActivePerl 5.18.1 is already posted at here:
> http://code.google.com/p/vim/issues/detail?id=170#c5 (Hmm,
> preprocessor directives are not nicely indented. It's better to fix
> them.)
>
> However, using this fix is not enough when build with MSVC. As I
> already mentioned, ActivePerl 5.18.1 is build with MinGW. It means
> that C:\Perl\lib\CORE\config.h is configured for MinGW. So I had to
> change the configuration for MSVC.
>
> --- C:\Perl\lib\CORE\config.h.org Sat Nov 30 04:07:14 2013
> +++ C:\Perl\lib\CORE\config.h Sat Nov 30 04:31:24 2013
> @@ -2441,7 +2441,7 @@
> * static (c89 compilers)
> */
> #define HAS_STATIC_INLINE /**/
> -#define PERL_STATIC_INLINE static __inline__ /**/
> +#define PERL_STATIC_INLINE static __inline /**/
>
> /* USE_STDIO_PTR:
> * This symbol is defined if the _ptr and _cnt fields (or similar)
My version of Strawberry Perl (5.18.1.1-64) had this fix already.
> After applying this patch, I could build with MSVC10. I confirmed
> that `:perl VIM::Msg("hello")` works, but I don't know it fully
> works because there are no tests for if_perl :-(
With the revised if_perl.xs from your previous link, I still get the
following build errors in a Cygwin build.
1:In file included from
/cygdrive/c/strawberry/perl/lib/CORE/sys/socket.h:30:0,
2: from /cygdrive/c/strawberry/perl/lib/CORE/win32.h:381,
3: from /cygdrive/c/strawberry/perl/lib/CORE/win32thread.h:4,
4: from /cygdrive/c/strawberry/perl/lib/CORE/perl.h:2869,
5: from if_perl.xs:36:
6:/usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:38:2:
error: #error "ws2tcpip.h is not compatible with winsock.h. Include
win
7:In file included from
/cygdrive/c/strawberry/perl/lib/CORE/sys/socket.h:30:0,
8: from /cygdrive/c/strawberry/perl/lib/CORE/win32.h:381,
9: from /cygdrive/c/strawberry/perl/lib/CORE/win32thread.h:4,
10: from /cygdrive/c/strawberry/perl/lib/CORE/perl.h:2869,
11: from if_perl.xs:36:
12:/usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:147:8:
error: redefinition of ‘struct ip_mreq’
13:In file included from
/usr/i686-pc-mingw32/sys-root/mingw/include/windows.h:93:0,
14: from os_win32.h:104,
15: from vim.h:330,
16: from if_perl.xs:31:
17:/usr/i686-pc-mingw32/sys-root/mingw/include/winsock.h:315:8: note:
originally defined here
18:In file included from /cygdrive/c/strawberry/perl/lib/CORE/win32.h:515:0,
19: from /cygdrive/c/strawberry/perl/lib/CORE/win32thread.h:4,
20: from /cygdrive/c/strawberry/perl/lib/CORE/perl.h:2869,
21: from if_perl.xs:36:
22:/cygdrive/c/strawberry/perl/lib/CORE/win32iop.h:235:0: warning:
"fstat" redefined [enabled by default]
23:In file included from vim.h:477:0,
24: from if_perl.xs:31:
25:/usr/i686-pc-mingw32/sys-root/mingw/include/sys/stat.h:301:0:
note: this is the location of the previous definition
26:In file included from /cygdrive/c/strawberry/perl/lib/CORE/win32.h:515:0,
27: from /cygdrive/c/strawberry/perl/lib/CORE/win32thread.h:4,
28: from /cygdrive/c/strawberry/perl/lib/CORE/perl.h:2869,
29: from if_perl.xs:36:
30:/cygdrive/c/strawberry/perl/lib/CORE/win32iop.h:236:0: warning:
"stat" redefined [enabled by default]
31:In file included from vim.h:477:0,
32: from if_perl.xs:31:
33:/usr/i686-pc-mingw32/sys-root/mingw/include/sys/stat.h:300:0:
note: this is the location of the previous definition
34:In file included from /cygdrive/c/strawberry/perl/lib/CORE/hv.h:592:0,
35: from /cygdrive/c/strawberry/perl/lib/CORE/perl.h:3480,
36: from if_perl.xs:36:
37:/cygdrive/c/strawberry/perl/lib/CORE/hv_func.h: In function
‘S_perl_hash_murmur3’:
38:/cygdrive/c/strawberry/perl/lib/CORE/hv_func.h:391:17: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cas
39:if_perl.xs: In function ‘newWINrv’:
40:if_perl.xs:704:2: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
41:if_perl.xs: In function ‘newBUFrv’:
42:if_perl.xs:722:2: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
43:if_perl.c: In function ‘S_croak_xs_usage’:
44:if_perl.c:1162:56: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
45:if_perl.c: In function ‘XS_VIWIN_DESTROY’:
46:if_perl.c:1421:12: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
47:if_perl.c: In function ‘XS_VIWIN_Buffer’:
48:if_perl.c:1449:12: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
49:if_perl.c: In function ‘XS_VIWIN_SetHeight’:
50:if_perl.c:1487:12: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
51:if_perl.c: In function ‘XS_VIWIN_Cursor’:
52:if_perl.c:1521:12: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
53:if_perl.c: In function ‘XS_VIBUF_DESTROY’:
54:if_perl.c:1568:15: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
55:if_perl.c: In function ‘XS_VIBUF_Name’:
56:if_perl.c:1597:15: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
57:if_perl.c: In function ‘XS_VIBUF_Number’:
58:if_perl.c:1632:15: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
59:if_perl.c: In function ‘XS_VIBUF_Count’:
60:if_perl.c:1663:15: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
61:if_perl.c: In function ‘XS_VIBUF_Get’:
62:if_perl.c:1699:15: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
63:if_perl.c: In function ‘XS_VIBUF_Set’:
64:if_perl.c:1744:15: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
65:if_perl.c: In function ‘XS_VIBUF_Delete’:
66:if_perl.c:1803:15: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
67:if_perl.c: In function ‘XS_VIBUF_Append’:
68:if_perl.c:1882:15: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
69:Make_cyg.mak:635: recipe for target 'gobj/if_perl.o' failed
--
Steve Hall [ digitect dancingpaper com ]
--
--
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.