Page 1 of 1

grsecurity-2.2.2-2.6.39.1-201106040846.patch error

PostPosted: Sat Jun 04, 2011 10:01 am
by coderx
tools/gcc/pax_plugin.c:19:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.

Re: grsecurity-2.2.2-2.6.39.1-201106040846.patch error

PostPosted: Sat Jun 04, 2011 11:15 am
by PaX Team
coderx wrote:tools/gcc/pax_plugin.c:19:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.
what's your gcc version?

Re: grsecurity-2.2.2-2.6.39.1-201106040846.patch error

PostPosted: Sat Jun 04, 2011 11:57 am
by coderx
PaX Team wrote:
coderx wrote:tools/gcc/pax_plugin.c:19:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.
what's your gcc version?


gcc version 4.5.3 (Debian 4.5.3-1)

Re: grsecurity-2.2.2-2.6.39.1-201106040846.patch error

PostPosted: Sat Jun 04, 2011 12:05 pm
by lokai
On Debian testing, you will have to :
apt-get install gcc-4.5-plugin-dev libgmp-dev libmpfr-dev libmpc-dev

since you are building a gcc-4.5 plugin.
Apparently, stable uses gcc-4.4 by default and there is no plugin support in gcc-4.4.

Re: grsecurity-2.2.2-2.6.39.1-201106040846.patch error

PostPosted: Sat Jun 04, 2011 12:25 pm
by coderx
lokai wrote:On Debian testing, you will have to :
apt-get install gcc-4.5-plugin-dev libgmp-dev libmpfr-dev libmpc-dev

since you are building a gcc-4.5 plugin.
Apparently, stable uses gcc-4.4 by default and there is no plugin support in gcc-4.4.


HOSTCC -fPIC tools/gcc/pax_plugin.o
HOSTLLD -shared tools/gcc/pax_plugin.so
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c: In function 'is_defined_config':
scripts/basic/fixdep.c:169:37: warning: comparison between signed and unsigned integer expressions
HOSTCC scripts/basic/docproc
scripts/basic/docproc.c: In function 'find_all_symbols':
scripts/basic/docproc.c:411:16: warning: comparison between signed and unsigned integer expressions
scripts/basic/docproc.c:421:16: warning: comparison between signed and unsigned integer expressions
CC kernel/bounds.s
cc1: error: Cannot load plugin /usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so
/usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so: cannot open shared object file: No such file or directory

Re: grsecurity-2.2.2-2.6.39.1-201106040846.patch error

PostPosted: Sat Jun 04, 2011 12:31 pm
by PaX Team
coderx wrote: HOSTCC -fPIC tools/gcc/pax_plugin.o
HOSTLLD -shared tools/gcc/pax_plugin.so
CC kernel/bounds.s
cc1: error: Cannot load plugin /usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so
/usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so: cannot open shared object file: No such file or directory
hmm, why does $obj point to scripts/package? did you specify it somehow? also, where was the actual plugin built?

Re: grsecurity-2.2.2-2.6.39.1-201106040846.patch error

PostPosted: Sat Jun 04, 2011 12:43 pm
by coderx
PaX Team wrote:
coderx wrote: HOSTCC -fPIC tools/gcc/pax_plugin.o
HOSTLLD -shared tools/gcc/pax_plugin.so
CC kernel/bounds.s
cc1: error: Cannot load plugin /usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so
/usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so: cannot open shared object file: No such file or directory
hmm, why does $obj point to scripts/package? did you specify it somehow? also, where was the actual plugin built?


i didnt specified anything
the plugin is in tools/gcc/

Re: grsecurity-2.2.2-2.6.39.1-201106040846.patch error

PostPosted: Sat Jun 04, 2011 1:02 pm
by PaX Team
coderx wrote:i didnt specified anything
the plugin is in tools/gcc/
ok, figured it out. in the main Makefile, can you change
Code: Select all
-fplugin=$(obj)/tools/gcc/pax_plugin.so
into
Code: Select all
-fplugin=$(objtree)/tools/gcc/pax_plugin.so
?