cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: recompiling curl to NOT use system openssl

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 5 Sep 2008 13:41:29 -0700

On Fri, Sep 05, 2008 at 04:20:02PM -0400, Peter Wilkes wrote:
> finally figured out what this was.... i was compiling openssl static. and
> apparently the configure script has an issue compiling the test program
> with the static openssl. i added shared to my openssl config and works
> fine now.
>
> the error was a link error trying to mutliple functions starting with
> "dl" like dlopen.
>
> i'd really like to use a static build if possible. is there a workaround
> for this?

The easiest way is probably add the right dependent libraries to the LDFLAGS
variable at configure time. But if OpenSSL did things right, its pkg-config
configuration file should work with the PKG_CONFIG_PATH method.

>> ok i follow the documentation in docs/INSTALL for 7.19.0... since there
>> is no pkg-config or pkgconfig in the openssl package i am not suppose to

The file used by pkg-config is called openssl.pc. It should be installed
into the right location by OpenSSL's make install command.

>> set PKG_CONFIG_PATH but instead use --with-ssl
>> so i made the line
>>
>> ./configure --with-ssl=$PWD/../builds/
>>
>> in which case for whatever it is looking for to indicate that openssl is
>> installed to that location fails.
>>
>> when i change it to
>> ./configure --with-ssl=$PWD/../openssl-0.9.8g/

The argument to --with-ssl should be the location to which OpenSSL is
installed, i.e. the --prefix used when configuring it.

>> it does find openssl however when i get to the link line it comes up
>> -L$PWD/../openssl-0.9.8g/libs
>> which there is none. all the libs got installed to $PWD/../builds/libs

If $PWD/../openssl-0.9.8g/libs doesn't contain any libraries then you've
given the wrong path to --with-ssl. I recommend using the PKG_CONFIG_PATH
method instead.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-09-05