[Pkg-rust-maintainers] Bug#1107412: rust-git-cinnabar: FTBFS: [git-cinnabar 0.7.2] http.patched.c:1037:17: error: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]

Santiago Vila sanvila at debian.org
Sat Jun 7 10:49:32 BST 2025


Package: src:rust-git-cinnabar
Version: 0.7.2-1
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

[ note: CC to Samuel Henrique, as this seems related to the recent upload of curl ]

--------------------------------------------------------------------------------
[...]
[git-cinnabar 0.7.2] http.patched.c:1230:25: error: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
[git-cinnabar 0.7.2]  1230 |                         curl_easy_setopt(result,
[git-cinnabar 0.7.2]       |                         ^~~~~~~~~~~~~~~~
[git-cinnabar 0.7.2] http.patched.c:1233:25: error: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
[git-cinnabar 0.7.2]  1233 |                         curl_easy_setopt(result, CURLOPT_PROXYTYPE, CURLPROXY_HTTPS);
[git-cinnabar 0.7.2]       |                         ^~~~~~~~~~~~~~~~
[git-cinnabar 0.7.2] In function ‘set_curl_keepalive’,
[git-cinnabar 0.7.2]     inlined from ‘get_curl_handle’ at http.patched.c:1283:2,
[git-cinnabar 0.7.2]     inlined from ‘http_init’ at http.patched.c:1408:17:
[git-cinnabar 0.7.2] http.patched.c:736:9: error: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
[git-cinnabar 0.7.2]   736 |         curl_easy_setopt(c, CURLOPT_TCP_KEEPALIVE, 1);
[git-cinnabar 0.7.2]       |         ^~~~~~~~~~~~~~~~
[git-cinnabar 0.7.2] cc1: all warnings being treated as errors
[git-cinnabar 0.7.2] make[1]: *** [/<<PKGBUILDDIR>>/src/build.mk:141: http.patched.o] Error 1
[git-cinnabar 0.7.2] make[1]: *** Waiting for unfinished jobs....
[git-cinnabar 0.7.2] make[1]: Leaving directory '/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/git-cinnabar-3cd0670055896d21/out'
[git-cinnabar 0.7.2] 
[git-cinnabar 0.7.2] thread 'main' panicked at build.rs:253:5:
[git-cinnabar 0.7.2] assertion failed: cmd.env("MAKEFLAGS",
[git-cinnabar 0.7.2]                     format!("-j {}",
[git-cinnabar 0.7.2]                         env("CARGO_MAKEFLAGS"))).current_dir(&out_dir).status().expect("Failed to execute GNU make").success()
[git-cinnabar 0.7.2] stack backtrace:
[git-cinnabar 0.7.2]    0: rust_begin_unwind
[git-cinnabar 0.7.2]              at /usr/src/rustc-1.85.0/library/std/src/panicking.rs:692:5
[git-cinnabar 0.7.2]    1: core::panicking::panic_fmt
[git-cinnabar 0.7.2]              at /usr/src/rustc-1.85.0/library/core/src/panicking.rs:75:14
[git-cinnabar 0.7.2]    2: core::panicking::panic
[git-cinnabar 0.7.2]              at /usr/src/rustc-1.85.0/library/core/src/panicking.rs:145:5
[git-cinnabar 0.7.2]    3: build_script_build::main
[git-cinnabar 0.7.2]              at ./build.rs:253:5
[git-cinnabar 0.7.2]    4: core::ops::function::FnOnce::call_once
[git-cinnabar 0.7.2]              at /usr/src/rustc-1.85.0/library/core/src/ops/function.rs:250:5
[git-cinnabar 0.7.2] note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: failed to run custom build command for `git-cinnabar v0.7.2 (/<<PKGBUILDDIR>>)`

[...]

  http.patched.c:1230:25: error: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
   1230 |                         curl_easy_setopt(result,
        |                         ^~~~~~~~~~~~~~~~
  http.patched.c:1233:25: error: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
   1233 |                         curl_easy_setopt(result, CURLOPT_PROXYTYPE, CURLPROXY_HTTPS);
        |                         ^~~~~~~~~~~~~~~~
  In function ‘set_curl_keepalive’,
      inlined from ‘get_curl_handle’ at http.patched.c:1283:2,
      inlined from ‘http_init’ at http.patched.c:1408:17:
  http.patched.c:736:9: error: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
    736 |         curl_easy_setopt(c, CURLOPT_TCP_KEEPALIVE, 1);
        |         ^~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors
  make[1]: *** [/<<PKGBUILDDIR>>/src/build.mk:141: http.patched.o] Error 1
  make[1]: *** Waiting for unfinished jobs....

  thread 'main' panicked at build.rs:253:5:
  assertion failed: cmd.env("MAKEFLAGS",
                      format!("-j {}",
                          env("CARGO_MAKEFLAGS"))).current_dir(&out_dir).status().expect("Failed to execute GNU make").success()
  stack backtrace:
     0: rust_begin_unwind
               at /usr/src/rustc-1.85.0/library/std/src/panicking.rs:692:5
     1: core::panicking::panic_fmt
               at /usr/src/rustc-1.85.0/library/core/src/panicking.rs:75:14
     2: core::panicking::panic
               at /usr/src/rustc-1.85.0/library/core/src/panicking.rs:145:5
     3: build_script_build::main
               at ./build.rs:253:5
     4: core::ops::function::FnOnce::call_once
               at /usr/src/rustc-1.85.0/library/core/src/ops/function.rs:250:5
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202506/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-git-cinnabar, so that this is still
visible in the BTS web page for this package.

Thanks.



More information about the Pkg-rust-maintainers mailing list