From owner-freebsd-current@FreeBSD.ORG Tue Feb 22 11:40:25 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19488106564A; Tue, 22 Feb 2011 11:40:25 +0000 (UTC) (envelope-from alexandre.martins@netasq.com) Received: from work.netasq.com (mars.netasq.com [91.212.116.3]) by mx1.freebsd.org (Postfix) with ESMTP id 99F0C8FC08; Tue, 22 Feb 2011 11:40:24 +0000 (UTC) Received: from pc-alex.netasq.com (unknown [10.2.200.254]) by work.netasq.com (Postfix) with ESMTP id 4F3DE30CB711; Tue, 22 Feb 2011 12:39:00 +0100 (CET) From: Alexandre Martins Organization: Netasq To: freebsd-current@freebsd.org Date: Tue, 22 Feb 2011 12:40:30 +0100 User-Agent: KMail/1.13.5 (FreeBSD/7.3-RELEASE-p4; KDE/4.5.5; i386; ; ) References: <201102140935.22490.alexandre.martins@netasq.com> <86fwrqpqd9.fsf@gmail.com> <201102141718.35023.alexandre.martins@netasq.com> In-Reply-To: <201102141718.35023.alexandre.martins@netasq.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1673807.28dQXujLLt"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201102221240.34271.alexandre.martins@netasq.com> X-Mailman-Approved-At: Tue, 22 Feb 2011 12:43:12 +0000 Cc: Anonymous , Dimitry Andric Subject: Re: OpenSSL 1.0.0d for Freebsd HEAD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 11:40:25 -0000 --nextPart1673807.28dQXujLLt Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Dears, After several research, i have removed the problematic part. You can find the new version here: http://people.freebsd.org/~fabient/patch-head20110222-openssl1.0.0d Regards, =2D-=20 Alexandre Martins Research engineer NETASQ On Monday 14 February 2011 17:18:24 Alexandre Martins wrote: > Dear, >=20 > Thank you for your feed-back. >=20 > I'll look for this issu, and i hope deliver a better patch quickly. >=20 > Regards, >=20 > > Alexandre Martins writes: > > > For those interested in testing, you can find a patch that add OpenSSL > > > 1.0d to head. > >=20 > > [...] > >=20 > > Hmm, doesn't build with ld(1) from /projects/binutils-2.17. > >=20 > > $ make -dl all > > as -o rc4-amd64.o /usr/src/secure/lib/libcrypto/amd64/rc4-amd64.s > > [ -z "ctfconvert" -o -n "1" ] || (echo ctfconvert -L VERSION > > rc4-amd64.o > >=20 > > && ctfconvert -L VERSION rc4-amd64.o) echo building static crypto > > library > >=20 > > building static crypto library > > rm -f libcrypto.a > > ar cq libcrypto.a `lorder ...` > > ranlib libcrypto.a > > as -o rc4-amd64.po /usr/src/secure/lib/libcrypto/amd64/rc4-amd64.s > > [ -z "ctfconvert" -o -n "1" ] || (echo ctfconvert -L VERSION > >=20 > > rc4-amd64.po && ctfconvert -L VERSION rc4-amd64.po) echo building > > profiled crypto library > >=20 > > building profiled crypto library > > rm -f libcrypto_p.a > > ar cq libcrypto_p.a `lorder ...` > > ranlib libcrypto_p.a > > as -o rc4-amd64.So /usr/src/secure/lib/libcrypto/amd64/rc4-amd64.s > > [ -z "ctfconvert" -o -n "1" ] || (echo ctfconvert -L VERSION > >=20 > > rc4-amd64.So && ctfconvert -L VERSION rc4-amd64.So) echo building shar= ed > > library libcrypto.so.7 > >=20 > > building shared library libcrypto.so.7 > > rm -f libcrypto.so.7 libcrypto.so > > ln -fs libcrypto.so.7 libcrypto.so > > cc -fstack-protector -shared -Wl,-x -o libcrypto.so.7 > >=20 > > -Wl,-soname,libcrypto.so.7 `lorder ...` /usr/bin/ld: rc4-amd64.So: > > relocation R_X86_64_PC32 against `OPENSSL_ia32cap_P' can not be used wh= en > > making a shared object; recompile with -fPIC /usr/bin/ld: final link > > failed: Bad value > >=20 > > *** Error code 1 > >=20 > > Reverting back to binutils-2.15 makes build fail with another error. > > libcrypto builds fine but linking against it always fails > >=20 > > $ cc foo.c -lcrypto > > /usr/lib/libcrypto.so: undefined reference to > > `_x86_64_Camellia_decrypt' /usr/lib/libcrypto.so: undefined reference > > to `.Ldloop' > >=20 > > Indeed, some parts are missing > >=20 > > %% diff against output from cmll-x86_64.pl > > --- secure/lib/libcrypto/amd64/cmll_amd64.s > > +++ crypto/openssl/crypto/camellia/asm/cmll-x86_64.pl.out > >=20 > > @@ -312,6 +312,170 @@ Camellia_DecryptBlock_Rounds: > > call _x86_64_Camellia_decrypt > >=20 --nextPart1673807.28dQXujLLt Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iF4EABEIAAYFAk1joLIACgkQVHYVC4W8mzgcOAEAuXG7AbuvuHqoWZkXpzTe48gT hT69s4GE/AODH76doJYA/AknC2JzjTb8HDhhQ4DlFaSYK8JDp79SfYUfwT8bl45Y =yalr -----END PGP SIGNATURE----- --nextPart1673807.28dQXujLLt--