[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 23:05:53 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 23:05 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
======================================================================
----------------------------------------------------------------------
pprindeville - 02-29-08 23:05
----------------------------------------------------------------------
I would be that unnamed developer above.
The issue is the following. When you're cross-compiling, the whole notion
of something like "curl-config" is just plain wrong.
The host system's curl-config can give correct results when *not*
cross-compiling (i.e. for a local build).
The target system's curl-config will give correct results *when run on the
target system*, and they will be correct relative to the target system's
root filesystem.
However, you simply can't run "curl-config" (host or target) because
neither versus is appropriate in a cross-compilation setting.
So, the only way about this is to allow passing in explicit paths via
ac_cv_* variables, or else add a few more --with-curl-* arguments
(--with-curl-include, --with-curl-libs, --with-curl-libdir, etc).
These options should work both in native compilation and cross-compilation
modes.
But under no circumstances should curl-config ever be used in
cross-compilation.
Period.
Issue History
Date Modified Username Field Change
======================================================================
02-29-08 23:05 pprindeville Note Added: 0083213
======================================================================
More information about the asterisk-bugs
mailing list