cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [ curl-Bugs-993691 ] cross compile fails when checking for glibc strerror_r API

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 19 Jul 2004 12:20:11 -0700

On Mon, Jul 19, 2004 at 03:03:42AM -0700, SourceForge.net wrote:
> Bugs item #993691, was opened at 2004-07-19 03:03
> Message generated for change (Tracker Item Submitted) made by Item Submitter
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=100976&aid=993691&group_id=976
>
> Category: compile or build problem
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Nobody/Anonymous (nobody)
> Assigned to: Daniel Stenberg (bagder)
> Summary: cross compile fails when checking for glibc strerror_r API
>
> Initial Comment:
> hi,
>
> when trying to cross compile libcurl for arm-linux the
> configure script crashes as noted below. i tried
> version 7.12.0
>
> when googling for the error i came accross a change in
> the configure script as of 24.03.2004 where a check for
> the strerror_r function was added.
> i then tried using version 7.1.11 which worked fine
> with the same environment and configure parameters.
>
> greets, peter
> peter.hermsdorf_at_atg-gera.de
[...]
> checking whether localtime_r is declared... yes
> checking for strerror_r... yes
> checking whether strerror_r is declared... yes
> checking whether strerror_r is declared... yes
> checking for a glibc strerror_r API... configure:
> error: cannot run test program while cross compiling
> See `config.log' for more details.

My ARM cross-compiles work fine. See
http://curl.haxx.se/auto/log.cgi?id=20040709200433-10017 for an example.
The relevant output from configure looks like:

checking whether strerror_r is declared... yes
checking whether strerror_r is declared... yes
checking for a glibc strerror_r API... configure: cannot determine strerror_r() style: edit lib/config.h manually!
checking for a POSIX strerror_r API... configure: cannot determine strerror_r() style: edit lib/config.h manually!

but it continues and compiles just fine.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2004-07-19