cURL / Mailing Lists / curl-library / Single Mail


RE: Problem using curl in a Apache module

From: Gary Maxwell <>
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:

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

LoadFile /usr/local/

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.


List admin:
Received on 2013-03-27