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.
RE: Crosscompile with Dockcross
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Robb Schiefer via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 24 Mar 2022 16:51:36 +0000
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.
Thanks,
Robb
From: Robb Schiefer
Sent: Thursday, March 24, 2022 11:16 AM
To: curl-library_at_lists.haxx.se
Subject: Crosscompile with Dockcross
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?
Date: Thu, 24 Mar 2022 16:51:36 +0000
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.
Thanks,
Robb
From: Robb Schiefer
Sent: Thursday, March 24, 2022 11:16 AM
To: curl-library_at_lists.haxx.se
Subject: Crosscompile with Dockcross
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.htmlReceived on 2022-03-24