[asterisk-bugs] [Asterisk 0012102]: curl does not seem to work when cross-compiling

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Mar 1 00:53:39 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12102 
====================================================================== 
Reported By:                jmls
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12102
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-28-2008 13:26 CST
Last Modified:              03-01-2008 00:53 CST
====================================================================== 
Summary:                    curl does not seem to work when cross-compiling
Description: 
I am trying to get curl available under astlinux - but there seems to be a
problem when cross-compiling curl_lib. 

the error is :

[LD] func_curl.o -> func_curl.so
/usr/src/astlinux/build_i586/staging_dir/bin-ccache/../lib/gcc/i586-linux-uclibc/4.1.2/../../../../i586-linux-uclibc/bin/ld:
cannot find -lcurl
collect2: ld returned 1 exit status
make[2]: *** [func_curl.so] Error 1

Please see additional info for more info
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 03-01-08 00:53  
---------------------------------------------------------------------- 
In fact, the developers of libcurl suggest using curl-config, even when it
comes to autoconf: 
http://cool.haxx.se/cvs.cgi/curl/docs/libcurl/libcurl.m4?rev=HEAD&content-type=text/vnd.viewcvs-markup
If you have an issue with their suggestion, then you should take it up
with them.  At this time, we are not prepared to supercede the official
method of configuring libcurl, so as a result, you are advised not to use
libcurl for cross-compiling.

If you would like us to use a method that will work for both native
compiling as well as cross-compiling, my suggestion is that you contribute
that back upstream to the libcurl project.  When they have that capability,
we'll be happy to add it here, as well. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-01-08 00:53  Corydon76      Note Added: 0083215                          
======================================================================




More information about the asterisk-bugs mailing list