[Pkg-rust-maintainers] Bug#1154395: nethsm-pkcs11: FTBFS: error[E0061]: this function takes 2 arguments but 1 argument was supplied

Santiago Vila sanvila at debian.org
Wed Nov 18 18:53:15 GMT 2026


Package: src:nethsm-pkcs11
Version: 2.0.0-3
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

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

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 cannot 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:nethsm-pkcs11, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
   |                                            +++++++

warning: `lazy_static` (lib) generated 1 warning
   Compiling nethsm_pkcs11 v2.0.0 (/<<PKGBUILDDIR>>/pkcs11)
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=nethsm_p [too-long-redacted] uild/ring-1a49158987da5799/out`
error[E0061]: this function takes 2 arguments but 1 argument was supplied
  --> pkcs11/src/ureq/rustls_connector.rs:68:19
   |
68 |             sock: TransportAdapter::new(transport),
   |                   ^^^^^^^^^^^^^^^^^^^^^----------- argument #2 of type `Arc<(dyn Fn() -> ureq::unversioned::transport::time::Instant + Send + Sync + 'static)>` is missing
   |
note: associated function defined here
  --> /usr/share/cargo/registry/ureq-3.5.1/src/unversioned/transport/io.rs:23:12
   |
23 |     pub fn new(
   |            ^^^
help: provide the argument
   |
68 |             sock: TransportAdapter::new(transport, /* Arc<(dyn Fn() -> ureq::unversioned::transport::time::Instant + Send + Sync + 'static)> */),
   |                                                  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

For more information about this error, try `rustc --explain E0061`.
error: could not compile `nethsm_pkcs11` (lib) due to 1 previous error

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] 987da5799/out` (exit status: 1)
make[1]: *** [debian/rules:30: override_dh_auto_build] Error 101
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-rust-maintainers mailing list