From owner-freebsd-stable Tue Mar 25 8:23:25 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE21037B401 for ; Tue, 25 Mar 2003 08:23:22 -0800 (PST) Received: from freebsd.org.ru (www.freebsd.org.ru [194.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id D94AC43F93 for ; Tue, 25 Mar 2003 08:23:21 -0800 (PST) (envelope-from osa@freebsd.org.ru) Received: by freebsd.org.ru (Postfix, from userid 1000) id F0394124; Tue, 25 Mar 2003 19:23:19 +0300 (MSK) Date: Tue, 25 Mar 2003 19:23:19 +0300 From: "Sergey A. Osokin" To: Pete French Cc: stable@freebsd.org Subject: Re: Odd link order behaviour with OpenSSL and DES Message-ID: <20030325162319.GG587@freebsd.org.ru> Reply-To: osa@FreeBSD.org.ru References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-22.5 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Mar 25, 2003 at 04:12:19PM +0000, Pete French wrote: > I have a tiny program: #include #include int main(void) { > > puts("hello"); > SSL_load_error_strings(); > SSL_library_init(); > return 0; } $ cc t.c -o t -lssl -lcrypto $ ./t hello $ > If I link it as: > > -lobjc -lz -ldes -lm -lssl -lcrypto > > Then it segmentation faults. If I re-arrange it such that the line line is: > > -lobjc -lz -lm -lssl -lcrypto -ldes > > Then I get no segemntation fault! This has only started happening > with a CVSUP of todays code for 4.8-RC. Previously I was running > a CVSup from the 18th of March. > > Is this a deliberate change to linking behaviour ? AFAIK -ldes deprecated. -- Rgdz, /"\ ASCII RIBBON CAMPAIGN Sergey Osokin aka oZZ, \ / AGAINST HTML MAIL http://ozz.pp.ru/ X AND NEWS / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message