[asterisk-bugs] [Asterisk 0012102]: curl does not seem to work when cross-compiling
noreply at bugs.digium.com
noreply at bugs.digium.com
Fri Feb 29 22:25:48 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: 02-29-2008 22:25 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
======================================================================
----------------------------------------------------------------------
dhartman - 02-29-08 22:25
----------------------------------------------------------------------
Actually, curl-config works as expected. The path to the libraries must be
explicitly passed to the compiler as curl-config simply reports the
library, but not the path. Simple fix and we have this working.
./build_i586/root/usr/bin/curl-config --cflags
-I/home/dhartman/astlinux/trunk/build_i586/staging_dir/include
(which is correct)
./build_i586/root/usr/bin/curl-config --libs
-lcurl
(which is also correct, but meaningless unless the compiler knows to look
in /home/dhartman/astlinux/trunk/build_i586/usr/lib for libcurl)
Please consider this closed.
Issue History
Date Modified Username Field Change
======================================================================
02-29-08 22:25 dhartman Note Added: 0083212
======================================================================
More information about the asterisk-bugs
mailing list