cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Help on compiling crosscompiled app to a Fonera

From: Angel Sánchez <angel_at_wututu.com>
Date: Tue, 17 Nov 2009 16:13:46 +0100

Hi!

I was just porting an application to the Fonera 2.0n (
http://en.wikipedia.org/wiki/Fonera#Fonera_2.0n ), and when compiling my
application I got some errors.
I have the toolchain for the platform, it's based on openwrt. And built
some required libraries on the Fonera and then copied the libraries to
my system for crosscompiling the application. The problem I found was
that I hadn't the headers of curl, so I downloaded the .tgz from the
main page and put only the headers.
Now when compiling my application these are the errors that I get:

/blah/sdk/system/include/curl/curlrules.h:80:4: error: #error
"CURL_SIZEOF_LONG definition is missing!"
/blah/sdk/system/include/curl/curlrules.h:95:4: error: #error
"CURL_TYPEOF_CURL_OFF_T definition is missing!"
/blah/sdk/system/include/curl/curlrules.h:100:4: error: #error
"CURL_FORMAT_CURL_OFF_T definition is missing!"
/blah/sdk/system/include/curl/curlrules.h:105:4: error: #error
"CURL_FORMAT_CURL_OFF_TU definition is missing!"
/blah/sdk/system/include/curl/curlrules.h:110:4: error: #error
"CURL_FORMAT_OFF_T definition is missing!"
/blah/sdk/system/include/curl/curlrules.h:115:4: error: #error
"CURL_SIZEOF_CURL_OFF_T definition is missing!"
/blah/sdk/system/include/curl/curlrules.h:120:4: error: #error
"CURL_SUFFIX_CURL_OFF_T definition is missing!"
/blah/sdk/system/include/curl/curlrules.h:125:4: error: #error
"CURL_SUFFIX_CURL_OFF_TU definition is missing!"

and some more:

/blah/sdk/system/include/curl/curlrules.h:81: error: 'Error' does not
name a type
/blah/sdk/system/include/curl/curlrules.h:154: error: 'curl_off_t' was
not declared in this scope
/blah/sdk/system/include/curl/curlrules.h:154: error:
'CURL_SIZEOF_CURL_OFF_T' was not declared in this scope
/blah/sdk/system/include/curl/curlrules.h:164: error: 'curl_off_t' was
not declared in this scope
/blah/sdk/system/include/curl/curl.h:208: error: 'curl_off_t' has not
been declared

I have looked at that file and it seems that in curlbuild.h doesn't go
inside any code like this:

#elif defined(__GNUC__)
# if defined(__i386__) || defined(__ppc__)

so it doesn't define that constants.

Do you have any idea of what should I do?
I think I should put another block of defines for that platform, with
the correct values, but I have no idea which of them are, and neither if
it is the correct way of doing it.

Thanks in advance,
Angel

-- 

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-17

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET