View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Sat Mar 27, 2010 6:18 pm Post subject: Compiling Hardened Kernel Problem |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Sat Mar 27, 2010 8:37 pm Post subject: |
|
|
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 |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Sun Mar 28, 2010 5:21 am Post subject: |
|
|
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 |
|
|
Rexilion Veteran
Joined: 17 Mar 2009 Posts: 1044
|
Posted: Sun Mar 28, 2010 10:24 am Post subject: |
|
|
Perhaps you need an even higher version of unifdef? How did you 'upgrade' unifded anyway? Which steps did you take? |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Sun Mar 28, 2010 10:27 am Post subject: |
|
|
emerge unifdef
it wasn't installed before at all |
|
Back to top |
|
|
Rexilion Veteran
Joined: 17 Mar 2009 Posts: 1044
|
Posted: Sun Mar 28, 2010 12:22 pm Post subject: |
|
|
Try emerging it like this:
Code: | ACCEPT_KEYWORDS=~x86 emerge unifdef |
If you use amd64:
Code: | ACCEPT_KEYWORDS=~amd64 emerge unifdef |
|
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Mar 29, 2010 2:51 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Mon Mar 29, 2010 3:31 am Post subject: |
|
|
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 |
|
|
|