sbuild (Debian sbuild) 0.79.1 (22 April 2020) on carme.larted.org.uk +==============================================================================+ | mac-fdisk 0.1-18 (amd64) Sun, 04 Oct 2020 22:07:18 +0000 | +==============================================================================+ Package: mac-fdisk Version: 0.1-18 Source Version: 0.1-18 Distribution: sid Machine Architecture: amd64 Host Architecture: amd64 Build Architecture: amd64 Build Type: full I: NOTICE: Log filtering will replace 'var/run/schroot/mount/sid-amd64-debomatic-27ac2207-c2da-442a-940c-b29475121d49' with '<>' +------------------------------------------------------------------------------+ | Chroot Setup Commands | +------------------------------------------------------------------------------+ /usr/share/debomatic/sbuildcommands/chroot-setup-commands/dpkg-speedup mac-fdisk_0.1-18 sid amd64 ------------------------------------------------------------------------------------------------- I: Finished running '/usr/share/debomatic/sbuildcommands/chroot-setup-commands/dpkg-speedup mac-fdisk_0.1-18 sid amd64'. Finished processing commands. -------------------------------------------------------------------------------- I: NOTICE: Log filtering will replace 'build/mac-fdisk-O9nuHQ/resolver-tXDySp' with '<>' +------------------------------------------------------------------------------+ | Update chroot | +------------------------------------------------------------------------------+ Get:1 http://localhost:3142/debian unstable InRelease [146 kB] Get:2 http://localhost:3142/debian sid InRelease [146 kB] Get:3 http://localhost:3142/debian unstable/main amd64 Packages.diff/Index [27.9 kB] Get:4 http://localhost:3142/debian unstable/main amd64 Packages 2020-10-04-0800.48.pdiff [1707 B] Get:5 http://localhost:3142/debian unstable/main amd64 Packages 2020-10-04-1401.12.pdiff [13.4 kB] Get:6 http://localhost:3142/debian unstable/main amd64 Packages 2020-10-04-2001.04.pdiff [14.1 kB] Get:6 http://localhost:3142/debian unstable/main amd64 Packages 2020-10-04-2001.04.pdiff [14.1 kB] Get:7 http://localhost:3142/debian sid/main Sources.diff/Index [27.9 kB] Get:8 http://localhost:3142/debian sid/main Sources 2020-10-04-0800.48.pdiff [4026 B] Get:9 http://localhost:3142/debian sid/main Sources 2020-10-04-1401.12.pdiff [12.1 kB] Get:10 http://localhost:3142/debian sid/main Sources 2020-10-04-2001.04.pdiff [12.1 kB] Get:10 http://localhost:3142/debian sid/main Sources 2020-10-04-2001.04.pdiff [12.1 kB] Fetched 406 kB in 3s (134 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... Calculating upgrade... The following packages will be upgraded: netbase 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 19.9 kB of archives. After this operation, 2048 B disk space will be freed. Get:1 http://localhost:3142/debian unstable/main amd64 netbase all 6.2 [19.9 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 19.9 kB in 0s (778 kB/s) (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 ... 10509 files and directories currently installed.) Preparing to unpack .../archives/netbase_6.2_all.deb ... Unpacking netbase (6.2) over (6.1) ... Setting up netbase (6.2) ... Configuration file '/etc/services' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. ==> Using current old file as you requested. +------------------------------------------------------------------------------+ | Fetch source files | +------------------------------------------------------------------------------+ Local sources ------------- /srv/debomatic/incoming/mac-fdisk_0.1-18.dsc exists in /srv/debomatic/incoming; copying to chroot I: NOTICE: Log filtering will replace 'build/mac-fdisk-O9nuHQ/mac-fdisk-0.1' with '<>' I: NOTICE: Log filtering will replace 'build/mac-fdisk-O9nuHQ' with '<>' +------------------------------------------------------------------------------+ | Install package build dependencies | +------------------------------------------------------------------------------+ Setup apt archive ----------------- Merged Build-Depends: debhelper, build-essential, fakeroot Filtered Build-Depends: debhelper, build-essential, fakeroot dpkg-deb: building package 'sbuild-build-depends-main-dummy' in '/<>/apt_archive/sbuild-build-depends-main-dummy.deb'. Ign:1 copy:/<>/apt_archive ./ InRelease Get:2 copy:/<>/apt_archive ./ Release [957 B] Ign:3 copy:/<>/apt_archive ./ Release.gpg Get:4 copy:/<>/apt_archive ./ Sources [358 B] Get:5 copy:/<>/apt_archive ./ Packages [438 B] Fetched 1753 B in 0s (30.6 kB/s) Reading package lists... Reading package lists... Install main build dependencies (apt-based resolver) ---------------------------------------------------- Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils build-essential debhelper dh-autoreconf dh-strip-nondeterminism dpkg-dev dwz fakeroot file g++ g++-10 gcc gcc-10 gettext gettext-base groff-base intltool-debian libarchive-zip-perl libasan6 libc6-dev libcroco3 libcrypt-dev libdebhelper-perl libdpkg-perl libelf1 libfakeroot libfile-stripnondeterminism-perl libgcc-10-dev libglib2.0-0 libicu67 libmagic-mgc libmagic1 libperl5.30 libpipeline1 libsigsegv2 libstdc++-10-dev libsub-override-perl libtool libubsan1 libuchardet0 libxml2 m4 man-db perl perl-modules-5.30 po-debconf sensible-utils Suggested packages: autoconf-archive gnu-standards autoconf-doc dh-make debian-keyring g++-multilib g++-10-multilib gcc-10-doc gcc-multilib manpages-dev flex bison gdb gcc-doc gcc-10-multilib gcc-10-locales gettext-doc libasprintf-dev libgettextpo-dev groff glibc-doc git bzr libstdc++-10-doc libtool-doc gfortran | fortran95-compiler gcj-jdk m4-doc apparmor less www-browser perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl libtap-harness-archive-perl libmail-box-perl Recommended packages: libalgorithm-merge-perl curl | wget | lynx libfile-fcntllock-perl liblocale-gettext-perl libarchive-cpio-perl libglib2.0-data shared-mime-info xdg-user-dirs libltdl-dev libmail-sendmail-perl The following NEW packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils build-essential debhelper dh-autoreconf dh-strip-nondeterminism dpkg-dev dwz fakeroot file g++ g++-10 gcc gcc-10 gettext gettext-base groff-base intltool-debian libarchive-zip-perl libasan6 libc6-dev libcroco3 libcrypt-dev libdebhelper-perl libdpkg-perl libelf1 libfakeroot libfile-stripnondeterminism-perl libgcc-10-dev libglib2.0-0 libicu67 libmagic-mgc libmagic1 libperl5.30 libpipeline1 libsigsegv2 libstdc++-10-dev libsub-override-perl libtool libubsan1 libuchardet0 libxml2 m4 man-db perl perl-modules-5.30 po-debconf sbuild-build-depends-main-dummy sensible-utils 0 upgraded, 52 newly installed, 0 to remove and 0 not upgraded. Need to get 61.8 MB of archives. After this operation, 262 MB of additional disk space will be used. Get:1 copy:/<>/apt_archive ./ sbuild-build-depends-main-dummy 0.invalid.0 [868 B] Get:2 http://localhost:3142/debian unstable/main amd64 bsdextrautils amd64 2.36-3+b1 [140 kB] Get:3 http://localhost:3142/debian unstable/main amd64 libuchardet0 amd64 0.0.7-1 [67.8 kB] Get:4 http://localhost:3142/debian unstable/main amd64 groff-base amd64 1.22.4-5 [920 kB] Get:5 http://localhost:3142/debian unstable/main amd64 libpipeline1 amd64 1.5.3-1 [34.3 kB] Get:6 http://localhost:3142/debian unstable/main amd64 man-db amd64 2.9.3-2 [1314 kB] Get:7 http://localhost:3142/debian unstable/main amd64 perl-modules-5.30 all 5.30.3-4 [2806 kB] Get:8 http://localhost:3142/debian unstable/main amd64 libperl5.30 amd64 5.30.3-4 [4019 kB] Get:9 http://localhost:3142/debian unstable/main amd64 perl amd64 5.30.3-4 [290 kB] Get:10 http://localhost:3142/debian unstable/main amd64 sensible-utils all 0.0.12+nmu1 [16.0 kB] Get:11 http://localhost:3142/debian unstable/main amd64 libmagic-mgc amd64 1:5.38-5 [262 kB] Get:12 http://localhost:3142/debian unstable/main amd64 libmagic1 amd64 1:5.38-5 [120 kB] Get:13 http://localhost:3142/debian unstable/main amd64 file amd64 1:5.38-5 [67.9 kB] Get:14 http://localhost:3142/debian unstable/main amd64 gettext-base amd64 0.19.8.1-10 [123 kB] Get:15 http://localhost:3142/debian unstable/main amd64 libsigsegv2 amd64 2.12-2 [32.8 kB] Get:16 http://localhost:3142/debian unstable/main amd64 m4 amd64 1.4.18-4 [203 kB] Get:17 http://localhost:3142/debian unstable/main amd64 autoconf all 2.69-11.1 [341 kB] Get:18 http://localhost:3142/debian unstable/main amd64 autotools-dev all 20180224.1 [77.0 kB] Get:19 http://localhost:3142/debian unstable/main amd64 automake all 1:1.16.2-4 [801 kB] Get:20 http://localhost:3142/debian unstable/main amd64 autopoint all 0.19.8.1-10 [435 kB] Get:21 http://localhost:3142/debian unstable/main amd64 libcrypt-dev amd64 1:4.4.17-1 [104 kB] Get:22 http://localhost:3142/debian unstable/main amd64 libc6-dev amd64 2.31-3 [2395 kB] Get:23 http://localhost:3142/debian unstable/main amd64 libasan6 amd64 10.2.0-13 [340 kB] Get:24 http://localhost:3142/debian unstable/main amd64 libubsan1 amd64 10.2.0-13 [134 kB] Get:25 http://localhost:3142/debian unstable/main amd64 libgcc-10-dev amd64 10.2.0-13 [2327 kB] Get:26 http://localhost:3142/debian unstable/main amd64 gcc-10 amd64 10.2.0-13 [15.9 MB] Get:27 http://localhost:3142/debian unstable/main amd64 gcc amd64 4:10.2.0-1 [5196 B] Get:28 http://localhost:3142/debian unstable/main amd64 libstdc++-10-dev amd64 10.2.0-13 [1738 kB] Get:29 http://localhost:3142/debian unstable/main amd64 g++-10 amd64 10.2.0-13 [8670 kB] Get:30 http://localhost:3142/debian unstable/main amd64 g++ amd64 4:10.2.0-1 [1644 B] Get:31 http://localhost:3142/debian unstable/main amd64 libdpkg-perl all 1.20.5 [1473 kB] Get:32 http://localhost:3142/debian unstable/main amd64 dpkg-dev all 1.20.5 [1909 kB] Get:33 http://localhost:3142/debian unstable/main amd64 build-essential amd64 12.8 [7640 B] Get:34 http://localhost:3142/debian unstable/main amd64 libtool all 2.4.6-14 [513 kB] Get:35 http://localhost:3142/debian unstable/main amd64 dh-autoreconf all 19 [16.9 kB] Get:36 http://localhost:3142/debian unstable/main amd64 libdebhelper-perl all 13.2.1 [188 kB] Get:37 http://localhost:3142/debian unstable/main amd64 libarchive-zip-perl all 1.68-1 [104 kB] Get:38 http://localhost:3142/debian unstable/main amd64 libsub-override-perl all 0.09-2 [10.2 kB] Get:39 http://localhost:3142/debian unstable/main amd64 libfile-stripnondeterminism-perl all 1.9.0-1 [25.5 kB] Get:40 http://localhost:3142/debian unstable/main amd64 dh-strip-nondeterminism all 1.9.0-1 [15.2 kB] Get:41 http://localhost:3142/debian unstable/main amd64 libelf1 amd64 0.181-1 [164 kB] Get:42 http://localhost:3142/debian unstable/main amd64 dwz amd64 0.13-5 [151 kB] Get:43 http://localhost:3142/debian unstable/main amd64 libglib2.0-0 amd64 2.66.0-2 [1361 kB] Get:44 http://localhost:3142/debian unstable/main amd64 libicu67 amd64 67.1-4 [8624 kB] Get:45 http://localhost:3142/debian unstable/main amd64 libxml2 amd64 2.9.10+dfsg-6 [692 kB] Get:46 http://localhost:3142/debian unstable/main amd64 libcroco3 amd64 0.6.13-1 [146 kB] Get:47 http://localhost:3142/debian unstable/main amd64 gettext amd64 0.19.8.1-10 [1303 kB] Get:48 http://localhost:3142/debian unstable/main amd64 intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get:49 http://localhost:3142/debian unstable/main amd64 po-debconf all 1.0.21 [248 kB] Get:50 http://localhost:3142/debian unstable/main amd64 debhelper all 13.2.1 [1007 kB] Get:51 http://localhost:3142/debian unstable/main amd64 libfakeroot amd64 1.25.2-1 [46.9 kB] Get:52 http://localhost:3142/debian unstable/main amd64 fakeroot amd64 1.25.2-1 [86.8 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 61.8 MB in 1s (80.6 MB/s) Selecting previously unselected package bsdextrautils. (Reading database ... 10509 files and directories currently installed.) Preparing to unpack .../00-bsdextrautils_2.36-3+b1_amd64.deb ... Unpacking bsdextrautils (2.36-3+b1) ... Selecting previously unselected package libuchardet0:amd64. Preparing to unpack .../01-libuchardet0_0.0.7-1_amd64.deb ... Unpacking libuchardet0:amd64 (0.0.7-1) ... Selecting previously unselected package groff-base. Preparing to unpack .../02-groff-base_1.22.4-5_amd64.deb ... Unpacking groff-base (1.22.4-5) ... Selecting previously unselected package libpipeline1:amd64. Preparing to unpack .../03-libpipeline1_1.5.3-1_amd64.deb ... Unpacking libpipeline1:amd64 (1.5.3-1) ... Selecting previously unselected package man-db. Preparing to unpack .../04-man-db_2.9.3-2_amd64.deb ... Unpacking man-db (2.9.3-2) ... Selecting previously unselected package perl-modules-5.30. Preparing to unpack .../05-perl-modules-5.30_5.30.3-4_all.deb ... Unpacking perl-modules-5.30 (5.30.3-4) ... Selecting previously unselected package libperl5.30:amd64. Preparing to unpack .../06-libperl5.30_5.30.3-4_amd64.deb ... Unpacking libperl5.30:amd64 (5.30.3-4) ... Selecting previously unselected package perl. Preparing to unpack .../07-perl_5.30.3-4_amd64.deb ... Unpacking perl (5.30.3-4) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../08-sensible-utils_0.0.12+nmu1_all.deb ... Unpacking sensible-utils (0.0.12+nmu1) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../09-libmagic-mgc_1%3a5.38-5_amd64.deb ... Unpacking libmagic-mgc (1:5.38-5) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../10-libmagic1_1%3a5.38-5_amd64.deb ... Unpacking libmagic1:amd64 (1:5.38-5) ... Selecting previously unselected package file. Preparing to unpack .../11-file_1%3a5.38-5_amd64.deb ... Unpacking file (1:5.38-5) ... Selecting previously unselected package gettext-base. Preparing to unpack .../12-gettext-base_0.19.8.1-10_amd64.deb ... Unpacking gettext-base (0.19.8.1-10) ... Selecting previously unselected package libsigsegv2:amd64. Preparing to unpack .../13-libsigsegv2_2.12-2_amd64.deb ... Unpacking libsigsegv2:amd64 (2.12-2) ... Selecting previously unselected package m4. Preparing to unpack .../14-m4_1.4.18-4_amd64.deb ... Unpacking m4 (1.4.18-4) ... Selecting previously unselected package autoconf. Preparing to unpack .../15-autoconf_2.69-11.1_all.deb ... Unpacking autoconf (2.69-11.1) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../16-autotools-dev_20180224.1_all.deb ... Unpacking autotools-dev (20180224.1) ... Selecting previously unselected package automake. Preparing to unpack .../17-automake_1%3a1.16.2-4_all.deb ... Unpacking automake (1:1.16.2-4) ... Selecting previously unselected package autopoint. Preparing to unpack .../18-autopoint_0.19.8.1-10_all.deb ... Unpacking autopoint (0.19.8.1-10) ... Selecting previously unselected package libcrypt-dev:amd64. Preparing to unpack .../19-libcrypt-dev_1%3a4.4.17-1_amd64.deb ... Unpacking libcrypt-dev:amd64 (1:4.4.17-1) ... Selecting previously unselected package libc6-dev:amd64. Preparing to unpack .../20-libc6-dev_2.31-3_amd64.deb ... Unpacking libc6-dev:amd64 (2.31-3) ... Selecting previously unselected package libasan6:amd64. Preparing to unpack .../21-libasan6_10.2.0-13_amd64.deb ... Unpacking libasan6:amd64 (10.2.0-13) ... Selecting previously unselected package libubsan1:amd64. Preparing to unpack .../22-libubsan1_10.2.0-13_amd64.deb ... Unpacking libubsan1:amd64 (10.2.0-13) ... Selecting previously unselected package libgcc-10-dev:amd64. Preparing to unpack .../23-libgcc-10-dev_10.2.0-13_amd64.deb ... Unpacking libgcc-10-dev:amd64 (10.2.0-13) ... Selecting previously unselected package gcc-10. Preparing to unpack .../24-gcc-10_10.2.0-13_amd64.deb ... Unpacking gcc-10 (10.2.0-13) ... Selecting previously unselected package gcc. Preparing to unpack .../25-gcc_4%3a10.2.0-1_amd64.deb ... Unpacking gcc (4:10.2.0-1) ... Selecting previously unselected package libstdc++-10-dev:amd64. Preparing to unpack .../26-libstdc++-10-dev_10.2.0-13_amd64.deb ... Unpacking libstdc++-10-dev:amd64 (10.2.0-13) ... Selecting previously unselected package g++-10. Preparing to unpack .../27-g++-10_10.2.0-13_amd64.deb ... Unpacking g++-10 (10.2.0-13) ... Selecting previously unselected package g++. Preparing to unpack .../28-g++_4%3a10.2.0-1_amd64.deb ... Unpacking g++ (4:10.2.0-1) ... Selecting previously unselected package libdpkg-perl. Preparing to unpack .../29-libdpkg-perl_1.20.5_all.deb ... Unpacking libdpkg-perl (1.20.5) ... Selecting previously unselected package dpkg-dev. Preparing to unpack .../30-dpkg-dev_1.20.5_all.deb ... Unpacking dpkg-dev (1.20.5) ... Selecting previously unselected package build-essential. Preparing to unpack .../31-build-essential_12.8_amd64.deb ... Unpacking build-essential (12.8) ... Selecting previously unselected package libtool. Preparing to unpack .../32-libtool_2.4.6-14_all.deb ... Unpacking libtool (2.4.6-14) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../33-dh-autoreconf_19_all.deb ... Unpacking dh-autoreconf (19) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../34-libdebhelper-perl_13.2.1_all.deb ... Unpacking libdebhelper-perl (13.2.1) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../35-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../36-libsub-override-perl_0.09-2_all.deb ... Unpacking libsub-override-perl (0.09-2) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../37-libfile-stripnondeterminism-perl_1.9.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.9.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../38-dh-strip-nondeterminism_1.9.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.9.0-1) ... Selecting previously unselected package libelf1:amd64. Preparing to unpack .../39-libelf1_0.181-1_amd64.deb ... Unpacking libelf1:amd64 (0.181-1) ... Selecting previously unselected package dwz. Preparing to unpack .../40-dwz_0.13-5_amd64.deb ... Unpacking dwz (0.13-5) ... Selecting previously unselected package libglib2.0-0:amd64. Preparing to unpack .../41-libglib2.0-0_2.66.0-2_amd64.deb ... Unpacking libglib2.0-0:amd64 (2.66.0-2) ... Selecting previously unselected package libicu67:amd64. Preparing to unpack .../42-libicu67_67.1-4_amd64.deb ... Unpacking libicu67:amd64 (67.1-4) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../43-libxml2_2.9.10+dfsg-6_amd64.deb ... Unpacking libxml2:amd64 (2.9.10+dfsg-6) ... Selecting previously unselected package libcroco3:amd64. Preparing to unpack .../44-libcroco3_0.6.13-1_amd64.deb ... Unpacking libcroco3:amd64 (0.6.13-1) ... Selecting previously unselected package gettext. Preparing to unpack .../45-gettext_0.19.8.1-10_amd64.deb ... Unpacking gettext (0.19.8.1-10) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../46-intltool-debian_0.35.0+20060710.5_all.deb ... Unpacking intltool-debian (0.35.0+20060710.5) ... Selecting previously unselected package po-debconf. Preparing to unpack .../47-po-debconf_1.0.21_all.deb ... Unpacking po-debconf (1.0.21) ... Selecting previously unselected package debhelper. Preparing to unpack .../48-debhelper_13.2.1_all.deb ... Unpacking debhelper (13.2.1) ... Selecting previously unselected package libfakeroot:amd64. Preparing to unpack .../49-libfakeroot_1.25.2-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.2-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../50-fakeroot_1.25.2-1_amd64.deb ... Unpacking fakeroot (1.25.2-1) ... Selecting previously unselected package sbuild-build-depends-main-dummy. Preparing to unpack .../51-sbuild-build-depends-main-dummy_0.invalid.0_amd64.deb ... Unpacking sbuild-build-depends-main-dummy (0.invalid.0) ... Setting up libpipeline1:amd64 (1.5.3-1) ... Setting up perl-modules-5.30 (5.30.3-4) ... Setting up bsdextrautils (2.36-3+b1) ... update-alternatives: using /usr/bin/write.ul to provide /usr/bin/write (write) in auto mode Setting up libicu67:amd64 (67.1-4) ... Setting up libmagic-mgc (1:5.38-5) ... Setting up libglib2.0-0:amd64 (2.66.0-2) ... No schema files found: doing nothing. Setting up libmagic1:amd64 (1:5.38-5) ... Setting up gettext-base (0.19.8.1-10) ... Setting up file (1:5.38-5) ... Setting up libfakeroot:amd64 (1.25.2-1) ... Setting up libasan6:amd64 (10.2.0-13) ... Setting up fakeroot (1.25.2-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Setting up autotools-dev (20180224.1) ... Setting up libsigsegv2:amd64 (2.12-2) ... Setting up autopoint (0.19.8.1-10) ... Setting up libubsan1:amd64 (10.2.0-13) ... Setting up sensible-utils (0.0.12+nmu1) ... Setting up libcrypt-dev:amd64 (1:4.4.17-1) ... Setting up libuchardet0:amd64 (0.0.7-1) ... Setting up libperl5.30:amd64 (5.30.3-4) ... Setting up libc6-dev:amd64 (2.31-3) ... Setting up libelf1:amd64 (0.181-1) ... Setting up libxml2:amd64 (2.9.10+dfsg-6) ... Setting up libgcc-10-dev:amd64 (10.2.0-13) ... Setting up m4 (1.4.18-4) ... Setting up perl (5.30.3-4) ... Setting up libcroco3:amd64 (0.6.13-1) ... Setting up gcc-10 (10.2.0-13) ... Setting up libdpkg-perl (1.20.5) ... Setting up autoconf (2.69-11.1) ... Setting up dwz (0.13-5) ... Setting up groff-base (1.22.4-5) ... Setting up libsub-override-perl (0.09-2) ... Setting up automake (1:1.16.2-4) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up gettext (0.19.8.1-10) ... Setting up libstdc++-10-dev:amd64 (10.2.0-13) ... Setting up g++-10 (10.2.0-13) ... Setting up libtool (2.4.6-14) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.2.1) ... Setting up man-db (2.9.3-2) ... Not building database; man-db/auto-update is not 'true'. Setting up gcc (4:10.2.0-1) ... Setting up dpkg-dev (1.20.5) ... Setting up intltool-debian (0.35.0+20060710.5) ... Setting up g++ (4:10.2.0-1) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode Setting up build-essential (12.8) ... Setting up libfile-stripnondeterminism-perl (1.9.0-1) ... Setting up po-debconf (1.0.21) ... Setting up dh-strip-nondeterminism (1.9.0-1) ... Setting up debhelper (13.2.1) ... Setting up dh-autoreconf (19) ... Setting up sbuild-build-depends-main-dummy (0.invalid.0) ... Processing triggers for libc-bin (2.31-3) ... +------------------------------------------------------------------------------+ | Check architectures | +------------------------------------------------------------------------------+ Arch check ok (amd64 included in m68k powerpc ppc64 i386) +------------------------------------------------------------------------------+ | Build environment | +------------------------------------------------------------------------------+ Kernel: Linux 5.7.0-2-amd64 #1 SMP Debian 5.7.10-1 (2020-07-26) amd64 (x86_64) Toolchain package versions: binutils_2.35.1-1 dpkg-dev_1.20.5 g++-10_10.2.0-13 gcc-10_10.2.0-13 libc6-dev_2.31-3 libstdc++-10-dev_10.2.0-13 libstdc++6_10.2.0-13 linux-libc-dev_5.8.10-1 Package versions: adduser_3.118 apt_2.1.10 autoconf_2.69-11.1 automake_1:1.16.2-4 autopoint_0.19.8.1-10 autotools-dev_20180224.1 base-files_11 base-passwd_3.5.47 bash_5.0-7 binutils_2.35.1-1 binutils-common_2.35.1-1 binutils-x86-64-linux-gnu_2.35.1-1 bsdextrautils_2.36-3+b1 bsdutils_1:2.36-3+b1 build-essential_12.8 bzip2_1.0.8-4 coreutils_8.32-4+b1 cpp_4:10.2.0-1 cpp-10_10.2.0-13 cpp-7_7.5.0-6 dash_0.5.10.2-7 debconf_1.5.74 debhelper_13.2.1 debian-archive-keyring_2019.1 debianutils_4.11.2 dh-autoreconf_19 dh-strip-nondeterminism_1.9.0-1 diffutils_1:3.7-3 dirmngr_2.2.20-1 dpkg_1.20.5 dpkg-dev_1.20.5 dwz_0.13-5 e2fsprogs_1.45.6-1 eatmydata_105-9 fakeroot_1.25.2-1 fdisk_2.36-3+b1 file_1:5.38-5 findutils_4.7.0-1 g++_4:10.2.0-1 g++-10_10.2.0-13 gcc_4:10.2.0-1 gcc-10_10.2.0-13 gcc-10-base_10.2.0-13 gcc-7-base_7.5.0-6 gcc-8-base_8.4.0-4 gcc-9-base_9.3.0-18 gettext_0.19.8.1-10 gettext-base_0.19.8.1-10 gnupg_2.2.20-1 gnupg-l10n_2.2.20-1 gnupg-utils_2.2.20-1 gpg_2.2.20-1 gpg-agent_2.2.20-1 gpg-wks-client_2.2.20-1 gpg-wks-server_2.2.20-1 gpgconf_2.2.20-1 gpgsm_2.2.20-1 gpgv_2.2.20-1 grep_3.4-1 groff-base_1.22.4-5 gzip_1.10-2 hostname_3.23 init-system-helpers_1.58 intltool-debian_0.35.0+20060710.5 libacl1_2.2.53-8 libapt-pkg5.0_1.8.4 libapt-pkg6.0_2.1.10 libarchive-zip-perl_1.68-1 libasan4_7.5.0-6 libasan6_10.2.0-13 libassuan0_2.5.3-7.1 libatomic1_10.2.0-13 libattr1_1:2.4.48-5 libaudit-common_1:2.8.5-3 libaudit1_1:2.8.5-3+b1 libbinutils_2.35.1-1 libblkid1_2.36-3+b1 libbz2-1.0_1.0.8-4 libc-bin_2.31-3 libc-dev-bin_2.31-3 libc6_2.31-3 libc6-dev_2.31-3 libcap-ng0_0.7.9-2.2 libcc1-0_10.2.0-13 libcilkrts5_7.5.0-6 libcom-err2_1.45.6-1 libcroco3_0.6.13-1 libcrypt-dev_1:4.4.17-1 libcrypt1_1:4.4.17-1 libctf-nobfd0_2.35.1-1 libctf0_2.35.1-1 libdb5.3_5.3.28+dfsg1-0.6 libdebconfclient0_0.254 libdebhelper-perl_13.2.1 libdpkg-perl_1.20.5 libeatmydata1_105-9 libelf1_0.181-1 libext2fs2_1.45.6-1 libfakeroot_1.25.2-1 libfdisk1_2.36-3+b1 libffi6_3.2.1-9 libffi7_3.3-4 libfile-stripnondeterminism-perl_1.9.0-1 libgcc-10-dev_10.2.0-13 libgcc-s1_10.2.0-13 libgcrypt20_1.8.6-2 libgdbm-compat4_1.18.1-5.1 libgdbm5_1.14.1-6+b1 libgdbm6_1.18.1-5.1 libglib2.0-0_2.66.0-2 libgmp10_2:6.2.0+dfsg-6 libgnutls30_3.6.15-4 libgomp1_10.2.0-13 libgpg-error0_1.38-2 libhogweed4_3.5.1+really3.4.1-1 libhogweed6_3.6-2 libicu67_67.1-4 libidn2-0_2.3.0-1 libisl19_0.20-2 libisl22_0.22.1-1 libitm1_10.2.0-13 libksba8_1.4.0-2 libldap-2.4-2_2.4.53+dfsg-1 libldap-common_2.4.53+dfsg-1 liblsan0_10.2.0-13 liblz4-1_1.9.2-2 liblzma5_5.2.4-1+b1 libmagic-mgc_1:5.38-5 libmagic1_1:5.38-5 libmount1_2.36-3+b1 libmpc3_1.2.0-1 libmpfr6_4.1.0-3 libmpx2_8.4.0-4 libncursesw6_6.2+20200918-1 libnettle6_3.5.1+really3.4.1-1 libnettle8_3.6-2 libnpth0_1.6-2 libp11-kit0_0.23.21-2 libpam-modules_1.3.1-5 libpam-modules-bin_1.3.1-5 libpam-runtime_1.3.1-5 libpam0g_1.3.1-5 libpcre2-8-0_10.34-7 libpcre3_2:8.39-13 libperl5.26_5.26.2-7+b1 libperl5.30_5.30.3-4 libpipeline1_1.5.3-1 libquadmath0_10.2.0-13 libreadline7_7.0-5 libreadline8_8.0-4 libsasl2-2_2.1.27+dfsg-2 libsasl2-modules-db_2.1.27+dfsg-2 libseccomp2_2.4.4-1 libselinux1_3.1-2 libsemanage-common_3.1-1 libsemanage1_3.1-1 libsepol1_3.1-1 libsigsegv2_2.12-2 libsmartcols1_2.36-3+b1 libsqlite3-0_3.33.0-1 libss2_1.45.6-1 libstdc++-10-dev_10.2.0-13 libstdc++6_10.2.0-13 libsub-override-perl_0.09-2 libsystemd0_246.6-1 libtasn1-6_4.16.0-2 libtinfo6_6.2+20200918-1 libtool_2.4.6-14 libtsan0_10.2.0-13 libubsan0_7.5.0-6 libubsan1_10.2.0-13 libuchardet0_0.0.7-1 libudev1_246.6-1 libunistring2_0.9.10-4 libuuid1_2.36-3+b1 libxml2_2.9.10+dfsg-6 libzstd1_1.4.5+dfsg-4 linux-libc-dev_5.8.10-1 login_1:4.8.1-1 logsave_1.45.6-1 lsb-base_11.1.0 m4_1.4.18-4 make_4.3-4 man-db_2.9.3-2 mawk_1.3.4.20200120-2 mount_2.36-3+b1 ncurses-base_6.2+20200918-1 ncurses-bin_6.2+20200918-1 netbase_6.2 passwd_1:4.8.1-1 patch_2.7.6-6 perl_5.30.3-4 perl-base_5.30.3-4 perl-modules-5.26_5.26.2-7 perl-modules-5.30_5.30.3-4 pinentry-curses_1.1.0-4 po-debconf_1.0.21 readline-common_8.0-4 sbuild-build-depends-main-dummy_0.invalid.0 sed_4.7-1 sensible-utils_0.0.12+nmu1 sysvinit-utils_2.96-5 tar_1.30+dfsg-7 tzdata_2020a-1 util-linux_2.36-3+b1 xz-utils_5.2.4-1+b1 zlib1g_1:1.2.11.dfsg-2 +------------------------------------------------------------------------------+ | Build | +------------------------------------------------------------------------------+ Unpack source ------------- -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.0 Source: mac-fdisk Binary: mac-fdisk, pmac-fdisk, mac-fdisk-cross, pmac-fdisk-cross Architecture: m68k powerpc ppc64 i386 Version: 0.1-18 Maintainer: John Paul Adrian Glaubitz Standards-Version: 3.5.8.0 Vcs-Browser: https://github.com/glaubitz/mac-fdisk-debian Vcs-Git: git://github.com/glaubitz/mac-fdisk-debian.git Build-Depends: debhelper Package-List: mac-fdisk deb utils optional arch=m68k,powerpc,ppc64 mac-fdisk-cross deb otherosfs optional arch=i386,m68k pmac-fdisk deb utils optional arch=powerpc,ppc64 pmac-fdisk-cross deb otherosfs optional arch=i386,m68k Checksums-Sha1: 47013d3d74892d53c31a73e75c32fda2bf173252 55817 mac-fdisk_0.1.orig.tar.gz c281f8a0000030b844b8c5fa2d7f6003d015d48f 20267 mac-fdisk_0.1-18.diff.gz Checksums-Sha256: 7059fc4ba41ca2ef857e1092e9c56e910f27693d407b5c3d78f7102ad0c56a66 55817 mac-fdisk_0.1.orig.tar.gz 49e14aab9deefac5da67ebe8ce72412d27091853806fe2da690ff3854704181e 20267 mac-fdisk_0.1-18.diff.gz Files: 24476329fe86ef6ccf222e233e2a99f1 55817 mac-fdisk_0.1.orig.tar.gz 4fa9e40c6f06def48286fec018841d2c 20267 mac-fdisk_0.1-18.diff.gz -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEYv+KdYTgKVaVRgAGdCY7N/W1+RMFAlnIxpoACgkQdCY7N/W1 +ROVFQ/8CC5po0uxpCYznsxJ/GWerobDX1PjLqCkBPhmZYr547uZQd+HW1P578iw UTxeF+SF9QdqtbmdHhf977p2pX3zTseOVn0TMzlkxenIgxFGY25p6BRhGOlVMAxd hQitzrGc58iu928Dps2KBtog3NBos9zNzRdlSDW2RGOAKqX9D/KBgm3OqKrvNR3u 9o3EZoO+BpsgxqkygkoCq2qzmM+8uj/ifZD86+nhNFWEvo6NDfqj8xUKr2g8xIjr XVUEpR6CET2t5lJX/7VAgk6U/enUEzKBHmtlFbrNs/mVxl4EykJnV6LxVP78k47R FgqkkPqhMcUf5/VPi24t0sJcMig3D8wNkd5GWvCZGamMfc/1yZzCj0hKifRlwd+k hDtZHM24hP0ycVBUYnkKItWZP1BcnRYkdlkZR3414Ygeh0H5uiOzzzjbHumOdYPw UKH6HvfOOzpSGmAF8Hpq9HolnFSZs37THL5hLfX8Mtesb+kkqepWeO4JK3vqxp/h lmZrnBYggVWdjaHsFEGDmUjCSxB2mnP/OmlpO5u6nLa6y4ZElb8Ig3N5T98EJc5T Q4wbwX3wrGxNTlfh6VA9TtMXrSrL/TRUhHCHFl5eF9v5TRpQYvwoGqd71ZUIXuxO v5D9i1KMeZ+iuvvg4qVkytEF6WoADXPE4cetTqNXaIGvQ31jmnQ= =XekO -----END PGP SIGNATURE----- gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/tmp/dpkg-verify-sig.4RrcWAn7/trustedkeys.kbx': General error gpgv: Signature made Mon Sep 25 09:04:26 2017 UTC gpgv: using RSA key 62FF8A7584E029569546000674263B37F5B5F913 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./mac-fdisk_0.1-18.dsc dpkg-source: info: extracting mac-fdisk in /<> dpkg-source: info: unpacking mac-fdisk_0.1.orig.tar.gz dpkg-source: info: applying mac-fdisk_0.1-18.diff.gz dpkg-source: info: upstream files that have been modified: /<>/Makefile /<>/dpme.h /<>/dump.c /<>/fdisk.c /<>/fdisklabel.c /<>/fdisklabel.h /<>/io.c /<>/kernel-defs.h /<>/mac-fdisk.8.in /<>/partition_map.c /<>/partition_map.h /<>/pdisk.c /<>/pmac-fdisk.8.in Check disk space ---------------- Sufficient free space for build +------------------------------------------------------------------------------+ | Starting Timed Build Commands | +------------------------------------------------------------------------------+ /usr/share/debomatic/sbuildcommands/starting-build-commands/no-network mac-fdisk_0.1-18 sid amd64 ------------------------------------------------------------------------------------------------- I: Finished running '/usr/share/debomatic/sbuildcommands/starting-build-commands/no-network mac-fdisk_0.1-18 sid amd64'. Finished processing commands. -------------------------------------------------------------------------------- User Environment ---------------- APT_CONFIG=/var/lib/sbuild/apt.conf DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus HOME=/sbuild-nonexistent LANG=C LC_ALL=C.UTF-8 LD_LIBRARY_PATH=/usr/lib/libeatmydata LD_PRELOAD=libeatmydata.so LOGNAME=debomatic PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games PWD=/<> SCHROOT_ALIAS_NAME=sid-amd64-debomatic SCHROOT_CHROOT_NAME=sid-amd64-debomatic SCHROOT_COMMAND=env SCHROOT_GID=112 SCHROOT_GROUP=sbuild SCHROOT_SESSION_ID=sid-amd64-debomatic-27ac2207-c2da-442a-940c-b29475121d49 SCHROOT_UID=1001 SCHROOT_USER=debomatic SHELL=/bin/sh USER=debomatic XDG_RUNTIME_DIR=/run/user/1001 XDG_SESSION_CLASS=background XDG_SESSION_ID=c3940951 XDG_SESSION_TYPE=unspecified dpkg-buildpackage ----------------- Command: dpkg-buildpackage -us -uc -rfakeroot dpkg-buildpackage: info: source package mac-fdisk dpkg-buildpackage: info: source version 0.1-18 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by John Paul Adrian Glaubitz dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean test -f debian/rules rm -f build make clean make[1]: Entering directory '/<>' rm -f *.o pdisk fdisk mac-fdisk pmac-fdisk make[1]: Leaving directory '/<>' rm -f `find . -name "*~"` rm -rf debian/tmp debian/mac-fdisk-cross debian/pmac-fdisk debian/pmac-fdisk-cross debian/files* core debian/*substvars dpkg-source -b . dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1) dpkg-source: info: using source format '1.0' dpkg-source: info: building mac-fdisk using existing mac-fdisk_0.1.orig.tar.gz dpkg-source: info: building mac-fdisk in mac-fdisk_0.1-18.diff.gz dpkg-source: warning: the diff modifies the following upstream files: Makefile dpme.h dump.c fdisk.c fdisklabel.c fdisklabel.h io.c kernel-defs.h mac-fdisk.8.in partition_map.c partition_map.h pdisk.c pmac-fdisk.8.in dpkg-source: info: use the '3.0 (quilt)' format to have separate and documented changes to upstream files, see dpkg-source(1) dpkg-source: info: building mac-fdisk in mac-fdisk_0.1-18.dsc debian/rules build test -f debian/rules make CFLAGS="-O2 -g -Wall" make[1]: Entering directory '/<>' cc -O2 -g -Wall -c -o pdisk.o pdisk.c In file included from pdisk.c:43: kernel-defs.h:18: warning: "_IOC_SIZEBITS" redefined 18 | #define _IOC_SIZEBITS 13 | In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, from /usr/include/linux/ioctl.h:5, from /usr/include/asm-generic/ioctls.h:5, from /usr/include/x86_64-linux-gnu/asm/ioctls.h:1, from /usr/include/x86_64-linux-gnu/bits/ioctls.h:23, from /usr/include/x86_64-linux-gnu/sys/ioctl.h:26, from pdisk.c:42: /usr/include/asm-generic/ioctl.h:32: note: this is the location of the previous definition 32 | # define _IOC_SIZEBITS 14 | In file included from pdisk.c:43: kernel-defs.h:19: warning: "_IOC_DIRBITS" redefined 19 | #define _IOC_DIRBITS 3 | In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, from /usr/include/linux/ioctl.h:5, from /usr/include/asm-generic/ioctls.h:5, from /usr/include/x86_64-linux-gnu/asm/ioctls.h:1, from /usr/include/x86_64-linux-gnu/bits/ioctls.h:23, from /usr/include/x86_64-linux-gnu/sys/ioctl.h:26, from pdisk.c:42: /usr/include/asm-generic/ioctl.h:36: note: this is the location of the previous definition 36 | # define _IOC_DIRBITS 2 | pdisk.c: In function ‘main’: pdisk.c:156:5: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 156 | exit(err); | ^~~~ pdisk.c:156:5: warning: incompatible implicit declaration of built-in function ‘exit’ pdisk.c:52:1: note: include ‘’ or provide a declaration of ‘exit’ 51 | #include "version.h" +++ |+#include 52 | pdisk.c: In function ‘do_create_partition’: pdisk.c:469:6: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration] 469 | if (strncmp(type_name, kFreeType, DPISTRLEN) == 0) { | ^~~~~~~ In file included from partition_map.h:28, from pdisk.c:49: dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ pdisk.c:469:36: note: in expansion of macro ‘DPISTRLEN’ 469 | if (strncmp(type_name, kFreeType, DPISTRLEN) == 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ pdisk.c:473:35: note: in expansion of macro ‘DPISTRLEN’ 473 | if (strncmp(type_name, kMapType, DPISTRLEN) == 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here pdisk.c:439:10: warning: unused variable ‘mult’ [-Wunused-variable] 439 | long mult; | ^~~~ pdisk.c: In function ‘do_reorder’: pdisk.c:601:21: warning: unused variable ‘cur’ [-Wunused-variable] 601 | partition_map * cur; | ^~~ cc -O2 -g -Wall -c -o dump.o dump.c dump.c:65:17: warning: missing braces around initializer [-Wmissing-braces] 65 | NAMES plist[] = { | ^ 66 | "Drvr", "Apple_Driver", | { } 67 | "Dr43", "Apple_Driver43", | { } 68 | "Free", "Apple_Free", | { } 69 | " HFS", "Apple_HFS", | { } 70 | " MFS", "Apple_MFS", | { } 71 | "PDOS", "Apple_PRODOS", | { } 72 | "junk", "Apple_Scratch", | { } 73 | "unix", "Apple_UNIX_SVR2", | { } 74 | " map", "Apple_partition_map", | { } 75 | 0, 0 | { 76 | }; | } dump.c: In function ‘dump_partition_map’: dump.c:169:14: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 169 | printf("%*s type name " | ~^~ | | | int 170 | "%*s %-*s ( size ) system\n", strlen(map->name)+1, "#", j, "length", j, "base"); | ~~~~~~~~~~~~~~~~~~~ | | | size_t {aka long unsigned int} dump.c: In function ‘dump_partition_entry’: dump.c:229:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] 229 | printf("%s%-4d %.4s %-18.32s ", dev, entry->disk_address, s, p->dpme_name); | ~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %-4ld dump.c:232:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] 232 | printf("%s%-4d %20.32s %-18.32s ", dev, | ~~~^ | | | int | %-4ld 233 | entry->disk_address, p->dpme_type, p->dpme_name); | ~~~~~~~~~~~~~~~~~~~ | | | long int dump.c:204:10: warning: unused variable ‘bp’ [-Wunused-variable] 204 | BZB *bp; | ^~ dump.c:201:27: warning: variable ‘map’ set but not used [-Wunused-but-set-variable] 201 | partition_map_header *map; | ^~~ dump.c: In function ‘list_all_disks’: dump.c:319:21: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 319 | data = (DPME *) malloc(PBLOCK_SIZE); | ^~~~~~ dump.c:319:21: warning: incompatible implicit declaration of built-in function ‘malloc’ dump.c:45:1: note: include ‘’ or provide a declaration of ‘malloc’ 44 | #include "dump.h" +++ |+#include 45 | dump.c:362:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] 362 | free(data); | ^~~~ dump.c:362:5: warning: incompatible implicit declaration of built-in function ‘free’ dump.c:362:5: note: include ‘’ or provide a declaration of ‘free’ dump.c:317:10: warning: unused variable ‘t’ [-Wunused-variable] 317 | long t; | ^ dump.c: In function ‘show_data_structures’: dump.c:384:46: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] 384 | printf("map %d blocks out of %d, media %u blocks\n", | ~^ | | | unsigned int | %lu 385 | map->blocks_in_map, map->maximum_in_map, map->media_size); | ~~~~~~~~~~~~~~~ | | | long unsigned int dump.c:428:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] 428 | printf("%2d: %20.32s ", | ~~^ | | | int | %2ld 429 | entry->disk_address, p->dpme_type); | ~~~~~~~~~~~~~~~~~~~ | | | long int dump.c:452:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] 452 | printf("%2d: ", entry->disk_address); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %2ld dump.c:469:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] 469 | printf("%2d: ", entry->disk_address); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %2ld dump.c:497:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] 497 | printf(" %2d", bzb_slice_get(bp)-1); | ~~^ | | | int | %2ld cc -O2 -g -Wall -c -o partition_map.o partition_map.c In file included from partition_map.c:38: kernel-defs.h:18: warning: "_IOC_SIZEBITS" redefined 18 | #define _IOC_SIZEBITS 13 | In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, from /usr/include/linux/ioctl.h:5, from /usr/include/asm-generic/ioctls.h:5, from /usr/include/x86_64-linux-gnu/asm/ioctls.h:1, from /usr/include/x86_64-linux-gnu/bits/ioctls.h:23, from /usr/include/x86_64-linux-gnu/sys/ioctl.h:26, from partition_map.c:37: /usr/include/asm-generic/ioctl.h:32: note: this is the location of the previous definition 32 | # define _IOC_SIZEBITS 14 | In file included from partition_map.c:38: kernel-defs.h:19: warning: "_IOC_DIRBITS" redefined 19 | #define _IOC_DIRBITS 3 | In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, from /usr/include/linux/ioctl.h:5, from /usr/include/asm-generic/ioctls.h:5, from /usr/include/x86_64-linux-gnu/asm/ioctls.h:1, from /usr/include/x86_64-linux-gnu/bits/ioctls.h:23, from /usr/include/x86_64-linux-gnu/sys/ioctl.h:26, from partition_map.c:37: /usr/include/asm-generic/ioctl.h:36: note: this is the location of the previous definition 36 | # define _IOC_DIRBITS 2 | partition_map.c: In function ‘open_partition_map’: partition_map.c:129:36: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 129 | map = (partition_map_header *) malloc(sizeof(partition_map_header)); | ^~~~~~ partition_map.c:129:36: warning: incompatible implicit declaration of built-in function ‘malloc’ partition_map.c:47:1: note: include ‘’ or provide a declaration of ‘malloc’ 46 | #include "errors.h" +++ |+#include 47 | partition_map.c:109:19: warning: unused variable ‘length’ [-Wunused-variable] 109 | unsigned long length; | ^~~~~~ partition_map.c: In function ‘close_partition_map’: partition_map.c:184:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] 184 | free(map->misc); | ^~~~ partition_map.c:184:5: warning: incompatible implicit declaration of built-in function ‘free’ partition_map.c:184:5: note: include ‘’ or provide a declaration of ‘free’ partition_map.c: In function ‘read_partition_map’: partition_map.c:203:21: warning: incompatible implicit declaration of built-in function ‘malloc’ 203 | data = (DPME *) malloc(PBLOCK_SIZE); | ^~~~~~ partition_map.c:203:21: note: include ‘’ or provide a declaration of ‘malloc’ partition_map.c:210:2: warning: incompatible implicit declaration of built-in function ‘free’ 210 | free(data); | ^~~~ partition_map.c:210:2: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:214:2: warning: incompatible implicit declaration of built-in function ‘free’ 214 | free(data); | ^~~~ partition_map.c:214:2: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:221:3: warning: incompatible implicit declaration of built-in function ‘free’ 221 | free(data); | ^~~~ partition_map.c:221:3: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:238:3: warning: incompatible implicit declaration of built-in function ‘free’ 238 | free(data); | ^~~~ partition_map.c:238:3: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:243:3: warning: incompatible implicit declaration of built-in function ‘free’ 243 | free(data); | ^~~~ partition_map.c:243:3: note: include ‘’ or provide a declaration of ‘free’ partition_map.c: In function ‘write_partition_map’: partition_map.c:267:19: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration] 267 | block = (char *) calloc(1, PBLOCK_SIZE); | ^~~~~~ partition_map.c:267:19: warning: incompatible implicit declaration of built-in function ‘calloc’ partition_map.c:267:19: note: include ‘’ or provide a declaration of ‘calloc’ partition_map.c:270:6: warning: incompatible implicit declaration of built-in function ‘free’ 270 | free(block); | ^~~~ partition_map.c:270:6: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:282:19: warning: incompatible implicit declaration of built-in function ‘malloc’ 282 | block = (char *) malloc(PBLOCK_SIZE); | ^~~~~~ partition_map.c:282:19: note: include ‘’ or provide a declaration of ‘malloc’ partition_map.c:288:6: warning: incompatible implicit declaration of built-in function ‘free’ 288 | free(block); | ^~~~ partition_map.c:288:6: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:300:6: warning: implicit declaration of function ‘sync’ [-Wimplicit-function-declaration] 300 | sync(); | ^~~~ partition_map.c:302:2: warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration] 302 | sleep(2); | ^~~~~ partition_map.c: In function ‘add_data_to_map’: partition_map.c:350:31: warning: incompatible implicit declaration of built-in function ‘malloc’ 350 | entry = (partition_map *) malloc(sizeof(partition_map)); | ^~~~~~ partition_map.c:350:31: note: include ‘’ or provide a declaration of ‘malloc’ partition_map.c:368:6: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration] 368 | if (strncmp(data->dpme_type, kMapType, DPISTRLEN) == 0) { | ^~~~~~~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:368:41: note: in expansion of macro ‘DPISTRLEN’ 368 | if (strncmp(data->dpme_type, kMapType, DPISTRLEN) == 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here partition_map.c: In function ‘create_partition_map’: partition_map.c:421:36: warning: incompatible implicit declaration of built-in function ‘malloc’ 421 | map = (partition_map_header *) malloc(sizeof(partition_map_header)); | ^~~~~~ partition_map.c:421:36: note: include ‘’ or provide a declaration of ‘malloc’ partition_map.c:437:34: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] 437 | printf("size of 'device' is %u blocks: ", number); | ~^ ~~~~~~ | | | | unsigned int long unsigned int | %lu partition_map.c:443:38: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] 443 | printf("new size of 'device' is %u blocks\n", number); | ~^ ~~~~~~ | | | | unsigned int long unsigned int | %lu partition_map.c:462:18: warning: incompatible implicit declaration of built-in function ‘calloc’ 462 | data = (DPME *) calloc(1, PBLOCK_SIZE); | ^~~~~~ partition_map.c:462:18: note: include ‘’ or provide a declaration of ‘calloc’ partition_map.c:471:6: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration] 471 | strncpy(data->dpme_name, kFreeName, DPISTRLEN); | ^~~~~~~ partition_map.c:471:6: warning: incompatible implicit declaration of built-in function ‘strncpy’ partition_map.c:47:1: note: include ‘’ or provide a declaration of ‘strncpy’ 46 | #include "errors.h" +++ |+#include 47 | In file included from partition_map.h:28, from partition_map.c:42: dpme.h:138:47: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 138 | #define dpme_writable_set(p, v) bitfield_set(&p->dpme_flags, 5, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:475:6: note: in expansion of macro ‘dpme_writable_set’ 475 | dpme_writable_set(data, 1); | ^~~~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:139:47: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 139 | #define dpme_readable_set(p, v) bitfield_set(&p->dpme_flags, 4, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:476:6: note: in expansion of macro ‘dpme_readable_set’ 476 | dpme_readable_set(data, 1); | ^~~~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:140:47: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 140 | #define dpme_bootable_set(p, v) bitfield_set(&p->dpme_flags, 3, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:477:6: note: in expansion of macro ‘dpme_bootable_set’ 477 | dpme_bootable_set(data, 0); | ^~~~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:141:45: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 141 | #define dpme_in_use_set(p, v) bitfield_set(&p->dpme_flags, 2, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:478:6: note: in expansion of macro ‘dpme_in_use_set’ 478 | dpme_in_use_set(data, 0); | ^~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:142:47: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 142 | #define dpme_allocated_set(p, v) bitfield_set(&p->dpme_flags, 1, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:479:6: note: in expansion of macro ‘dpme_allocated_set’ 479 | dpme_allocated_set(data, 0); | ^~~~~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:143:44: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 143 | #define dpme_valid_set(p, v) bitfield_set(&p->dpme_flags, 0, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:480:6: note: in expansion of macro ‘dpme_valid_set’ 480 | dpme_valid_set(data, 1); | ^~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ partition_map.c:483:3: warning: incompatible implicit declaration of built-in function ‘free’ 483 | free(data); | ^~~~ partition_map.c:483:3: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:408:9: warning: unused variable ‘ok’ [-Wunused-variable] 408 | int ok; | ^~ partition_map.c:406:19: warning: unused variable ‘length’ [-Wunused-variable] 406 | unsigned long length; | ^~~~~~ In file included from partition_map.h:28, from partition_map.c:42: partition_map.c: In function ‘add_partition_to_map’: dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:543:50: note: in expansion of macro ‘DPISTRLEN’ 543 | || strncmp(cur->data->dpme_type, kFreeType, DPISTRLEN) != 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here partition_map.c:589:2: warning: incompatible implicit declaration of built-in function ‘free’ 589 | free(cur->data); | ^~~~ partition_map.c:589:2: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:598:6: warning: incompatible implicit declaration of built-in function ‘free’ 598 | free(data); | ^~~~ partition_map.c:598:6: note: include ‘’ or provide a declaration of ‘free’ partition_map.c:604:7: warning: incompatible implicit declaration of built-in function ‘free’ 604 | free(data); | ^~~~ partition_map.c:604:7: note: include ‘’ or provide a declaration of ‘free’ partition_map.c: In function ‘create_data’: partition_map.c:622:21: warning: incompatible implicit declaration of built-in function ‘calloc’ 622 | data = (DPME *) calloc(1, PBLOCK_SIZE); | ^~~~~~ partition_map.c:622:21: note: include ‘’ or provide a declaration of ‘calloc’ partition_map.c:631:2: warning: incompatible implicit declaration of built-in function ‘strncpy’ 631 | strncpy(data->dpme_name, name, DPISTRLEN); | ^~~~~~~ partition_map.c:631:2: note: include ‘’ or provide a declaration of ‘strncpy’ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:138:47: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 138 | #define dpme_writable_set(p, v) bitfield_set(&p->dpme_flags, 5, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:635:2: note: in expansion of macro ‘dpme_writable_set’ 635 | dpme_writable_set(data, 1); | ^~~~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:139:47: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 139 | #define dpme_readable_set(p, v) bitfield_set(&p->dpme_flags, 4, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:636:2: note: in expansion of macro ‘dpme_readable_set’ 636 | dpme_readable_set(data, 1); | ^~~~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:140:47: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 140 | #define dpme_bootable_set(p, v) bitfield_set(&p->dpme_flags, 3, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:637:2: note: in expansion of macro ‘dpme_bootable_set’ 637 | dpme_bootable_set(data, 0); | ^~~~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:141:45: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 141 | #define dpme_in_use_set(p, v) bitfield_set(&p->dpme_flags, 2, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:638:2: note: in expansion of macro ‘dpme_in_use_set’ 638 | dpme_in_use_set(data, 0); | ^~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:142:47: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 142 | #define dpme_allocated_set(p, v) bitfield_set(&p->dpme_flags, 1, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:639:2: note: in expansion of macro ‘dpme_allocated_set’ 639 | dpme_allocated_set(data, 1); | ^~~~~~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ In file included from partition_map.h:28, from partition_map.c:42: dpme.h:143:44: warning: passing argument 1 of ‘bitfield_set’ from incompatible pointer type [-Wincompatible-pointer-types] 143 | #define dpme_valid_set(p, v) bitfield_set(&p->dpme_flags, 0, 1, v) | ^~~~~~~~~~~~~~ | | | u32 * {aka unsigned int *} partition_map.c:640:2: note: in expansion of macro ‘dpme_valid_set’ 640 | dpme_valid_set(data, 1); | ^~~~~~~~~~~~~~ In file included from dpme.h:41, from partition_map.h:28, from partition_map.c:42: bitfield.h:66:43: note: expected ‘long unsigned int *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’} 66 | unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); | ~~~~~~~~~~~~~~~^~ partition_map.c: In function ‘compute_device_size’: partition_map.c:712:21: warning: incompatible implicit declaration of built-in function ‘malloc’ 712 | data = (char *) malloc(PBLOCK_SIZE); | ^~~~~~ partition_map.c:712:21: note: include ‘’ or provide a declaration of ‘malloc’ partition_map.c:748:2: warning: incompatible implicit declaration of built-in function ‘free’ 748 | free(data); | ^~~~ partition_map.c:748:2: note: include ‘’ or provide a declaration of ‘free’ In file included from partition_map.h:28, from partition_map.c:42: partition_map.c: In function ‘delete_partition_from_map’: dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:761:51: note: in expansion of macro ‘DPISTRLEN’ 761 | if (strncmp(entry->data->dpme_type, kMapType, DPISTRLEN) == 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here partition_map.c:774:5: warning: incompatible implicit declaration of built-in function ‘free’ 774 | free(entry->data); | ^~~~ partition_map.c:774:5: note: include ‘’ or provide a declaration of ‘free’ In file included from partition_map.h:28, from partition_map.c:42: partition_map.c: In function ‘combine_entry’: dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:820:52: note: in expansion of macro ‘DPISTRLEN’ 820 | || strncmp(entry->data->dpme_type, kFreeType, DPISTRLEN) != 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:825:45: note: in expansion of macro ‘DPISTRLEN’ 825 | if (strncmp(p->data->dpme_type, kFreeType, DPISTRLEN) != 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:838:45: note: in expansion of macro ‘DPISTRLEN’ 838 | if (strncmp(p->data->dpme_type, kFreeType, DPISTRLEN) != 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here partition_map.c: In function ‘delete_entry’: partition_map.c:875:5: warning: incompatible implicit declaration of built-in function ‘free’ 875 | free(entry->data); | ^~~~ partition_map.c:875:5: note: include ‘’ or provide a declaration of ‘free’ In file included from partition_map.h:28, from partition_map.c:42: partition_map.c: In function ‘resize_map’: dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:1017:48: note: in expansion of macro ‘DPISTRLEN’ 1017 | if (strncmp(entry->data->dpme_type, kMapType, DPISTRLEN) == 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:1037:48: note: in expansion of macro ‘DPISTRLEN’ 1037 | || strncmp(next->data->dpme_type, kFreeType, DPISTRLEN) != 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here dpme.h:48:19: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 48 | #define DPISTRLEN 32 | ^~ partition_map.c:1054:51: note: in expansion of macro ‘DPISTRLEN’ 1054 | || strncmp(next->data->dpme_type, kFreeType, DPISTRLEN) != 0) { | ^~~~~~~~~ : note: built-in ‘strncmp’ declared here partition_map.c: In function ‘write_partition_map’: partition_map.c:328:6: warning: ‘saved_errno’ may be used uninitialized in this function [-Wmaybe-uninitialized] 328 | error(saved_errno, "Re-read of partition map failed"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ partition_map.c:281:4: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized] 281 | i += 1; | ~~^~~~ partition_map.c: In function ‘create_data’: partition_map.c:631:2: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 631 | strncpy(data->dpme_name, name, DPISTRLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ partition_map.c:632:2: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 632 | strncpy(data->dpme_type, dptype, DPISTRLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ partition_map.c: In function ‘compute_device_size’: partition_map.c:744:5: warning: ‘valid’ may be used uninitialized in this function [-Wmaybe-uninitialized] 744 | if (valid != 0) { | ^ partition_map.c:745:8: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized] 745 | x = x + 1; | ~~^~~~~~~ partition_map.c: In function ‘create_partition_map’: partition_map.c:471:6: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 471 | strncpy(data->dpme_name, kFreeName, DPISTRLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ partition_map.c:472:6: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 472 | strncpy(data->dpme_type, kFreeType, DPISTRLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ partition_map.c: In function ‘add_partition_to_map’: partition_map.c:600:13: warning: ‘new_length’ may be used uninitialized in this function [-Wmaybe-uninitialized] 600 | data = create_data(kFreeName, kFreeType, new_base, new_length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ partition_map.c:600:13: warning: ‘new_base’ may be used uninitialized in this function [-Wmaybe-uninitialized] cc -O2 -g -Wall -c -o convert.o convert.c cc -O2 -g -Wall -c -o io.o io.c io.c: In function ‘get_string’: io.c:329:26: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 329 | ret_value = (char *) malloc(STRING_CHUNK); | ^~~~~~ io.c:329:26: warning: incompatible implicit declaration of built-in function ‘malloc’ io.c:46:1: note: include ‘’ or provide a declaration of ‘malloc’ 45 | #include "errors.h" +++ |+#include 46 | io.c:348:6: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] 348 | free(ret_value); | ^~~~ io.c:348:6: warning: incompatible implicit declaration of built-in function ‘free’ io.c:348:6: note: include ‘’ or provide a declaration of ‘free’ io.c: In function ‘read_block’: io.c:445:11: warning: implicit declaration of function ‘lseek64’; did you mean ‘lseek’? [-Wimplicit-function-declaration] 445 | if ((x = lseek64(fd, x, 0)) < 0) { | ^~~~~~~ | lseek io.c: In function ‘write_block’: io.c:469:29: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] 469 | printf("Can't write block %u to file", num); | ~^ ~~~ | | | | | long unsigned int | unsigned int | %lu io.c: In function ‘open_device’: io.c:533:9: warning: implicit declaration of function ‘open’; did you mean ‘popen’? [-Wimplicit-function-declaration] 533 | return open(path, oflag); | ^~~~ | popen cc -O2 -g -Wall -c -o errors.o errors.c errors.c: In function ‘fatal’: errors.c:127:5: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 127 | exit(value); | ^~~~ errors.c:127:5: warning: incompatible implicit declaration of built-in function ‘exit’ errors.c:37:1: note: include ‘’ or provide a declaration of ‘exit’ 36 | #include "pdisk.h" +++ |+#include 37 | cc -O2 -g -Wall -c -o bitfield.o bitfield.c bitfield.c: In function ‘bitfield_set’: bitfield.c:76:9: warning: unused variable ‘i’ [-Wunused-variable] 76 | int i; | ^ bitfield.c: In function ‘bitfield_get’: bitfield.c:94:9: warning: unused variable ‘i’ [-Wunused-variable] 94 | int i; | ^ cc pdisk.o dump.o partition_map.o convert.o io.o errors.o bitfield.o -o pdisk /usr/bin/ld: errors.o: in function `fatal': /<>/errors.c:119: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /usr/bin/ld: /<>/errors.c:118: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead cc -O2 -g -Wall -c -o fdisk.o fdisk.c In file included from fdisk.c:75: kernel-defs.h:18: warning: "_IOC_SIZEBITS" redefined 18 | #define _IOC_SIZEBITS 13 | In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, from /usr/include/linux/ioctl.h:5, from /usr/include/asm-generic/ioctls.h:5, from /usr/include/x86_64-linux-gnu/asm/ioctls.h:1, from /usr/include/x86_64-linux-gnu/bits/ioctls.h:23, from /usr/include/x86_64-linux-gnu/sys/ioctl.h:26, from fdisk.c:71: /usr/include/asm-generic/ioctl.h:32: note: this is the location of the previous definition 32 | # define _IOC_SIZEBITS 14 | In file included from fdisk.c:75: kernel-defs.h:19: warning: "_IOC_DIRBITS" redefined 19 | #define _IOC_DIRBITS 3 | In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, from /usr/include/linux/ioctl.h:5, from /usr/include/asm-generic/ioctls.h:5, from /usr/include/x86_64-linux-gnu/asm/ioctls.h:1, from /usr/include/x86_64-linux-gnu/bits/ioctls.h:23, from /usr/include/x86_64-linux-gnu/sys/ioctl.h:26, from fdisk.c:71: /usr/include/asm-generic/ioctl.h:36: note: this is the location of the previous definition 36 | # define _IOC_DIRBITS 2 | fdisk.c: In function ‘read_extended’: fdisk.c:430:7: warning: implicit declaration of function ‘lseek64’; did you mean ‘lseek’? [-Wimplicit-function-declaration] 430 | if (lseek64(fd, (loff_t)offsets[partitions] | ^~~~~~~ | lseek fdisk.c: In function ‘delete_partition’: fdisk.c:745:20: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 745 | if(part_table[5]) /* prevent SEGFAULT */ | ^~ fdisk.c:751:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 751 | offsets[5] = extended_offset; | ^~~~~~~ fdisk.c: In function ‘list_table’: fdisk.c:906:13: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] 906 | int i, w = strlen(disk_device); | ^~~~~~ fdisk.c:906:13: warning: incompatible implicit declaration of built-in function ‘strlen’ fdisk.c:78:1: note: include ‘’ or provide a declaration of ‘strlen’ 77 | #include "fdisk.h" +++ |+#include 78 | fdisk.c: In function ‘write_table’: fdisk.c:1291:11: warning: implicit declaration of function ‘strerror’; did you mean ‘perror’? [-Wimplicit-function-declaration] 1291 | error, strerror(error)); | ^~~~~~~~ | perror fdisk.c:1289:48: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=] 1289 | printf("Re-read table failed with error %d: %s.\nReboot your " | ~^ | | | char * | %d 1290 | "system to ensure the partition table is updated.\n", 1291 | error, strerror(error)); | ~~~~~~~~~~~~~~~ | | | int fdisk.c: At top level: fdisk.c:1418:6: warning: return type of ‘main’ is not ‘int’ [-Wmain] 1418 | void main(int argc, char **argv) | ^~~~ fdisk.c: In function ‘main’: fdisk.c:1450:5: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration] 1450 | strncpy(disk_device, argv[2], 8); | ^~~~~~~ fdisk.c:1450:5: warning: incompatible implicit declaration of built-in function ‘strncpy’ fdisk.c:1450:5: note: include ‘’ or provide a declaration of ‘strncpy’ cc -O2 -g -Wall -c -o fdisklabel.o fdisklabel.c In file included from fdisklabel.c:49: kernel-defs.h:18: warning: "_IOC_SIZEBITS" redefined 18 | #define _IOC_SIZEBITS 13 | In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, from /usr/include/linux/ioctl.h:5, from /usr/include/asm-generic/ioctls.h:5, from /usr/include/x86_64-linux-gnu/asm/ioctls.h:1, from /usr/include/x86_64-linux-gnu/bits/ioctls.h:23, from /usr/include/x86_64-linux-gnu/sys/ioctl.h:26, from fdisklabel.c:46: /usr/include/asm-generic/ioctl.h:32: note: this is the location of the previous definition 32 | # define _IOC_SIZEBITS 14 | In file included from fdisklabel.c:49: kernel-defs.h:19: warning: "_IOC_DIRBITS" redefined 19 | #define _IOC_DIRBITS 3 | In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, from /usr/include/linux/ioctl.h:5, from /usr/include/asm-generic/ioctls.h:5, from /usr/include/x86_64-linux-gnu/asm/ioctls.h:1, from /usr/include/x86_64-linux-gnu/bits/ioctls.h:23, from /usr/include/x86_64-linux-gnu/sys/ioctl.h:26, from fdisklabel.c:46: /usr/include/asm-generic/ioctl.h:36: note: this is the location of the previous definition 36 | # define _IOC_DIRBITS 2 | In file included from fdisklabel.c:53: fdisklabel.h:62:2: error: #error unknown architecture 62 | #error unknown architecture | ^~~~~ fdisklabel.c:80:20: error: ‘BSD_BBSIZE’ undeclared here (not in a function) 80 | static char buffer[BSD_BBSIZE]; | ^~~~~~~~~~ fdisklabel.c: In function ‘bsd_print_disklabel’: fdisklabel.c:265:25: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 265 | fprintf(f, "disk: %.*s\n", sizeof(lp->d_typename), lp->d_typename); | ~~^~ ~~~~~~~~~~~~~~~~~~~~~~ | | | | int long unsigned int fdisklabel.c:266:26: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 266 | fprintf(f, "label: %.*s\n", sizeof(lp->d_packname), lp->d_packname); | ~~^~ ~~~~~~~~~~~~~~~~~~~~~~ | | | | int long unsigned int fdisklabel.c:275:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 275 | fprintf(f, "bytes/sector: %d\n", lp->d_secsize); | ~^ ~~~~~~~~~~~~~ | | | | int u_long {aka long unsigned int} | %ld fdisklabel.c:276:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 276 | fprintf(f, "sectors/track: %d\n", lp->d_nsectors); | ~^ ~~~~~~~~~~~~~~ | | | | int u_long {aka long unsigned int} | %ld fdisklabel.c:277:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 277 | fprintf(f, "tracks/cylinder: %d\n", lp->d_ntracks); | ~^ ~~~~~~~~~~~~~ | | | | int u_long {aka long unsigned int} | %ld fdisklabel.c:278:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 278 | fprintf(f, "sectors/cylinder: %d\n", lp->d_secpercyl); | ~^ ~~~~~~~~~~~~~~~ | | | | int u_long {aka long unsigned int} | %ld fdisklabel.c:279:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 279 | fprintf(f, "cylinders: %d\n", lp->d_ncylinders); | ~^ ~~~~~~~~~~~~~~~~ | | | | int u_long {aka long unsigned int} | %ld fdisklabel.c:284:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 284 | fprintf(f, "headswitch: %d\t\t# milliseconds\n", lp->d_headswitch); | ~^ ~~~~~~~~~~~~~~~~ | | | | int u_long {aka long unsigned int} | %ld fdisklabel.c:285:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 285 | fprintf(f, "track-to-track seek: %d\t# milliseconds\n", lp->d_trkseek); | ~^ ~~~~~~~~~~~~~ | | | | int u_long {aka long unsigned int} | %ld fdisklabel.c:293:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 293 | fprintf(f, "%d ", lp->d_drivedata[j]); | ~^ ~~~~~~~~~~~~~~~~~~ | | | | int u_long {aka long unsigned int} | %ld fdisklabel.c:300:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 300 | fprintf(f, " %c: %8d %8d ", 'a' + i, | ~~^ | | | int | %8ld 301 | pp->p_size, pp->p_offset); | ~~~~~~~~~~ | | | u_long {aka long unsigned int} fdisklabel.c:300:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 300 | fprintf(f, " %c: %8d %8d ", 'a' + i, | ~~^ | | | int | %8ld 301 | pp->p_size, pp->p_offset); | ~~~~~~~~~~~~ | | | u_long {aka long unsigned int} fdisklabel.c:309:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 309 | fprintf(f, " %5d %5d %5.5s ", | ~~^ | | | int | %5ld 310 | pp->p_fsize, pp->p_fsize * pp->p_frag, ""); | ~~~~~~~~~~~ | | | u_long {aka long unsigned int} fdisklabel.c:309:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 309 | fprintf(f, " %5d %5d %5.5s ", | ~~^ | | | int | %5ld 310 | pp->p_fsize, pp->p_fsize * pp->p_frag, ""); | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | u_long {aka long unsigned int} fdisklabel.c:314:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 314 | fprintf(f, " %5d %5d %5d ", | ~~^ | | | int | %5ld 315 | pp->p_fsize, pp->p_fsize * pp->p_frag, | ~~~~~~~~~~~ | | | u_long {aka long unsigned int} fdisklabel.c:314:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 314 | fprintf(f, " %5d %5d %5d ", | ~~^ | | | int | %5ld 315 | pp->p_fsize, pp->p_fsize * pp->p_frag, | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | u_long {aka long unsigned int} fdisklabel.c:323:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 323 | fprintf(f, "\t# (Cyl. %4d", | ~~^ | | | int | %4ld ...... 327 | pp->p_offset / lp->d_secpercyl + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | u_long {aka long unsigned int} fdisklabel.c:333:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=] 333 | fprintf(f, "- %d", | ~^ | | | int | %ld 334 | (pp->p_offset + | ~~~~~~~~~~~~~~~ 335 | pp->p_size + lp->d_secpercyl - 1) / | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | u_long {aka long unsigned int} 336 | #if 0 | ~~~~~ 337 | lp->d_secpercyl - 1); /* differs from Linux fdisk */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 338 | #else | ~~~~~ 339 | lp->d_secpercyl); | ~~~~~~~~~~~~~~~ fdisklabel.c: In function ‘bsd_create_disklabel’: fdisklabel.c:384:7: error: expected ‘}’ before ‘else’ 384 | else | ^~~~ fdisklabel.c: At top level: fdisklabel.c:387:5: error: expected identifier or ‘(’ before ‘else’ 387 | else if (c == 'n') | ^~~~ fdisklabel.c:389:1: error: expected identifier or ‘(’ before ‘}’ token 389 | } | ^ fdisklabel.c: In function ‘bsd_write_bootstrap’: fdisklabel.c:477:14: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] 477 | line_ptr[strlen (line_ptr)-1] = '\0'; | ^~~~~~ fdisklabel.c:477:14: warning: incompatible implicit declaration of built-in function ‘strlen’ fdisklabel.c:54:1: note: include ‘’ or provide a declaration of ‘strlen’ 53 | #include "fdisklabel.h" +++ |+#include 54 | fdisklabel.c:485:15: error: ‘BSD_LABELSECTOR’ undeclared (first use in this function) 485 | d = &buffer[BSD_LABELSECTOR * SECTOR_SIZE]; | ^~~~~~~~~~~~~~~ fdisklabel.c:485:15: note: each undeclared identifier is reported only once for each function it appears in fdisklabel.c:486:3: warning: implicit declaration of function ‘bcopy’ [-Wimplicit-function-declaration] 486 | bcopy (d, &dl, sizeof (struct disklabel)); | ^~~~~ fdisklabel.c:486:3: warning: incompatible implicit declaration of built-in function ‘bcopy’ fdisklabel.c:489:3: warning: implicit declaration of function ‘bzero’ [-Wimplicit-function-declaration] 489 | bzero (d, sizeof (struct disklabel)); | ^~~~~ fdisklabel.c:489:3: warning: incompatible implicit declaration of built-in function ‘bzero’ fdisklabel.c:515:7: warning: implicit declaration of function ‘lseek64’; did you mean ‘lseek’? [-Wimplicit-function-declaration] 515 | if (lseek64 (fd, sector * SECTOR_SIZE, SEEK_SET) == -1) | ^~~~~~~ | lseek fdisklabel.c: In function ‘bsd_initlabel’: fdisklabel.c:611:3: warning: incompatible implicit declaration of built-in function ‘bzero’ 611 | bzero (d, sizeof (struct disklabel)); | ^~~~~ fdisklabel.c:615:7: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration] 615 | if (strncmp (disk_device, "/dev/sd", 7) == 0) | ^~~~~~~ fdisklabel.c:615:40: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 615 | if (strncmp (disk_device, "/dev/sd", 7) == 0) | ^ : note: built-in ‘strncmp’ declared here fdisklabel.c:645:19: error: ‘BSD_SBSIZE’ undeclared (first use in this function) 645 | d -> d_sbsize = BSD_SBSIZE; | ^~~~~~~~~~ fdisklabel.c:604:25: warning: unused variable ‘pp’ [-Wunused-variable] 604 | struct bsd_partition *pp; | ^~ fdisklabel.c: In function ‘bsd_readlabel’: fdisklabel.c:684:3: warning: incompatible implicit declaration of built-in function ‘bcopy’ 684 | bcopy (&buffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], | ^~~~~ fdisklabel.c:684:18: error: ‘BSD_LABELSECTOR’ undeclared (first use in this function) 684 | bcopy (&buffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], | ^~~~~~~~~~~~~~~ fdisklabel.c:684:50: error: ‘BSD_LABELOFFSET’ undeclared (first use in this function) 684 | bcopy (&buffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], | ^~~~~~~~~~~~~~~ fdisklabel.c: In function ‘bsd_writelabel’: fdisklabel.c:719:3: warning: incompatible implicit declaration of built-in function ‘bcopy’ 719 | bcopy (d, &buffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], | ^~~~~ fdisklabel.c:719:21: error: ‘BSD_LABELSECTOR’ undeclared (first use in this function) 719 | bcopy (d, &buffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], | ^~~~~~~~~~~~~~~ fdisklabel.c:719:53: error: ‘BSD_LABELOFFSET’ undeclared (first use in this function) 719 | bcopy (d, &buffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], | ^~~~~~~~~~~~~~~ At top level: fdisklabel.c:703:1: warning: ‘bsd_writelabel’ defined but not used [-Wunused-function] 703 | bsd_writelabel (struct partition *p, struct disklabel *d) | ^~~~~~~~~~~~~~ fdisklabel.c:669:1: warning: ‘bsd_readlabel’ defined but not used [-Wunused-function] 669 | bsd_readlabel (struct partition *p, struct disklabel *d) | ^~~~~~~~~~~~~ fdisklabel.c:601:1: warning: ‘bsd_initlabel’ defined but not used [-Wunused-function] 601 | bsd_initlabel (struct partition *p, struct disklabel *d, int pindex) | ^~~~~~~~~~~~~ fdisklabel.c:361:1: warning: ‘bsd_create_disklabel’ defined but not used [-Wunused-function] 361 | bsd_create_disklabel (void) | ^~~~~~~~~~~~~~~~~~~~ fdisklabel.c:80:13: warning: ‘buffer’ defined but not used [-Wunused-variable] 80 | static char buffer[BSD_BBSIZE]; | ^~~~~~ make[1]: *** [: fdisklabel.o] Error 1 make[1]: Leaving directory '/<>' make: *** [debian/rules:33: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2020-10-04T22:07:52Z Finished -------- +------------------------------------------------------------------------------+ | Cleanup | +------------------------------------------------------------------------------+ Purging /<> Not cleaning session: cloned chroot in use E: Build failure (dpkg-buildpackage died) +------------------------------------------------------------------------------+ | Summary | +------------------------------------------------------------------------------+ Build Architecture: amd64 Build Type: full Build-Space: 1004 Build-Time: 4 Distribution: sid Fail-Stage: build Host Architecture: amd64 Install-Time: 19 Job: /srv/debomatic/incoming/mac-fdisk_0.1-18.dsc Machine Architecture: amd64 Package: mac-fdisk Package-Time: 34 Source-Version: 0.1-18 Space: 1004 Status: attempted Version: 0.1-18 -------------------------------------------------------------------------------- Finished at 2020-10-04T22:07:52Z Build needed 00:00:34, 1004k disk space