Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2003 19:23:19 +0300
From:      "Sergey A. Osokin" <osa@freebsd.org.ru>
To:        Pete French <pfrench@firstcallgroup.co.uk>
Cc:        stable@freebsd.org
Subject:   Re: Odd link order behaviour with OpenSSL and DES
Message-ID:  <20030325162319.GG587@freebsd.org.ru>
In-Reply-To: <E18xr2B-000O92-00@mailhost.firstcallgroup.co.uk>
References:  <E18xr2B-000O92-00@mailhost.firstcallgroup.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 25, 2003 at 04:12:19PM +0000, Pete French wrote:
> I have a tiny program:
#include <stdio.h>
#include <openssl/ssl.h>

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




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