cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to integrate libcurl in an application module (Apache2 here) ?

From: Samuel ROZE <samuel.roze_at_gmail.com>
Date: Sat, 27 Feb 2010 23:21:20 +0100

Okay, what I just have to do is to load the libcurl.so extension with
the LoadFile directive.

Sorry for the noise.
Samuel.

Le samedi 27 février 2010 à 23:07 +0100, Samuel ROZE a écrit :
> 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