curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Crosscompile with Dockcross

From: Robb Schiefer via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 24 Mar 2022 16:15:47 +0000

Trying to use Dockcross to crosscompile to arm and mips via cmake.

CURL version - * master f718a9154 RELEASE-NOTES: synced

Hitting the following error:

[3/223] Building C object curl/lib/CMakeFiles/libcurl.dir/curl_sspi.c.o
FAILED: curl/lib/CMakeFiles/libcurl.dir/curl_sspi.c.o
/usr/xcc/mips-unknown-linux-gnu/bin/mips-unknown-linux-gnu-gcc --sysroot=/usr/xcc/mips-unknown-linux-gnu/mips-unknown-linux-gnu/sysroot -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -DHAVE_CONFIG_H -DOPENSSL_SUPPRESS_DEPRECATED -Dlibcurl_EXPORTS -I../curl/include -Icurl/lib/../include -I../curl/lib/.. -I../curl/lib/../include -Icurl/lib/.. -I../curl/lib -Icurl/lib -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wfloat-equal -Wsign-compare -Wundef -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wstrict-aliasing=3 -Wcast-align -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion -Wvla -Wdouble-promotion -Wenum-conversion -Warith-conversion -Wno-long-long -Wno-multichar -Wno-format-nonliteral -Wno-sign-conversion -Wno-system-headers -fPIC -fvisibility=hidden -MD -MT curl/lib/CMakeFiles/libcurl.dir/curl_sspi.c.o -MF curl/lib/CMakeFiles/libcurl.dir/curl_sspi.c.o.d -o curl/lib/CMakeFiles/libcurl.dir/curl_sspi.c.o -c ../curl/lib/curl_sspi.c
In file included from ../curl/lib/curl_sspi.c:23:
../curl/lib/curl_setup.h:406:6: warning: "SIZEOF_CURL_OFF_T" is not defined, evaluates to 0 [-Wundef]
  406 | #if (SIZEOF_CURL_OFF_T == 4)
      | ^~~~~~~~~~~~~~~~~
In file included from ../curl/lib/curl_setup.h:670,
                 from ../curl/lib/curl_sspi.c:23:
../curl/lib/curl_setup_once.h:103:8: error: redefinition of 'struct timeval'
  103 | struct timeval {
      | ^~~~~~~
In file included from /usr/xcc/mips-unknown-linux-gnu/mips-unknown-linux-gnu/sysroot/usr/include/sys/select.h:37,
                 from /usr/xcc/mips-unknown-linux-gnu/mips-unknown-linux-gnu/sysroot/usr/include/sys/types.h:182,
                 from ../curl/include/curl/system.h:414,
                 from ../curl/include/curl/curl.h:35,
                 from ../curl/lib/curl_setup.h:154,
                 from ../curl/lib/curl_sspi.c:23:
/usr/xcc/mips-unknown-linux-gnu/mips-unknown-linux-gnu/sysroot/usr/include/bits/types/struct_timeval.h:8:8: note: originally defined here
    8 | struct timeval
      | ^~~~~~~

Any ideas?


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-03-24