grsecurity-2.2.2-2.6.39.1-201106040846.patch error

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

grsecurity-2.2.2-2.6.39.1-201106040846.patch error

Postby coderx » Sat Jun 04, 2011 10:01 am

tools/gcc/pax_plugin.c:19:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.
coderx
 
Posts: 37
Joined: Tue Mar 25, 2008 3:57 am

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

Postby PaX Team » Sat Jun 04, 2011 11:15 am

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?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

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

Postby coderx » Sat Jun 04, 2011 11:57 am

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)
coderx
 
Posts: 37
Joined: Tue Mar 25, 2008 3:57 am

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

Postby lokai » Sat Jun 04, 2011 12:05 pm

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.
lokai
 
Posts: 1
Joined: Sat Jun 04, 2011 11:48 am

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

Postby coderx » Sat Jun 04, 2011 12:25 pm

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
coderx
 
Posts: 37
Joined: Tue Mar 25, 2008 3:57 am

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

Postby PaX Team » Sat Jun 04, 2011 12:31 pm

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?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

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

Postby coderx » Sat Jun 04, 2011 12:43 pm

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/
coderx
 
Posts: 37
Joined: Tue Mar 25, 2008 3:57 am

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

Postby PaX Team » Sat Jun 04, 2011 1:02 pm

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
?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support