Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling Hardened Kernel Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Sat Mar 27, 2010 6:18 pm    Post subject: Compiling Hardened Kernel Problem Reply with quote

I'm installing completely new system with hardened sources. when i run "make", a got a lot like:
"warning: pointer targets in passing argument 1 of 'full_name_hash' differ in signedness"
what does it mean?
a final error:
"scripts/unifdef.c:209: error: conflicting types for 'getline'
/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
make[2]: *** [scripts/unifdef] Error 1
make[1]: *** [__headers] Error 2
make: *** [vmlinux] Error 2"

any suggestions how to fix it?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Mar 27, 2010 8:37 pm    Post subject: Reply with quote

The compilation error is a compatibility problem between that version of unifdef and newer versions of glibc. You need a newer unifdef or an older glibc. Downgrading glibc is a good way to destroy the system, so upgrading to a newer unifdef is required.
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Sun Mar 28, 2010 5:21 am    Post subject: Reply with quote

i've emerged unifdef, but i still have error:

CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
dnsdomainname: Unknown host
CHK include/linux/version.h
HOSTCC scripts/unifdef
scripts/unifdef.c:209: error: conflicting types for 'getline'
/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
make[2]: *** [scripts/unifdef] Error 1
make[1]: *** [__headers] Error 2
make: *** [vmlinux] Error 2
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Mar 28, 2010 10:24 am    Post subject: Reply with quote

Perhaps you need an even higher version of unifdef? How did you 'upgrade' unifded anyway? Which steps did you take?
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Sun Mar 28, 2010 10:27 am    Post subject: Reply with quote

emerge unifdef
it wasn't installed before at all
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Mar 28, 2010 12:22 pm    Post subject: Reply with quote

Try emerging it like this:

Code:
ACCEPT_KEYWORDS=~x86 emerge unifdef


If you use amd64:

Code:
ACCEPT_KEYWORDS=~amd64 emerge unifdef
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Mar 29, 2010 2:51 am    Post subject: Reply with quote

you shouldn't run into this if you used the hardened-stage3 tarball and set the hardened profile and that.

What exact steps did you follow for this?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Mon Mar 29, 2010 3:31 am    Post subject: Reply with quote

It appears the failed unifdef is included in the kernel sources. As such, you need newer kernel sources to get the relevant newer unifdef. At this point, the output of emerge --info seems needed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum