Hello, It looks from the error message that the issue is not relevant to any GTK+ stuff but to the if_perl module.
Also, please note that our build system is supposed to exclude "-D_FORTIFY_SOURCE=2" or similar stuff by replacing it with "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1" for gcc >= 3.0 (cf. src/ configure.in:4275). So I'm wondering why we have (an excerpt of the 3rd gcc command line): gcc -c <snip> -D_FORTIFY_SOURCE=2 <snip> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 <snip> -D_FORTIFY_SOURCE=2 <snip> -o objects/if_perl.o auto/if_perl.c which looks to me as if the configure script was invoked with a command line like $ CPPFLAGS='-D_FORTIFY_SOURCES=2' ./configure Hence it would be more helpful if you could tell us more about your build configuration when you got the error. In particular, I have an interest in a reason why "-D_FORTIFY_SOURCES=2"s were not filtered automatically by the configure script and remained in the command lines to compile the if_lua and if_perl modules. Best regards, Kazunobu Kuriyama 2016-05-09 10:16 GMT+09:00 Brenton Horne <[email protected]>: > Hi, > > The Vim GTK+ 2 interface is failing to build, while the GTK+ 3 interface > is building fine on Arch Linux 64-bit. Here is the error message I am > getting during the build of Vim GTK+ 2: > > tune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE > -D_FORTIFY_SOURCE=1 -o objects/gui_beval.o gui_beval.c > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 > -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 > -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 > -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2 > -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 > -DDYNAMIC_LUA_DLL=\"liblua.so.5.3.2\" -I/usr/include -o objects/if_lua.o > if_lua.c > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 > -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 > -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 > -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2 > -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DDYNAMIC_PERL_DLL=\"libperl.so\" > -D_REENTRANT -D_GNU_SOURCE -fwrapv -fstack-protector-strong > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_FORTIFY_SOURCE=2 -I/usr/lib/perl5/core_perl/CORE -o objects/if_perl.o > auto/if_perl.c<command-line>:0:0: warning: "_FORTIFY_SOURCE" > redefined<command-line>:0:0: note: this is the location of the previous > definition > In file included from if_perl.xs:610:0: > /usr/lib/perl5/core_perl/CORE/inline.h: In function ‘S_av_top_index’: > /usr/lib/perl5/core_perl/CORE/inline.h:20:5: error: > ‘PERL_ARGS_ASSERT_AV_TOP_INDEX’ undeclared (first use in this function) > PERL_ARGS_ASSERT_AV_TOP_INDEX; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib/perl5/core_perl/CORE/inline.h:20:5: note: each undeclared identifier > is reported only once for each function it appears in > /usr/lib/perl5/core_perl/CORE/inline.h: In function > ‘S_append_utf8_from_native_byte’: > /usr/lib/perl5/core_perl/CORE/inline.h:242:5: error: > ‘PERL_ARGS_ASSERT_APPEND_UTF8_FROM_NATIVE_BYTE’ undeclared (first use in this > function) > PERL_ARGS_ASSERT_APPEND_UTF8_FROM_NATIVE_BYTE; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib/perl5/core_perl/CORE/inline.h: In function ‘S__is_utf8_char_slow’: > /usr/lib/perl5/core_perl/CORE/inline.h:274:5: error: > ‘PERL_ARGS_ASSERT__IS_UTF8_CHAR_SLOW’ undeclared (first use in this function) > PERL_ARGS_ASSERT__IS_UTF8_CHAR_SLOW; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib/perl5/core_perl/CORE/inline.h: In function ‘S_is_safe_syscall’: > /usr/lib/perl5/core_perl/CORE/inline.h:305:5: error: > ‘PERL_ARGS_ASSERT_IS_SAFE_SYSCALL’ undeclared (first use in this function) > PERL_ARGS_ASSERT_IS_SAFE_SYSCALL; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib/perl5/core_perl/CORE/inline.h: In function ‘S_sv_only_taint_gmagic’: > /usr/lib/perl5/core_perl/CORE/inline.h:390:5: error: > ‘PERL_ARGS_ASSERT_SV_ONLY_TAINT_GMAGIC’ undeclared (first use in this > function) > PERL_ARGS_ASSERT_SV_ONLY_TAINT_GMAGIC; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Makefile:2859: recipe for target 'objects/if_perl.o' failed > make[1]: *** [objects/if_perl.o] Error 1 > make[1]: Leaving directory > '/home/fusion809/GitHub/mine/PKGBUILDs/gvim-git/src/vim/src' > Makefile:26: recipe for target 'first' failed > make: *** [first] Error 2 > > Thanks for your time, > Brenton > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly or view it on GitHub > <https://github.com/vim/vim/issues/790> > > -- > -- > 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/d/optout. > -- -- 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/d/optout.
