Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 20 Sep 2005 15:56:49 +0200
From: Honza Vlach <janus@...ny.cz>
To: owl-users@...ts.openwall.com
Subject: Openwall on Sun Enterprise 250 - kernel compile problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hello,
I'm trying to get Openwall up and running on Sun Enterprise 250, but I'm
unable to compile kernel. It seems that there's no 64 bit compiler
installed. Is there a package available? What's the correct way of
recompiling both 32 and 64 bit gcc? (I don't need 64 bit userland, but
having 64 bit kernel is wise idea imho)

What I did so far:

- - booted the system using gentoo install cd
- - got up networking, on other system converted rpm packages to tgz and
installed those to new root on target system
- - installed rpms over the extracted files, so the rpm database would be ok
- - extracted latest kernel packages, installed kernel headers and set
correct privileges with:


rm /usr/include/linux
cp -R include/asm-sparc* /usr/include/asm
cp -R include/linux /usr/include
chown -R root:root /usr/include/{asm,linux}
find /usr/include/{asm,linux} -type d -exec chmod 755 {} \;
find /usr/include/{asm,linux} -type f -exec chmod 644 {} \;

- - patched the lastest kernel (2.4.31) with openwall patch
- - did make menuconfig for the kernel, complains:
 /bin/bash: sparc64-linux-gcc: command not found
but works.

- -then:

bash-2.05# make dep
/bin/bash: sparc64-linux-gcc: command not found
make -C arch/sparc64/kernel check_asm
make[1]: Entering directory `/sparc/linux-2.4.31/arch/sparc64/kernel'
sparc64-linux-gcc -E -D__KERNEL__ -I/sparc/linux-2.4.31/include -P tmp.c
- -o tmp.i
make[1]: sparc64-linux-gcc: Command not found
make[1]: *** [check_asm] Error 127
make[1]: Leaving directory `/sparc/linux-2.4.31/arch/sparc64/kernel'
make: *** [check_asm] Error 2

# sparc64 make dep
doesn't help either.

Linking /usr/bin/gcc to /usr/bin/sparc64-linux-gcc doesn't help either,
produces:
make -C arch/sparc64/kernel check_asm
make[1]: Entering directory `/sparc/linux-2.4.31/arch/sparc64/kernel'
sparc64-linux-gcc -E -D__KERNEL__ -I/sparc/linux-2.4.31/include -P tmp.c
- -o tmp.i
/bin/sh ./check_asm.sh -data task tmp.i check_asm_data.c
/bin/sh ./check_asm.sh -data mm tmp.i check_asm_data.c
/bin/sh ./check_asm.sh -data thread tmp.i check_asm_data.c
sparc64-linux-gcc -D__KERNEL__ -I/sparc/linux-2.4.31/include -mmedlow
- -ffixed-g4 -S -o check_asm
_data.s check_asm_data.c
cc1: Invalid option `medlow'
In file included from
/sparc/linux-2.4.31/include/linux/byteorder/big_endian.h:11,
                 from /sparc/linux-2.4.31/include/asm/byteorder.h:48,
                 from /sparc/linux-2.4.31/include/linux/kernel.h:15,
                 from /sparc/linux-2.4.31/include/linux/wait.h:13,
                 from /sparc/linux-2.4.31/include/linux/fs.h:12,
                 from /sparc/linux-2.4.31/include/linux/capability.h:17,
                 from /sparc/linux-2.4.31/include/linux/binfmts.h:5,
                 from /sparc/linux-2.4.31/include/linux/sched.h:9,
                 from check_asm_data.c:3:
/sparc/linux-2.4.31/include/linux/byteorder/swab.h: In function `__fswab64':
/sparc/linux-2.4.31/include/linux/byteorder/swab.h:206: warning: left
shift count >= width of ty
pe
/sparc/linux-2.4.31/include/linux/byteorder/swab.h:206: warning: left
shift count >= width of ty
pe
/sparc/linux-2.4.31/include/linux/byteorder/swab.h:206: warning: right
shift count >= width of t
ype
/sparc/linux-2.4.31/include/linux/byteorder/swab.h:206: warning: right
shift count >= width of t
ype
In file included from /sparc/linux-2.4.31/include/asm/delay.h:16,
                 from /sparc/linux-2.4.31/include/asm/processor.h:24,
                 from /sparc/linux-2.4.31/include/linux/prefetch.h:13,
                 from /sparc/linux-2.4.31/include/linux/list.h:6,
                 from /sparc/linux-2.4.31/include/linux/wait.h:14,
                 from /sparc/linux-2.4.31/include/linux/fs.h:12,
                 from /sparc/linux-2.4.31/include/linux/capability.h:17,
                 from /sparc/linux-2.4.31/include/linux/binfmts.h:5,
                 from /sparc/linux-2.4.31/include/linux/sched.h:9,
                 from check_asm_data.c:3:
/sparc/linux-2.4.31/include/asm/smp.h: In function `hard_smp_processor_id':
/sparc/linux-2.4.31/include/asm/smp.h:92: warning: right shift count >=
width of type
In file included from /sparc/linux-2.4.31/include/linux/string.h:26,
                 from /sparc/linux-2.4.31/include/linux/fs.h:23,
                 from /sparc/linux-2.4.31/include/linux/capability.h:17,
                 from /sparc/linux-2.4.31/include/linux/binfmts.h:5,
                 from /sparc/linux-2.4.31/include/linux/sched.h:9,
                 from check_asm_data.c:3:
/sparc/linux-2.4.31/include/asm/string.h: At top level:
/sparc/linux-2.4.31/include/asm/string.h:27: warning: conflicting types
for built-in function `m
emcpy'
/sparc/linux-2.4.31/include/asm/string.h:30: warning: conflicting types
for built-in function `_
_builtin_memset'
/sparc/linux-2.4.31/include/asm/string.h:70: warning: conflicting types
for built-in function `m
emcmp'
make[1]: *** [check_asm] Error 1
make[1]: Leaving directory `/sparc/linux-2.4.31/arch/sparc64/kernel'
make: *** [check_asm] Error 2

What am I missing?
Thanks for any tips,

Regards,

Honza Vlach


- --
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/CS d- s: a-- C++++$ ULS++++$ P L+++ E--- W- N+ o? K? w-->--- O?
M->+ V? PS PE Y++ PGP+++ !t 5? X++ R tv-- b++ DI+ D++ G+>+++ e h--- r++ y?
- ------END GEEK CODE BLOCK------
()  ascii ribbon campaign - against html mail
/\                        - against microsoft attachments

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFDMBUhSVzvioqX7FkRA3YrAJwJezdyXHa4tstRv2S1Pd3v+EAX8ACeMIYX
zEeptTfSPd3wBkEUEdnjyFM=
=XLWz
-----END PGP SIGNATURE-----

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.