cURL / Mailing Lists / curl-library / Single Mail

curl-library

Error when cross-compiling for ARM

From: Tim Hatton <tim_at_coherent-tech.co.uk>
Date: Mon, 9 May 2005 11:03:33 +0100

Hi,
I am currently developing an embedded application for which I would like to use the cURL library.
The application will run on Linux (kernel 2.4) on an ARM processor (Intel PXA255).
I am trying to cross-compile cURL but I am running into a compilation error which I hope someone could help me with.

I have written a small configuration script (based on the INSTALL document) which specifies my tool-chain which I am successfully using
for my application code:

#!/bin/sh
export AR=/usr/local/arm/2.95.3/bin/arm-linux-ar
export AS=/usr/local/arm/2.95.3/bin/arm-linux-as
export LD=/usr/local/arm/2.95.3/bin/arm-linux-ld
export RANLIB=/usr/local/arm/2.95.3/bin/arm-linux-ranlib
export CC=/usr/local/arm/2.95.3/bin/arm-linux-g++
export NM=/usr/local/arm/2.95.3/bin/arm-linux-nm
 
./configure --disable-shared --disable-manual --target=arm-linux --host=arm-linux --build=i586-pc-linux-gnu --prefix=/home/Tim/Development/Curl/curl-7.12.3/ArmBin
[END]

This seems to run OK and gives the following result:

  curl version: 7.13.2
  Host setup: arm-unknown-linux-gnu
  Install prefix: /home/Tim/Development/Curl/curl-7.12.3/ArmBin
  Compiler: /usr/local/arm/2.95.3/bin/arm-linux-g++
  SSL support: no (--with-ssl)
  zlib support: no (--with-zlib)
  krb4 support: no (--with-krb4*)
  GSSAPI support: no (--with-gssapi)
  SPNEGO support: no (--with-spnego)
  c-ares support: no (--enable-ares)
  ipv6 support: no (--enable-ipv6)
  IDN support: no (--with-libidn)
  Build libcurl: Shared=no, Static=yes
  Built-in manual: no (--enable-manual)
  Verbose errors: enabled (--disable-verbose)
  SSPI support: no (--enable-sspi)

When I try to do a make however I quickly get the following error:

base64.c: In function `size_t Curl_base64_decode(const char *, unsigned char **)':
base64.c:112: ANSI C++ forbids implicit conversion from `void *' in assignment

If anyone could shed some light on this problem I'd be very grateful.
Best regards,
Tim
Received on 2005-05-09