cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: curl (with php to HTTPS)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 17 Apr 2001 10:33:20 +0200 (MET DST)

On Fri, 13 Apr 2001, Lim Chung Keng wrote:

> Does it mean curl was not built properly with SSL if I got the following
> message during PHP ./configure (in debug.log) ?

This means curl was built with SSL, but isn't linked properly:

> gcc -o conftest -g -O2 -R/usr/local/lib -L/usr/local/lib
> conftest.c -lcurl -lm -lcrypt 1>&5
> /usr/local/lib/libcurl.so: undefined reference to `SSL_set_fd'
> /usr/local/lib/libcurl.so: undefined reference to `SSL_set_connect_state'
> /usr/local/lib/libcurl.so: undefined reference to `SSL_CTX_free'
> /usr/local/lib/libcurl.so: undefined reference to `X509_free'
> /usr/local/lib/libcurl.so: undefined reference to `SSL_shutdown'
> /usr/local/lib/libcurl.so: undefined reference to `X509_NAME_oneline'
> /usr/local/lib/libcurl.so: undefined reference to `SSL_get_error'
> /usr/local/lib/libcurl.so: undefined reference to `RAND_seed'
> /usr/local/lib/libcurl.so: undefined reference to `SSL_read'

You need -lssl added before the -lcrypto! Note that it should be -lcrypto,
not crypt as this output shows.

You may also need a -R and/or -L to the path with the SSL libs (usually
/usr/local/ssl/lib).

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-04-17