cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3307835 ] patch for cross compilation for libcurl-7.21.6

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 30 May 2011 12:12:31 +0200

Bugs item #3307835, was opened at 2011-05-26 08:34
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3307835&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: portability problem
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Daniel Stenberg (bagder)
Summary: patch for cross compilation for libcurl-7.21.6

Initial Comment:
When cross compiling libcurl the test for the existence of /dev/random (or $RANDOM) file fails as a result of cross_compiling being set in the environment.

The following patch for libcurl-7.21.6/configure.ac works around this by eliminating the test when cross_compiling is set:

1625c1625,1629
< AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )

---
>         if test -z "$cross_compiling"; then
>             AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )
>         else
>             echo "Not checking for existence of $RANDOM_FILE when cross_compil ing"
>           fi
Thanks,
Bill.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Date: 2011-05-30 12:12
Message:
The spirit of this fix is now pushed in commit a87102c7923bb29302
Your exact patch was not working though as
A) the variable check is wrong (as it contains "no" when not
cross-compiling)
B) the $RANDOM_FILE variable isn't always set
Thanks!
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3307835&group_id=976
Received on 2011-05-30

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET