Build error: undefined symbols in gcc plugins

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Build error: undefined symbols in gcc plugins

Postby fmarier » Sun May 13, 2012 2:40 am

I'm getting compilations errors on Debian sid amd64 with the latest 3.3.6 kernel and grsecurity-2.9-3.3.6-201205130001.patch:

[code]
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
cc1: error: cannot load plugin /usr/src/linux-3/tools/gcc/constify_plugin.so
/usr/src/linux-3/tools/gcc/constify_plugin.so: undefined symbol: register_attribute
cc1: error: cannot load plugin /usr/src/linux-3/tools/gcc/stackleak_plugin.so
/usr/src/linux-3/tools/gcc/stackleak_plugin.so: undefined symbol: get_frame_size
cc1: error: cannot load plugin /usr/src/linux-3/tools/gcc/colorize_plugin.so
/usr/src/linux-3/tools/gcc/colorize_plugin.so: undefined symbol: pp_base_set_prefix
cc1: error: cannot load plugin /usr/src/linux-3/tools/gcc/kernexec_plugin.so
/usr/src/linux-3/tools/gcc/kernexec_plugin.so: undefined symbol: build_tree_list_stat
cc1: error: cannot load plugin /usr/src/linux-3/tools/gcc/size_overflow_plugin.so
/usr/src/linux-3/tools/gcc/size_overflow_plugin.so: undefined symbol: gsi_insert_after
make[3]: *** [scripts/mod/empty.o] Erreur 1
[/code]

I've just done a "make clean" and "ccache --clear" but I'm still getting these errors. Are there any other details I can give you to make this a more useful bug report? (I feel like this is very light on details, but I'm not sure I should paste my whole config and build log...)

[code]
$ gcc --version
gcc (Debian 4.7.0-8) 4.7.0
[/code]
fmarier
 
Posts: 7
Joined: Tue Feb 26, 2008 7:55 pm



Return to grsecurity support