[Pkg-openssl-devel] Bug#532336: Bug#532336: openssl: wrong results of rc4 on kfreebsd-amd64 with genuine Intel CPUs

Kurt Roeckx kurt at roeckx.be
Mon Jun 8 17:49:45 UTC 2009


On Mon, Jun 08, 2009 at 07:29:59PM +0200, Petr Salinger wrote:
>>> Contrary to upstream, under debian linux on amd64 uses RC4_CHAR
>>> and does not use asm file rc4-x86_64.pl.
>>
>> So if I change it to use the asm file for kFreeBSD, like I wanted
>> to do, this should be fixed too?
>
> I just checked it, it passes testsuite of rc4.
> Fliping commented and uncommented lines of "my $x86_64_asm"
> is sufficient (tested only on genuine Intel CPU) for testsuite of rc4.
>
> Unfortunately whole build ends with:
>
>   /usr/bin/ld: libcrypto.a(rc4-x86_64.o): relocation R_X86_64_PC32 against
>     symbol `OPENSSL_ia32cap_P' can not be used when making a shared
>     object; recompile with -fPIC
>   /usr/bin/ld: final link failed: Bad value
>   collect2: ld returned 1 exit status
>
> It looks like crypto/rc4/asm/rc4-x86_64.pl is not PIC/non-PIC ready.

I already uploaded a version with that fix, so it'll fail with
that (or the other error).  I'll look into it, it's not that hard
to fix, I had to do it for some other files already.


Kurt






More information about the Pkg-openssl-devel mailing list