[grsec] compilation error in the 2.4.27 patch

Peter S. Mazinger ps.m at gmx.net
Fri Sep 10 09:06:23 EDT 2004


On Fri, 10 Sep 2004, Carlos Carvalho wrote:

> I tried to compile 2.4.28-pre2 with the grsec 2.4.27 patch. The
> patching worked fine but the compilation aborts with the following msg.:
> 
> make[2]: Entering in `linux/mm'
> gcc -D__KERNEL__ -Ilinux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -fno-unit-at-a-time   -nostdinc -iwithprefix include -DKBUILD_BASENAME=memory  -c -o memory.o memory.c
> memory.c:1595: error: conflicting types for 'pte_alloc_kernel'
> linux/include/linux/mm.h:524: error: previous declaration of 'pte_alloc_kernel' was here
> memory.c:1595: error: conflicting types for 'pte_alloc_kernel'
> linux/include/linux/mm.h:524: error: previous declaration of 'pte_alloc_kernel' was here
> 
> This is with gcc 3.4.
> 
> Any suggestions?

change:
-pte_t *pte_alloc_kernel
+pte_t fastcall *pte_alloc_kernel

in mm/memory.c

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2


____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu


More information about the grsecurity mailing list