curl-library
How to integrate libcurl in an application module (Apache2 here) ?
Date: Sat, 27 Feb 2010 23:07:52 +0100
Hello,
I'm writing an Apache2 extension and in it I want to use some libcurl
fonctions, to send non-blocking request (using multi it appears to be a
non-blocking solution, so my extension will not slow down my requests
even if the socket takes many seconds?)
My extension headers are:
#include "httpd.h" [Apache]
#include "http_config.h" [Apache]
#include "curl/curl.h" [libcurl]
Everything is compiling (I use -I/etc/libcurl for gcc because I've
installed libcurl at /etc/libcurl) right, I've my .la file, great!
The problem is when I load the extension in Apache, I've this error:
Cannot load /etc/apache-2.2.14/modules/modulename.so into
server: /etc/apache-2.2.14/modules/modulename.so: undefined symbol:
curl_easy_setopt
It is like if libcurl wasn't included in my extension. That's probably
the fact but how can I integrate libcurl in my extension? Or it may be
possible to integrate libcurl fonction directly in Apache and then uses
it in modules?
If anybody can show me the light, I would be happy! :)
Regards,
Samuel.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-27