curl-library
Two build warnings for Debian Jessie 8 amd64 and mingw32
Date: Sun, 10 Jan 2016 12:11:53 +0100
Hello Daniel,
when compiling the current git HEAD with --enable-werror I get two more.
My build environment is Debian Jessie amd64. In order to reproduce this:
test -d curl || git clone https://github.com/bagder/curl.git
cd curl
git reset --hard origin/master; git clean -f -x -d
./buildconf
./configure CFLAGS='-Os' \
--disable-ares \
--disable-cookies \
--disable-manual \
--disable-versioned-symbols \
--enable-hidden-symbols \
--prefix=`pwd`/../local/linux \
--disable-shared \
--disable-manual \
--disable-libcurl-option \
--enable-sspi \
--disable-ftp \
--disable-smb \
--disable-dict \
--disable-file \
--disable-gopher \
--disable-imap \
--disable-imaps \
--disable-pop3 \
--disable-pop3s \
--disable-ldap \
--disable-ldaps \
--disable-rtsp \
--disable-telnet \
--disable-tftp \
--disable-smtp \
--disable-smtps \
--with-gssapi \
--enable-ipv6 \
--without-libidn \
--without-librtmp \
--without-libssh2 \
--without-gssapi \
--disable-unix-sockets \
--without-ca-bundle \
--without-zlib
make -k
In file included from tool_operate.c:74:0:
tool_operate.c: In function 'operate_do':
../include/curl/typecheck-gcc.h:83:9: error: call to '_curl_easy_setopt_err_seek_cb' declared with attribute warning: curl_easy_setopt expects a curl_seek_callback argument for this option [-Werror]
_curl_easy_setopt_err_seek_cb(); \
^
tool_setopt.h:31:13: note: in definition of macro 'SETOPT_CHECK'
result = (v); \
^
tool_setopt.h:124:16: note: in expansion of macro 'curl_easy_setopt'
SETOPT_CHECK(curl_easy_setopt(x, y, z))
^
tool_operate.c:832:9: note: in expansion of macro 'my_setopt'
my_setopt(curl, CURLOPT_SEEKFUNCTION, tool_seek_cb);
^
cc1: all warnings being treated as errors
Makefile:1567: recipe for target 'curl-tool_operate.o' failed
make[2]: *** [curl-tool_operate.o] Error 1
Full Output is here: https://pbot.rmdir.de/0NcyYjom2lCwkS1al9VuKg
And than I have another one when cross compiling on Debian Jessie amd64 for
win32 using mingw:
(
cd mbedtls
test -d mbedtls || git clone https://github.com/ARMmbed/mbedtls.git
git reset --hard HEAD; git clean -f -x -d
CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar LD=i686-w64-minggw32-ld CFLAGS="-Os" WINDOWS=1 make -j lib
make DESTDIR=`pwd`/../local/win32 install
)
(
test -d curl || git clone https://github.com/bagder/curl.git
cd curl
git reset --hard HEAD; git clean -f -x -d
./buildconf
CC=/usr/bin/i686-w64-mingw32-gcc ./configure CFLAGS='-Os' \
--enable-werror \
--without-ssl --with-mbedtls=`pwd`/../local/win32 \
--host=mingw32 \
--disable-ares \
--disable-cookies \
--disable-manual \
--disable-versioned-symbols \
--enable-hidden-symbols \
--prefix=`pwd`/../local/win32 \
--disable-shared \
--disable-manual \
--disable-libcurl-option \
--enable-sspi \
--disable-ftp \
--disable-smb \
--disable-dict \
--disable-file \
--disable-gopher \
--disable-imap \
--disable-imaps \
--disable-pop3 \
--disable-pop3s \
--disable-ldap \
--disable-ldaps \
--disable-rtsp \
--disable-telnet \
--disable-tftp \
--disable-smtp \
--disable-smtps \
--with-gssapi \
--enable-ipv6 \
--without-libidn \
--without-librtmp \
--without-zlib
make -k
)
CC libcurl_la-formdata.lo
formdata.c: In function 'FormAdd':
formdata.c:390:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
array_state?(curl_off_t)array_value:va_arg(params, curl_off_t);
^
cc1: all warnings being treated as errors
Makefile:1164: recipe for target 'libcurl_la-formdata.lo' failed
make[2]: *** [libcurl_la-formdata.lo] Error 1
Full Output: https://pbot.rmdir.de/0f3KKae-E3jwtRiC2Or5_w
If you want an account in order to access the build environment, drop me a ssh
or gpg key.
Cheers,
Thomas
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-10