Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 1999 12:55:07 -0500 (EST)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        terryg@axian.com (Terry Griffin)
Cc:        freebsd-questions@FreeBSD.ORG (FreeBSD Questions), freebsd-security@FreeBSD.ORG
Subject:   Re: OpenSSL does not build under 2.2.8S?
Message-ID:  <199912301755.MAA86720@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <99122711212502.10246@tux.axian.com> from Terry Griffin at "Dec 27, 1999 11:13:48 am"

next in thread | previous in thread | raw e-mail | index | archive | help

--ELM946576507-86499-0_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Terry Griffin wrote,
> Christ,
> 
> Some time ago on the freebsd-questions mailing list you wrote:
> > Between the RSAref2 overflow issue and all of the chatter about
> > [snip]
> > ld: invalid command option `--whole-archive'
> > [snip]
> 
> I was having the same problem but was disappointed to find that you're question
> had gone unanswered in the list. I've since found the solution. Edit the
> makefile to replace the --whole-archive switch with the -Bforcearchive switch,
> and simply delete all use of the --no-whole-archive switch.
> 
> I built and installed OpenSSL with this change and then was able to build
> OpenSSH.

Thanks, Terry. That small pointer was what I needed. OpenSSL appears
to have built cleanly for me with your suggested change of
--whole-archive to -Bforcearchive.

I am forwarding this response to -questions and -security so your
response finds its way into the mail archives. To make it even easier
for people having trouble, I have attached a patch below. Drop the
patch (or this entire mail) into /usr/ports/security/openssl/patches
and name it 'patch-za' (or any unused name that comes after the other
patches), and you should be able to 'make' from the port directory
without tampering with any Makefiles.

Thanks again for the response.
-- 
Crist J. Clark                           cjclark@home.com

--ELM946576507-86499-0_
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: attachment; filename=patch-za
Content-Description: patch-za
Content-Transfer-Encoding: 7bit

--- Makefile.org.orig	Thu Dec 30 12:19:31 1999
+++ Makefile.org	Thu Dec 30 12:19:36 1999
@@ -196,7 +196,7 @@
 	${MAKE} CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='-fPIC ${CFLAG}' SDIRS='${SDIRS}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' DIRS=$$i clean all || exit 1; \
 	( set -x; ${CC}  -shared -o lib$$i.so.${SHLIBVER} \
 		-Wl,-S,-soname=lib$$i.so.${SHLIBVER} \
-		-Wl,--whole-archive lib$$i.a ) || exit 1; \
+		-Wl,-Bforcearchive lib$$i.a ) || exit 1; \
 	rm -f lib$$i.a; (cd $$i ; ${MAKE} clean) || exit 1 ;\
 	done;
 	@set -x; \

--ELM946576507-86499-0_--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912301755.MAA86720>