Diff of the two buildlogs: -- --- b1/build.log 2025-08-25 14:26:14.284002832 +0000 +++ b2/build.log 2025-08-25 14:27:08.284069441 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Sep 27 08:46:11 -12 2026 -I: pbuilder-time-stamp: 1790541971 +I: Current time: Tue Aug 26 04:26:15 +14 2025 +I: pbuilder-time-stamp: 1756131975 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -24,53 +24,85 @@ dpkg-source: info: applying relax-deps.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/304489/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/400079/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Aug 25 14:26 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/400079/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/400079/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=40 ' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='020853a73dae4f618d9a72edb80dddbb' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='304489' - PS1='# ' - PS2='> ' + INVOCATION_ID=de0225e2c24c46fa93980f1f353529e3 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=400079 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.O1tZdVSk/pbuilderrc_ydyQ --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.O1tZdVSk/b1 --logfile b1/build.log rust-dlib_0.5.2-2.dsc' - SUDO_GID='111' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.O1tZdVSk/pbuilderrc_T1xt --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.O1tZdVSk/b2 --logfile b2/build.log rust-dlib_0.5.2-2.dsc' + SUDO_GID=111 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos15-amd64 6.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/304489/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/400079/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -192,7 +224,7 @@ Get: 76 http://deb.debian.org/debian forky/main amd64 dh-cargo all 32 [10.6 kB] Get: 77 http://deb.debian.org/debian forky/main amd64 librust-cfg-if-dev amd64 1.0.0-1+b2 [10.7 kB] Get: 78 http://deb.debian.org/debian forky/main amd64 librust-libloading-dev amd64 0.8.5-1 [28.5 kB] -Fetched 128 MB in 2s (66.3 MB/s) +Fetched 128 MB in 2s (84.0 MB/s) Preconfiguring packages ... Selecting previously unselected package libexpat1:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19855 files and directories currently installed.) @@ -461,8 +493,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Sun Sep 27 20:48:48 UTC 2026. -Universal Time is now: Sun Sep 27 20:48:48 UTC 2026. +Local time is now: Mon Aug 25 14:26:57 UTC 2025. +Universal Time is now: Mon Aug 25 14:26:57 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20240727.1) ... @@ -531,7 +563,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/rust-dlib-0.5.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../rust-dlib_0.5.2-2_source.changes +I: user script /srv/workspace/pbuilder/400079/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/400079/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/rust-dlib-0.5.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../rust-dlib_0.5.2-2_source.changes dpkg-buildpackage: info: source package rust-dlib dpkg-buildpackage: info: source version 0.5.2-2 dpkg-buildpackage: info: source distribution unstable @@ -541,7 +577,7 @@ debian/rules clean dh clean --buildsystem cargo dh_auto_clean -O--buildsystem=cargo -debian cargo wrapper: options = ['buildinfo=+all', 'reproducible=+all', 'parallel=42'], profiles = [], parallel = ['-j42'], lto = +debian cargo wrapper: options = ['buildinfo=+all', 'reproducible=+all', 'parallel=40'], profiles = [], parallel = ['-j40'], lto = debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'clean', '--verbose', '--verbose'],) {'check': True} Removed 0 files @@ -552,16 +588,16 @@ dh_update_autotools_config -O--buildsystem=cargo dh_autoreconf -O--buildsystem=cargo dh_auto_configure -O--buildsystem=cargo -debian cargo wrapper: options = ['buildinfo=+all', 'reproducible=+all', 'parallel=42'], profiles = [], parallel = ['-j42'], lto = +debian cargo wrapper: options = ['buildinfo=+all', 'reproducible=+all', 'parallel=40'], profiles = [], parallel = ['-j40'], lto = debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu debian cargo wrapper: linking /usr/share/cargo/registry/* into /build/reproducible-path/rust-dlib-0.5.2/debian/cargo_registry/ dh_auto_build -O--buildsystem=cargo debian/rules override_dh_auto_test make[1]: Entering directory '/build/reproducible-path/rust-dlib-0.5.2' dh_auto_test -- test --all || true -debian cargo wrapper: options = ['buildinfo=+all', 'reproducible=+all', 'parallel=42'], profiles = [], parallel = ['-j42'], lto = +debian cargo wrapper: options = ['buildinfo=+all', 'reproducible=+all', 'parallel=40'], profiles = [], parallel = ['-j40'], lto = debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu -debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j42', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {} +debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j40', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {} warning: no edition set: defaulting to the 2015 edition while the latest is 2024 Compiling cfg-if v1.0.0 Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=cfg_if CARGO_MANIFEST_DIR=/build/reproducible-path/rust-dlib-0.5.2/debian/cargo_registry/cfg-if-1.0.0 CARGO_MANIFEST_PATH=/build/reproducible-path/rust-dlib-0.5.2/debian/cargo_registry/cfg-if-1.0.0/Cargo.toml CARGO_PKG_AUTHORS='Alex Crichton ' CARGO_PKG_DESCRIPTION='A macro to ergonomically define an item depending on a large number of #[cfg] @@ -771,7 +807,7 @@ Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=dlib CARGO_MANIFEST_DIR=/build/reproducible-path/rust-dlib-0.5.2 CARGO_MANIFEST_PATH=/build/reproducible-path/rust-dlib-0.5.2/Cargo.toml CARGO_PKG_AUTHORS='Elinor Berger ' CARGO_PKG_DESCRIPTION='Helper macros for handling manually loading optional system libraries.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=dlib CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/elinorbgr/dlib' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.5.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH=/build/reproducible-path/rust-dlib-0.5.2/target/debug/deps rustc --crate-name dlib --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=580de6ec34ed19ca -C extra-filename=-20a534a27af5110e --out-dir /build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/build/reproducible-path/rust-dlib-0.5.2/target/debug/deps --extern libloading=/build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/deps/liblibloading-c9db69c19c3c2a98.rmeta -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /build/reproducible-path/rust-dlib-0.5.2=/usr/share/cargo/registry/dlib-0.5.2 --remap-path-prefix /build/reproducible-path/rust-dlib-0.5.2/debian/cargo_registry=/usr/share/cargo/registry` warning: `libloading` (lib) generated 15 warnings Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=dlib CARGO_MANIFEST_DIR=/build/reproducible-path/rust-dlib-0.5.2 CARGO_MANIFEST_PATH=/build/reproducible-path/rust-dlib-0.5.2/Cargo.toml CARGO_PKG_AUTHORS='Elinor Berger ' CARGO_PKG_DESCRIPTION='Helper macros for handling manually loading optional system libraries.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=dlib CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/elinorbgr/dlib' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.5.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH=/build/reproducible-path/rust-dlib-0.5.2/target/debug/deps rustc --crate-name dlib --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=0a041734051e9548 -C extra-filename=-3a94d174cf347f13 --out-dir /build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/build/reproducible-path/rust-dlib-0.5.2/target/debug/deps --extern libloading=/build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/deps/liblibloading-c9db69c19c3c2a98.rlib -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /build/reproducible-path/rust-dlib-0.5.2=/usr/share/cargo/registry/dlib-0.5.2 --remap-path-prefix /build/reproducible-path/rust-dlib-0.5.2/debian/cargo_registry=/usr/share/cargo/registry` - Finished `test` profile [unoptimized + debuginfo] target(s) in 1.11s + Finished `test` profile [unoptimized + debuginfo] target(s) in 0.91s Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/build/reproducible-path/rust-dlib-0.5.2 CARGO_MANIFEST_PATH=/build/reproducible-path/rust-dlib-0.5.2/Cargo.toml CARGO_PKG_AUTHORS='Elinor Berger ' CARGO_PKG_DESCRIPTION='Helper macros for handling manually loading optional system libraries.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=dlib CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/elinorbgr/dlib' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.5.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/deps:/build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug:/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib' /build/reproducible-path/rust-dlib-0.5.2/target/x86_64-unknown-linux-gnu/debug/deps/dlib-3a94d174cf347f13` running 0 tests @@ -784,32 +820,57 @@ running 9 tests test src/lib.rs - ffi_dispatch (line 154) ... ignored test src/lib.rs - ffi_dispatch_static (line 188) ... ignored -test src/lib.rs - (line 8) ... FAILED -test src/lib.rs - (line 49) ... FAILED test src/lib.rs - (line 124) ... FAILED test src/lib.rs - (line 31) ... FAILED +test src/lib.rs - (line 49) ... FAILED test src/lib.rs - (line 93) ... FAILED +test src/lib.rs - (line 8) ... FAILED test src/lib.rs - (line 102) ... FAILED test src/lib.rs - (line 114) ... ok failures: ----- src/lib.rs - (line 8) stdout ---- -error: cannot find macro `external_library` in this scope - --> src/lib.rs:9:1 +---- src/lib.rs - (line 124) stdout ---- +error[E0432]: unresolved import `ffi` + --> src/lib.rs:128:5 | -3 | external_library!(feature="dlopen-foo", Foo, "foo", - | ^^^^^^^^^^^^^^^^ +6 | use ffi::*; + | ^^^ + | | + | unresolved import + | help: a similar path exists: `std::ffi` -error: aborting due to 1 previous error +warning: unexpected `cfg` condition value: `dlopen-foo` + --> src/lib.rs:125:7 + | +3 | #[cfg(feature = "dlopen-foo")] + | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition + | + = note: no expected values for `feature` + = help: consider adding `dlopen-foo` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default +warning: unexpected `cfg` condition value: `dlopen-foo` + --> src/lib.rs:127:11 + | +5 | #[cfg(not(feature = "dlopen-foo"))] + | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition + | + = note: no expected values for `feature` + = help: consider adding `dlopen-foo` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +error: aborting due to 1 previous error; 2 warnings emitted + +For more information about this error, try `rustc --explain E0432`. Couldn't compile the test. ----- src/lib.rs - (line 49) stdout ---- +---- src/lib.rs - (line 31) stdout ---- error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:51:22 + --> src/lib.rs:34:20 | -4 | pub me: &'static c_int, - | ^^^^^ not found in this scope +5 | pub static me: c_int; + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -819,10 +880,10 @@ | error[E0412]: cannot find type `c_float` in this scope - --> src/lib.rs:52:23 + --> src/lib.rs:35:21 | -5 | pub you: &'static c_float, - | ^^^^^^^ not found in this scope +6 | pub static you: c_float; + | ^^^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -832,10 +893,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:53:40 + --> src/lib.rs:36:21 | -6 | pub foo: unsafe extern "C" fn() -> c_int, - | ^^^^^ not found in this scope +7 | pub fn foo() -> c_int; + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -845,10 +906,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:54:35 + --> src/lib.rs:37:19 | -7 | pub bar: unsafe extern "C" fn(c_int, c_float) -> (), - | ^^^^^ not found in this scope +8 | pub fn bar(_: c_int, _: c_float) -> (); + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -858,10 +919,10 @@ | error[E0412]: cannot find type `c_float` in this scope - --> src/lib.rs:54:42 + --> src/lib.rs:37:29 | -7 | pub bar: unsafe extern "C" fn(c_int, c_float) -> (), - | ^^^^^^^ not found in this scope +8 | pub fn bar(_: c_int, _: c_float) -> (); + | ^^^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -871,10 +932,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:55:42 + --> src/lib.rs:38:26 | -8 | pub baz: unsafe extern "C" fn(*const c_int) -> c_int, - | ^^^^^ not found in this scope +9 | pub fn baz(_: *const c_int) -> c_int; + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -884,10 +945,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:55:52 + --> src/lib.rs:38:36 | -8 | pub baz: unsafe extern "C" fn(*const c_int) -> c_int, - | ^^^^^ not found in this scope +9 | pub fn baz(_: *const c_int) -> c_int; + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -897,49 +958,49 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:56:36 - | -9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, - | ^^^^^ not found in this scope - | + --> src/lib.rs:39:20 + | +10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; + | ^^^^^ not found in this scope + | help: consider importing one of these type aliases - | -2 + use std::ffi::c_int; - | -2 + use std::os::raw::c_int; - | + | +2 + use std::ffi::c_int; + | +2 + use std::os::raw::c_int; + | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:56:43 - | -9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, - | ^^^^^ not found in this scope - | + --> src/lib.rs:39:30 + | +10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; + | ^^^^^ not found in this scope + | help: consider importing one of these type aliases - | -2 + use std::ffi::c_int; - | -2 + use std::os::raw::c_int; - | + | +2 + use std::ffi::c_int; + | +2 + use std::os::raw::c_int; + | error[E0412]: cannot find type `c_void` in this scope - --> src/lib.rs:56:65 - | -9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, - | ^^^^^^ not found in this scope - | + --> src/lib.rs:39:52 + | +10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; + | ^^^^^^ not found in this scope + | help: consider importing one of these items - | -2 + use std::ffi::c_void; - | -2 + use std::os::raw::c_void; - | + | +2 + use std::ffi::c_void; + | +2 + use std::os::raw::c_void; + | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:57:36 + --> src/lib.rs:40:20 | -10 | pub bleh: unsafe extern "C" fn(c_int, ...) -> (), - | ^^^^^ not found in this scope +11 | pub fn bleh(_: c_int, ...) -> (); + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -948,62 +1009,16 @@ 2 + use std::os::raw::c_int; | -error[E0412]: cannot find type `DlError` in this scope - --> src/lib.rs:62:51 - | -15 | pub unsafe fn open(name: &str) -> Result { /* ... */ } - | ^^^^^^^ not found in this scope - | -help: you might be missing a type parameter - | -14 | impl Foo { - | +++++++++ - -error: aborting due to 12 previous errors +error: aborting due to 11 previous errors For more information about this error, try `rustc --explain E0412`. Couldn't compile the test. ----- src/lib.rs - (line 124) stdout ---- -error[E0432]: unresolved import `ffi` - --> src/lib.rs:128:5 - | -6 | use ffi::*; - | ^^^ - | | - | unresolved import - | help: a similar path exists: `std::ffi` - -warning: unexpected `cfg` condition value: `dlopen-foo` - --> src/lib.rs:125:7 - | -3 | #[cfg(feature = "dlopen-foo")] - | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition - | - = note: no expected values for `feature` - = help: consider adding `dlopen-foo` as a feature in `Cargo.toml` - = note: see for more information about checking conditional configuration - = note: `#[warn(unexpected_cfgs)]` on by default - -warning: unexpected `cfg` condition value: `dlopen-foo` - --> src/lib.rs:127:11 - | -5 | #[cfg(not(feature = "dlopen-foo"))] - | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition - | - = note: no expected values for `feature` - = help: consider adding `dlopen-foo` as a feature in `Cargo.toml` - = note: see for more information about checking conditional configuration - -error: aborting due to 1 previous error; 2 warnings emitted - -For more information about this error, try `rustc --explain E0432`. -Couldn't compile the test. ----- src/lib.rs - (line 31) stdout ---- +---- src/lib.rs - (line 49) stdout ---- error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:34:20 + --> src/lib.rs:51:22 | -5 | pub static me: c_int; - | ^^^^^ not found in this scope +4 | pub me: &'static c_int, + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1013,10 +1028,10 @@ | error[E0412]: cannot find type `c_float` in this scope - --> src/lib.rs:35:21 + --> src/lib.rs:52:23 | -6 | pub static you: c_float; - | ^^^^^^^ not found in this scope +5 | pub you: &'static c_float, + | ^^^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1026,10 +1041,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:36:21 + --> src/lib.rs:53:40 | -7 | pub fn foo() -> c_int; - | ^^^^^ not found in this scope +6 | pub foo: unsafe extern "C" fn() -> c_int, + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1039,10 +1054,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:37:19 + --> src/lib.rs:54:35 | -8 | pub fn bar(_: c_int, _: c_float) -> (); - | ^^^^^ not found in this scope +7 | pub bar: unsafe extern "C" fn(c_int, c_float) -> (), + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1052,10 +1067,10 @@ | error[E0412]: cannot find type `c_float` in this scope - --> src/lib.rs:37:29 + --> src/lib.rs:54:42 | -8 | pub fn bar(_: c_int, _: c_float) -> (); - | ^^^^^^^ not found in this scope +7 | pub bar: unsafe extern "C" fn(c_int, c_float) -> (), + | ^^^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1065,10 +1080,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:38:26 + --> src/lib.rs:55:42 | -9 | pub fn baz(_: *const c_int) -> c_int; - | ^^^^^ not found in this scope +8 | pub baz: unsafe extern "C" fn(*const c_int) -> c_int, + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1078,10 +1093,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:38:36 + --> src/lib.rs:55:52 | -9 | pub fn baz(_: *const c_int) -> c_int; - | ^^^^^ not found in this scope +8 | pub baz: unsafe extern "C" fn(*const c_int) -> c_int, + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1091,49 +1106,49 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:39:20 - | -10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; - | ^^^^^ not found in this scope - | + --> src/lib.rs:56:36 + | +9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, + | ^^^^^ not found in this scope + | help: consider importing one of these type aliases - | -2 + use std::ffi::c_int; - | -2 + use std::os::raw::c_int; - | + | +2 + use std::ffi::c_int; + | +2 + use std::os::raw::c_int; + | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:39:30 - | -10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; - | ^^^^^ not found in this scope - | + --> src/lib.rs:56:43 + | +9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, + | ^^^^^ not found in this scope + | help: consider importing one of these type aliases - | -2 + use std::ffi::c_int; - | -2 + use std::os::raw::c_int; - | + | +2 + use std::ffi::c_int; + | +2 + use std::os::raw::c_int; + | error[E0412]: cannot find type `c_void` in this scope - --> src/lib.rs:39:52 - | -10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; - | ^^^^^^ not found in this scope - | + --> src/lib.rs:56:65 + | +9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, + | ^^^^^^ not found in this scope + | help: consider importing one of these items - | -2 + use std::ffi::c_void; - | -2 + use std::os::raw::c_void; - | + | +2 + use std::ffi::c_void; + | +2 + use std::os::raw::c_void; + | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:40:20 + --> src/lib.rs:57:36 | -11 | pub fn bleh(_: c_int, ...) -> (); - | ^^^^^ not found in this scope +10 | pub bleh: unsafe extern "C" fn(c_int, ...) -> (), + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1142,7 +1157,18 @@ 2 + use std::os::raw::c_int; | -error: aborting due to 11 previous errors +error[E0412]: cannot find type `DlError` in this scope + --> src/lib.rs:62:51 + | +15 | pub unsafe fn open(name: &str) -> Result { /* ... */ } + | ^^^^^^^ not found in this scope + | +help: you might be missing a type parameter + | +14 | impl Foo { + | +++++++++ + +error: aborting due to 12 previous errors For more information about this error, try `rustc --explain E0412`. Couldn't compile the test. @@ -1156,6 +1182,16 @@ error: aborting due to 1 previous error Couldn't compile the test. +---- src/lib.rs - (line 8) stdout ---- +error: cannot find macro `external_library` in this scope + --> src/lib.rs:9:1 + | +3 | external_library!(feature="dlopen-foo", Foo, "foo", + | ^^^^^^^^^^^^^^^^ + +error: aborting due to 1 previous error + +Couldn't compile the test. ---- src/lib.rs - (line 102) stdout ---- error: cannot find macro `ffi_dispatch_static` in this scope --> src/lib.rs:104:1 @@ -1181,7 +1217,7 @@ src/lib.rs - (line 8) src/lib.rs - (line 93) -test result: FAILED. 1 passed; 6 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.42s +test result: FAILED. 1 passed; 6 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.31s error: doctest failed, to rerun pass `--doc` dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101 @@ -1216,12 +1252,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/400079/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/400079/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/304489 and its subdirectories -I: Current time: Sun Sep 27 08:49:13 -12 2026 -I: pbuilder-time-stamp: 1790542153 +I: removing directory /srv/workspace/pbuilder/400079 and its subdirectories +I: Current time: Tue Aug 26 04:27:08 +14 2025 +I: pbuilder-time-stamp: 1756132028