Problem compiling kernel 2.6.20.4

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

Problem compiling kernel 2.6.20.4

Postby g0dkiller » Mon Apr 09, 2007 9:45 am

I have lots of warning: missing initializer errors
I installed binutils 2.17 but i get the same errors

At the end
Code: Select all
  LD      drivers/media/video/bt8xx/bttv.o
  LD      drivers/media/video/bt8xx/built-in.o
  LD      drivers/media/video/built-in.o
  LD      drivers/media/built-in.o
  LD      drivers/built-in.o
  LD      net/unix/unix.o
  LD      net/unix/built-in.o
  LD      net/ipv4/netfilter/built-in.o
  LD      net/ipv4/built-in.o
  LD      net/xfrm/built-in.o
  LD      net/built-in.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
ld: vmlinux: section `.init.text' can't be allocated in segment 0
ld: final link failed: Bad value
make: *** [vmlinux] Error 1


I am using slackware 11.0
[/url]
g0dkiller
 
Posts: 3
Joined: Mon Apr 09, 2007 6:41 am

Re: Problem compiling kernel 2.6.20.4

Postby saidone » Wed Apr 11, 2007 9:10 am

I'm experimenting the same error... let's see what could be wrong.
saidone
 
Posts: 4
Joined: Wed Apr 11, 2007 9:06 am

Postby g0dkiller » Wed Apr 11, 2007 1:14 pm

How did you install binutils ? I think it's a problem there. If you overwrite the files in /usr/local/binutils-2.17 on the ones in / then the kernel will compile but crashes at boot.
g0dkiller
 
Posts: 3
Joined: Mon Apr 09, 2007 6:41 am

Postby saidone » Wed Apr 11, 2007 2:52 pm

I simply upgraded the package with the 2.17 in slackware-current.
saidone
 
Posts: 4
Joined: Wed Apr 11, 2007 9:06 am

Postby g0dkiller » Wed Apr 11, 2007 4:14 pm

Try upgrading it manualy from sources.That does the job :) but set the prefix "/"
g0dkiller
 
Posts: 3
Joined: Mon Apr 09, 2007 6:41 am

Postby saidone » Thu Apr 12, 2007 12:32 pm

Yep, it works, but I cannot figure out why!
saidone
 
Posts: 4
Joined: Wed Apr 11, 2007 9:06 am

Postby stanojr » Thu Apr 12, 2007 2:17 pm

what version of binutils did you install from source ?
2.17 from http://ftp.gnu.org/gnu/binutils/ or
2.17.50.0.14 from http://www.kernel.org/pub/linux/devel/binutils/ ?
stanojr
 
Posts: 6
Joined: Thu Apr 12, 2007 2:13 pm

Postby saidone » Thu Apr 12, 2007 3:52 pm

[quote="stanojr"]what version of binutils did you install from source ?
2.17 from http://ftp.gnu.org/gnu/binutils/ or
2.17.50.0.14 from http://www.kernel.org/pub/linux/devel/binutils/ ?[/quote]

The last one, the release on gnu.org seems quite outdated. The strangest thing is that this version matches the last on slackware-current repository, but seems like to have different behaviours.

Saidone
saidone
 
Posts: 4
Joined: Wed Apr 11, 2007 9:06 am


Return to grsecurity support

cron