curl-library
RE: Curl Embedded Linux
Date: Sun, 01 Jul 2007 09:31:16 +1200
Thanks.
I created a script (below) based on the example you pointed me to:
#! /bin/sh
export PATH=$PATH:/opt/hardhat/devkit/mips/fp_le/bin
export CPPFLAGS="-I/opt/hardhat/devkit/mips/fp_le/target/usr/include"
export AR=mips_fp_le-ar
export AS=mips_fp_le-as
export LD=mips_fp_le-ld
export RANLIB=mips_fp_le-ranlib
export CC=mips_fp_le-gcc
export NM=mips_fp_le-nm
export STRIP=mips_fp_le-strip
./configure --target=mipsel-linux \
--host=mipsel-linux \
--build=mipsel-linux-gnu \
--prefix=/opt/hardhat/devkit/mips/fp_le/target/usr/local \
--exec-prefix=/chris/curlmv \
--with-ssl=/user/local/ssl \
--enable-cookies \
--enable-http \
--with-random=/dev/urandom
This appeared to run fine. However when I run 'make' I get errors as shown
below:
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/opt/hardhat/devkit/mips/fp_le/bin/../mipsel-hardhat-linux/bin/ld:
.libs/memdebug.o: linking PIC files with non-PIC files
Bad value: failed to merge target specific data of file .libs/memdebug.o
/opt/hardhat/devkit/mips/fp_le/bin/../mipsel-hardhat-linux/bin/ld:
.libs/splay.o: linking PIC files with non-PIC files
Bad value: failed to merge target specific data of file .libs/splay.o
/opt/hardhat/devkit/mips/fp_le/bin/../mipsel-hardhat-linux/bin/ld:
Unsupported .stab relocation
.libs/memdebug.o(.stab+0x14): relocation truncated to fit: R_MIPS_16 no
symbol
/opt/hardhat/devkit/mips/fp_le/bin/../mipsel-hardhat-linux/bin/ld:
Unsupported .stab relocation
.libs/memdebug.o(.stab+0x20): relocation truncated to fit: R_MIPS_16 no
symbol
make[2]: *** [libcurl.la] Error 1
make[2]: Leaving directory `/chris/curl-7.16.2/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/chris/curl-7.16.2/lib'
make: *** [all-recursive] Error 1
I would appreciate any further help you can offer?
Thanks
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Saturday, 30 June 2007 10:42 a.m.
To: curl-library_at_cool.haxx.se
Subject: Re: Curl Embedded Linux
On Sat, Jun 30, 2007 at 10:03:17AM +1200, Chris Brown wrote:
> Thanks again for your very quick response.
>
> I'm sorry but I'm not too sure what my options are. I think it is
> partly my inexperience with Linux so I apologise. I'd like to use
> libcurl for my application and I appear to have everything I need to
> do so but I'm unclear on whether I can set 'configure' correctly to
> cross compile to get it running.
>
> I have noticed that I do have a sub-directory called
> 'mipsel-hardhat-linux/bin' which contains link files to the relevant
> 'mips_fp_le' files e.g gcc to mips_fp_le-gcc. Can I use 'configure' to
> work from this directory but unltimately use the respective
> 'mips_fp_le' files to cross compile correctly?
You should be able to fake configure with an argument something like
--host=mipsel-linux as long as you set all the AR, AS, CC, etc. variables
correctly. Take a look at the cross-compile section of the docs/INSTALL
file. That gives an example using a PPC Hardhat Linux toolchain.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has moved __________ NOD32 2364 (20070629) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.comReceived on 2007-06-30