cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Problem using curl in a Apache module

From: Gary Maxwell <gmaxwell_at_broadsoft.com>
Date: Wed, 27 Mar 2013 17:12:10 +0000

> From: Juanjo C
> Sent: Wednesday, March 27, 2013 02:53
> Subject: Problem using curl in a Apache module

> I'm trying to do a Apache module in C and in this module I'm using curl.
> With APXS, I can to deploy the module into Apache, but when I try to
> restart Apache, it shows me this error. "undefined symbol:
> curl_easy_perform. Action 'configtest' failed."

This question was answered yesterday on this list:
http://curl.haxx.se/mail/lib-2013-03/0284.html

To summarize, you must use a LoadFile directive in httpd.conf prior
to loading your module.

LoadFile /usr/local/libcurl.so

Be sure to provide the proper path and filename to the libcurl your
module actually links to.

Additionally, I believe you are required to build libcurl as PIC in
order to be Apache-loadable. This is accomplished with "--with-pic"
in curl configure, but I have not confirmed if this is required.

-Gary

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-27