cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1385 Cross compiling (-m32) a 32-bit application that relies on libcurl in a 64-bit host fails

From: Dan Fandrich <dfandrich_at_users.sf.net>
Date: Wed, 25 Jun 2014 21:49:51 +0000

libcurl is designed to be built and installed with one architecture per install path. If you try to use that install path with a compiler with a different architecture, all bets are off. It's impossible for libcurl to know about what combinations of architectures a user might want to install together, so it can't provide for that in the general case. The approach taken by Fedora (as mentioned in the bug) is the right one, and it's done by the right entity (the packager).

Having said that, there was a recent suggestion on the curl-library mailing list about making the include files more architecture independent, but that's impossible to do in the general case and doesn't come without a down side even if it were done.

---
** [bugs:#1385] Cross compiling (-m32) a 32-bit application that relies on libcurl in a 64-bit host fails**
**Status:** open
**Created:** Wed Jun 25, 2014 08:34 PM UTC by Charles
**Last Updated:** Wed Jun 25, 2014 08:34 PM UTC
**Owner:** nobody
https://bugs.launchpad.net/ubuntu/+source/curl/+bug/723739
Cross compiling (-m32) a 32-bit application that relies on libcurl in a 64-bit host fails with:
~~~~~~
In file included from /usr/include/curl/curl.h:35,
                 from ....:
/usr/include/curl/curlrules.h:143: error: size of array '__curl_rule_01__' is negative
/usr/include/curl/curlrules.h:153: error: size of array '__curl_rule_02__' is negative
~~~~~~
curl version information
~~~~~~
xubuntu$ curl -V
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
xubuntu$ uname -a
Linux xubuntu 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
~~~~~~
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-06-25

These mail archives are generated by hypermail.

donate! Page updated March 21, 2014.
web site info

File upload with ASP.NET