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

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Feb 28 15:38:08 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12102 
====================================================================== 
Reported By:                jmls
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12102
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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:              02-28-2008 15:38 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
====================================================================== 

---------------------------------------------------------------------- 
 russell - 02-28-08 15:38  
---------------------------------------------------------------------- 
It is correct behavior to run curl-config locally.  We have to run it to
get the right CFLAGS and LDFALGS to build against curl.

In this build environment, what do you get for:

$ which curl-config

?  You should get the one that is going to return the right flags for the
_target_ build environment.

The results of curl-config --cflags and curl-config --libs are the CFLAGS
and LDFLAGS used. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-28-08 15:38  russell        Note Added: 0083132                          
======================================================================




More information about the asterisk-bugs mailing list