What about the other error:

"SIZEOF_CURL_OFF_T" is not defined

I suspect it has something to do with using sysroot and crosscompiling?

Any ideas how to fix?

Thanks


-----Original Message-----
From: Daniel Stenberg <[email protected]> 
Sent: Thursday, March 24, 2022 5:08 PM
To: Robb Schiefer via curl-library <[email protected]>
Cc: Robb Schiefer <[email protected]>
Subject: RE: Crosscompile with Dockcross

On Thu, 24 Mar 2022, Robb Schiefer via curl-library wrote:

> Added the following to my CMakeLists file and the error is gone:
>
> set(HAVE_STRUCT_TIMEVAL 1)
>
> Is this correct?  Obviously I would add this conditionally based on 
> the target architecture.

There's a check in CMake/OtherTests.cmake that is supposed to check for and set 
that variable. It looks like this:

check_c_source_compiles("${_source_epilogue}
int main(void) {
   struct timeval ts;
   ts.tv_sec  = 0;
   ts.tv_usec = 0;
   (void)ts;
   return 0;
}" HAVE_STRUCT_TIMEVAL)

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcurl%2Fcurl%2Fblob%2Ff718a915477aed881808244b9f2ad82cee3812f9%2FCMake%2FOtherTests.cmake%23L213-L220&amp;data=04%7C01%7C%7Cbd1105568748477b346908da0de2c7b1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637837564903256320%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=KmZL0oibOaK0y%2Btowh34KLEaGtfS2u8z7K4gFqpdHRo%3D&amp;reserved=0

Obviously that doesn't work as intended.

-- 

  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | 
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcurl.se%2Fsupport.html&amp;data=04%7C01%7C%7Cbd1105568748477b346908da0de2c7b1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637837564903256320%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=1GyO5sAylspKZj9OtaBxwx6Vt51gZCy%2FsW8f%2BlMCvkA%3D&amp;reserved=0
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to