Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98418 - openssl patch for sh arch
Summary: openssl patch for sh arch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo SuperH Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-08 18:15 UTC by MATSUU Takuto (RETIRED)
Modified: 2005-08-07 05:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
glibc-2.3.4.20041102-r2.patch (glibc-2.3.4.20041102-r2.patch,1.33 KB, patch)
2005-07-08 18:19 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/2.3.2/glibc-2.3.2-fpscr_values.patch (glibc-2.3.2-fpscr_values.patch,870 bytes, patch)
2005-07-08 18:20 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/2.3.3/glibc-2.3.3-sh-nptl-multidir.patch (glibc-2.3.3-sh-nptl-multidir.patch,330 bytes, patch)
2005-07-08 18:22 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/2.3.3/glibc-2.3.3-sh-linux-fcntl_h.patch (glibc-2.3.3-sh-linux-fcntl_h.patch,5.18 KB, patch)
2005-07-08 18:23 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/2.3.3/glibc-2.3.3-sh-tls.patch (glibc-2.3.3-sh-tls.patch,476 bytes, patch)
2005-07-08 18:24 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/2.3.3/glibc-2.3.3-sh-linux-procfs.patch (glibc-2.3.3-sh-linux-procfs.patch,4.20 KB, patch)
2005-07-08 18:24 UTC, MATSUU Takuto (RETIRED)
Details | Diff
gcc-3.4.3-r2.patch (gcc-3.4.3-r2.patch,1.09 KB, patch)
2005-07-08 18:29 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/3.4.1/gcc-3.4.1-PR16665.dpatch (gcc-3.4.1-PR16665.dpatch,2.28 KB, patch)
2005-07-08 18:39 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/3.4.1/gcc-3.4.1-sh-no-reorder-blocks.dpatch (gcc-3.4.1-sh-no-reorder-blocks.dpatch,1.01 KB, patch)
2005-07-08 18:40 UTC, MATSUU Takuto (RETIRED)
Details | Diff
openssl-0.9.7e-r2.patch (openssl-0.9.7e-r2.patch,1.13 KB, patch)
2005-07-09 21:11 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/openssl-0.9.7e-sh.patch (openssl-0.9.7e-sh.patch,1.78 KB, patch)
2005-07-09 21:12 UTC, MATSUU Takuto (RETIRED)
Details | Diff
gcc-3.4.4.patch (gcc-3.4.4.patch,844 bytes, patch)
2005-07-31 15:33 UTC, MATSUU Takuto (RETIRED)
Details | Diff
patch/71_all_sh-pr16665-fix.patch (71_all_sh-pr16665-fix.patch,1.68 KB, patch)
2005-07-31 15:33 UTC, MATSUU Takuto (RETIRED)
Details | Diff
patch/72_all_sh-no-reorder-blocks.patch (72_all_sh-no-reorder-blocks.patch,423 bytes, patch)
2005-07-31 15:34 UTC, MATSUU Takuto (RETIRED)
Details | Diff
openssl.log (openssl.log,26.13 KB, text/plain)
2005-08-01 14:24 UTC, MATSUU Takuto (RETIRED)
Details
openssl.log (openssl.log,26.13 KB, text/plain)
2005-08-02 08:03 UTC, MATSUU Takuto (RETIRED)
Details
openssl.log (openssl.log,1.43 KB, text/plain)
2005-08-02 08:05 UTC, MATSUU Takuto (RETIRED)
Details
files/openssl-0.9.7g-superh.patch (openssl-0.9.7g-superh.patch,1.35 KB, patch)
2005-08-06 04:32 UTC, MATSUU Takuto (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:15:25 UTC
these patches are from src.rpm in sh-linux.org.
http://rpm.sh-linux.org/rpm-2004/target/SRPMS/

my Lantank works fine with these ebuild.

FYI: Lantank http://supertank.iodata.jp/products/sotohdlwu/
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:19:27 UTC
Created attachment 62969 [details, diff]
glibc-2.3.4.20041102-r2.patch
Comment 2 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:20:58 UTC
Created attachment 62970 [details, diff]
files/2.3.2/glibc-2.3.2-fpscr_values.patch
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:22:08 UTC
Created attachment 62971 [details, diff]
files/2.3.3/glibc-2.3.3-sh-nptl-multidir.patch
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:23:03 UTC
Created attachment 62972 [details, diff]
files/2.3.3/glibc-2.3.3-sh-linux-fcntl_h.patch
Comment 5 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:24:01 UTC
Created attachment 62973 [details, diff]
files/2.3.3/glibc-2.3.3-sh-tls.patch
Comment 6 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:24:32 UTC
Created attachment 62974 [details, diff]
files/2.3.3/glibc-2.3.3-sh-linux-procfs.patch
Comment 7 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:29:07 UTC
Created attachment 62975 [details, diff]
gcc-3.4.3-r2.patch
Comment 8 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:39:24 UTC
Created attachment 62976 [details, diff]
files/3.4.1/gcc-3.4.1-PR16665.dpatch

this is from debian patch
Comment 9 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-08 18:40:04 UTC
Created attachment 62977 [details, diff]
files/3.4.1/gcc-3.4.1-sh-no-reorder-blocks.dpatch

from debian patch
Comment 10 SpanKY gentoo-dev 2005-07-09 15:51:33 UTC
erm where's the openssl patch ? :)
Comment 11 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-09 21:11:32 UTC
Created attachment 63047 [details, diff]
openssl-0.9.7e-r2.patch
Comment 12 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-09 21:12:44 UTC
Created attachment 63048 [details, diff]
files/openssl-0.9.7e-sh.patch
Comment 13 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-09 21:15:12 UTC
When emerge glibc, you have to set "sh4-*" to CHOST instead of "sh-*".

FYI: http://www.m17n.org/linux-sh/ml/linux-sh/2002-06/msg00017.html
Comment 14 SpanKY gentoo-dev 2005-07-29 22:20:18 UTC
then you should be using CHOST of sh4-* in your make.conf, not sh-*

we cant assume sh-* -> sh4-* since that'll break sh2-* and sh3-*
Comment 15 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-31 15:33:01 UTC
Created attachment 64830 [details, diff]
gcc-3.4.4.patch

gcc-3.4.4 works.
Comment 16 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-31 15:33:40 UTC
Created attachment 64832 [details, diff]
patch/71_all_sh-pr16665-fix.patch
Comment 17 MATSUU Takuto (RETIRED) gentoo-dev 2005-07-31 15:34:11 UTC
Created attachment 64833 [details, diff]
patch/72_all_sh-no-reorder-blocks.patch
Comment 18 SpanKY gentoo-dev 2005-07-31 16:13:32 UTC
Comment on attachment 64830 [details, diff]
gcc-3.4.4.patch

merged into current 3.4.4
Comment 19 SpanKY gentoo-dev 2005-07-31 16:22:11 UTC
sync up and try openssl-0.9.7g and see if it works for superh
Comment 20 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-01 14:24:48 UTC
Created attachment 64898 [details]
openssl.log

I cannot emerge openssl-0.9.7g. see openssl.log.
Comment 21 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-02 07:53:37 UTC
ah, sorry, I did emerge old openssl-0.9.7g. 
remerge now.
Comment 22 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-02 08:03:48 UTC
Created attachment 64940 [details]
openssl.log
Comment 23 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-02 08:04:22 UTC
cannot emerge.
Comment 24 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-02 08:05:18 UTC
Created attachment 64941 [details]
openssl.log
Comment 25 SpanKY gentoo-dev 2005-08-02 15:11:06 UTC
ok, syntax error fixed ... sync up and try again ;)
Comment 26 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-03 15:41:31 UTC
what is the changes? it seems to be fixed none.
Comment 27 SpanKY gentoo-dev 2005-08-03 20:05:42 UTC
the error was in openssl/files/gentoo.config-0.9.7g
Comment 28 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-06 04:07:03 UTC
cannot compile.
gcc -c -I.. -I../.. -I../../include -fPIC -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DL_ENDIAN -DTERMIO   
-Wall -O2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM  -o asm/mx86-elf.o asm/mx86-elf.s
asm/mx86-elf.s: Assembler messages:
asm/mx86-elf.s:11: Warning: alignment too large: 15 assumed
asm/mx86-elf.s:15: Error: unknown opcode
asm/mx86-elf.s:16: Error: unknown opcode
...
asm/mx86-elf.s:684: Error: unknown opcode
asm/mx86-elf.s:685: Error: unknown opcode
make[2]: *** [asm/mx86-elf.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/openssl-0.9.7g/work/openssl-0.9.7g/crypto/md5'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory
`/var/tmp/portage/openssl-0.9.7g/work/openssl-0.9.7g/crypto'
make: *** [sub_all] Error 1

Comment 29 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-06 04:32:07 UTC
Created attachment 65223 [details, diff]
files/openssl-0.9.7g-superh.patch

we should not use linux-elf because it has x86_elf_asm.
Comment 30 SpanKY gentoo-dev 2005-08-07 00:54:17 UTC
what about this change:
--- files/gentoo.config-0.9.7g  2 Aug 2005 22:11:23 -0000       1.8
+++ files/gentoo.config-0.9.7g  7 Aug 2005 07:54:03 -0000
@@ -91,4 +91,4 @@ linux)
                sh64*)        machine=elf;;
-               sh*b*)        machine="elf -DB_ENDIAN";;
-               sh*)          machine="elf -DL_ENDIAN";;
+               sh*b*)        machine="elf-sh -DB_ENDIAN";;
+               sh*)          machine="elf-sh -DL_ENDIAN";;
                sparc*v7*)    machine=sparcv7;;
Comment 31 MATSUU Takuto (RETIRED) gentoo-dev 2005-08-07 05:22:16 UTC
of course, we also need to fix gentoo.config.
gentoo.config in Comment #30 works fine.

fixed in cvs.