cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl library problem - symbols not found

From: Wei Weng <wweng_at_kencast.com>
Date: Tue, 05 Aug 2008 13:44:24 -0400

Patrick Galbraith wrote:
> Hi all,
>
> I'm working on a book about MySQL/Perl, etc, and writing a demonstration
> of how to write a MySQL UDF. I wanted to use libcurl and write a simple
> function called http_get(). I have the program compile and everything
> looks good, but when I run:
>
> mysql> CREATE FUNCTION http_get RETURNS STRING SONAME
> "curl_functions_mysql.so";ERROR 1126 (HY000): Can't open shared library
> 'curl_functions_mysql.so' (errno: 22 /usr/lib/curl_functions_mysql.so:
> undefined symbol: curl_easy_setopt)
>
> When I run nm on my library, I get:
>
> U curl_easy_cleanup
> U curl_easy_init
> U curl_easy_perform
> U curl_easy_setopt
> U curl_global_init
>

Patrick:

What does "ldd -r curl_functions_mysql.so" tell you?

Thanks
Wei
Received on 2008-08-05