cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem with 64 vs 32 bit header files for iOS build

From: JOHAN LANTZ <johan.lantz_at_telefonica.com>
Date: Wed, 10 Feb 2016 14:38:37 +0000

Hi

I just moved my Win32 curl code to xCode and I am having an issue some of the checks in the curl headers.

I have used https://github.com/biasedbit/curl-ios-build-scripts for building curl and it does produce two sets of header files, one for 64 bit and one for 32 bit. If I choose the 64 bit headers it works fine on the new iPhones but not on the 4s and the other way around.

The failing point is these checks:

curlrules.h:143:6: '__curl_rule_01__' declared as an array with a negative size

curlrules.h:153:6: '__curl_rule_02__' declared as an array with a negative size

The fat lib contains all the architectures as expected.

I understand the concept of that these defines:

#define CURL_SIZEOF_LONG 8

Will be different for the different architectures but I have never encountered a situation where I need to use different header files.

I picked the biasedbit script since it built and lipo'd all the architectures with no effort but I am not sure how to resolve this issue with the header definitions.

All suggestions appreciated

________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-02-10