<86>Oct 25 01:04:27 userdel[1408382]: delete user 'rooter' <86>Oct 25 01:04:27 userdel[1408382]: removed group 'rooter' owned by 'rooter' <86>Oct 25 01:04:27 groupadd[1408399]: group added to /etc/group: name=rooter, GID=960 <86>Oct 25 01:04:27 groupadd[1408399]: group added to /etc/gshadow: name=rooter <86>Oct 25 01:04:27 groupadd[1408399]: new group: name=rooter, GID=960 <86>Oct 25 01:04:27 useradd[1408408]: new user: name=rooter, UID=960, GID=960, home=/root, shell=/bin/bash <86>Oct 25 01:04:27 userdel[1408429]: delete user 'builder' <86>Oct 25 01:04:27 userdel[1408429]: removed group 'builder' owned by 'builder' <86>Oct 25 01:04:27 userdel[1408429]: removed shadow group 'builder' owned by 'builder' <86>Oct 25 01:04:27 groupadd[1408441]: group added to /etc/group: name=builder, GID=961 <86>Oct 25 01:04:27 groupadd[1408441]: group added to /etc/gshadow: name=builder <86>Oct 25 01:04:27 groupadd[1408441]: new group: name=builder, GID=961 <86>Oct 25 01:04:27 useradd[1408452]: new user: name=builder, UID=961, GID=961, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/jigdo-0.7.3-alt6.src.rpm: The use of such a license name is ambiguous: GPL <13>Oct 25 01:04:28 rpmi: libjpeg-2:2.0.6-alt4 sisyphus+284191.100.1.1 1630330711 installed <13>Oct 25 01:04:28 rpmi: libpng16-1.6.37-alt1 sisyphus+275734.100.2.1 1624788826 installed <13>Oct 25 01:04:28 rpmi: libexpat-2.2.10-alt1 sisyphus+276608.100.1.2 1625153355 installed <13>Oct 25 01:04:28 rpmi: xorg-proto-devel-2021.5-alt1 sisyphus+285490.100.1.1 1632124129 installed <13>Oct 25 01:04:28 rpmi: libidn2-2.3.2-alt1 sisyphus+281238.100.1.2 1627476321 installed <13>Oct 25 01:04:28 rpmi: libglvnd-7:1.3.4-alt1 sisyphus+286013.100.1.1 1632749263 installed <13>Oct 25 01:04:28 rpmi: libwebp7-1.2.1-alt1 sisyphus+282658.100.1.1 1628955702 installed <13>Oct 25 01:04:28 rpmi: zlib-devel-1.2.11-alt2 sisyphus+283721.100.1.1 1629847002 installed <13>Oct 25 01:04:29 rpmi: libicu69-1:6.9.1-alt2 sisyphus+277632.100.1.1 1625726150 installed <13>Oct 25 01:04:29 rpmi: liblcms2-2.12-alt1 sisyphus+279091.100.1.1 1626376955 installed <13>Oct 25 01:04:29 rpmi: libgomp1-11.2.1-alt1 sisyphus+285602.200.1.1 1632233545 installed <13>Oct 25 01:04:29 rpmi: libltdl7-2.4.6-alt4 sisyphus+284398.100.1.1 1630577601 installed <13>Oct 25 01:04:29 rpmi: libopenjpeg2.0-2.4.0-alt2 sisyphus+270166.100.1.1 1618663536 installed <13>Oct 25 01:04:29 rpmi: libtasn1-4.17.0-alt2 sisyphus+285706.100.1.1 1632328563 installed <13>Oct 25 01:04:29 rpmi: libp11-kit-0.23.15-alt2 sisyphus+287552.300.2.1 1634541413 installed <13>Oct 25 01:04:29 rpmi: libnettle8-3.7.3-alt1 sisyphus+276723.100.1.2 1625211788 installed <13>Oct 25 01:04:29 rpmi: libjbig-2.1-alt1 sisyphus+276068.100.1.1 1624815400 installed <13>Oct 25 01:04:29 rpmi: libtiff5-4.3.0-alt1 sisyphus+285311.100.1.1 1631733776 installed <13>Oct 25 01:04:29 rpmi: libICE-1.0.10-alt1 sisyphus+278827.100.1.1 1626220279 installed <13>Oct 25 01:04:29 rpmi: libfribidi-1.0.11-alt1 sisyphus+285870.100.1.1 1632466313 installed <13>Oct 25 01:04:29 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605111 installed <13>Oct 25 01:04:29 rpmi: libwayland-server-1.19.0-alt1 sisyphus+287634.100.1.1 1634659926 installed <13>Oct 25 01:04:29 rpmi: libXau-1.0.9-alt1 sisyphus+278247.100.1.1 1626080736 installed <13>Oct 25 01:04:29 rpmi: ilmbase25-common-2.5.6-alt2 sisyphus+279640.100.1.1 1626639160 installed <13>Oct 25 01:04:29 rpmi: libiex25-2.5.6-alt2 sisyphus+279640.100.1.1 1626639160 installed <13>Oct 25 01:04:29 rpmi: libilmthread25-2.5.6-alt2 sisyphus+279640.100.1.1 1626639160 installed <13>Oct 25 01:04:29 rpmi: libimath25-2.5.6-alt2 sisyphus+279640.100.1.1 1626639160 installed <13>Oct 25 01:04:29 rpmi: libhalf25-2.5.6-alt2 sisyphus+279640.100.1.1 1626639160 installed <13>Oct 25 01:04:29 rpmi: libXau-devel-1.0.9-alt1 sisyphus+278247.100.1.1 1626080736 installed <13>Oct 25 01:04:29 rpmi: libgraphite2-devel-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605111 installed <13>Oct 25 01:04:29 rpmi: libSM-1.2.3-alt1 sisyphus+278820.100.1.1 1626219264 installed <13>Oct 25 01:04:29 rpmi: libhogweed6-3.7.3-alt1 sisyphus+276723.100.1.2 1625211788 installed <13>Oct 25 01:04:29 rpmi: libgnutls30-3.6.16-alt1 sisyphus+273086.100.1.1 1622478144 installed <13>Oct 25 01:04:29 rpmi: icu-utils-1:6.9.1-alt2 sisyphus+277632.100.1.1 1625726150 installed <13>Oct 25 01:04:29 rpmi: libicu-devel-1:6.9.1-alt2 sisyphus+277632.100.1.1 1625726150 installed <13>Oct 25 01:04:29 rpmi: libpng-devel-1.6.37-alt1 sisyphus+275734.100.2.1 1624788826 installed <13>Oct 25 01:04:29 rpmi: libGLES-7:1.3.4-alt1 sisyphus+286013.100.1.1 1632749263 installed <13>Oct 25 01:04:29 rpmi: libOpenGL-7:1.3.4-alt1 sisyphus+286013.100.1.1 1632749263 installed <13>Oct 25 01:04:29 rpmi: libflif-0.3-alt3 sisyphus+276388.100.1.1 1624990813 installed <13>Oct 25 01:04:29 rpmi: libjasper-2.0.33-alt1 sisyphus+283821.100.1.1 1629972796 installed <13>Oct 25 01:04:29 rpmi: libraw-0.20.2-alt1.1 sisyphus+283972.100.1.1 1630055048 installed <13>Oct 25 01:04:29 rpmi: publicsuffix-list-dafsa-20210929-alt1 sisyphus+286161.100.1.1 1632988273 installed <13>Oct 25 01:04:29 rpmi: libpsl-0.21.1-alt2 sisyphus+279461.100.1.1 1626547547 installed <13>Oct 25 01:04:29 rpmi: libnghttp2-1.41.0-alt2 sisyphus+286786.100.1.1 1633940948 installed <13>Oct 25 01:04:29 rpmi: openldap-common-2.4.59-alt1 sisyphus+282933.100.1.1 1629124747 installed <13>Oct 25 01:04:29 rpmi: libverto-0.3.2-alt1_1 sisyphus+279289.100.1.3 1626493868 installed <13>Oct 25 01:04:29 rpmi: liblmdb-0.9.23-alt1 sisyphus+275369.100.1.2 1624493869 installed <13>Oct 25 01:04:29 rpmi: libkeyutils-1.6.3-alt1 sisyphus+266061.100.1.1 1612919566 installed <13>Oct 25 01:04:29 rpmi: libcom_err-1.46.4.0.5.4cda-alt1 sisyphus+283826.100.1.1 1629975345 installed <13>Oct 25 01:04:29 rpmi: gcc-c++-common-1.4.27-alt1 sisyphus+278099.1300.1.1 1626028636 installed <13>Oct 25 01:04:29 rpmi: libstdc++11-devel-11.2.1-alt1 sisyphus+285602.200.1.1 1632233545 installed <13>Oct 25 01:04:30 rpmi: gcc11-c++-11.2.1-alt1 sisyphus+285602.200.1.1 1632233545 installed <13>Oct 25 01:04:30 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Oct 25 01:04:30 rpmi: xml-utils-1:2.9.12-alt1 sisyphus+279621.1100.1.1 1626630109 installed <13>Oct 25 01:04:30 rpmi: rpm-build-gir-0.7.3-alt3 sisyphus+242150.100.1.1 1575312005 installed <13>Oct 25 01:04:30 rpmi: bc-1:1.07.1-alt1 sisyphus+278100.400.1.1 1626056612 installed <13>Oct 25 01:04:30 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Oct 25 01:04:30 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Oct 25 01:04:30 rpmi: ca-certificates-2021.10.06-alt1 sisyphus+286526.200.1.1 1633528578 installed <13>Oct 25 01:04:30 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Oct 25 01:04:30 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+287552.300.2.1 1634541413 installed <13>Oct 25 01:04:30 rpmi: libcrypto1.1-1.1.1l-alt2 sisyphus+287339.100.1.1 1634383589 installed <13>Oct 25 01:04:30 rpmi: libssl1.1-1.1.1l-alt2 sisyphus+287339.100.1.1 1634383589 installed <13>Oct 25 01:04:30 rpmi: python3-3.9.7-alt3 sisyphus+287552.400.2.1 1634542953 installed <13>Oct 25 01:04:31 rpmi: python3-base-3.9.7-alt3 sisyphus+287552.400.2.1 1634542953 installed <13>Oct 25 01:04:31 rpmi: glib2-devel-2.68.4-alt2 sisyphus+287550.100.1.1 1634535115 installed <86>Oct 25 01:04:31 groupadd[1434011]: group added to /etc/group: name=_keytab, GID=499 <86>Oct 25 01:04:31 groupadd[1434011]: group added to /etc/gshadow: name=_keytab <86>Oct 25 01:04:31 groupadd[1434011]: new group: name=_keytab, GID=499 <13>Oct 25 01:04:31 rpmi: libkrb5-1.19.2-alt2 sisyphus+281652.100.1.1 1627900207 installed <86>Oct 25 01:04:31 groupadd[1434194]: group added to /etc/group: name=sasl, GID=498 <86>Oct 25 01:04:31 groupadd[1434194]: group added to /etc/gshadow: name=sasl <86>Oct 25 01:04:31 groupadd[1434194]: new group: name=sasl, GID=498 <13>Oct 25 01:04:31 rpmi: libsasl2-3-2.1.27-alt2.2 sisyphus+282040.40.2.1 1628929840 installed <13>Oct 25 01:04:31 rpmi: libldap-2.4.59-alt1 sisyphus+282933.100.1.1 1629124747 installed <13>Oct 25 01:04:31 rpmi: gtk-builder-convert-2.24.33-alt1 sisyphus+278555.100.1.2 1626252653 installed <13>Oct 25 01:04:31 rpmi: libImageMagick6-common-6.9.12.25-alt1 sisyphus+288084.100.1.1 1635062433 installed <13>Oct 25 01:04:31 rpmi: libwmflite-0.2.8.4-alt13 sisyphus+275127.100.1.1 1624406837 installed <13>Oct 25 01:04:31 rpmi: liblqr-0.4.2-alt1 sisyphus+276247.100.1.2 1624927461 installed <13>Oct 25 01:04:31 rpmi: djvu-common-3.5.27-alt1 sisyphus+275289.100.1.2 1624473687 installed <13>Oct 25 01:04:31 rpmi: libdjvu-3.5.27-alt1 sisyphus+275289.100.1.2 1624473687 installed <13>Oct 25 01:04:31 rpmi: libgts-0.7.6-alt2.drc20130205.1 sisyphus+275722.100.1.1 1624749869 installed <13>Oct 25 01:04:31 rpmi: libpaper-1.1.28-alt1 sisyphus+278439.100.1.1 1626100422 installed <13>Oct 25 01:04:31 rpmi: liblz4-1:1.9.3-alt1 sisyphus+278100.4000.1.1 1626059441 installed <13>Oct 25 01:04:31 rpmi: libsystemd-1:249.5-alt1 sisyphus+287048.700.8.1 1634581120 installed <13>Oct 25 01:04:31 rpmi: libdbus-1.12.20-alt1 sisyphus+281278.100.1.1 1627484261 installed <13>Oct 25 01:04:31 rpmi: libavahi-0.8-alt2 sisyphus+279391.100.1.2 1626530679 installed <13>Oct 25 01:04:31 rpmi: libcups-2.3.3-alt6.op2 sisyphus+274028.100.1.1 1623148995 installed <13>Oct 25 01:04:31 rpmi: icon-theme-hicolor-0.17-alt2 sisyphus+248343.100.1.1 1584979043 installed <13>Oct 25 01:04:31 rpmi: libgtk+2-locales-2.24.33-alt1 sisyphus+278555.100.1.2 1626252653 installed <13>Oct 25 01:04:31 rpmi: libnuma-2.0.14-alt2 sisyphus+278485.100.1.1 1626104244 installed <13>Oct 25 01:04:31 rpmi: libx265-199-3.5-alt1.1 sisyphus+277560.100.1.1 1625697230 installed <13>Oct 25 01:04:31 rpmi: libgdk-pixbuf-locales-2.42.6-alt1 sisyphus+277964.100.1.1 1625927113 installed <13>Oct 25 01:04:31 rpmi: libde265-1.0.7-alt1 sisyphus+275350.100.1.2 1624489754 installed <13>Oct 25 01:04:31 rpmi: libaom3-3.1.2-alt2 sisyphus+284158.100.1.1 1630312716 installed <13>Oct 25 01:04:31 rpmi: libatk-locales-2.36.0-alt1 sisyphus+275092.100.2.1 1624560096 installed <13>Oct 25 01:04:31 rpmi: libatk-2.36.0-alt1 sisyphus+275092.100.2.1 1624560096 installed <13>Oct 25 01:04:31 rpmi: libatk-devel-2.36.0-alt1 sisyphus+275092.100.2.1 1624560096 installed <13>Oct 25 01:04:31 rpmi: libdatrie-0.2.13-alt1_2 sisyphus+285649.100.1.1 1632260802 installed <13>Oct 25 01:04:31 rpmi: libthai-0.1.28-alt1_1 sisyphus+275403.100.1.2 1624502529 installed <13>Oct 25 01:04:31 rpmi: shared-mime-info-2.1-alt1 sisyphus+278982.100.1.1 1626350317 installed <13>Oct 25 01:04:31 rpmi: gsettings-desktop-schemas-data-40.0-alt1 sisyphus+268501.300.4.2 1617041783 installed <13>Oct 25 01:04:31 rpmi: libgio-2.68.4-alt2 sisyphus+287550.100.1.1 1634535115 installed <13>Oct 25 01:04:31 rpmi: gsettings-desktop-schemas-40.0-alt1 sisyphus+268501.300.4.2 1617041783 installed <13>Oct 25 01:04:31 rpmi: libgdk-pixbuf-2.42.6-alt1 sisyphus+277964.100.1.1 1625927113 installed <13>Oct 25 01:04:31 rpmi: libheif-1.11.0-alt1 sisyphus+279399.100.1.2 1626532543 installed <13>Oct 25 01:04:31 rpmi: libgio-devel-2.68.4-alt2 sisyphus+287550.100.1.1 1634535115 installed <13>Oct 25 01:04:31 rpmi: libgdk-pixbuf-devel-2.42.6-alt1 sisyphus+277964.100.1.1 1625927113 installed <13>Oct 25 01:04:31 rpmi: gtk-update-icon-cache-3.24.30-alt2 sisyphus+285283.100.1.1 1631713610 installed <13>Oct 25 01:04:31 rpmi: libpixman-3:0.40.0-alt2 sisyphus+281167.100.1.1 1627444504 installed <13>Oct 25 01:04:31 rpmi: libbrotlicommon-1.0.9-alt2 sisyphus+278430.100.1.2 1626213212 installed <13>Oct 25 01:04:31 rpmi: libbrotlidec-1.0.9-alt2 sisyphus+278430.100.1.2 1626213212 installed <13>Oct 25 01:04:31 rpmi: libharfbuzz-3.0.0-alt1 sisyphus+285665.100.6.1 1632349054 installed <13>Oct 25 01:04:31 rpmi: libfreetype-2.11.0-alt1 sisyphus+281294.100.1.1 1627488670 installed <13>Oct 25 01:04:31 rpmi: fontconfig-2.13.1-alt2 sisyphus+283256.100.1.1 1629274953 installed Updating fonts cache: <29>Oct 25 01:04:32 fontconfig: Updating fonts cache: succeeded [ DONE ] <13>Oct 25 01:04:33 rpmi: libgs-9.54.0-alt3 sisyphus+285041.100.1.1 1631376584 installed <13>Oct 25 01:04:33 rpmi: libraqm-0.7.1-alt1 sisyphus+279320.100.1.2 1626503395 installed <13>Oct 25 01:04:33 rpmi: libharfbuzz-icu-3.0.0-alt1 sisyphus+285665.100.6.1 1632349054 installed <13>Oct 25 01:04:33 rpmi: libharfbuzz-gobject-3.0.0-alt1 sisyphus+285665.100.6.1 1632349054 installed <13>Oct 25 01:04:33 rpmi: libfreetype-devel-2.11.0-alt1 sisyphus+281294.100.1.1 1627488670 installed <13>Oct 25 01:04:33 rpmi: libharfbuzz-devel-3.0.0-alt1 sisyphus+285665.100.6.1 1632349054 installed <13>Oct 25 01:04:33 rpmi: fontconfig-devel-2.13.1-alt2 sisyphus+283256.100.1.1 1629274953 installed <13>Oct 25 01:04:33 rpmi: libcurl-7.79.1-alt1 sisyphus+285949.100.1.1 1632605340 installed <13>Oct 25 01:04:33 rpmi: libxshmfence-1.3-alt1 sisyphus+278248.100.1.1 1626080762 installed <13>Oct 25 01:04:33 rpmi: libwayland-client-1.19.0-alt1 sisyphus+287634.100.1.1 1634659926 installed <13>Oct 25 01:04:33 rpmi: libpciaccess-1:0.16-alt1 sisyphus+278288.100.1.1 1626084210 installed <13>Oct 25 01:04:33 rpmi: libdrm-1:2.4.107-alt2 sisyphus+283492.100.1.3 1629454692 installed <13>Oct 25 01:04:33 rpmi: libgbm-4:21.2.4-alt1 sisyphus+287114.100.1.1 1634282192 installed <13>Oct 25 01:04:33 rpmi: libX11-locales-3:1.7.2-alt1 sisyphus+279629.100.1.1 1626637383 installed <13>Oct 25 01:04:33 rpmi: libXdmcp-1.1.3-alt1 sisyphus+278816.100.1.1 1626219231 installed <13>Oct 25 01:04:33 rpmi: libxcb-1.14-alt1 sisyphus+277968.100.1.3 1625952322 installed <13>Oct 25 01:04:33 rpmi: libX11-3:1.7.2-alt1 sisyphus+279629.100.1.1 1626637383 installed <13>Oct 25 01:04:33 rpmi: libXext-1.3.4-alt1 sisyphus+278817.100.1.3 1626262596 installed <13>Oct 25 01:04:33 rpmi: libXrender-0.9.10-alt1 sisyphus+278480.100.1.2 1626227740 installed <13>Oct 25 01:04:33 rpmi: libXfixes-6.0.0-alt1 sisyphus+284644.300.1.1 1630910331 installed <13>Oct 25 01:04:33 rpmi: libXft-2.3.4-alt1 sisyphus+284644.500.1.1 1630910476 installed <13>Oct 25 01:04:34 rpmi: libxcb-devel-1.14-alt1 sisyphus+277968.100.1.3 1625952322 installed <13>Oct 25 01:04:34 rpmi: libX11-devel-3:1.7.2-alt1 sisyphus+279629.100.1.1 1626637383 installed <13>Oct 25 01:04:34 rpmi: libXrender-devel-0.9.10-alt1 sisyphus+278480.100.1.2 1626227740 installed <13>Oct 25 01:04:34 rpmi: libXft-devel-2.3.4-alt1 sisyphus+284644.500.1.1 1630910476 installed <13>Oct 25 01:04:34 rpmi: libXext-devel-1.3.4-alt1 sisyphus+278817.100.1.3 1626262596 installed <13>Oct 25 01:04:34 rpmi: libXcursor-1.2.0-alt1 sisyphus+278256.100.1.2 1626134578 installed <13>Oct 25 01:04:34 rpmi: libXrandr-1.5.2-alt1 sisyphus+275330.100.2.2 1624575558 installed <13>Oct 25 01:04:34 rpmi: libXxf86vm-1.1.4-alt2 sisyphus+275334.100.2.2 1624577011 installed <13>Oct 25 01:04:34 rpmi: libGLX-mesa-4:21.2.4-alt1 sisyphus+287114.100.1.1 1634282192 installed <13>Oct 25 01:04:34 rpmi: libEGL-mesa-4:21.2.4-alt1 sisyphus+287114.100.1.1 1634282192 installed <13>Oct 25 01:04:34 rpmi: libEGL-7:1.3.4-alt1 sisyphus+286013.100.1.1 1632749263 installed <13>Oct 25 01:04:34 rpmi: libGLX-7:1.3.4-alt1 sisyphus+286013.100.1.1 1632749263 installed <13>Oct 25 01:04:34 rpmi: libGL-7:1.3.4-alt1 sisyphus+286013.100.1.1 1632749263 installed <13>Oct 25 01:04:34 rpmi: libcairo-1:1.16.0-alt1 sisyphus+275343.100.2.3 1624578007 installed <13>Oct 25 01:04:34 rpmi: libpango-1.48.10-alt1 sisyphus+285076.100.1.1 1631425168 installed <13>Oct 25 01:04:34 rpmi: liblasi-1.1.3-alt3 sisyphus+286812.100.2.1 1633968131 installed <13>Oct 25 01:04:34 rpmi: libcairo-gobject-1:1.16.0-alt1 sisyphus+275343.100.2.3 1624578007 installed <13>Oct 25 01:04:35 rpmi: librsvg-1:2.50.7-alt1 sisyphus+279625.100.1.2 1626639599 installed <13>Oct 25 01:04:35 rpmi: libglvnd-devel-7:1.3.4-alt1 sisyphus+286013.100.1.1 1632749263 installed <13>Oct 25 01:04:35 rpmi: libcairo-devel-1:1.16.0-alt1 sisyphus+275343.100.2.3 1624578007 installed <13>Oct 25 01:04:35 rpmi: libpango-devel-1.48.10-alt1 sisyphus+285076.100.1.1 1631425168 installed <13>Oct 25 01:04:35 rpmi: libXi-1.8-alt1 sisyphus+285490.200.1.1 1632124174 installed <13>Oct 25 01:04:35 rpmi: libXinerama-1.1.4-alt1 sisyphus+275328.100.2.2 1624575558 installed <13>Oct 25 01:04:35 rpmi: libXt-1.2.1-alt1 sisyphus+265202.200.1.1 1611565457 installed <13>Oct 25 01:04:35 rpmi: libXpm-3.5.13-alt1 sisyphus+278339.100.1.2 1626171698 installed <13>Oct 25 01:04:35 rpmi: libgd3-2.3.3-alt1 sisyphus+286379.100.1.1 1633353307 installed <13>Oct 25 01:04:35 rpmi: libXcomposite-0.4.5-alt1 sisyphus+275323.100.2.2 1624573269 installed <13>Oct 25 01:04:35 rpmi: libXdamage-1.1.5-alt1 sisyphus+275324.100.2.2 1624573269 installed <13>Oct 25 01:04:35 rpmi: libgtk+2-2.24.33-alt1 sisyphus+278555.100.1.2 1626252653 installed <13>Oct 25 01:04:35 rpmi: libgraphviz-2.41.2-alt5 sisyphus+279667.100.1.2 1626656493 installed <13>Oct 25 01:04:35 rpmi: openexr25-common-2.5.6-alt3 sisyphus+277625.100.1.1 1625722208 installed <13>Oct 25 01:04:35 rpmi: libilmimf25-2.5.6-alt3 sisyphus+277625.100.1.1 1625722208 installed <13>Oct 25 01:04:35 rpmi: libImageMagick6.7-6.9.12.25-alt1 sisyphus+288084.100.1.1 1635062433 installed <13>Oct 25 01:04:35 rpmi: ImageMagick-tools-6.9.12.25-alt1 sisyphus+288084.100.1.1 1635062433 installed <13>Oct 25 01:04:35 rpmi: libgtk+2-devel-2.24.33-alt1 sisyphus+278555.100.1.2 1626252653 installed <13>Oct 25 01:04:35 rpmi: libcurl-devel-7.79.1-alt1 sisyphus+285949.100.1.1 1632605340 installed <13>Oct 25 01:04:35 rpmi: wget-1.21.2-alt1 sisyphus+285050.100.1.1 1631406680 installed <13>Oct 25 01:04:35 rpmi: gcc-c++-11-alt1 sisyphus+285602.400.1.1 1632238564 installed <13>Oct 25 01:04:35 rpmi: libdb4.7-devel-4.7.25-alt12 sisyphus+283793.100.2.1 1629966936 installed <13>Oct 25 01:04:35 rpmi: bzlib-devel-1:1.0.8-alt2 sisyphus+283723.100.1.1 1629847653 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/jigdo-0.7.3-alt6.nosrc.rpm (w1.gzdio) Installing jigdo-0.7.3-alt6.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.23961 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf jigdo-0.7.3 + echo 'Source #0 (jigdo-0.7.3.tar.bz2):' Source #0 (jigdo-0.7.3.tar.bz2): + /bin/bzip2 -dc /usr/src/RPM/SOURCES/jigdo-0.7.3.tar.bz2 + /bin/tar -xf - + cd jigdo-0.7.3 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #1 (jigdo-0.7.3-string_h.patch):' Patch #1 (jigdo-0.7.3-string_h.patch): + /usr/bin/patch -p1 patching file src/compat.hh patching file src/gtk/gtk-single-url.cc patching file src/gtk/jigdo.cc patching file src/recursedir.cc patching file src/util/configfile.cc patching file src/util/md5sum.hh patching file src/util/string-utf.cc + echo 'Patch #2 (jigdo-0.7.3-curl_h.patch):' Patch #2 (jigdo-0.7.3-curl_h.patch): + /usr/bin/patch -p1 patching file src/net/download.hh + echo 'Patch #3 (jigdo-0.7.3-alt-toolchain.patch):' Patch #3 (jigdo-0.7.3-alt-toolchain.patch): + /usr/bin/patch -p2 patching file src/mkimage.cc + cat + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.23961 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd jigdo-0.7.3 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FCFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS= + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri dirname -- '{}' + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + sort -u + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --without-included-gettext checking for gawk... gawk checking for x86_64-alt-linux-gcc... x86_64-alt-linux-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-alt-linux-gcc accepts -g... yes checking for x86_64-alt-linux-gcc option to accept ANSI C... none needed checking for x86_64-alt-linux-g++... x86_64-alt-linux-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-alt-linux-g++ accepts -g... yes checking for GCC version... 11 checking for a BSD-compatible install... /bin/install -c checking how to run the C++ preprocessor... x86_64-alt-linux-g++ -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking whether byte ordering is bigendian... no checking whether we are compiling for Windows... no checking whether the C++ compiler is recent enough... yes checking whether the C++ preprocessor supports variable-arg macros... yes checking for wget... yes checking for value of --enable-debug... "no" checking for value of --with-pkg-config-prefix... not set checking for ANSI C header files... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for unistd.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for string.h... (cached) yes checking for zlibVersion in -lz... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for BZ2_bzCompressInit in -lbz2... yes checking bzlib.h usability... yes checking bzlib.h presence... yes checking for bzlib.h... yes checking for value of --with-libdb... "yes" checking db.h usability... yes checking db.h presence... yes checking for db.h... yes checking for libdb version in db.h... 4.7 checking for db_create in libdb-4.7... yes checking for value of --with-gui... "auto" checking for pkg-config... yes checking for GTK+ 2.4.0 or later... 2.24.33 checking for value of --with-libcurl... "auto" checking for libcurl 7.11.0 or later... 7.79.1 checking for value of --with-uint64... "auto" checking for unsigned long long... yes checking for unsigned long... yes checking size of unsigned long... 8 checking for unsigned long long... yes checking size of unsigned long long... 8 checking for 64 bit unsigned integer type... unsigned long checking for operator<<(uint64)... yes checking for string::compare(size_t,size_t,string,size_t,size_t)... yes checking for string::compare(size_t,size_t,const char*,size_t)... yes checking for lstat... yes checking for truncate... yes checking for ftruncate... yes checking for mmap... yes checking for memcpy... yes checking for fileno... yes checking for snprintf... yes checking for _snprintf... yes checking for setenv... yes checking for TIOCGWINSZ ioctl... yes checking for getopt_long in ... yes checking for uname in ... yes checking for _stati64... no checking for value of --enable-nls... "yes" checking for dgettext in and libc... yes checking for catalogs to be installed... de configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating po/Makefile config.status: creating src/config.h + make -j32 make: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3' test -h gfx -o -d gfx || ln -s "./gfx" gfx make: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3' cd src && make all make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' export cpp='-I. -I. -I./glibcurl -I./gtk -I./job -I./net -I./util -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -DPACKAGE_DATA_DIR="/usr/share/jigdo/" -DPACKAGE_LOCALE_DIR="/usr/share/locale" -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include ' export cxx="$cpp -pipe -frecord-gcc-switches -Wall -O2 -flto=auto -Wall -W -Wpointer-arith -Wconversion -Woverloaded-virtual " export c="$cpp -Wall -pipe -frecord-gcc-switches -Wall -O2 -flto=auto -W " make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-gcc $c -c util/glibc-getopt.c -o util/glibc-getopt.o make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-gcc $c -c util/glibc-getopt1.c -o util/glibc-getopt1.o make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-gcc $c -c glibcurl/glibcurl.c -o glibcurl/glibcurl.o glibcurl/glibcurl.c: In function 'glibcurl_set_callback': glibcurl/glibcurl.c:398:43: warning: cast between incompatible function types from 'GlibcurlCallback' {aka 'void (*)(void *)'} to 'gboolean (*)(void *)' {aka 'int (*)(void *)'} [-Wcast-function-type] 398 | g_source_set_callback(&curlSrc->source, (GSourceFunc)function, data, | ^ make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c util/string.cc -o util/string.o util/string.cc: In static member function 'static std::string Subst::subst(const char*, int, const Subst*)': util/string.cc:85:18: warning: conversion from 'int' to 'char' may change value [-Wconversion] 85 | char max = '1' + args; | ~~~~^~~~~~ make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c compat.cc -o compat.o make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c util/bstream.cc -o util/bstream.o In file included from util/bstream.cc:16: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/bstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/bstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/bstream.cc:16: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/bstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/bstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/bstream.cc:16: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/bstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/bstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/bstream.cc:16: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from util/bstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/bstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ make[1]: *** [Makefile:95: util/bstream.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c util/rsyncsum.cc -o util/rsyncsum.o In file included from ./serialize.hh:34, from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./serialize.hh:34, from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./serialize.hh:34, from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./serialize.hh:34, from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from util/rsyncsum.cc:15: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh: At global scope: ./util/rsyncsum.hh:52:18: error: reference to 'byte' is ambiguous 52 | RsyncSum(const byte* mem, size_t len) : sum(0) { addBack(mem, len); }; | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:61:27: error: reference to 'byte' is ambiguous 61 | RsyncSum& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:63:28: error: reference to 'byte' is ambiguous 63 | inline RsyncSum& addBack(byte x); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:63:28: error: 'byte' has not been declared 63 | inline RsyncSum& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:68:34: error: reference to 'byte' is ambiguous 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:68:34: error: 'byte' has not been declared 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:75:31: error: reference to 'byte' is ambiguous 75 | RsyncSum& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:77:32: error: reference to 'byte' is ambiguous 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:77:32: error: 'byte' has not been declared 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:101:27: error: reference to 'byte' is ambiguous 101 | inline RsyncSum64(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:108:36: error: reference to 'byte' is ambiguous 108 | INLINE RsyncSum64& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:109:30: error: reference to 'byte' is ambiguous 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:109:30: error: 'byte' has not been declared 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:110:36: error: reference to 'byte' is ambiguous 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:110:36: error: 'byte' has not been declared 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:111:33: error: reference to 'byte' is ambiguous 111 | RsyncSum64& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:112:34: error: reference to 'byte' is ambiguous 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:112:34: error: 'byte' has not been declared 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:127:30: error: reference to 'byte' is ambiguous 127 | RsyncSum64& addBack2(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:136:11: error: 'RsyncSum& RsyncSum::addBack' is not a static data member of 'class RsyncSum' 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~~~~~ ./util/rsyncsum.hh:136:29: error: reference to 'byte' is ambiguous 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:145:11: error: 'RsyncSum& RsyncSum::addBackNtimes' is not a static data member of 'class RsyncSum' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~~~~~ ./util/rsyncsum.hh:145:35: error: reference to 'byte' is ambiguous 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:145:50: error: expected primary-expression before 'n' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:145:51: error: expression list treated as compound expression in initializer [-fpermissive] 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:154:11: error: 'RsyncSum& RsyncSum::removeFront' is not a static data member of 'class RsyncSum' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:33: error: reference to 'byte' is ambiguous 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:154:48: error: expected primary-expression before 'areaSize' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:56: error: expression list treated as compound expression in initializer [-fpermissive] 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^ ./util/rsyncsum.hh:164:30: error: reference to 'byte' is ambiguous 164 | RsyncSum64::RsyncSum64(const byte* mem, size_t len) : sumLo(0), sumHi(0) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:188:13: error: 'RsyncSum64& RsyncSum64::removeFront' is not a static data member of 'class RsyncSum64' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~~~ ./util/rsyncsum.hh:188:37: error: reference to 'byte' is ambiguous 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/rsyncsum.cc:15: ./util/rsyncsum.hh:188:52: error: expected primary-expression before 'areaSize' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:188:60: error: expression list treated as compound expression in initializer [-fpermissive] 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^ In file included from ./util/rsyncsum.ih:17, from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.ih:17, from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.ih:17, from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.ih:17, from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.ih:17, from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.ih:17, from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.ih:17, from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/rsyncsum.ih: At global scope: ./util/rsyncsum.ih:34:39: error: reference to 'byte' is ambiguous 34 | RsyncSum64& RsyncSum64::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/rsyncsum.ih:39:13: error: 'RsyncSum64& RsyncSum64::addBack' is not a static data member of 'class RsyncSum64' 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~~~~~~~ ./util/rsyncsum.ih:39:33: error: reference to 'byte' is ambiguous 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/rsyncsum.ih:45:13: error: 'RsyncSum64& RsyncSum64::addBackNtimes' is not a static data member of 'class RsyncSum64' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~~~~~~~ ./util/rsyncsum.ih:45:39: error: reference to 'byte' is ambiguous 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from util/rsyncsum.cc:15: ./util/rsyncsum.ih:45:54: error: expected primary-expression before 'n' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.ih:45:55: error: expression list treated as compound expression in initializer [-fpermissive] 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ util/rsyncsum.cc:24:35: error: reference to 'byte' is ambiguous 24 | RsyncSum& RsyncSum::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/rsyncsum.cc: In member function 'RsyncSum& RsyncSum::addBack(const int*, size_t)': util/rsyncsum.cc:27:9: error: reference to 'byte' is ambiguous 27 | const byte* blockLimit = mem + (len / 16) * 16; | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/rsyncsum.cc:28:9: error: reference to 'byte' is ambiguous 28 | const byte* limit = mem + len; // 1st byte not to process | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/rsyncsum.cc:30:16: error: 'blockLimit' was not declared in this scope 30 | while (mem < blockLimit) { | ^~~~~~~~~~ util/rsyncsum.cc:49:16: error: 'limit' was not declared in this scope 49 | while (mem < limit) { | ^~~~~ util/rsyncsum.cc:24:53: warning: unused parameter 'len' [-Wunused-parameter] 24 | RsyncSum& RsyncSum::addBack(const byte* mem, size_t len) { | ~~~~~~~^~~ util/rsyncsum.cc: At global scope: util/rsyncsum.cc:58:39: error: reference to 'byte' is ambiguous 58 | RsyncSum& RsyncSum::removeFront(const byte* mem, size_t len, | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/rsyncsum.cc: In member function 'RsyncSum& RsyncSum::removeFront(const int*, size_t, size_t)': util/rsyncsum.cc:67:59: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'uint32' {aka 'unsigned int'} may change value [-Wconversion] 67 | b -= (front.get() >> 16) + (areaSize - len) * front.get(); | ^ util/rsyncsum.cc: At global scope: util/rsyncsum.cc:73:40: error: reference to 'byte' is ambiguous 73 | RsyncSum64& RsyncSum64::addBack2(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/rsyncsum.cc: In member function 'RsyncSum64& RsyncSum64::addBack2(const int*, size_t)': util/rsyncsum.cc:76:9: error: reference to 'byte' is ambiguous 76 | const byte* blockLimit = mem + (len / 16) * 16; | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/rsyncsum.cc:77:9: error: reference to 'byte' is ambiguous 77 | const byte* limit = mem + len; // 1st byte not to process | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/rsyncsum.cc:79:16: error: 'blockLimit' was not declared in this scope 79 | while (mem < blockLimit) { | ^~~~~~~~~~ util/rsyncsum.cc:98:16: error: 'limit' was not declared in this scope 98 | while (mem < limit) { | ^~~~~ util/rsyncsum.cc:73:58: warning: unused parameter 'len' [-Wunused-parameter] 73 | RsyncSum64& RsyncSum64::addBack2(const byte* mem, size_t len) { | ~~~~~~~^~~ util/rsyncsum.cc: At global scope: util/rsyncsum.cc:108:43: error: reference to 'byte' is ambiguous 108 | RsyncSum64& RsyncSum64::removeFront(const byte* mem, size_t len, | ^~~~ In file included from ./config.h:217, from util/rsyncsum.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/rsyncsum.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ make[1]: *** [Makefile:95: util/rsyncsum.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/treeiter.cc -o gtk/treeiter.o In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./gtk/treeiter.hh:30, from gtk/treeiter.cc:15: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/treeiter.hh:30, from gtk/treeiter.cc:15: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from ./gtk/treeiter.hh:30, from gtk/treeiter.cc:15: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/treeiter.hh:30, from gtk/treeiter.cc:15: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/support.cc -o gtk/support.o In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from gtk/support.cc:15: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from gtk/support.cc:15: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from gtk/support.cc:15: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from gtk/support.cc:15: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c util/glibc-md5.cc -o util/glibc-md5.o In file included from ./util/md5sum.hh:37, from util/glibc-md5.cc:41: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from util/glibc-md5.cc:41: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from util/glibc-md5.cc:41: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from util/glibc-md5.cc:41: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/glibc-md5.cc:41: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from util/glibc-md5.cc:41: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ util/glibc-md5.cc: At global scope: util/glibc-md5.cc:91:1: error: reference to 'byte' is ambiguous 91 | byte* MD5Sum::md5_read_ctx(const md5_ctx *ctx, byte* resbuf) | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/glibc-md5.cc:106:1: error: reference to 'byte' is ambiguous 106 | byte* MD5Sum::md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf) | ^~~~ In file included from ./config.h:217, from util/glibc-md5.cc:26: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/glibc-md5.cc:26: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/glibc-md5.cc: In static member function 'static void MD5Sum::md5_process_bytes(const void*, size_t, MD5Sum::md5_ctx*)': util/glibc-md5.cc:221:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'uint32' {aka 'unsigned int'} may change value [-Wconversion] 221 | ctx->buflen += add; | ~~~~~~~~~~~~^~~~~~ util/glibc-md5.cc:277:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'uint32' {aka 'unsigned int'} may change value [-Wconversion] 277 | ctx->buflen = left_over; | ^~~~~~~~~ util/glibc-md5.cc: In static member function 'static void MD5Sum::md5_process_block(const void*, size_t, MD5Sum::md5_ctx*)': util/glibc-md5.cc:308:17: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'uint32' {aka 'unsigned int'} may change value [-Wconversion] 308 | ctx->total[0] += len; | ~~~~~~~~~~~~~~^~~~~~ make[1]: *** [Makefile:95: util/glibc-md5.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c cachefile.cc -o cachefile.o In file included from cachefile.cc:16: ./cachefile.hh:85:21: error: reference to 'byte' is ambiguous 85 | Status find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:16: ./cachefile.hh:95:25: error: reference to 'byte' is ambiguous 95 | Status findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:16: ./cachefile.hh:102:28: error: reference to 'byte' is ambiguous 102 | inline void insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:16: ./cachefile.hh:119:3: error: reference to 'byte' is ambiguous 119 | byte* insert_prepare(size_t inSize); | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:16: ./cachefile.hh:141:30: error: reference to 'byte' is ambiguous 141 | void CacheFile::insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:16: ./cachefile.hh: In member function 'void CacheFile::insert(const int*, size_t, const string&, time_t, uint64)': ./cachefile.hh:143:10: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 143 | memcpy(insert_prepare(inSize), inData, inSize); | ^~~~~~~~~~~~~~ | insert_perform ./cachefile.hh: In member function 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64)': ./cachefile.hh:150:5: error: there are no arguments to 'insert_prepare' that depend on a template parameter, so a declaration of 'insert_prepare' must be available [-fpermissive] 150 | f(insert_prepare(inSize)); | ^~~~~~~~~~~~~~ ./cachefile.hh:150:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from ./serialize.hh:34, from cachefile.cc:28: ./util/bstream.hh: At global scope: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./serialize.hh:34, from cachefile.cc:28: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./serialize.hh:34, from cachefile.cc:28: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./serialize.hh:34, from cachefile.cc:28: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:28: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:28: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:28: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:28: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:28: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from cachefile.cc:28: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ cachefile.cc: At global scope: cachefile.cc:90:30: error: reference to 'byte' is ambiguous 90 | Status CacheFile::find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc: In member function 'Status CacheFile::find(const int*&, size_t&, const string&, uint64, time_t)': cachefile.cc:94:27: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'u_int32_t' {aka 'unsigned int'} may change value [-Wconversion] 94 | key.size = fileName.size(); | ~~~~~~~~~~~~~^~ cachefile.cc:105:3: error: reference to 'byte' is ambiguous 105 | byte* d = static_cast(data.data); | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc:105:9: error: 'd' was not declared in this scope; did you mean 'db'? 105 | byte* d = static_cast(data.data); | ^ | db cachefile.cc:105:25: error: reference to 'byte' is ambiguous 105 | byte* d = static_cast(data.data); | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc:105:29: error: expected '>' before '*' token 105 | byte* d = static_cast(data.data); | ^ cachefile.cc:105:29: error: expected '(' before '*' token 105 | byte* d = static_cast(data.data); | ^ | ( cachefile.cc:105:30: error: expected primary-expression before '>' token 105 | byte* d = static_cast(data.data); | ^ cachefile.cc:105:42: error: expected ')' before ';' token 105 | byte* d = static_cast(data.data); | ^ | ) cachefile.cc: At global scope: cachefile.cc:133:34: error: reference to 'byte' is ambiguous 133 | Status CacheFile::findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc: In member function 'Status CacheFile::findName(const int*&, size_t&, const string&, off_t&, time_t&)': cachefile.cc:138:27: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'u_int32_t' {aka 'unsigned int'} may change value [-Wconversion] 138 | key.size = fileName.size(); | ~~~~~~~~~~~~~^~ cachefile.cc:149:3: error: reference to 'byte' is ambiguous 149 | byte* d = static_cast(data.data); | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc:149:9: error: 'd' was not declared in this scope; did you mean 'db'? 149 | byte* d = static_cast(data.data); | ^ | db cachefile.cc:149:25: error: reference to 'byte' is ambiguous 149 | byte* d = static_cast(data.data); | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc:149:29: error: expected '>' before '*' token 149 | byte* d = static_cast(data.data); | ^ cachefile.cc:149:29: error: expected '(' before '*' token 149 | byte* d = static_cast(data.data); | ^ | ( cachefile.cc:149:30: error: expected primary-expression before '>' token 149 | byte* d = static_cast(data.data); | ^ cachefile.cc:149:42: error: expected ')' before ';' token 149 | byte* d = static_cast(data.data); | ^ | ) cachefile.cc: In member function 'void CacheFile::expire(time_t)': cachefile.cc:189:44: error: reference to 'byte' is ambiguous 189 | unserialize4(lastAccess, static_cast(data.data) + ACCESS); | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc:189:48: error: expected '>' before '*' token 189 | unserialize4(lastAccess, static_cast(data.data) + ACCESS); | ^ cachefile.cc:189:48: error: expected '(' before '*' token 189 | unserialize4(lastAccess, static_cast(data.data) + ACCESS); | ^ | ( cachefile.cc:189:49: error: expected primary-expression before '>' token 189 | unserialize4(lastAccess, static_cast(data.data) + ACCESS); | ^ cachefile.cc:189:62: error: no match for 'operator+' (operand types are 'void*' and 'CacheFile::') 189 | unserialize4(lastAccess, static_cast(data.data) + ACCESS); | ~~~~~~~~~~~ ^ ~~~~~~ | | | | void* CacheFile:: cachefile.cc: At global scope: cachefile.cc:204:1: error: reference to 'byte' is ambiguous 204 | byte* CacheFile::insert_prepare(size_t inSize) { | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc: In member function 'void CacheFile::insert_perform(const string&, time_t, uint64)': cachefile.cc:218:3: error: reference to 'byte' is ambiguous 218 | byte* buf = static_cast(data.data); | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc:218:9: error: 'buf' was not declared in this scope 218 | byte* buf = static_cast(data.data); | ^~~ cachefile.cc:218:27: error: reference to 'byte' is ambiguous 218 | byte* buf = static_cast(data.data); | ^~~~ In file included from ./config.h:217, from cachefile.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from cachefile.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ cachefile.cc:218:31: error: expected '>' before '*' token 218 | byte* buf = static_cast(data.data); | ^ cachefile.cc:218:31: error: expected '(' before '*' token 218 | byte* buf = static_cast(data.data); | ^ | ( cachefile.cc:218:32: error: expected primary-expression before '>' token 218 | byte* buf = static_cast(data.data); | ^ cachefile.cc:218:44: error: expected ')' before ';' token 218 | byte* buf = static_cast(data.data); | ^ | ) cachefile.cc:229:27: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'u_int32_t' {aka 'unsigned int'} may change value [-Wconversion] 229 | key.size = fileName.size(); | ~~~~~~~~~~~~~^~ make[1]: *** [Makefile:95: cachefile.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c util/log.cc -o util/log.o util/log.cc: In constructor 'Logger::Logger(const char*, bool)': util/log.cc:30:48: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned char' may change value [-Wconversion] 30 | : unitNameVal(unitName), unitNameLen(strlen(unitName)), | ~~~~~~^~~~~~~~~~ util/log.cc: In static member function 'static void Logger::scanOptions(const string&, const char*)': util/log.cc:77:26: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 77 | unsigned len = s.length(); | ~~~~~~~~^~ make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/interface.cc -o gtk/interface.o In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from gtk/interface.cc:22: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from gtk/interface.cc:22: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from gtk/interface.cc:22: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from gtk/interface.cc:22: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ gtk/interface.cc: In member function 'GtkWidget* GUI::Window::create()': gtk/interface.cc:629:55: warning: conversion from 'double' to 'gfloat' {aka 'float'} changes value from '7.4505800000000001e-9' to '7.45058015e-9' [-Wfloat-conversion] 629 | gtk_misc_set_alignment (GTK_MISC (jigdo_ShortInfo), 7.45058e-09, 0.5); | ^~~~~~~~~~~ gtk/interface.cc:685:48: warning: conversion from 'double' to 'gfloat' {aka 'float'} changes value from '7.4505800000000001e-9' to '7.45058015e-9' [-Wfloat-conversion] 685 | gtk_misc_set_alignment (GTK_MISC (label229), 7.45058e-09, 0.5); | ^~~~~~~~~~~ gtk/interface.cc:783:48: warning: conversion from 'double' to 'gfloat' {aka 'float'} changes value from '7.4505800000000001e-9' to '7.45058015e-9' [-Wfloat-conversion] 783 | gtk_misc_set_alignment (GTK_MISC (label239), 7.45058e-09, 0.5); | ^~~~~~~~~~~ gtk/interface.cc: In member function 'GtkWidget* GUI::Settings::create()': gtk/interface.cc:1602:48: warning: conversion from 'double' to 'gfloat' {aka 'float'} changes value from '7.4505800000000001e-9' to '7.45058015e-9' [-Wfloat-conversion] 1602 | gtk_misc_set_alignment (GTK_MISC (label121), 7.45058e-09, 0.5); | ^~~~~~~~~~~ gtk/interface.cc:1611:48: warning: conversion from 'double' to 'gfloat' {aka 'float'} changes value from '7.4505800000000001e-9' to '7.45058015e-9' [-Wfloat-conversion] 1611 | gtk_misc_set_alignment (GTK_MISC (label122), 7.45058e-09, 0.5); | ^~~~~~~~~~~ gtk/interface.cc:1619:48: warning: conversion from 'double' to 'gfloat' {aka 'float'} changes value from '7.4505800000000001e-9' to '7.45058015e-9' [-Wfloat-conversion] 1619 | gtk_misc_set_alignment (GTK_MISC (label123), 7.45058e-09, 0.5); | ^~~~~~~~~~~ make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c zstream-bz.cc -o zstream-bz.o In file included from ./util/md5sum.hh:37, from zstream-bz.cc:23: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream-bz.cc:23: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream-bz.cc:23: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream-bz.cc:23: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:23: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream-bz.cc:23: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from zstream-bz.cc:24: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:24: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:24: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:24: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:24: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:24: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: At global scope: ./zstream.hh:81:33: error: reference to 'byte' is ambiguous 81 | inline Zobstream& write(const byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:99:11: error: reference to 'byte' is ambiguous 99 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:100:11: error: reference to 'byte' is ambiguous 100 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:105:27: error: reference to 'byte' is ambiguous 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:105:27: error: 'byte' has not been declared 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ ./zstream.hh:106:26: error: reference to 'byte' is ambiguous 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:106:26: error: 'byte' has not been declared 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:108:21: error: reference to 'byte' is ambiguous 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:108:21: error: 'byte' has not been declared 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ ./zstream.hh:117:5: error: reference to 'byte' is ambiguous 117 | byte data[ZIPDATA_SIZE]; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:129:19: error: reference to 'byte' is ambiguous 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:129:19: error: 'byte' has not been declared 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream.hh:132:3: error: reference to 'byte' is ambiguous 132 | byte* todoBuf; // Allocated during open(), deallocated during close() | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/log.hh:56, from zstream-bz.cc:22: ./zstream.hh: In destructor 'virtual Zobstream::~Zobstream()': ./zstream.hh:60:57: error: 'todoBuf' was not declared in this scope 60 | virtual ~Zobstream() { close(); delete zipBuf; Assert(todoBuf == 0); } | ^~~~~~~ ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: At global scope: ./zstream.hh:159:13: error: reference to 'byte' is ambiguous 159 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:160:13: error: reference to 'byte' is ambiguous 160 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:164:28: error: reference to 'byte' is ambiguous 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:164:28: error: 'byte' has not been declared 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:175:26: error: reference to 'byte' is ambiguous 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:175:26: error: 'byte' has not been declared 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ ./zstream.hh:208:19: error: reference to 'byte' is ambiguous 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:208:19: error: 'byte' has not been declared 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ ./zstream.hh:237:3: error: reference to 'byte' is ambiguous 237 | byte* buf; // Contains compressed data | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:240:3: error: reference to 'byte' is ambiguous 240 | byte* nextOut; // Pointer into output buffer | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: In destructor 'virtual Zibstream::~Zibstream()': ./zstream.hh:190:42: error: 'buf' was not declared in this scope 190 | virtual ~Zibstream() { close(); delete buf; if (z != 0) z->end(); delete z; } | ^~~ ./zstream.hh: In member function 'bool Zibstream::good() const': ./zstream.hh:215:43: error: 'buf' was not declared in this scope 215 | bool good() const { return is_open() && buf != 0; } | ^~~ ./zstream.hh: In constructor 'Zobstream::Zobstream(MD5Sum*)': ./zstream.hh:249:33: error: class 'Zobstream' does not have any field named 'todoBuf' 249 | : zipBuf(0), zipBufLast(0), todoBuf(0), todoBufSize(0), todoCount(0), | ^~~~~~~ ./zstream.hh: In member function 'void Zobstream::open(bostream&, unsigned int, unsigned int)': ./zstream.hh:259:3: error: 'todoBuf' was not declared in this scope; did you mean 'todoBufSz'? 259 | todoBuf = new byte[todoBufSize]; | ^~~~~~~ | todoBufSz ./zstream.hh:259:17: error: reference to 'byte' is ambiguous 259 | todoBuf = new byte[todoBufSize]; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: At global scope: ./zstream.hh:265:6: error: variable or field 'zip' declared void 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~~ ./zstream.hh:265:21: error: reference to 'byte' is ambiguous 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:265:27: error: 'start' was not declared in this scope 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~ ./zstream.hh:265:34: error: expected primary-expression before 'unsigned' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~ ./zstream.hh:265:48: error: expected primary-expression before 'bool' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ ./zstream.hh: In member function 'Zobstream& Zobstream::put(unsigned char)': ./zstream.hh:273:37: error: 'todoBuf' was not declared in this scope 273 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:274:3: error: 'todoBuf' was not declared in this scope 274 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:274:36: error: reference to 'byte' is ambiguous 274 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: In member function 'Zobstream& Zobstream::put(signed char)': ./zstream.hh:280:37: error: 'todoBuf' was not declared in this scope 280 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:281:3: error: 'todoBuf' was not declared in this scope 281 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:281:36: error: reference to 'byte' is ambiguous 281 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: In member function 'Zobstream& Zobstream::put(char)': ./zstream.hh:287:37: error: 'todoBuf' was not declared in this scope 287 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:288:3: error: 'todoBuf' was not declared in this scope 288 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:288:36: error: reference to 'byte' is ambiguous 288 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: In member function 'Zobstream& Zobstream::put(int)': ./zstream.hh:294:37: error: 'todoBuf' was not declared in this scope 294 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:295:3: error: 'todoBuf' was not declared in this scope 295 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:295:36: error: reference to 'byte' is ambiguous 295 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: At global scope: ./zstream.hh:300:35: error: reference to 'byte' is ambiguous 300 | Zobstream& Zobstream::write(const byte* x, unsigned n) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh: In member function 'Zobstream& Zobstream::write(const int*, unsigned int)': ./zstream.hh:303:9: error: 'todoBuf' was not declared in this scope 303 | zip(todoBuf, todoCount); // Zip remaining data in todoBuf | ^~~~~~~ ./zstream.hh:304:20: error: reference to 'byte' is ambiguous 304 | zip(const_cast(x), n); // Zip byte array | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-bz.hh:24, from zstream-bz.cc:26: ./zstream.hh:304:24: error: expected '>' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh:304:24: error: expected '(' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ | ( ./zstream.hh:304:25: error: expected primary-expression before '>' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh: In constructor 'Zibstream::Zibstream(unsigned int)': ./zstream.hh:311:40: error: class 'Zibstream' does not have any field named 'buf' 311 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ ./zstream.hh: In constructor 'Zibstream::Zibstream(bistream&, unsigned int)': ./zstream.hh:315:40: error: class 'Zibstream' does not have any field named 'buf' 315 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh: At global scope: ./zstream-bz.hh:53:11: error: reference to 'byte' is ambiguous 53 | virtual byte* nextOut() const { return reinterpret_cast(z.next_out); } | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:54:11: error: reference to 'byte' is ambiguous 54 | virtual byte* nextIn() const { return reinterpret_cast(z.next_in); } | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:61:27: error: reference to 'byte' is ambiguous 61 | virtual void setNextOut(byte* n) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:61:27: error: 'byte' has not been declared 61 | virtual void setNextOut(byte* n) { | ^~~~ ./zstream-bz.hh:63:26: error: reference to 'byte' is ambiguous 63 | virtual void setNextIn(byte* n) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:63:26: error: 'byte' has not been declared 63 | virtual void setNextIn(byte* n) { | ^~~~ ./zstream-bz.hh:65:21: error: reference to 'byte' is ambiguous 65 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:65:21: error: 'byte' has not been declared 65 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream-bz.hh:89:11: error: reference to 'byte' is ambiguous 89 | virtual byte* nextOut() const { return reinterpret_cast(z.next_out); } | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:90:11: error: reference to 'byte' is ambiguous 90 | virtual byte* nextIn() const { return reinterpret_cast(z.next_in); } | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:96:26: error: reference to 'byte' is ambiguous 96 | virtual void setNextIn(byte* n) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:96:26: error: 'byte' has not been declared 96 | virtual void setNextIn(byte* n) { | ^~~~ ./zstream-bz.hh:112:24: error: reference to 'byte' is ambiguous 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:112:24: error: 'byte' has not been declared 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ ./zstream-bz.hh: In member function 'virtual void ZibstreamBz::inflate(int**, unsigned int*)': ./zstream-bz.hh:115:33: error: reference to 'byte' is ambiguous 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-bz.cc:26: ./zstream-bz.hh:115:37: error: expected '>' before '*' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ ./zstream-bz.hh:115:37: error: expected '(' before '*' token ./zstream-bz.hh:115:38: error: expected primary-expression before '>' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ ./zstream-bz.hh:115:51: error: expected ')' before ';' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ zstream-bz.cc: In member function 'void ZobstreamBz::open(bostream&, int, unsigned int)': zstream-bz.cc:84:48: error: 'struct Zobstream::ZipData' has no member named 'data' 84 | z.next_out = reinterpret_cast(zipBuf->data); | ^~~~ zstream-bz.cc: In member function 'virtual void ZobstreamBz::deflateReset()': zstream-bz.cc:122:48: error: 'struct Zobstream::ZipData' has no member named 'data' 122 | z.next_out = reinterpret_cast(zipBuf->data); | ^~~~ zstream-bz.cc: At global scope: zstream-bz.cc:139:6: error: variable or field 'zip2' declared void 139 | void ZobstreamBz::zip2(byte* start, unsigned len, bool finish) { | ^~~~~~~~~~~ zstream-bz.cc:139:24: error: reference to 'byte' is ambiguous 139 | void ZobstreamBz::zip2(byte* start, unsigned len, bool finish) { | ^~~~ In file included from ./config.h:217, from zstream-bz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-bz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream-bz.cc:139:30: error: 'start' was not declared in this scope 139 | void ZobstreamBz::zip2(byte* start, unsigned len, bool finish) { | ^~~~~ zstream-bz.cc:139:37: error: expected primary-expression before 'unsigned' 139 | void ZobstreamBz::zip2(byte* start, unsigned len, bool finish) { | ^~~~~~~~ zstream-bz.cc:139:51: error: expected primary-expression before 'bool' 139 | void ZobstreamBz::zip2(byte* start, unsigned len, bool finish) { | ^~~~ make[1]: *** [Makefile:95: zstream-bz.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c util/md5sum.cc -o util/md5sum.o In file included from ./util/md5sum.hh:37, from util/md5sum.cc:22: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from util/md5sum.cc:22: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from util/md5sum.cc:22: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from util/md5sum.cc:22: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:18: error: cannot convert 'MD5Sum::md5_ctx*' to 'md5_ctx*' 247 | md5_finish_ctx(p, sum); | ^ | | | MD5Sum::md5_ctx* In file included from util/md5sum.cc:21: ./util/glibc-md5.hh:133:51: note: initializing argument 1 of 'void* md5_finish_ctx(md5_ctx*, void*)' 133 | extern void *md5_finish_ctx __P ((struct md5_ctx *ctx, void *resbuf)); | ~~~~~~~~~~~~~~~~^~~ ./util/glibc-md5.hh:79:17: note: in definition of macro '__P' 79 | # define __P(x) x | ^ In file included from util/md5sum.cc:22: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:18: error: cannot convert 'MD5Sum::md5_ctx*' to 'md5_ctx*' 258 | md5_finish_ctx(p, sum); | ^ | | | MD5Sum::md5_ctx* In file included from util/md5sum.cc:21: ./util/glibc-md5.hh:133:51: note: initializing argument 1 of 'void* md5_finish_ctx(md5_ctx*, void*)' 133 | extern void *md5_finish_ctx __P ((struct md5_ctx *ctx, void *resbuf)); | ~~~~~~~~~~~~~~~~^~~ ./util/glibc-md5.hh:79:17: note: in definition of macro '__P' 79 | # define __P(x) x | ^ In file included from util/md5sum.cc:22: ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from util/md5sum.cc:22: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from util/md5sum.cc:22: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ util/md5sum.cc: In copy constructor 'MD5Sum::MD5Sum(const MD5Sum&)': util/md5sum.cc:40:37: error: no match for 'operator[]' (operand types are 'MD5' and 'int') 40 | for (int i = 0; i < 16; ++i) sum[i] = md.sum[i]; | ^ util/md5sum.cc:40:49: error: no match for 'operator[]' (operand types are 'const MD5' and 'int') 40 | for (int i = 0; i < 16; ++i) sum[i] = md.sum[i]; | ^ util/md5sum.cc: In member function 'MD5Sum& MD5Sum::operator=(const MD5Sum&)': util/md5sum.cc:56:37: error: no match for 'operator[]' (operand types are 'MD5' and 'int') 56 | for (int i = 0; i < 16; ++i) sum[i] = md.sum[i]; | ^ util/md5sum.cc:56:49: error: no match for 'operator[]' (operand types are 'const MD5' and 'int') 56 | for (int i = 0; i < 16; ++i) sum[i] = md.sum[i]; | ^ util/md5sum.cc: In member function 'std::string MD5::toString() const': util/md5sum.cc:67:11: error: 'sum' was not declared in this scope 67 | m.write(sum, 16).flush(); | ^~~ util/md5sum.cc: In member function 'bool MD5::operator_less2(const MD5&) const': util/md5sum.cc:73:7: error: 'sum' was not declared in this scope 73 | if (sum[1] < x.sum[1]) return true; | ^~~ util/md5sum.cc:73:18: error: 'const class MD5' has no member named 'sum' 73 | if (sum[1] < x.sum[1]) return true; | ^~~ util/md5sum.cc:74:7: error: 'sum' was not declared in this scope 74 | if (sum[1] > x.sum[1]) return false; | ^~~ util/md5sum.cc:74:18: error: 'const class MD5' has no member named 'sum' 74 | if (sum[1] > x.sum[1]) return false; | ^~~ util/md5sum.cc:75:7: error: 'sum' was not declared in this scope 75 | if (sum[2] < x.sum[2]) return true; | ^~~ util/md5sum.cc:75:18: error: 'const class MD5' has no member named 'sum' 75 | if (sum[2] < x.sum[2]) return true; | ^~~ util/md5sum.cc:76:7: error: 'sum' was not declared in this scope 76 | if (sum[2] > x.sum[2]) return false; | ^~~ util/md5sum.cc:76:18: error: 'const class MD5' has no member named 'sum' 76 | if (sum[2] > x.sum[2]) return false; | ^~~ util/md5sum.cc:77:7: error: 'sum' was not declared in this scope 77 | if (sum[3] < x.sum[3]) return true; | ^~~ util/md5sum.cc:77:18: error: 'const class MD5' has no member named 'sum' 77 | if (sum[3] < x.sum[3]) return true; | ^~~ util/md5sum.cc:78:7: error: 'sum' was not declared in this scope 78 | if (sum[3] > x.sum[3]) return false; | ^~~ util/md5sum.cc:78:18: error: 'const class MD5' has no member named 'sum' 78 | if (sum[3] > x.sum[3]) return false; | ^~~ util/md5sum.cc:79:7: error: 'sum' was not declared in this scope 79 | if (sum[4] < x.sum[4]) return true; | ^~~ util/md5sum.cc:79:18: error: 'const class MD5' has no member named 'sum' 79 | if (sum[4] < x.sum[4]) return true; | ^~~ util/md5sum.cc:80:7: error: 'sum' was not declared in this scope 80 | if (sum[4] > x.sum[4]) return false; | ^~~ util/md5sum.cc:80:18: error: 'const class MD5' has no member named 'sum' 80 | if (sum[4] > x.sum[4]) return false; | ^~~ util/md5sum.cc:81:7: error: 'sum' was not declared in this scope 81 | if (sum[5] < x.sum[5]) return true; | ^~~ util/md5sum.cc:81:18: error: 'const class MD5' has no member named 'sum' 81 | if (sum[5] < x.sum[5]) return true; | ^~~ util/md5sum.cc:82:7: error: 'sum' was not declared in this scope 82 | if (sum[5] > x.sum[5]) return false; | ^~~ util/md5sum.cc:82:18: error: 'const class MD5' has no member named 'sum' 82 | if (sum[5] > x.sum[5]) return false; | ^~~ util/md5sum.cc:83:7: error: 'sum' was not declared in this scope 83 | if (sum[6] < x.sum[6]) return true; | ^~~ util/md5sum.cc:83:18: error: 'const class MD5' has no member named 'sum' 83 | if (sum[6] < x.sum[6]) return true; | ^~~ util/md5sum.cc:84:7: error: 'sum' was not declared in this scope 84 | if (sum[6] > x.sum[6]) return false; | ^~~ util/md5sum.cc:84:18: error: 'const class MD5' has no member named 'sum' 84 | if (sum[6] > x.sum[6]) return false; | ^~~ util/md5sum.cc:85:7: error: 'sum' was not declared in this scope 85 | if (sum[7] < x.sum[7]) return true; | ^~~ util/md5sum.cc:85:18: error: 'const class MD5' has no member named 'sum' 85 | if (sum[7] < x.sum[7]) return true; | ^~~ util/md5sum.cc:86:7: error: 'sum' was not declared in this scope 86 | if (sum[7] > x.sum[7]) return false; | ^~~ util/md5sum.cc:86:18: error: 'const class MD5' has no member named 'sum' 86 | if (sum[7] > x.sum[7]) return false; | ^~~ util/md5sum.cc:87:7: error: 'sum' was not declared in this scope 87 | if (sum[8] < x.sum[8]) return true; | ^~~ util/md5sum.cc:87:18: error: 'const class MD5' has no member named 'sum' 87 | if (sum[8] < x.sum[8]) return true; | ^~~ util/md5sum.cc:88:7: error: 'sum' was not declared in this scope 88 | if (sum[8] > x.sum[8]) return false; | ^~~ util/md5sum.cc:88:18: error: 'const class MD5' has no member named 'sum' 88 | if (sum[8] > x.sum[8]) return false; | ^~~ util/md5sum.cc:89:7: error: 'sum' was not declared in this scope 89 | if (sum[9] < x.sum[9]) return true; | ^~~ util/md5sum.cc:89:18: error: 'const class MD5' has no member named 'sum' 89 | if (sum[9] < x.sum[9]) return true; | ^~~ util/md5sum.cc:90:7: error: 'sum' was not declared in this scope 90 | if (sum[9] > x.sum[9]) return false; | ^~~ util/md5sum.cc:90:18: error: 'const class MD5' has no member named 'sum' 90 | if (sum[9] > x.sum[9]) return false; | ^~~ util/md5sum.cc:91:7: error: 'sum' was not declared in this scope 91 | if (sum[10] < x.sum[10]) return true; | ^~~ util/md5sum.cc:91:19: error: 'const class MD5' has no member named 'sum' 91 | if (sum[10] < x.sum[10]) return true; | ^~~ util/md5sum.cc:92:7: error: 'sum' was not declared in this scope 92 | if (sum[10] > x.sum[10]) return false; | ^~~ util/md5sum.cc:92:19: error: 'const class MD5' has no member named 'sum' 92 | if (sum[10] > x.sum[10]) return false; | ^~~ util/md5sum.cc:93:7: error: 'sum' was not declared in this scope 93 | if (sum[11] < x.sum[11]) return true; | ^~~ util/md5sum.cc:93:19: error: 'const class MD5' has no member named 'sum' 93 | if (sum[11] < x.sum[11]) return true; | ^~~ util/md5sum.cc:94:7: error: 'sum' was not declared in this scope 94 | if (sum[11] > x.sum[11]) return false; | ^~~ util/md5sum.cc:94:19: error: 'const class MD5' has no member named 'sum' 94 | if (sum[11] > x.sum[11]) return false; | ^~~ util/md5sum.cc:95:7: error: 'sum' was not declared in this scope 95 | if (sum[12] < x.sum[12]) return true; | ^~~ util/md5sum.cc:95:19: error: 'const class MD5' has no member named 'sum' 95 | if (sum[12] < x.sum[12]) return true; | ^~~ util/md5sum.cc:96:7: error: 'sum' was not declared in this scope 96 | if (sum[12] > x.sum[12]) return false; | ^~~ util/md5sum.cc:96:19: error: 'const class MD5' has no member named 'sum' 96 | if (sum[12] > x.sum[12]) return false; | ^~~ util/md5sum.cc:97:7: error: 'sum' was not declared in this scope 97 | if (sum[13] < x.sum[13]) return true; | ^~~ util/md5sum.cc:97:19: error: 'const class MD5' has no member named 'sum' 97 | if (sum[13] < x.sum[13]) return true; | ^~~ util/md5sum.cc:98:7: error: 'sum' was not declared in this scope 98 | if (sum[13] > x.sum[13]) return false; | ^~~ util/md5sum.cc:98:19: error: 'const class MD5' has no member named 'sum' 98 | if (sum[13] > x.sum[13]) return false; | ^~~ util/md5sum.cc:99:7: error: 'sum' was not declared in this scope 99 | if (sum[14] < x.sum[14]) return true; | ^~~ util/md5sum.cc:99:19: error: 'const class MD5' has no member named 'sum' 99 | if (sum[14] < x.sum[14]) return true; | ^~~ util/md5sum.cc:100:7: error: 'sum' was not declared in this scope 100 | if (sum[14] > x.sum[14]) return false; | ^~~ util/md5sum.cc:100:19: error: 'const class MD5' has no member named 'sum' 100 | if (sum[14] > x.sum[14]) return false; | ^~~ util/md5sum.cc:101:7: error: 'sum' was not declared in this scope 101 | if (sum[15] < x.sum[15]) return true; | ^~~ util/md5sum.cc:101:19: error: 'const class MD5' has no member named 'sum' 101 | if (sum[15] < x.sum[15]) return true; | ^~~ util/md5sum.cc: In member function 'uint64 MD5Sum::updateFromStream(bistream&, uint64, size_t, MD5Sum::ProgressReporter&)': util/md5sum.cc:111:14: error: template argument 1 is invalid 111 | vector buffer; | ^ util/md5sum.cc:111:14: error: template argument 2 is invalid util/md5sum.cc:112:10: error: request for member 'resize' in 'buffer', which is of non-class type 'int' 112 | buffer.resize(bufSize); | ^~~~~~ util/md5sum.cc:113:3: error: reference to 'byte' is ambiguous 113 | byte* buf = &buffer[0]; | ^~~~ In file included from ./config.h:217, from util/md5sum.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from util/md5sum.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ util/md5sum.cc:113:9: error: 'buf' was not declared in this scope 113 | byte* buf = &buffer[0]; | ^~~ util/md5sum.cc:113:22: error: invalid types 'int[int]' for array subscript 113 | byte* buf = &buffer[0]; | ^ make[1]: *** [Makefile:95: util/md5sum.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c util/debug.cc -o util/debug.o make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c zstream-gz.cc -o zstream-gz.o In file included from ./util/md5sum.hh:37, from zstream-gz.cc:23: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream-gz.cc:23: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream-gz.cc:23: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream-gz.cc:23: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:23: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream-gz.cc:23: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from zstream-gz.cc:24: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:24: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:24: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:24: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:24: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:24: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: At global scope: ./zstream.hh:81:33: error: reference to 'byte' is ambiguous 81 | inline Zobstream& write(const byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:99:11: error: reference to 'byte' is ambiguous 99 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:100:11: error: reference to 'byte' is ambiguous 100 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:105:27: error: reference to 'byte' is ambiguous 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:105:27: error: 'byte' has not been declared 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ ./zstream.hh:106:26: error: reference to 'byte' is ambiguous 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:106:26: error: 'byte' has not been declared 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:108:21: error: reference to 'byte' is ambiguous 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:108:21: error: 'byte' has not been declared 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ ./zstream.hh:117:5: error: reference to 'byte' is ambiguous 117 | byte data[ZIPDATA_SIZE]; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:129:19: error: reference to 'byte' is ambiguous 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:129:19: error: 'byte' has not been declared 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream.hh:132:3: error: reference to 'byte' is ambiguous 132 | byte* todoBuf; // Allocated during open(), deallocated during close() | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/log.hh:56, from zstream-gz.cc:22: ./zstream.hh: In destructor 'virtual Zobstream::~Zobstream()': ./zstream.hh:60:57: error: 'todoBuf' was not declared in this scope 60 | virtual ~Zobstream() { close(); delete zipBuf; Assert(todoBuf == 0); } | ^~~~~~~ ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: At global scope: ./zstream.hh:159:13: error: reference to 'byte' is ambiguous 159 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:160:13: error: reference to 'byte' is ambiguous 160 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:164:28: error: reference to 'byte' is ambiguous 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:164:28: error: 'byte' has not been declared 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:175:26: error: reference to 'byte' is ambiguous 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:175:26: error: 'byte' has not been declared 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ ./zstream.hh:208:19: error: reference to 'byte' is ambiguous 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:208:19: error: 'byte' has not been declared 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ ./zstream.hh:237:3: error: reference to 'byte' is ambiguous 237 | byte* buf; // Contains compressed data | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:240:3: error: reference to 'byte' is ambiguous 240 | byte* nextOut; // Pointer into output buffer | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: In destructor 'virtual Zibstream::~Zibstream()': ./zstream.hh:190:42: error: 'buf' was not declared in this scope 190 | virtual ~Zibstream() { close(); delete buf; if (z != 0) z->end(); delete z; } | ^~~ ./zstream.hh: In member function 'bool Zibstream::good() const': ./zstream.hh:215:43: error: 'buf' was not declared in this scope 215 | bool good() const { return is_open() && buf != 0; } | ^~~ ./zstream.hh: In constructor 'Zobstream::Zobstream(MD5Sum*)': ./zstream.hh:249:33: error: class 'Zobstream' does not have any field named 'todoBuf' 249 | : zipBuf(0), zipBufLast(0), todoBuf(0), todoBufSize(0), todoCount(0), | ^~~~~~~ ./zstream.hh: In member function 'void Zobstream::open(bostream&, unsigned int, unsigned int)': ./zstream.hh:259:3: error: 'todoBuf' was not declared in this scope; did you mean 'todoBufSz'? 259 | todoBuf = new byte[todoBufSize]; | ^~~~~~~ | todoBufSz ./zstream.hh:259:17: error: reference to 'byte' is ambiguous 259 | todoBuf = new byte[todoBufSize]; | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: At global scope: ./zstream.hh:265:6: error: variable or field 'zip' declared void 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~~ ./zstream.hh:265:21: error: reference to 'byte' is ambiguous 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:265:27: error: 'start' was not declared in this scope 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~ ./zstream.hh:265:34: error: expected primary-expression before 'unsigned' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~ ./zstream.hh:265:48: error: expected primary-expression before 'bool' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ ./zstream.hh: In member function 'Zobstream& Zobstream::put(unsigned char)': ./zstream.hh:273:37: error: 'todoBuf' was not declared in this scope 273 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:274:3: error: 'todoBuf' was not declared in this scope 274 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:274:36: error: reference to 'byte' is ambiguous 274 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: In member function 'Zobstream& Zobstream::put(signed char)': ./zstream.hh:280:37: error: 'todoBuf' was not declared in this scope 280 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:281:3: error: 'todoBuf' was not declared in this scope 281 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:281:36: error: reference to 'byte' is ambiguous 281 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: In member function 'Zobstream& Zobstream::put(char)': ./zstream.hh:287:37: error: 'todoBuf' was not declared in this scope 287 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:288:3: error: 'todoBuf' was not declared in this scope 288 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:288:36: error: reference to 'byte' is ambiguous 288 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: In member function 'Zobstream& Zobstream::put(int)': ./zstream.hh:294:37: error: 'todoBuf' was not declared in this scope 294 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:295:3: error: 'todoBuf' was not declared in this scope 295 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:295:36: error: reference to 'byte' is ambiguous 295 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: At global scope: ./zstream.hh:300:35: error: reference to 'byte' is ambiguous 300 | Zobstream& Zobstream::write(const byte* x, unsigned n) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh: In member function 'Zobstream& Zobstream::write(const int*, unsigned int)': ./zstream.hh:303:9: error: 'todoBuf' was not declared in this scope 303 | zip(todoBuf, todoCount); // Zip remaining data in todoBuf | ^~~~~~~ ./zstream.hh:304:20: error: reference to 'byte' is ambiguous 304 | zip(const_cast(x), n); // Zip byte array | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from zstream-gz.cc:26: ./zstream.hh:304:24: error: expected '>' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh:304:24: error: expected '(' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ | ( ./zstream.hh:304:25: error: expected primary-expression before '>' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh: In constructor 'Zibstream::Zibstream(unsigned int)': ./zstream.hh:311:40: error: class 'Zibstream' does not have any field named 'buf' 311 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ ./zstream.hh: In constructor 'Zibstream::Zibstream(bistream&, unsigned int)': ./zstream.hh:315:40: error: class 'Zibstream' does not have any field named 'buf' 315 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh: At global scope: ./zstream-gz.hh:59:11: error: reference to 'byte' is ambiguous 59 | virtual byte* nextOut() const { return z.next_out; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:60:11: error: reference to 'byte' is ambiguous 60 | virtual byte* nextIn() const { return z.next_in; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:65:27: error: reference to 'byte' is ambiguous 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:65:27: error: 'byte' has not been declared 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^~~~ ./zstream-gz.hh:66:26: error: reference to 'byte' is ambiguous 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:66:26: error: 'byte' has not been declared 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ ./zstream-gz.hh:67:21: error: reference to 'byte' is ambiguous 67 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:67:21: error: 'byte' has not been declared 67 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZobstreamGz::totalOut() const': ./zstream-gz.hh:55:48: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 55 | virtual unsigned totalOut() const { return z.total_out; } | ~~^~~~~~~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZobstreamGz::totalIn() const': ./zstream-gz.hh:56:47: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 56 | virtual unsigned totalIn() const { return z.total_in; } | ~~^~~~~~~~ ./zstream-gz.hh: In member function 'virtual void ZobstreamGz::setNextOut(int*)': ./zstream-gz.hh:65:51: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^ | | | int* ./zstream-gz.hh: In member function 'virtual void ZobstreamGz::setNextIn(int*)': ./zstream-gz.hh:66:49: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^ | | | int* ./zstream-gz.hh: At global scope: ./zstream-gz.hh:94:11: error: reference to 'byte' is ambiguous 94 | virtual byte* nextOut() const { return z.next_out; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:95:11: error: reference to 'byte' is ambiguous 95 | virtual byte* nextIn() const { return z.next_in; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:99:26: error: reference to 'byte' is ambiguous 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:99:26: error: 'byte' has not been declared 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ ./zstream-gz.hh:112:24: error: reference to 'byte' is ambiguous 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream-gz.cc:26: ./zstream-gz.hh:112:24: error: 'byte' has not been declared 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZibstreamGz::totalOut() const': ./zstream-gz.hh:90:48: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 90 | virtual unsigned totalOut() const { return z.total_out; } | ~~^~~~~~~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZibstreamGz::totalIn() const': ./zstream-gz.hh:91:47: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 91 | virtual unsigned totalIn() const { return z.total_in; } | ~~^~~~~~~~ ./zstream-gz.hh: In member function 'virtual void ZibstreamGz::setNextIn(int*)': ./zstream-gz.hh:99:49: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^ | | | int* ./zstream-gz.hh: In member function 'virtual void ZibstreamGz::inflate(int**, unsigned int*)': ./zstream-gz.hh:113:18: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 113 | z.next_out = *nextOut; z.avail_out = *availOut; | ^~~~~~~~ | | | int* ./zstream-gz.hh:115:18: error: cannot convert 'Bytef*' {aka 'unsigned char*'} to 'int*' in assignment 115 | *nextOut = z.next_out; *availOut = z.avail_out; | ~~^~~~~~~~ | | | Bytef* {aka unsigned char*} zstream-gz.cc: In member function 'void ZobstreamGz::open(bostream&, unsigned int, int, int, int, unsigned int)': zstream-gz.cc:77:24: error: 'struct Zobstream::ZipData' has no member named 'data' 77 | z.next_out = zipBuf->data; | ^~~~ zstream-gz.cc: At global scope: zstream-gz.cc:111:6: error: variable or field 'zip2' declared void 111 | void ZobstreamGz::zip2(byte* start, unsigned len, bool finish) { | ^~~~~~~~~~~ zstream-gz.cc:111:24: error: reference to 'byte' is ambiguous 111 | void ZobstreamGz::zip2(byte* start, unsigned len, bool finish) { | ^~~~ In file included from ./config.h:217, from zstream-gz.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream-gz.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream-gz.cc:111:30: error: 'start' was not declared in this scope 111 | void ZobstreamGz::zip2(byte* start, unsigned len, bool finish) { | ^~~~~ zstream-gz.cc:111:37: error: expected primary-expression before 'unsigned' 111 | void ZobstreamGz::zip2(byte* start, unsigned len, bool finish) { | ^~~~~~~~ zstream-gz.cc:111:51: error: expected primary-expression before 'bool' 111 | void ZobstreamGz::zip2(byte* start, unsigned len, bool finish) { | ^~~~ zstream-gz.cc: In function 'void {anonymous}::throwZerrorGz(int, const char*)': zstream-gz.cc:51:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 51 | if (m.empty()) m = "zlib Z_STREAM_ERROR"; | ^~ zstream-gz.cc:52:5: note: here 52 | case Z_DATA_ERROR: | ^~~~ zstream-gz.cc:53:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 53 | if (m.empty()) m = "zlib Z_DATA_ERROR"; | ^~ zstream-gz.cc:54:5: note: here 54 | case Z_BUF_ERROR: | ^~~~ zstream-gz.cc:55:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 55 | if (m.empty()) m = "zlib Z_BUF_ERROR"; | ^~ zstream-gz.cc:56:5: note: here 56 | case Z_VERSION_ERROR: | ^~~~ zstream-gz.cc:57:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 57 | if (m.empty()) m = "zlib Z_VERSION_ERROR"; | ^~ zstream-gz.cc:58:5: note: here 58 | default: | ^~~~~~~ make[1]: *** [Makefile:95: zstream-gz.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c util/configfile.cc -o util/configfile.o make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c zstream.cc -o zstream.o In file included from ./util/md5sum.hh:37, from zstream.cc:25: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream.cc:25: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream.cc:25: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from zstream.cc:25: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:25: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream.cc:25: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream.cc:25: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream.cc:25: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream.cc:25: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream.cc:25: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream.cc:25: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from zstream.cc:25: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream.cc:25: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream.cc:25: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from zstream.cc:25: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from zstream.cc:26: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:26: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:26: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:26: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:26: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:26: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from zstream.cc:28: ./zstream.hh: At global scope: ./zstream.hh:81:33: error: reference to 'byte' is ambiguous 81 | inline Zobstream& write(const byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:99:11: error: reference to 'byte' is ambiguous 99 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:100:11: error: reference to 'byte' is ambiguous 100 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:105:27: error: reference to 'byte' is ambiguous 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:105:27: error: 'byte' has not been declared 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ ./zstream.hh:106:26: error: reference to 'byte' is ambiguous 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:106:26: error: 'byte' has not been declared 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:108:21: error: reference to 'byte' is ambiguous 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:108:21: error: 'byte' has not been declared 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ ./zstream.hh:117:5: error: reference to 'byte' is ambiguous 117 | byte data[ZIPDATA_SIZE]; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:129:19: error: reference to 'byte' is ambiguous 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:129:19: error: 'byte' has not been declared 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream.hh:132:3: error: reference to 'byte' is ambiguous 132 | byte* todoBuf; // Allocated during open(), deallocated during close() | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/log.hh:56, from zstream.cc:24: ./zstream.hh: In destructor 'virtual Zobstream::~Zobstream()': ./zstream.hh:60:57: error: 'todoBuf' was not declared in this scope 60 | virtual ~Zobstream() { close(); delete zipBuf; Assert(todoBuf == 0); } | ^~~~~~~ ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ In file included from zstream.cc:28: ./zstream.hh: At global scope: ./zstream.hh:159:13: error: reference to 'byte' is ambiguous 159 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:160:13: error: reference to 'byte' is ambiguous 160 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:164:28: error: reference to 'byte' is ambiguous 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:164:28: error: 'byte' has not been declared 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:175:26: error: reference to 'byte' is ambiguous 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:175:26: error: 'byte' has not been declared 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ ./zstream.hh:208:19: error: reference to 'byte' is ambiguous 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:208:19: error: 'byte' has not been declared 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ ./zstream.hh:237:3: error: reference to 'byte' is ambiguous 237 | byte* buf; // Contains compressed data | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:240:3: error: reference to 'byte' is ambiguous 240 | byte* nextOut; // Pointer into output buffer | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh: In destructor 'virtual Zibstream::~Zibstream()': ./zstream.hh:190:42: error: 'buf' was not declared in this scope 190 | virtual ~Zibstream() { close(); delete buf; if (z != 0) z->end(); delete z; } | ^~~ ./zstream.hh: In member function 'bool Zibstream::good() const': ./zstream.hh:215:43: error: 'buf' was not declared in this scope 215 | bool good() const { return is_open() && buf != 0; } | ^~~ ./zstream.hh: In constructor 'Zobstream::Zobstream(MD5Sum*)': ./zstream.hh:249:33: error: class 'Zobstream' does not have any field named 'todoBuf' 249 | : zipBuf(0), zipBufLast(0), todoBuf(0), todoBufSize(0), todoCount(0), | ^~~~~~~ ./zstream.hh: In member function 'void Zobstream::open(bostream&, unsigned int, unsigned int)': ./zstream.hh:259:3: error: 'todoBuf' was not declared in this scope; did you mean 'todoBufSz'? 259 | todoBuf = new byte[todoBufSize]; | ^~~~~~~ | todoBufSz ./zstream.hh:259:17: error: reference to 'byte' is ambiguous 259 | todoBuf = new byte[todoBufSize]; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh: At global scope: ./zstream.hh:265:6: error: variable or field 'zip' declared void 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~~ ./zstream.hh:265:21: error: reference to 'byte' is ambiguous 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:265:27: error: 'start' was not declared in this scope 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~ ./zstream.hh:265:34: error: expected primary-expression before 'unsigned' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~ ./zstream.hh:265:48: error: expected primary-expression before 'bool' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ ./zstream.hh: In member function 'Zobstream& Zobstream::put(unsigned char)': ./zstream.hh:273:37: error: 'todoBuf' was not declared in this scope 273 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:274:3: error: 'todoBuf' was not declared in this scope 274 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:274:36: error: reference to 'byte' is ambiguous 274 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh: In member function 'Zobstream& Zobstream::put(signed char)': ./zstream.hh:280:37: error: 'todoBuf' was not declared in this scope 280 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:281:3: error: 'todoBuf' was not declared in this scope 281 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:281:36: error: reference to 'byte' is ambiguous 281 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh: In member function 'Zobstream& Zobstream::put(char)': ./zstream.hh:287:37: error: 'todoBuf' was not declared in this scope 287 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:288:3: error: 'todoBuf' was not declared in this scope 288 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:288:36: error: reference to 'byte' is ambiguous 288 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh: In member function 'Zobstream& Zobstream::put(int)': ./zstream.hh:294:37: error: 'todoBuf' was not declared in this scope 294 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:295:3: error: 'todoBuf' was not declared in this scope 295 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:295:36: error: reference to 'byte' is ambiguous 295 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh: At global scope: ./zstream.hh:300:35: error: reference to 'byte' is ambiguous 300 | Zobstream& Zobstream::write(const byte* x, unsigned n) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh: In member function 'Zobstream& Zobstream::write(const int*, unsigned int)': ./zstream.hh:303:9: error: 'todoBuf' was not declared in this scope 303 | zip(todoBuf, todoCount); // Zip remaining data in todoBuf | ^~~~~~~ ./zstream.hh:304:20: error: reference to 'byte' is ambiguous 304 | zip(const_cast(x), n); // Zip byte array | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:28: ./zstream.hh:304:24: error: expected '>' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh:304:24: error: expected '(' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ | ( ./zstream.hh:304:25: error: expected primary-expression before '>' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh: In constructor 'Zibstream::Zibstream(unsigned int)': ./zstream.hh:311:40: error: class 'Zibstream' does not have any field named 'buf' 311 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ ./zstream.hh: In constructor 'Zibstream::Zibstream(bistream&, unsigned int)': ./zstream.hh:315:40: error: class 'Zibstream' does not have any field named 'buf' 315 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ In file included from zstream.cc:29: ./zstream-gz.hh: At global scope: ./zstream-gz.hh:59:11: error: reference to 'byte' is ambiguous 59 | virtual byte* nextOut() const { return z.next_out; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:60:11: error: reference to 'byte' is ambiguous 60 | virtual byte* nextIn() const { return z.next_in; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:65:27: error: reference to 'byte' is ambiguous 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:65:27: error: 'byte' has not been declared 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^~~~ ./zstream-gz.hh:66:26: error: reference to 'byte' is ambiguous 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:66:26: error: 'byte' has not been declared 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ ./zstream-gz.hh:67:21: error: reference to 'byte' is ambiguous 67 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:67:21: error: 'byte' has not been declared 67 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZobstreamGz::totalOut() const': ./zstream-gz.hh:55:48: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 55 | virtual unsigned totalOut() const { return z.total_out; } | ~~^~~~~~~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZobstreamGz::totalIn() const': ./zstream-gz.hh:56:47: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 56 | virtual unsigned totalIn() const { return z.total_in; } | ~~^~~~~~~~ ./zstream-gz.hh: In member function 'virtual void ZobstreamGz::setNextOut(int*)': ./zstream-gz.hh:65:51: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^ | | | int* ./zstream-gz.hh: In member function 'virtual void ZobstreamGz::setNextIn(int*)': ./zstream-gz.hh:66:49: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^ | | | int* ./zstream-gz.hh: At global scope: ./zstream-gz.hh:94:11: error: reference to 'byte' is ambiguous 94 | virtual byte* nextOut() const { return z.next_out; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:95:11: error: reference to 'byte' is ambiguous 95 | virtual byte* nextIn() const { return z.next_in; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:99:26: error: reference to 'byte' is ambiguous 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:99:26: error: 'byte' has not been declared 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ ./zstream-gz.hh:112:24: error: reference to 'byte' is ambiguous 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:29: ./zstream-gz.hh:112:24: error: 'byte' has not been declared 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZibstreamGz::totalOut() const': ./zstream-gz.hh:90:48: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 90 | virtual unsigned totalOut() const { return z.total_out; } | ~~^~~~~~~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZibstreamGz::totalIn() const': ./zstream-gz.hh:91:47: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 91 | virtual unsigned totalIn() const { return z.total_in; } | ~~^~~~~~~~ ./zstream-gz.hh: In member function 'virtual void ZibstreamGz::setNextIn(int*)': ./zstream-gz.hh:99:49: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^ | | | int* ./zstream-gz.hh: In member function 'virtual void ZibstreamGz::inflate(int**, unsigned int*)': ./zstream-gz.hh:113:18: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 113 | z.next_out = *nextOut; z.avail_out = *availOut; | ^~~~~~~~ | | | int* ./zstream-gz.hh:115:18: error: cannot convert 'Bytef*' {aka 'unsigned char*'} to 'int*' in assignment 115 | *nextOut = z.next_out; *availOut = z.avail_out; | ~~^~~~~~~~ | | | Bytef* {aka unsigned char*} In file included from zstream.cc:30: ./zstream-bz.hh: At global scope: ./zstream-bz.hh:53:11: error: reference to 'byte' is ambiguous 53 | virtual byte* nextOut() const { return reinterpret_cast(z.next_out); } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:54:11: error: reference to 'byte' is ambiguous 54 | virtual byte* nextIn() const { return reinterpret_cast(z.next_in); } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:61:27: error: reference to 'byte' is ambiguous 61 | virtual void setNextOut(byte* n) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:61:27: error: 'byte' has not been declared 61 | virtual void setNextOut(byte* n) { | ^~~~ ./zstream-bz.hh:63:26: error: reference to 'byte' is ambiguous 63 | virtual void setNextIn(byte* n) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:63:26: error: 'byte' has not been declared 63 | virtual void setNextIn(byte* n) { | ^~~~ ./zstream-bz.hh:65:21: error: reference to 'byte' is ambiguous 65 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:65:21: error: 'byte' has not been declared 65 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream-bz.hh:89:11: error: reference to 'byte' is ambiguous 89 | virtual byte* nextOut() const { return reinterpret_cast(z.next_out); } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:90:11: error: reference to 'byte' is ambiguous 90 | virtual byte* nextIn() const { return reinterpret_cast(z.next_in); } | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:96:26: error: reference to 'byte' is ambiguous 96 | virtual void setNextIn(byte* n) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:96:26: error: 'byte' has not been declared 96 | virtual void setNextIn(byte* n) { | ^~~~ ./zstream-bz.hh:112:24: error: reference to 'byte' is ambiguous 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:112:24: error: 'byte' has not been declared 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ ./zstream-bz.hh: In member function 'virtual void ZibstreamBz::inflate(int**, unsigned int*)': ./zstream-bz.hh:115:33: error: reference to 'byte' is ambiguous 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from zstream.cc:30: ./zstream-bz.hh:115:37: error: expected '>' before '*' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ ./zstream-bz.hh:115:37: error: expected '(' before '*' token ./zstream-bz.hh:115:38: error: expected primary-expression before '>' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ ./zstream-bz.hh:115:51: error: expected ')' before ';' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ zstream.cc: In member function 'void Zobstream::close()': zstream.cc:40:9: error: 'todoBuf' was not declared in this scope 40 | zip(todoBuf, todoCount, Z_FINISH); // Flush out remain. buffer contents | ^~~~~~~ zstream.cc:45:14: error: 'todoBuf' was not declared in this scope 45 | delete[] todoBuf; | ^~~~~~~ zstream.cc:58:12: error: 'todoBuf' was not declared in this scope 58 | delete[] todoBuf; | ^~~~~~~ zstream.cc: In member function 'void Zobstream::writeZipped(unsigned int)': zstream.cc:76:3: error: reference to 'byte' is ambiguous 76 | byte buf[16]; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream.cc:77:3: error: reference to 'byte' is ambiguous 77 | byte* p = buf; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream.cc:77:9: error: 'p' was not declared in this scope 77 | byte* p = buf; | ^ zstream.cc:77:13: error: 'buf' was not declared in this scope 77 | byte* p = buf; | ^~~ zstream.cc:93:29: error: 'struct Zobstream::ZipData' has no member named 'data' 93 | writeBytes(*stream, zd->data, len); | ^~~~ zstream.cc:94:41: error: 'struct Zobstream::ZipData' has no member named 'data' 94 | if (md5sum != 0) md5sum->update(zd->data, len); | ^~~~ zstream.cc:103:22: error: 'struct Zobstream::ZipData' has no member named 'data' 103 | setNextOut(zipBuf->data); | ^~~~ zstream.cc: In member function 'Zobstream& Zobstream::put(uint32)': zstream.cc:114:40: error: 'todoBuf' was not declared in this scope 114 | if (todoCount > todoBufSize - 4) zip(todoBuf, todoCount); | ^~~~~~~ zstream.cc:115:3: error: 'todoBuf' was not declared in this scope 115 | todoBuf[todoCount] = static_cast(x & 0xff); | ^~~~~~~ zstream.cc:115:36: error: reference to 'byte' is ambiguous 115 | todoBuf[todoCount] = static_cast(x & 0xff); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream.cc:117:36: error: reference to 'byte' is ambiguous 117 | todoBuf[todoCount] = static_cast((x >> 8) & 0xff); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream.cc:119:36: error: reference to 'byte' is ambiguous 119 | todoBuf[todoCount] = static_cast((x >> 16) & 0xff); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream.cc:121:36: error: reference to 'byte' is ambiguous 121 | todoBuf[todoCount] = static_cast((x >> 24) & 0xff); | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream.cc: In member function 'void Zibstream::open(bistream&)': zstream.cc:131:3: error: 'buf' was not declared in this scope 131 | buf = new byte[bufSize]; | ^~~ zstream.cc:131:13: error: reference to 'byte' is ambiguous 131 | buf = new byte[bufSize]; | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream.cc: In member function 'void Zibstream::close()': zstream.cc:151:12: error: 'buf' was not declared in this scope 151 | delete[] buf; | ^~~ zstream.cc: At global scope: zstream.cc:162:12: error: 'Zibstream& Zibstream::read' is not a static data member of 'class Zibstream' 162 | Zibstream& Zibstream::read(byte* dest, unsigned n) { | ^~~~~~~~~ zstream.cc:162:28: error: reference to 'byte' is ambiguous 162 | Zibstream& Zibstream::read(byte* dest, unsigned n) { | ^~~~ In file included from ./config.h:217, from zstream.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from zstream.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ zstream.cc:162:34: error: 'dest' was not declared in this scope 162 | Zibstream& Zibstream::read(byte* dest, unsigned n) { | ^~~~ zstream.cc:162:40: error: expected primary-expression before 'unsigned' 162 | Zibstream& Zibstream::read(byte* dest, unsigned n) { | ^~~~~~~~ zstream.cc:162:50: error: expression list treated as compound expression in initializer [-fpermissive] 162 | Zibstream& Zibstream::read(byte* dest, unsigned n) { | ^ make[1]: *** [Makefile:95: zstream.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c scan.cc -o scan.o In file included from scan.cc:26: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from scan.cc:26: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from scan.cc:26: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from scan.cc:26: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh:85:21: error: reference to 'byte' is ambiguous 85 | Status find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh:95:25: error: reference to 'byte' is ambiguous 95 | Status findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh:102:28: error: reference to 'byte' is ambiguous 102 | inline void insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh:119:3: error: reference to 'byte' is ambiguous 119 | byte* insert_prepare(size_t inSize); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh:141:30: error: reference to 'byte' is ambiguous 141 | void CacheFile::insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh: In member function 'void CacheFile::insert(const int*, size_t, const string&, time_t, uint64)': ./cachefile.hh:143:10: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 143 | memcpy(insert_prepare(inSize), inData, inSize); | ^~~~~~~~~~~~~~ | insert_perform ./cachefile.hh: In member function 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64)': ./cachefile.hh:150:5: error: there are no arguments to 'insert_prepare' that depend on a template parameter, so a declaration of 'insert_prepare' must be available [-fpermissive] 150 | f(insert_prepare(inSize)); | ^~~~~~~~~~~~~~ ./cachefile.hh:150:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh: At global scope: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from scan.cc:30: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from scan.cc:30: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from scan.cc:30: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from scan.cc:30: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from scan.cc:30: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from scan.cc:30: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from scan.cc:30: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from scan.cc:30: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh: At global scope: ./util/rsyncsum.hh:52:18: error: reference to 'byte' is ambiguous 52 | RsyncSum(const byte* mem, size_t len) : sum(0) { addBack(mem, len); }; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:61:27: error: reference to 'byte' is ambiguous 61 | RsyncSum& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:63:28: error: reference to 'byte' is ambiguous 63 | inline RsyncSum& addBack(byte x); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:63:28: error: 'byte' has not been declared 63 | inline RsyncSum& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:68:34: error: reference to 'byte' is ambiguous 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:68:34: error: 'byte' has not been declared 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:75:31: error: reference to 'byte' is ambiguous 75 | RsyncSum& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:77:32: error: reference to 'byte' is ambiguous 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:77:32: error: 'byte' has not been declared 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:101:27: error: reference to 'byte' is ambiguous 101 | inline RsyncSum64(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:108:36: error: reference to 'byte' is ambiguous 108 | INLINE RsyncSum64& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:109:30: error: reference to 'byte' is ambiguous 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:109:30: error: 'byte' has not been declared 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:110:36: error: reference to 'byte' is ambiguous 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:110:36: error: 'byte' has not been declared 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:111:33: error: reference to 'byte' is ambiguous 111 | RsyncSum64& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:112:34: error: reference to 'byte' is ambiguous 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:112:34: error: 'byte' has not been declared 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:127:30: error: reference to 'byte' is ambiguous 127 | RsyncSum64& addBack2(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:136:11: error: 'RsyncSum& RsyncSum::addBack' is not a static data member of 'class RsyncSum' 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~~~~~ ./util/rsyncsum.hh:136:29: error: reference to 'byte' is ambiguous 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:145:11: error: 'RsyncSum& RsyncSum::addBackNtimes' is not a static data member of 'class RsyncSum' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~~~~~ ./util/rsyncsum.hh:145:35: error: reference to 'byte' is ambiguous 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:145:50: error: expected primary-expression before 'n' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:145:51: error: expression list treated as compound expression in initializer [-fpermissive] 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:154:11: error: 'RsyncSum& RsyncSum::removeFront' is not a static data member of 'class RsyncSum' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:33: error: reference to 'byte' is ambiguous 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:154:48: error: expected primary-expression before 'areaSize' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:56: error: expression list treated as compound expression in initializer [-fpermissive] 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^ ./util/rsyncsum.hh:164:30: error: reference to 'byte' is ambiguous 164 | RsyncSum64::RsyncSum64(const byte* mem, size_t len) : sumLo(0), sumHi(0) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:188:13: error: 'RsyncSum64& RsyncSum64::removeFront' is not a static data member of 'class RsyncSum64' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~~~ ./util/rsyncsum.hh:188:37: error: reference to 'byte' is ambiguous 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.hh:188:52: error: expected primary-expression before 'areaSize' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:188:60: error: expression list treated as compound expression in initializer [-fpermissive] 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.ih:34:39: error: reference to 'byte' is ambiguous 34 | RsyncSum64& RsyncSum64::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.ih:39:13: error: 'RsyncSum64& RsyncSum64::addBack' is not a static data member of 'class RsyncSum64' 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~~~~~~~ ./util/rsyncsum.ih:39:33: error: reference to 'byte' is ambiguous 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.ih:45:13: error: 'RsyncSum64& RsyncSum64::addBackNtimes' is not a static data member of 'class RsyncSum64' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~~~~~~~ ./util/rsyncsum.ih:45:39: error: reference to 'byte' is ambiguous 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from scan.cc:30: ./util/rsyncsum.ih:45:54: error: expected primary-expression before 'n' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.ih:45:55: error: expression list treated as compound expression in initializer [-fpermissive] 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ In file included from scan.cc:30: ./scan.hh:168:38: error: reference to 'byte' is ambiguous 168 | size_t unserializeCacheEntry(const byte* data, size_t dataSize, | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from scan.cc:30: ./scan.hh:312:14: error: template argument 1 is invalid 312 | vector buffer; | ^ ./scan.hh:312:14: error: template argument 2 is invalid ./scan.hh: In member function 'void JigdoCache::deallocBuffer()': ./scan.hh:229:33: error: request for member 'resize' in '((JigdoCache*)this)->JigdoCache::buffer', which is of non-class type 'int' 229 | void deallocBuffer() { buffer.resize(0); } | ^~~~~~ ./scan.hh: In member function 'void JigdoCache::readFilenames(RecurseDir&)': ./scan.hh:426:13: error: reference to 'byte' is ambiguous 426 | const byte* data; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from scan.cc:30: ./scan.hh:429:32: error: cannot convert '' to 'const int*&' 429 | if (cacheFile->findName(data, dataSize, name, stSize, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | fileInfo.st_mtime).failed()) | ~~~~~~~~~~~~~~~~~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh:95:32: note: initializing argument 1 of 'Status CacheFile::findName(const int*&, size_t&, const string&, off_t&, time_t&)' 95 | Status findName(const byte*& resultData, size_t& resultSize, | ~~~~~~~~~~~~~^~~~~~~~~~ scan.cc: At global scope: scan.cc:71:46: error: reference to 'byte' is ambiguous 71 | size_t FilePart::unserializeCacheEntry(const byte* data, size_t dataSize, | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ scan.cc:132:19: error: reference to 'byte' is ambiguous 132 | void operator()(byte* data) { | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ scan.cc:132:19: error: 'byte' has not been declared 132 | void operator()(byte* data) { | ^~~~ scan.cc: In member function 'const MD5* FilePart::getSumsRead(JigdoCache*, size_t)': scan.cc:236:11: error: reference to 'byte' is ambiguous 236 | const byte* data; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ scan.cc:242:29: error: cannot convert '' to 'const int*&' 242 | if (c->cacheFile->find(data, dataSize, leafName(), size(), mtime()) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh:85:28: note: initializing argument 1 of 'Status CacheFile::find(const int*&, size_t&, const string&, uint64, time_t)' 85 | Status find(const byte*& resultData, size_t& resultSize, | ~~~~~~~~~~~~~^~~~~~~~~~ scan.cc:245:57: error: cannot convert '' to 'const int*' 245 | size_t cachedBlockLength = unserializeCacheEntry(data, dataSize, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 246 | c->md5BlockLength); | ~~~~~~~~~~~~~~~~~~ scan.cc:71:52: note: initializing argument 1 of 'size_t FilePart::unserializeCacheEntry(const int*, size_t, size_t)' 71 | size_t FilePart::unserializeCacheEntry(const byte* data, size_t dataSize, | ~~~~~~~~~~~~^~~~ scan.cc:301:13: error: request for member 'resize' in 'c->JigdoCache::buffer', which is of non-class type 'int' 301 | c->buffer.resize(c->readAmount > c->md5BlockLength ? | ^~~~~~ scan.cc:321:3: error: reference to 'byte' is ambiguous 321 | byte* buf = &c->buffer[0]; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ scan.cc:321:9: error: 'buf' was not declared in this scope 321 | byte* buf = &c->buffer[0]; | ^~~ scan.cc:321:25: error: invalid types 'int[int]' for array subscript 321 | byte* buf = &c->buffer[0]; | ^ scan.cc:322:3: error: reference to 'byte' is ambiguous 322 | byte* bufpos = buf; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ scan.cc:322:9: error: 'bufpos' was not declared in this scope 322 | byte* bufpos = buf; | ^~~~~~ scan.cc:323:3: error: reference to 'byte' is ambiguous 323 | byte* bufend = buf + (c->readAmount > thisBlockLength ? | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ scan.cc:323:9: error: 'bufend' was not declared in this scope 323 | byte* bufend = buf + (c->readAmount > thisBlockLength ? | ^~~~~~ scan.cc:354:7: error: reference to 'byte' is ambiguous 354 | byte* cur = buf + mdLeft; | ^~~~ In file included from ./config.h:217, from scan.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from scan.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ scan.cc:354:13: error: 'cur' was not declared in this scope 354 | byte* cur = buf + mdLeft; | ^~~ In file included from ./scan.hh:27, from scan.cc:30: ./cachefile.hh: In instantiation of 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64) [with Functor = FilePart::SerializeCacheEntry; size_t = long unsigned int; std::string = std::__cxx11::basic_string; time_t = long int; uint64 = long unsigned int]': scan.cc:189:26: required from here ./cachefile.hh:150:19: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 150 | f(insert_prepare(inSize)); | ~~~~~~~~~~~~~~^~~~~~~~ | insert_perform make[1]: *** [Makefile:95: scan.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c partialmatch.cc -o partialmatch.o In file included from ./mktemplate.hh:35, from partialmatch.cc:15: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:35, from partialmatch.cc:15: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:35, from partialmatch.cc:15: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:35, from partialmatch.cc:15: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./mktemplate.hh:41, from partialmatch.cc:15: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from partialmatch.cc:15: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from partialmatch.cc:15: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from partialmatch.cc:15: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from partialmatch.cc:15: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from partialmatch.cc:15: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from partialmatch.cc:15: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh: At global scope: ./util/rsyncsum.hh:52:18: error: reference to 'byte' is ambiguous 52 | RsyncSum(const byte* mem, size_t len) : sum(0) { addBack(mem, len); }; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:61:27: error: reference to 'byte' is ambiguous 61 | RsyncSum& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:63:28: error: reference to 'byte' is ambiguous 63 | inline RsyncSum& addBack(byte x); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:63:28: error: 'byte' has not been declared 63 | inline RsyncSum& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:68:34: error: reference to 'byte' is ambiguous 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:68:34: error: 'byte' has not been declared 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:75:31: error: reference to 'byte' is ambiguous 75 | RsyncSum& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:77:32: error: reference to 'byte' is ambiguous 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:77:32: error: 'byte' has not been declared 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:101:27: error: reference to 'byte' is ambiguous 101 | inline RsyncSum64(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:108:36: error: reference to 'byte' is ambiguous 108 | INLINE RsyncSum64& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:109:30: error: reference to 'byte' is ambiguous 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:109:30: error: 'byte' has not been declared 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:110:36: error: reference to 'byte' is ambiguous 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:110:36: error: 'byte' has not been declared 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:111:33: error: reference to 'byte' is ambiguous 111 | RsyncSum64& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:112:34: error: reference to 'byte' is ambiguous 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:112:34: error: 'byte' has not been declared 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:127:30: error: reference to 'byte' is ambiguous 127 | RsyncSum64& addBack2(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:136:11: error: 'RsyncSum& RsyncSum::addBack' is not a static data member of 'class RsyncSum' 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~~~~~ ./util/rsyncsum.hh:136:29: error: reference to 'byte' is ambiguous 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:145:11: error: 'RsyncSum& RsyncSum::addBackNtimes' is not a static data member of 'class RsyncSum' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~~~~~ ./util/rsyncsum.hh:145:35: error: reference to 'byte' is ambiguous 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:145:50: error: expected primary-expression before 'n' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:145:51: error: expression list treated as compound expression in initializer [-fpermissive] 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:154:11: error: 'RsyncSum& RsyncSum::removeFront' is not a static data member of 'class RsyncSum' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:33: error: reference to 'byte' is ambiguous 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:154:48: error: expected primary-expression before 'areaSize' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:56: error: expression list treated as compound expression in initializer [-fpermissive] 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^ ./util/rsyncsum.hh:164:30: error: reference to 'byte' is ambiguous 164 | RsyncSum64::RsyncSum64(const byte* mem, size_t len) : sumLo(0), sumHi(0) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:188:13: error: 'RsyncSum64& RsyncSum64::removeFront' is not a static data member of 'class RsyncSum64' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~~~ ./util/rsyncsum.hh:188:37: error: reference to 'byte' is ambiguous 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.hh:188:52: error: expected primary-expression before 'areaSize' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:188:60: error: expression list treated as compound expression in initializer [-fpermissive] 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^ In file included from ./util/rsyncsum.hh:209, from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.ih:34:39: error: reference to 'byte' is ambiguous 34 | RsyncSum64& RsyncSum64::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.ih:39:13: error: 'RsyncSum64& RsyncSum64::addBack' is not a static data member of 'class RsyncSum64' 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~~~~~~~ ./util/rsyncsum.ih:39:33: error: reference to 'byte' is ambiguous 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.ih:45:13: error: 'RsyncSum64& RsyncSum64::addBackNtimes' is not a static data member of 'class RsyncSum64' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~~~~~~~ ./util/rsyncsum.ih:45:39: error: reference to 'byte' is ambiguous 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./mktemplate.hh:42, from partialmatch.cc:15: ./util/rsyncsum.ih:45:54: error: expected primary-expression before 'n' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.ih:45:55: error: expression list treated as compound expression in initializer [-fpermissive] 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ In file included from partialmatch.cc:15: ./mktemplate.hh:110:16: error: reference to 'byte' is ambiguous 110 | static const byte IMAGE_INFO = 1, UNMATCHED_DATA = 2, MATCHED_FILE = 3; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from partialmatch.cc:15: ./mktemplate.hh:141:25: error: reference to 'byte' is ambiguous 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from partialmatch.cc:15: ./mktemplate.hh:141:25: error: 'byte' has not been declared 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ ./mktemplate.hh:150:29: error: reference to 'byte' is ambiguous 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from partialmatch.cc:15: ./mktemplate.hh:150:29: error: 'byte' has not been declared 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ ./mktemplate.hh:156:30: error: reference to 'byte' is ambiguous 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from partialmatch.cc:15: ./mktemplate.hh:156:30: error: 'byte' has not been declared 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ ./mktemplate.hh:160:23: error: reference to 'byte' is ambiguous 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from partialmatch.cc:15: ./mktemplate.hh:160:23: error: 'byte' has not been declared 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./cachefile.hh:85:21: error: reference to 'byte' is ambiguous 85 | Status find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./cachefile.hh:95:25: error: reference to 'byte' is ambiguous 95 | Status findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./cachefile.hh:102:28: error: reference to 'byte' is ambiguous 102 | inline void insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./cachefile.hh:119:3: error: reference to 'byte' is ambiguous 119 | byte* insert_prepare(size_t inSize); | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./cachefile.hh:141:30: error: reference to 'byte' is ambiguous 141 | void CacheFile::insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./cachefile.hh: In member function 'void CacheFile::insert(const int*, size_t, const string&, time_t, uint64)': ./cachefile.hh:143:10: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 143 | memcpy(insert_prepare(inSize), inData, inSize); | ^~~~~~~~~~~~~~ | insert_perform ./cachefile.hh: In member function 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64)': ./cachefile.hh:150:5: error: there are no arguments to 'insert_prepare' that depend on a template parameter, so a declaration of 'insert_prepare' must be available [-fpermissive] 150 | f(insert_prepare(inSize)); | ^~~~~~~~~~~~~~ ./cachefile.hh:150:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./scan.hh: At global scope: ./scan.hh:168:38: error: reference to 'byte' is ambiguous 168 | size_t unserializeCacheEntry(const byte* data, size_t dataSize, | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./scan.hh:312:14: error: template argument 1 is invalid 312 | vector buffer; | ^ ./scan.hh:312:14: error: template argument 2 is invalid ./scan.hh: In member function 'void JigdoCache::deallocBuffer()': ./scan.hh:229:33: error: request for member 'resize' in '((JigdoCache*)this)->JigdoCache::buffer', which is of non-class type 'int' 229 | void deallocBuffer() { buffer.resize(0); } | ^~~~~~ ./scan.hh: In member function 'void JigdoCache::readFilenames(RecurseDir&)': ./scan.hh:426:13: error: reference to 'byte' is ambiguous 426 | const byte* data; | ^~~~ In file included from ./config.h:217, from partialmatch.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from partialmatch.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./scan.hh:429:32: error: cannot convert '' to 'const int*&' 429 | if (cacheFile->findName(data, dataSize, name, stSize, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | fileInfo.st_mtime).failed()) | ~~~~~~~~~~~~~~~~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from partialmatch.cc:15: ./cachefile.hh:95:32: note: initializing argument 1 of 'Status CacheFile::findName(const int*&, size_t&, const string&, off_t&, time_t&)' 95 | Status findName(const byte*& resultData, size_t& resultSize, | ~~~~~~~~~~~~~^~~~~~~~~~ make[1]: *** [Makefile:95: partialmatch.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/messagebox.cc -o gtk/messagebox.o In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./gtk/interface.hh:8, from ./gtk/gui.hh:21, from gtk/messagebox.cc:17: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/interface.hh:8, from ./gtk/gui.hh:21, from gtk/messagebox.cc:17: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from ./gtk/interface.hh:8, from ./gtk/gui.hh:21, from gtk/messagebox.cc:17: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/interface.hh:8, from ./gtk/gui.hh:21, from gtk/messagebox.cc:17: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c recursedir.cc -o recursedir.o recursedir.cc:235:5: warning: #warning TODO hackish [-Wcpp] 235 | # warning TODO hackish | ^~~~~~~ In file included from recursedir.cc:32: ./recursedir.hh:79:7: error: ISO C++17 does not allow dynamic exception specifications 79 | throw(RecurseError, bad_alloc); | ^~~~~ ./recursedir.hh:105:5: error: ISO C++17 does not allow dynamic exception specifications 105 | throw(RecurseError); | ^~~~~ recursedir.cc:68:52: error: ISO C++17 does not allow dynamic exception specifications 68 | bool RecurseDir::getNextObjectName(string& result) throw(RecurseError) { | ^~~~~ recursedir.cc:140:5: error: ISO C++17 does not allow dynamic exception specifications 140 | throw(RecurseError, bad_alloc) { | ^~~~~ make[1]: *** [Makefile:95: recursedir.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c job/datasource.cc -o job/datasource.o In file included from job/datasource.cc:14: ./job/datasource.hh:73:40: error: reference to 'byte' is ambiguous 73 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from ./job/datasource.hh:19, from job/datasource.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from ./job/datasource.hh:19, from job/datasource.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ make[1]: *** [Makefile:95: job/datasource.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/jigdo.cc -o gtk/jigdo.o In file included from gtk/jigdo.cc:25: ./net/download.hh:182:36: error: reference to 'byte' is ambiguous 182 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/jigdo.cc:12: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jigdo.cc:12: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./gtk/interface.hh:8, from ./gtk/gui.hh:21, from gtk/jigdo.cc:28: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/interface.hh:8, from ./gtk/gui.hh:21, from gtk/jigdo.cc:28: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from ./gtk/interface.hh:8, from ./gtk/gui.hh:21, from gtk/jigdo.cc:28: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from ./net/download.hh:24, from gtk/jigdo.cc:25: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ gtk/jigdo.cc: In function 'int main(int, char**)': gtk/jigdo.cc:192:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 192 | putenv("http_proxy="); | ^~~~~~~~~~~~~ gtk/jigdo.cc:193:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 193 | putenv("https_proxy="); | ^~~~~~~~~~~~~~ gtk/jigdo.cc:194:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 194 | putenv("ftp_proxy="); | ^~~~~~~~~~~~ gtk/jigdo.cc:195:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 195 | putenv("gopher_proxy="); | ^~~~~~~~~~~~~~~ gtk/jigdo.cc:196:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 196 | putenv("no_proxy="); | ^~~~~~~~~~~ gtk/jigdo.cc:197:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 197 | putenv("all_proxy="); | ^~~~~~~~~~~~ make[1]: *** [Makefile:95: gtk/jigdo.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c jigdo-file.cc -o jigdo-file.o In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./cachefile.hh:85:21: error: reference to 'byte' is ambiguous 85 | Status find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./cachefile.hh:95:25: error: reference to 'byte' is ambiguous 95 | Status findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./cachefile.hh:102:28: error: reference to 'byte' is ambiguous 102 | inline void insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./cachefile.hh:119:3: error: reference to 'byte' is ambiguous 119 | byte* insert_prepare(size_t inSize); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./cachefile.hh:141:30: error: reference to 'byte' is ambiguous 141 | void CacheFile::insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./cachefile.hh: In member function 'void CacheFile::insert(const int*, size_t, const string&, time_t, uint64)': ./cachefile.hh:143:10: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 143 | memcpy(insert_prepare(inSize), inData, inSize); | ^~~~~~~~~~~~~~ | insert_perform ./cachefile.hh: In member function 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64)': ./cachefile.hh:150:5: error: there are no arguments to 'insert_prepare' that depend on a template parameter, so a declaration of 'insert_prepare' must be available [-fpermissive] 150 | f(insert_prepare(inSize)); | ^~~~~~~~~~~~~~ ./cachefile.hh:150:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from ./util/md5sum.hh:37, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/bstream.hh: At global scope: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh: At global scope: ./util/rsyncsum.hh:52:18: error: reference to 'byte' is ambiguous 52 | RsyncSum(const byte* mem, size_t len) : sum(0) { addBack(mem, len); }; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:61:27: error: reference to 'byte' is ambiguous 61 | RsyncSum& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:63:28: error: reference to 'byte' is ambiguous 63 | inline RsyncSum& addBack(byte x); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:63:28: error: 'byte' has not been declared 63 | inline RsyncSum& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:68:34: error: reference to 'byte' is ambiguous 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:68:34: error: 'byte' has not been declared 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:75:31: error: reference to 'byte' is ambiguous 75 | RsyncSum& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:77:32: error: reference to 'byte' is ambiguous 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:77:32: error: 'byte' has not been declared 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:101:27: error: reference to 'byte' is ambiguous 101 | inline RsyncSum64(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:108:36: error: reference to 'byte' is ambiguous 108 | INLINE RsyncSum64& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:109:30: error: reference to 'byte' is ambiguous 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:109:30: error: 'byte' has not been declared 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:110:36: error: reference to 'byte' is ambiguous 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:110:36: error: 'byte' has not been declared 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:111:33: error: reference to 'byte' is ambiguous 111 | RsyncSum64& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:112:34: error: reference to 'byte' is ambiguous 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:112:34: error: 'byte' has not been declared 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:127:30: error: reference to 'byte' is ambiguous 127 | RsyncSum64& addBack2(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:136:11: error: 'RsyncSum& RsyncSum::addBack' is not a static data member of 'class RsyncSum' 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~~~~~ ./util/rsyncsum.hh:136:29: error: reference to 'byte' is ambiguous 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:145:11: error: 'RsyncSum& RsyncSum::addBackNtimes' is not a static data member of 'class RsyncSum' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~~~~~ ./util/rsyncsum.hh:145:35: error: reference to 'byte' is ambiguous 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:145:50: error: expected primary-expression before 'n' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:145:51: error: expression list treated as compound expression in initializer [-fpermissive] 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:154:11: error: 'RsyncSum& RsyncSum::removeFront' is not a static data member of 'class RsyncSum' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:33: error: reference to 'byte' is ambiguous 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:154:48: error: expected primary-expression before 'areaSize' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:56: error: expression list treated as compound expression in initializer [-fpermissive] 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^ ./util/rsyncsum.hh:164:30: error: reference to 'byte' is ambiguous 164 | RsyncSum64::RsyncSum64(const byte* mem, size_t len) : sumLo(0), sumHi(0) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:188:13: error: 'RsyncSum64& RsyncSum64::removeFront' is not a static data member of 'class RsyncSum64' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~~~ ./util/rsyncsum.hh:188:37: error: reference to 'byte' is ambiguous 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.hh:188:52: error: expected primary-expression before 'areaSize' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:188:60: error: expression list treated as compound expression in initializer [-fpermissive] 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.ih:34:39: error: reference to 'byte' is ambiguous 34 | RsyncSum64& RsyncSum64::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.ih:39:13: error: 'RsyncSum64& RsyncSum64::addBack' is not a static data member of 'class RsyncSum64' 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~~~~~~~ ./util/rsyncsum.ih:39:33: error: reference to 'byte' is ambiguous 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.ih:45:13: error: 'RsyncSum64& RsyncSum64::addBackNtimes' is not a static data member of 'class RsyncSum64' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~~~~~~~ ./util/rsyncsum.ih:45:39: error: reference to 'byte' is ambiguous 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./util/rsyncsum.ih:45:54: error: expected primary-expression before 'n' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.ih:45:55: error: expression list treated as compound expression in initializer [-fpermissive] 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ In file included from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./scan.hh:168:38: error: reference to 'byte' is ambiguous 168 | size_t unserializeCacheEntry(const byte* data, size_t dataSize, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./scan.hh:312:14: error: template argument 1 is invalid 312 | vector buffer; | ^ ./scan.hh:312:14: error: template argument 2 is invalid ./scan.hh: In member function 'void JigdoCache::deallocBuffer()': ./scan.hh:229:33: error: request for member 'resize' in '((JigdoCache*)this)->JigdoCache::buffer', which is of non-class type 'int' 229 | void deallocBuffer() { buffer.resize(0); } | ^~~~~~ ./scan.hh: In member function 'void JigdoCache::readFilenames(RecurseDir&)': ./scan.hh:426:13: error: reference to 'byte' is ambiguous 426 | const byte* data; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./scan.hh:429:32: error: cannot convert '' to 'const int*&' 429 | if (cacheFile->findName(data, dataSize, name, stSize, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | fileInfo.st_mtime).failed()) | ~~~~~~~~~~~~~~~~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file.cc:32: ./cachefile.hh:95:32: note: initializing argument 1 of 'Status CacheFile::findName(const int*&, size_t&, const string&, off_t&, time_t&)' 95 | Status findName(const byte*& resultData, size_t& resultSize, | ~~~~~~~~~~~~~^~~~~~~~~~ In file included from ./jigdo-file-cmd.hh:28, from jigdo-file.cc:32: ./mkimage.hh: At global scope: ./mkimage.hh:75:43: error: ISO C++17 does not allow dynamic exception specifications 75 | static void seekFromEnd(bistream& file) throw(JigdoDescError); | ^~~~~ ./mkimage.hh:233:33: error: ISO C++17 does not allow dynamic exception specifications 233 | bistream& get(bistream& file) throw(JigdoDescError, bad_alloc); | ^~~~~ ./mkimage.hh:295:5: error: ISO C++17 does not allow dynamic exception specifications 295 | throw(JigdoDescError, bad_alloc) { | ^~~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file.cc:32: ./mktemplate.hh:110:16: error: reference to 'byte' is ambiguous 110 | static const byte IMAGE_INFO = 1, UNMATCHED_DATA = 2, MATCHED_FILE = 3; | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file.cc:32: ./mktemplate.hh:141:25: error: reference to 'byte' is ambiguous 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file.cc:32: ./mktemplate.hh:141:25: error: 'byte' has not been declared 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ ./mktemplate.hh:150:29: error: reference to 'byte' is ambiguous 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file.cc:32: ./mktemplate.hh:150:29: error: 'byte' has not been declared 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ ./mktemplate.hh:156:30: error: reference to 'byte' is ambiguous 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file.cc:32: ./mktemplate.hh:156:30: error: 'byte' has not been declared 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ ./mktemplate.hh:160:23: error: reference to 'byte' is ambiguous 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./config.h:217, from jigdo-file.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file.cc:32: ./mktemplate.hh:160:23: error: 'byte' has not been declared 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from jigdo-file.cc:37: ./recursedir.hh:79:7: error: ISO C++17 does not allow dynamic exception specifications 79 | throw(RecurseError, bad_alloc); | ^~~~~ ./recursedir.hh:105:5: error: ISO C++17 does not allow dynamic exception specifications 105 | throw(RecurseError); | ^~~~~ jigdo-file.cc: In static member function 'static void {anonymous}::MyProgressReporter::print(std::string, bool)': jigdo-file.cc:224:22: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 224 | int i = s.size() - 1; | ~~~~~~~~~^~~ jigdo-file.cc: In static member function 'static JigdoFileCmd::Command JigdoFileCmd::cmdOptions(int, char**)': jigdo-file.cc:557:35: warning: conversion from 'int' to 'char' may change value [-Wconversion] 557 | case 'h': case 'H': optHelp = c; break; | ^ jigdo-file.cc:656:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 656 | { "make-template", MAKE_TEMPLATE }, | ^~~~~~~~~~~~~~~ jigdo-file.cc:657:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 657 | { "mt", MAKE_TEMPLATE }, | ^~~~ jigdo-file.cc:658:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 658 | { "make-image", MAKE_IMAGE }, | ^~~~~~~~~~~~ jigdo-file.cc:659:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 659 | { "mi", MAKE_IMAGE }, | ^~~~ jigdo-file.cc:660:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 660 | { "print-missing", PRINT_MISSING }, | ^~~~~~~~~~~~~~~ jigdo-file.cc:661:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 661 | { "pm", PRINT_MISSING }, | ^~~~ jigdo-file.cc:662:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 662 | { "print-missing-all", PRINT_MISSING_ALL }, | ^~~~~~~~~~~~~~~~~~~ jigdo-file.cc:663:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 663 | { "pma", PRINT_MISSING_ALL }, | ^~~~~ jigdo-file.cc:664:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 664 | { "verify", VERIFY }, | ^~~~~~~~ jigdo-file.cc:665:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 665 | { "ver", VERIFY }, | ^~~~~ jigdo-file.cc:666:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 666 | { "scan", SCAN }, | ^~~~~~ jigdo-file.cc:667:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 667 | { "sc", SCAN }, | ^~~~ jigdo-file.cc:668:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 668 | { "list-template", LIST_TEMPLATE }, | ^~~~~~~~~~~~~~~ jigdo-file.cc:669:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 669 | { "ls", LIST_TEMPLATE }, | ^~~~ jigdo-file.cc:670:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 670 | { "md5sum", MD5SUM }, | ^~~~~~~~ jigdo-file.cc:671:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 671 | { "md5", MD5SUM } | ^~~~~ jigdo-file.cc: In function 'int main(int, char**)': jigdo-file.cc:776:10: warning: catching polymorphic type 'class std::bad_alloc' by value [-Wcatch-value=] 776 | catch (bad_alloc) { outOfMemory(); } | ^~~~~~~~~ jigdo-file.cc: In function 'size_t {anonymous}::scanMemSize(const char*)': jigdo-file.cc:420:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 420 | x = x * 1024; | ~~^~~~~~~~~~ jigdo-file.cc:421:3: note: here 421 | case 'm': case 'M': | ^~~~ jigdo-file.cc:422:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 422 | x = x * 1024; | ~~^~~~~~~~~~ jigdo-file.cc:423:3: note: here 423 | case 'k': case 'K': | ^~~~ jigdo-file.cc:425:5: warning: this statement may fall through [-Wimplicit-fallthrough=] 425 | if (*++s == '\0') return x; | ^~ jigdo-file.cc:426:3: note: here 426 | default: | ^~~~~~~ make[1]: *** [Makefile:95: jigdo-file.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c jigdoconfig.cc -o jigdoconfig.o make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c mkimage.cc -o mkimage.o In file included from ./mkimage.hh:26, from mkimage.cc:30: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:26, from mkimage.cc:30: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:26, from mkimage.cc:30: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:26, from mkimage.cc:30: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mkimage.cc:30: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mkimage.cc:30: ./cachefile.hh: At global scope: ./cachefile.hh:85:21: error: reference to 'byte' is ambiguous 85 | Status find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mkimage.cc:30: ./cachefile.hh:95:25: error: reference to 'byte' is ambiguous 95 | Status findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mkimage.cc:30: ./cachefile.hh:102:28: error: reference to 'byte' is ambiguous 102 | inline void insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mkimage.cc:30: ./cachefile.hh:119:3: error: reference to 'byte' is ambiguous 119 | byte* insert_prepare(size_t inSize); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mkimage.cc:30: ./cachefile.hh:141:30: error: reference to 'byte' is ambiguous 141 | void CacheFile::insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mkimage.cc:30: ./cachefile.hh: In member function 'void CacheFile::insert(const int*, size_t, const string&, time_t, uint64)': ./cachefile.hh:143:10: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 143 | memcpy(insert_prepare(inSize), inData, inSize); | ^~~~~~~~~~~~~~ | insert_perform ./cachefile.hh: In member function 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64)': ./cachefile.hh:150:5: error: there are no arguments to 'insert_prepare' that depend on a template parameter, so a declaration of 'insert_prepare' must be available [-fpermissive] 150 | f(insert_prepare(inSize)); | ^~~~~~~~~~~~~~ ./cachefile.hh:150:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh: At global scope: ./util/rsyncsum.hh:52:18: error: reference to 'byte' is ambiguous 52 | RsyncSum(const byte* mem, size_t len) : sum(0) { addBack(mem, len); }; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:61:27: error: reference to 'byte' is ambiguous 61 | RsyncSum& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:63:28: error: reference to 'byte' is ambiguous 63 | inline RsyncSum& addBack(byte x); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:63:28: error: 'byte' has not been declared 63 | inline RsyncSum& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:68:34: error: reference to 'byte' is ambiguous 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:68:34: error: 'byte' has not been declared 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:75:31: error: reference to 'byte' is ambiguous 75 | RsyncSum& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:77:32: error: reference to 'byte' is ambiguous 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:77:32: error: 'byte' has not been declared 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:101:27: error: reference to 'byte' is ambiguous 101 | inline RsyncSum64(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:108:36: error: reference to 'byte' is ambiguous 108 | INLINE RsyncSum64& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:109:30: error: reference to 'byte' is ambiguous 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:109:30: error: 'byte' has not been declared 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:110:36: error: reference to 'byte' is ambiguous 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:110:36: error: 'byte' has not been declared 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:111:33: error: reference to 'byte' is ambiguous 111 | RsyncSum64& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:112:34: error: reference to 'byte' is ambiguous 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:112:34: error: 'byte' has not been declared 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:127:30: error: reference to 'byte' is ambiguous 127 | RsyncSum64& addBack2(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:136:11: error: 'RsyncSum& RsyncSum::addBack' is not a static data member of 'class RsyncSum' 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~~~~~ ./util/rsyncsum.hh:136:29: error: reference to 'byte' is ambiguous 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:145:11: error: 'RsyncSum& RsyncSum::addBackNtimes' is not a static data member of 'class RsyncSum' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~~~~~ ./util/rsyncsum.hh:145:35: error: reference to 'byte' is ambiguous 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:145:50: error: expected primary-expression before 'n' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:145:51: error: expression list treated as compound expression in initializer [-fpermissive] 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:154:11: error: 'RsyncSum& RsyncSum::removeFront' is not a static data member of 'class RsyncSum' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:33: error: reference to 'byte' is ambiguous 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:154:48: error: expected primary-expression before 'areaSize' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:56: error: expression list treated as compound expression in initializer [-fpermissive] 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^ ./util/rsyncsum.hh:164:30: error: reference to 'byte' is ambiguous 164 | RsyncSum64::RsyncSum64(const byte* mem, size_t len) : sumLo(0), sumHi(0) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:188:13: error: 'RsyncSum64& RsyncSum64::removeFront' is not a static data member of 'class RsyncSum64' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~~~ ./util/rsyncsum.hh:188:37: error: reference to 'byte' is ambiguous 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.hh:188:52: error: expected primary-expression before 'areaSize' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:188:60: error: expression list treated as compound expression in initializer [-fpermissive] 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.ih:34:39: error: reference to 'byte' is ambiguous 34 | RsyncSum64& RsyncSum64::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.ih:39:13: error: 'RsyncSum64& RsyncSum64::addBack' is not a static data member of 'class RsyncSum64' 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~~~~~~~ ./util/rsyncsum.ih:39:33: error: reference to 'byte' is ambiguous 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.ih:45:13: error: 'RsyncSum64& RsyncSum64::addBackNtimes' is not a static data member of 'class RsyncSum64' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~~~~~~~ ./util/rsyncsum.ih:45:39: error: reference to 'byte' is ambiguous 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./util/rsyncsum.ih:45:54: error: expected primary-expression before 'n' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.ih:45:55: error: expression list treated as compound expression in initializer [-fpermissive] 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ In file included from ./mkimage.hh:29, from mkimage.cc:30: ./scan.hh:168:38: error: reference to 'byte' is ambiguous 168 | size_t unserializeCacheEntry(const byte* data, size_t dataSize, | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:29, from mkimage.cc:30: ./scan.hh:312:14: error: template argument 1 is invalid 312 | vector buffer; | ^ ./scan.hh:312:14: error: template argument 2 is invalid ./scan.hh: In member function 'void JigdoCache::deallocBuffer()': ./scan.hh:229:33: error: request for member 'resize' in '((JigdoCache*)this)->JigdoCache::buffer', which is of non-class type 'int' 229 | void deallocBuffer() { buffer.resize(0); } | ^~~~~~ ./scan.hh: In member function 'void JigdoCache::readFilenames(RecurseDir&)': ./scan.hh:426:13: error: reference to 'byte' is ambiguous 426 | const byte* data; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:29, from mkimage.cc:30: ./scan.hh:429:32: error: cannot convert '' to 'const int*&' 429 | if (cacheFile->findName(data, dataSize, name, stSize, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | fileInfo.st_mtime).failed()) | ~~~~~~~~~~~~~~~~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mkimage.cc:30: ./cachefile.hh:95:32: note: initializing argument 1 of 'Status CacheFile::findName(const int*&, size_t&, const string&, off_t&, time_t&)' 95 | Status findName(const byte*& resultData, size_t& resultSize, | ~~~~~~~~~~~~~^~~~~~~~~~ In file included from mkimage.cc:30: ./mkimage.hh: At global scope: ./mkimage.hh:75:43: error: ISO C++17 does not allow dynamic exception specifications 75 | static void seekFromEnd(bistream& file) throw(JigdoDescError); | ^~~~~ ./mkimage.hh:233:33: error: ISO C++17 does not allow dynamic exception specifications 233 | bistream& get(bistream& file) throw(JigdoDescError, bad_alloc); | ^~~~~ ./mkimage.hh:295:5: error: ISO C++17 does not allow dynamic exception specifications 295 | throw(JigdoDescError, bad_alloc) { | ^~~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:81:33: error: reference to 'byte' is ambiguous 81 | inline Zobstream& write(const byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:99:11: error: reference to 'byte' is ambiguous 99 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:100:11: error: reference to 'byte' is ambiguous 100 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:105:27: error: reference to 'byte' is ambiguous 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:105:27: error: 'byte' has not been declared 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ ./zstream.hh:106:26: error: reference to 'byte' is ambiguous 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:106:26: error: 'byte' has not been declared 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:108:21: error: reference to 'byte' is ambiguous 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:108:21: error: 'byte' has not been declared 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ ./zstream.hh:117:5: error: reference to 'byte' is ambiguous 117 | byte data[ZIPDATA_SIZE]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:129:19: error: reference to 'byte' is ambiguous 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:129:19: error: 'byte' has not been declared 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream.hh:132:3: error: reference to 'byte' is ambiguous 132 | byte* todoBuf; // Allocated during open(), deallocated during close() | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/log.hh:56, from mkimage.cc:29: ./zstream.hh: In destructor 'virtual Zobstream::~Zobstream()': ./zstream.hh:60:57: error: 'todoBuf' was not declared in this scope 60 | virtual ~Zobstream() { close(); delete zipBuf; Assert(todoBuf == 0); } | ^~~~~~~ ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh: At global scope: ./zstream.hh:159:13: error: reference to 'byte' is ambiguous 159 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:160:13: error: reference to 'byte' is ambiguous 160 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:164:28: error: reference to 'byte' is ambiguous 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:164:28: error: 'byte' has not been declared 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:175:26: error: reference to 'byte' is ambiguous 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:175:26: error: 'byte' has not been declared 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ ./zstream.hh:208:19: error: reference to 'byte' is ambiguous 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:208:19: error: 'byte' has not been declared 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ ./zstream.hh:237:3: error: reference to 'byte' is ambiguous 237 | byte* buf; // Contains compressed data | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:240:3: error: reference to 'byte' is ambiguous 240 | byte* nextOut; // Pointer into output buffer | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh: In destructor 'virtual Zibstream::~Zibstream()': ./zstream.hh:190:42: error: 'buf' was not declared in this scope 190 | virtual ~Zibstream() { close(); delete buf; if (z != 0) z->end(); delete z; } | ^~~ ./zstream.hh: In member function 'bool Zibstream::good() const': ./zstream.hh:215:43: error: 'buf' was not declared in this scope 215 | bool good() const { return is_open() && buf != 0; } | ^~~ ./zstream.hh: In constructor 'Zobstream::Zobstream(MD5Sum*)': ./zstream.hh:249:33: error: class 'Zobstream' does not have any field named 'todoBuf' 249 | : zipBuf(0), zipBufLast(0), todoBuf(0), todoBufSize(0), todoCount(0), | ^~~~~~~ ./zstream.hh: In member function 'void Zobstream::open(bostream&, unsigned int, unsigned int)': ./zstream.hh:259:3: error: 'todoBuf' was not declared in this scope; did you mean 'todoBufSz'? 259 | todoBuf = new byte[todoBufSize]; | ^~~~~~~ | todoBufSz ./zstream.hh:259:17: error: reference to 'byte' is ambiguous 259 | todoBuf = new byte[todoBufSize]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh: At global scope: ./zstream.hh:265:6: error: variable or field 'zip' declared void 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~~ ./zstream.hh:265:21: error: reference to 'byte' is ambiguous 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:265:27: error: 'start' was not declared in this scope; did you mean 'stat'? 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~ | stat ./zstream.hh:265:34: error: expected primary-expression before 'unsigned' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~ ./zstream.hh:265:48: error: expected primary-expression before 'bool' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ ./zstream.hh: In member function 'Zobstream& Zobstream::put(unsigned char)': ./zstream.hh:273:37: error: 'todoBuf' was not declared in this scope 273 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:274:3: error: 'todoBuf' was not declared in this scope 274 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:274:36: error: reference to 'byte' is ambiguous 274 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh: In member function 'Zobstream& Zobstream::put(signed char)': ./zstream.hh:280:37: error: 'todoBuf' was not declared in this scope 280 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:281:3: error: 'todoBuf' was not declared in this scope 281 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:281:36: error: reference to 'byte' is ambiguous 281 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh: In member function 'Zobstream& Zobstream::put(char)': ./zstream.hh:287:37: error: 'todoBuf' was not declared in this scope 287 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:288:3: error: 'todoBuf' was not declared in this scope 288 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:288:36: error: reference to 'byte' is ambiguous 288 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh: In member function 'Zobstream& Zobstream::put(int)': ./zstream.hh:294:37: error: 'todoBuf' was not declared in this scope 294 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:295:3: error: 'todoBuf' was not declared in this scope 295 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:295:36: error: reference to 'byte' is ambiguous 295 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh: At global scope: ./zstream.hh:300:35: error: reference to 'byte' is ambiguous 300 | Zobstream& Zobstream::write(const byte* x, unsigned n) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh: In member function 'Zobstream& Zobstream::write(const int*, unsigned int)': ./zstream.hh:303:9: error: 'todoBuf' was not declared in this scope 303 | zip(todoBuf, todoCount); // Zip remaining data in todoBuf | ^~~~~~~ ./zstream.hh:304:20: error: reference to 'byte' is ambiguous 304 | zip(const_cast(x), n); // Zip byte array | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mkimage.cc:34: ./zstream.hh:304:24: error: expected '>' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh:304:24: error: expected '(' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ | ( ./zstream.hh:304:25: error: expected primary-expression before '>' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh: In constructor 'Zibstream::Zibstream(unsigned int)': ./zstream.hh:311:40: error: class 'Zibstream' does not have any field named 'buf' 311 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ ./zstream.hh: In constructor 'Zibstream::Zibstream(bistream&, unsigned int)': ./zstream.hh:315:40: error: class 'Zibstream' does not have any field named 'buf' 315 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ In file included from mkimage.cc:34: ./zstream-gz.hh: At global scope: ./zstream-gz.hh:59:11: error: reference to 'byte' is ambiguous 59 | virtual byte* nextOut() const { return z.next_out; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:60:11: error: reference to 'byte' is ambiguous 60 | virtual byte* nextIn() const { return z.next_in; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:65:27: error: reference to 'byte' is ambiguous 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:65:27: error: 'byte' has not been declared 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^~~~ ./zstream-gz.hh:66:26: error: reference to 'byte' is ambiguous 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:66:26: error: 'byte' has not been declared 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ ./zstream-gz.hh:67:21: error: reference to 'byte' is ambiguous 67 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:67:21: error: 'byte' has not been declared 67 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZobstreamGz::totalOut() const': ./zstream-gz.hh:55:48: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 55 | virtual unsigned totalOut() const { return z.total_out; } | ~~^~~~~~~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZobstreamGz::totalIn() const': ./zstream-gz.hh:56:47: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 56 | virtual unsigned totalIn() const { return z.total_in; } | ~~^~~~~~~~ ./zstream-gz.hh: In member function 'virtual void ZobstreamGz::setNextOut(int*)': ./zstream-gz.hh:65:51: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^ | | | int* ./zstream-gz.hh: In member function 'virtual void ZobstreamGz::setNextIn(int*)': ./zstream-gz.hh:66:49: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^ | | | int* ./zstream-gz.hh: At global scope: ./zstream-gz.hh:94:11: error: reference to 'byte' is ambiguous 94 | virtual byte* nextOut() const { return z.next_out; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:95:11: error: reference to 'byte' is ambiguous 95 | virtual byte* nextIn() const { return z.next_in; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:99:26: error: reference to 'byte' is ambiguous 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:99:26: error: 'byte' has not been declared 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ ./zstream-gz.hh:112:24: error: reference to 'byte' is ambiguous 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkimage.cc:34: ./zstream-gz.hh:112:24: error: 'byte' has not been declared 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZibstreamGz::totalOut() const': ./zstream-gz.hh:90:48: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 90 | virtual unsigned totalOut() const { return z.total_out; } | ~~^~~~~~~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZibstreamGz::totalIn() const': ./zstream-gz.hh:91:47: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 91 | virtual unsigned totalIn() const { return z.total_in; } | ~~^~~~~~~~ ./zstream-gz.hh: In member function 'virtual void ZibstreamGz::setNextIn(int*)': ./zstream-gz.hh:99:49: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^ | | | int* ./zstream-gz.hh: In member function 'virtual void ZibstreamGz::inflate(int**, unsigned int*)': ./zstream-gz.hh:113:18: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 113 | z.next_out = *nextOut; z.avail_out = *availOut; | ^~~~~~~~ | | | int* ./zstream-gz.hh:115:18: error: cannot convert 'Bytef*' {aka 'unsigned char*'} to 'int*' in assignment 115 | *nextOut = z.next_out; *availOut = z.avail_out; | ~~^~~~~~~~ | | | Bytef* {aka unsigned char*} mkimage.cc: At global scope: mkimage.cc:45:6: error: variable or field 'memClear' declared void 45 | void memClear(byte* buf, size_t size) { | ^~~~~~~~ mkimage.cc:45:15: error: reference to 'byte' is ambiguous 45 | void memClear(byte* buf, size_t size) { | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:45:21: error: 'buf' was not declared in this scope 45 | void memClear(byte* buf, size_t size) { | ^~~ mkimage.cc:45:33: error: expected primary-expression before 'size' 45 | void memClear(byte* buf, size_t size) { | ^~~~ mkimage.cc:76:45: error: ISO C++17 does not allow dynamic exception specifications 76 | void JigdoDesc::seekFromEnd(bistream& file) throw(JigdoDescError) { | ^~~~~ mkimage.cc: In static member function 'static void JigdoDesc::seekFromEnd(bistream&)': mkimage.cc:93:3: error: reference to 'byte' is ambiguous 93 | byte buf[4]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:94:3: error: 'buf' was not declared in this scope 94 | buf[3] = '\0'; | ^~~ mkimage.cc:95:3: error: reference to 'byte' is ambiguous 95 | byte* b = buf; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:95:9: error: 'b' was not declared in this scope 95 | byte* b = buf; | ^ mkimage.cc: At global scope: mkimage.cc:114:5: error: ISO C++17 does not allow dynamic exception specifications 114 | throw(JigdoDescError, bad_alloc) { | ^~~~~ mkimage.cc: In member function 'bistream& JigdoDescVec::get(bistream&)': mkimage.cc:118:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 118 | auto_ptr desc; | ^~~~~~~~ In file included from /usr/include/c++/11/bits/locale_conv.h:41, from /usr/include/c++/11/locale:43, from /usr/include/c++/11/iomanip:43, from mkimage.cc:23: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ mkimage.cc:138:5: error: reference to 'byte' is ambiguous 138 | byte type = *f; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:140:13: error: 'type' was not declared in this scope; did you mean 'wctype'? 140 | switch (type) { | ^~~~ | wctype mkimage.cc: In member function 'bostream& JigdoDescVec::put(bostream&, MD5Sum*) const': mkimage.cc:246:36: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 246 | unsigned s = (*i)->serialSizeOf(); | ~~~~~~~~~~~~~~~~~~^~ mkimage.cc:253:3: error: reference to 'byte' is ambiguous 253 | byte buf[bufLen]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:254:14: error: 'buf' was not declared in this scope 254 | if (DEBUG) buf[bufLen - 1] = 0xa5; | ^~~ mkimage.cc:255:3: error: reference to 'byte' is ambiguous 255 | byte* p; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:255:9: error: 'p' was not declared in this scope 255 | byte* p; | ^ mkimage.cc:256:30: error: 'buf' was not declared in this scope 256 | p = serialize4(0x43534544, buf); // "DESC" in little-endian order | ^~~ mkimage.cc: At global scope: mkimage.cc:348:35: error: reference to 'byte' is ambiguous 348 | ProgressReporter& reporter, byte* buf, size_t readAmount, uint64& off, | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:348:35: error: 'byte' has not been declared 348 | ProgressReporter& reporter, byte* buf, size_t readAmount, uint64& off, | ^~~~ mkimage.cc: In function 'int {anonymous}::fileToImage(bostream*, FilePart&, const JigdoDesc::MatchedFile&, bool, size_t, {anonymous}::ProgressReporter&, int*, size_t, uint64&, uint64&, uint64)': mkimage.cc:397:7: error: 'memClear' was not declared in this scope 397 | memClear(buf, readAmount); | ^~~~~~~~ mkimage.cc: In function 'int {anonymous}::writeAll(const {anonymous}::Task&, JigdoDescVec&, std::queue&, bistream*, size_t, bostream*, const char*, bool, {anonymous}::ProgressReporter&, JigdoCache*, uint64)': mkimage.cc:448:16: error: template argument 1 is invalid 448 | vector bufVec(readAmount); | ^ mkimage.cc:448:16: error: template argument 2 is invalid mkimage.cc:448:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 448 | vector bufVec(readAmount); | ^~~~~~~~~~ mkimage.cc:449:5: error: reference to 'byte' is ambiguous 449 | byte* buf = &bufVec[0]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:449:11: error: 'buf' was not declared in this scope 449 | byte* buf = &bufVec[0]; | ^~~ mkimage.cc:449:24: error: invalid types 'int[int]' for array subscript 449 | byte* buf = &bufVec[0]; | ^ mkimage.cc:454:5: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 454 | auto_ptr data(new Zibstream(*templ, readAmount + 8*1024)); | ^~~~~~~~ In file included from /usr/include/c++/11/bits/locale_conv.h:41, from /usr/include/c++/11/locale:43, from /usr/include/c++/11/iomanip:43, from mkimage.cc:23: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ mkimage.cc:454:63: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] 454 | auto_ptr data(new Zibstream(*templ, readAmount + 8*1024)); | ~~~~~~~~~~~^~~~~~~~ mkimage.cc:482:13: error: 'memClear' was not declared in this scope 482 | memClear(buf, readAmount); | ^~~~~~~~ mkimage.cc:510:15: error: 'memClear' was not declared in this scope 510 | memClear(buf, readAmount); | ^~~~~~~~ mkimage.cc: In function 'int {anonymous}::writeMerge(JigdoDescVec&, std::queue&, int, size_t, bfstream*, const string&, bool, {anonymous}::ProgressReporter&, JigdoCache*, uint64)': mkimage.cc:593:16: error: template argument 1 is invalid 593 | vector bufVec(readAmount); | ^ mkimage.cc:593:16: error: template argument 2 is invalid mkimage.cc:593:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 593 | vector bufVec(readAmount); | ^~~~~~~~~~ mkimage.cc:594:5: error: reference to 'byte' is ambiguous 594 | byte* buf = &bufVec[0]; | ^~~~ In file included from ./config.h:217, from mkimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mkimage.cc:594:11: error: 'buf' was not declared in this scope 594 | byte* buf = &bufVec[0]; | ^~~ mkimage.cc:594:24: error: invalid types 'int[int]' for array subscript 594 | byte* buf = &bufVec[0]; | ^ mkimage.cc: In static member function 'static int JigdoDesc::makeImage(JigdoCache*, const string&, const string&, const string&, bistream*, bool, JigdoDesc::ProgressReporter&, size_t, bool)': mkimage.cc:748:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 748 | auto_ptr imgDel(img); | ^~~~~~~~ In file included from /usr/include/c++/11/bits/locale_conv.h:41, from /usr/include/c++/11/locale:43, from /usr/include/c++/11/iomanip:43, from mkimage.cc:23: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mkimage.cc:30: ./serialize.hh: In instantiation of 'ConstIterator unserialize6(NumType&, ConstIterator) [with NumType = long unsigned int; ConstIterator = SerialIstreamIterator]': mkimage.cc:82:15: required from here ./serialize.hh:183:28: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 183 | x = static_cast(*i); ++i; | ^~ ./serialize.hh:184:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 184 | x |= static_cast(*i) << 8; ++i; | ^~ ./serialize.hh:185:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 185 | x |= static_cast(*i) << 16; ++i; | ^~ ./serialize.hh:186:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 186 | x |= static_cast(*i) << 24; ++i; | ^~ ./serialize.hh:187:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 187 | x |= static_cast(*i) << 32; ++i; | ^~ ./serialize.hh:188:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 188 | x |= static_cast(*i) << 40; ++i; | ^~ ./serialize.hh: In instantiation of 'ConstIterator unserialize4(NumType&, ConstIterator) [with NumType = long unsigned int; ConstIterator = SerialIstreamIterator]': mkimage.cc:145:19: required from here ./serialize.hh:164:28: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 164 | x = static_cast(*i); ++i; | ^~ ./serialize.hh:165:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 165 | x |= static_cast(*i) << 8; ++i; | ^~ ./serialize.hh:166:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 166 | x |= static_cast(*i) << 16; ++i; | ^~ ./serialize.hh:167:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 167 | x |= static_cast(*i) << 24; ++i; | ^~ ./serialize.hh: In instantiation of 'ConstIterator unserialize4(NumType&, ConstIterator) [with NumType = unsigned int; ConstIterator = SerialIstreamIterator]': ./util/rsyncsum.hh:202:19: required from 'ConstIterator RsyncSum64::unserialize(ConstIterator) [with ConstIterator = SerialIstreamIterator]' ./serialize.hh:55:23: required from 'ConstIterator unserialize(Object&, ConstIterator) [with Object = RsyncSum64; ConstIterator = SerialIstreamIterator]' mkimage.cc:167:18: required from here ./serialize.hh:164:28: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 164 | x = static_cast(*i); ++i; | ^~ ./serialize.hh:165:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 165 | x |= static_cast(*i) << 8; ++i; | ^~ ./serialize.hh:166:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 166 | x |= static_cast(*i) << 16; ++i; | ^~ ./serialize.hh:167:29: error: no match for 'operator*' (operand type is 'SerialIstreamIterator') 167 | x |= static_cast(*i) << 24; ++i; | ^~ mkimage.cc: At global scope: mkimage.cc:346:7: warning: 'int {anonymous}::fileToImage(bostream*, FilePart&, const JigdoDesc::MatchedFile&, bool, size_t, {anonymous}::ProgressReporter&, int*, size_t, uint64&, uint64&, uint64)' defined but not used [-Wunused-function] 346 | int fileToImage(bostream* img, FilePart& file, | ^~~~~~~~~~~ make[1]: *** [Makefile:95: mkimage.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/gtk-single-url.cc -o gtk/gtk-single-url.o In file included from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gtk-single-url.cc:20: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gtk-single-url.cc:20: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gtk-single-url.cc:20: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gtk-single-url.cc:20: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./gtk/joblist.hh:29, from ./gtk/jobline.hh:23, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: ./net/download.hh:182:36: error: reference to 'byte' is ambiguous 182 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/single-url.hh:22, from ./gtk/gtk-single-url.hh:28, from gtk/gtk-single-url.cc:20: ./job/datasource.hh:73:40: error: reference to 'byte' is ambiguous 73 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/single-url.hh:25, from ./gtk/gtk-single-url.hh:28, from gtk/gtk-single-url.cc:20: ./util/progress.hh:51:47: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 51 | void tick(const GTimeVal& now, int millisecs); | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./gtk/gtk-single-url.hh:28, from gtk/gtk-single-url.cc:20: ./util/progress.hh:64:34: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 64 | int speed(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./gtk/gtk-single-url.hh:28, from gtk/gtk-single-url.cc:20: ./util/progress.hh:67:37: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 67 | int timeLeft(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./gtk/gtk-single-url.hh:28, from gtk/gtk-single-url.cc:20: ./util/progress.hh:111:33: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 111 | GTimeVal slotStart[SPEED_SLOTS]; // Timestamp of start of slot | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./gtk/gtk-single-url.hh:28, from gtk/gtk-single-url.cc:20: ./job/single-url.hh:165:36: error: reference to 'byte' is ambiguous 165 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./gtk/gtk-single-url.hh:28, from gtk/gtk-single-url.cc:20: ./job/single-url.hh:177:51: error: reference to 'byte' is ambiguous 177 | inline bool writeToDestStream(uint64 off, const byte* data, unsigned size); | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from gtk/gtk-single-url.cc:20: ./gtk/gtk-single-url.hh:110:38: error: reference to 'byte' is ambiguous 110 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from gtk/gtk-single-url.cc:20: ./gtk/gtk-single-url.hh:151:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 151 | GTimeVal pauseStart; // timestamp of last download pause, or uninitialized | ^~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from gtk/gtk-single-url.cc:20: ./gtk/gtk-single-url.hh: In member function 'void GtkSingleUrl::on_pauseButton_clicked()': ./gtk/gtk-single-url.hh:172:21: warning: 'void g_get_current_time(GTimeVal*)' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations] 172 | g_get_current_time(&pauseStart); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:33, from /usr/include/glib-2.0/glib.h:54, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here 681 | void g_get_current_time (GTimeVal *result); | ^~~~~~~~~~~~~~~~~~ gtk/gtk-single-url.cc: In member function 'void GtkSingleUrl::updateWindow()': gtk/gtk-single-url.cc:307:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 307 | ||state == ERROR && singleUrl->resumePossible())) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gtk/gtk-single-url.cc: In member function 'void GtkSingleUrl::resumeAsk(stat*)': gtk/gtk-single-url.cc:326:22: warning: conversion from 'time_t' {aka 'long int'} to 'int' may change value [-Wconversion] 326 | int days = fileAge / (60*24); | ~~~~~~~~^~~~~~~~~ gtk/gtk-single-url.cc:327:28: warning: conversion from 'time_t' {aka 'long int'} to 'int' may change value [-Wconversion] 327 | int hours = fileAge / 60 - days * 24; | ~~~~~~~~~~~~~^~~~~~~~~~~ gtk/gtk-single-url.cc:328:42: warning: conversion from 'time_t' {aka 'long int'} to 'int' may change value [-Wconversion] 328 | int minutes = fileAge - (days * 60*24) - (hours * 60); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ gtk/gtk-single-url.cc: At global scope: gtk/gtk-single-url.cc:482:42: error: reference to 'byte' is ambiguous 482 | void GtkSingleUrl::dataSource_data(const byte* /*data*/, unsigned /*size*/, | ^~~~ In file included from ./config.h:217, from gtk/gtk-single-url.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-single-url.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ gtk/gtk-single-url.cc: In member function 'void GtkSingleUrl::showProgress()': gtk/gtk-single-url.cc:522:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 522 | GTimeVal now; | ^~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ gtk/gtk-single-url.cc:523:21: warning: 'void g_get_current_time(GTimeVal*)' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations] 523 | g_get_current_time(&now); | ~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:33, from /usr/include/glib-2.0/glib.h:54, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here 681 | void g_get_current_time (GTimeVal *result); | ^~~~~~~~~~~~~~~~~~ gtk/gtk-single-url.cc: In member function 'void GtkSingleUrl::on_restartButton_clicked()': gtk/gtk-single-url.cc:697:14: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 697 | GTimeVal now; | ^~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ gtk/gtk-single-url.cc:698:23: warning: 'void g_get_current_time(GTimeVal*)' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations] 698 | g_get_current_time(&now); | ~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:33, from /usr/include/glib-2.0/glib.h:54, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gtk-single-url.cc:20: /usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here 681 | void g_get_current_time (GTimeVal *result); | ^~~~~~~~~~~~~~~~~~ In file included from ./util/bstream.hh:34, from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gtk-single-url.cc:20: ./job/job.hh: In instantiation of 'void IOSource::addListener(SomeIO&) [with SomeIO = Job::DataSource::IO]': gtk/gtk-single-url.cc:133:28: required from here ./job/job.hh:130:43: warning: the compiler can assume that the address of 'l' will never be NULL [-Waddress] 130 | void addListener(SomeIO& l) { Assert(&l != 0); list.push_front(l); } ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ make[1]: *** [Makefile:95: gtk/gtk-single-url.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/joblist.cc -o gtk/joblist.o In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./gtk/jobline.hh:20, from gtk/joblist.cc:24: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from gtk/joblist.cc:24: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from ./gtk/jobline.hh:20, from gtk/joblist.cc:24: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from gtk/joblist.cc:24: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./gtk/joblist.hh:29, from ./gtk/jobline.hh:23, from gtk/joblist.cc:24: ./net/download.hh:182:36: error: reference to 'byte' is ambiguous 182 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/joblist.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/joblist.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ gtk/joblist.cc: In static member function 'static void JobList::pixbufForJobLine(GtkTreeViewColumn*, GtkCellRenderer*, GtkTreeModel*, GtkTreeIter*, gpointer)': gtk/joblist.cc:184:41: warning: conversion from 'uint64' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 184 | subNr = cur * (PROGRESS_SUBDIV - 1) / total; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ make[1]: *** [Makefile:95: gtk/joblist.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c jigdo-file-cmd.cc -o jigdo-file-cmd.o In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./cachefile.hh:85:21: error: reference to 'byte' is ambiguous 85 | Status find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./cachefile.hh:95:25: error: reference to 'byte' is ambiguous 95 | Status findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./cachefile.hh:102:28: error: reference to 'byte' is ambiguous 102 | inline void insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./cachefile.hh:119:3: error: reference to 'byte' is ambiguous 119 | byte* insert_prepare(size_t inSize); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./cachefile.hh:141:30: error: reference to 'byte' is ambiguous 141 | void CacheFile::insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./cachefile.hh: In member function 'void CacheFile::insert(const int*, size_t, const string&, time_t, uint64)': ./cachefile.hh:143:10: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 143 | memcpy(insert_prepare(inSize), inData, inSize); | ^~~~~~~~~~~~~~ | insert_perform ./cachefile.hh: In member function 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64)': ./cachefile.hh:150:5: error: there are no arguments to 'insert_prepare' that depend on a template parameter, so a declaration of 'insert_prepare' must be available [-fpermissive] 150 | f(insert_prepare(inSize)); | ^~~~~~~~~~~~~~ ./cachefile.hh:150:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from ./util/md5sum.hh:37, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/bstream.hh: At global scope: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./scan.hh:29, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh: At global scope: ./util/rsyncsum.hh:52:18: error: reference to 'byte' is ambiguous 52 | RsyncSum(const byte* mem, size_t len) : sum(0) { addBack(mem, len); }; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:61:27: error: reference to 'byte' is ambiguous 61 | RsyncSum& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:63:28: error: reference to 'byte' is ambiguous 63 | inline RsyncSum& addBack(byte x); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:63:28: error: 'byte' has not been declared 63 | inline RsyncSum& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:68:34: error: reference to 'byte' is ambiguous 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:68:34: error: 'byte' has not been declared 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:75:31: error: reference to 'byte' is ambiguous 75 | RsyncSum& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:77:32: error: reference to 'byte' is ambiguous 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:77:32: error: 'byte' has not been declared 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:101:27: error: reference to 'byte' is ambiguous 101 | inline RsyncSum64(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:108:36: error: reference to 'byte' is ambiguous 108 | INLINE RsyncSum64& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:109:30: error: reference to 'byte' is ambiguous 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:109:30: error: 'byte' has not been declared 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:110:36: error: reference to 'byte' is ambiguous 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:110:36: error: 'byte' has not been declared 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:111:33: error: reference to 'byte' is ambiguous 111 | RsyncSum64& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:112:34: error: reference to 'byte' is ambiguous 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:112:34: error: 'byte' has not been declared 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:127:30: error: reference to 'byte' is ambiguous 127 | RsyncSum64& addBack2(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:136:11: error: 'RsyncSum& RsyncSum::addBack' is not a static data member of 'class RsyncSum' 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~~~~~ ./util/rsyncsum.hh:136:29: error: reference to 'byte' is ambiguous 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:145:11: error: 'RsyncSum& RsyncSum::addBackNtimes' is not a static data member of 'class RsyncSum' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~~~~~ ./util/rsyncsum.hh:145:35: error: reference to 'byte' is ambiguous 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:145:50: error: expected primary-expression before 'n' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:145:51: error: expression list treated as compound expression in initializer [-fpermissive] 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:154:11: error: 'RsyncSum& RsyncSum::removeFront' is not a static data member of 'class RsyncSum' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:33: error: reference to 'byte' is ambiguous 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:154:48: error: expected primary-expression before 'areaSize' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:56: error: expression list treated as compound expression in initializer [-fpermissive] 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^ ./util/rsyncsum.hh:164:30: error: reference to 'byte' is ambiguous 164 | RsyncSum64::RsyncSum64(const byte* mem, size_t len) : sumLo(0), sumHi(0) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:188:13: error: 'RsyncSum64& RsyncSum64::removeFront' is not a static data member of 'class RsyncSum64' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~~~ ./util/rsyncsum.hh:188:37: error: reference to 'byte' is ambiguous 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.hh:188:52: error: expected primary-expression before 'areaSize' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:188:60: error: expression list treated as compound expression in initializer [-fpermissive] 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.ih:34:39: error: reference to 'byte' is ambiguous 34 | RsyncSum64& RsyncSum64::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.ih:39:13: error: 'RsyncSum64& RsyncSum64::addBack' is not a static data member of 'class RsyncSum64' 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~~~~~~~ ./util/rsyncsum.ih:39:33: error: reference to 'byte' is ambiguous 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.ih:45:13: error: 'RsyncSum64& RsyncSum64::addBackNtimes' is not a static data member of 'class RsyncSum64' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~~~~~~~ ./util/rsyncsum.ih:45:39: error: reference to 'byte' is ambiguous 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./util/rsyncsum.ih:45:54: error: expected primary-expression before 'n' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.ih:45:55: error: expression list treated as compound expression in initializer [-fpermissive] 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ In file included from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./scan.hh:168:38: error: reference to 'byte' is ambiguous 168 | size_t unserializeCacheEntry(const byte* data, size_t dataSize, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./scan.hh:312:14: error: template argument 1 is invalid 312 | vector buffer; | ^ ./scan.hh:312:14: error: template argument 2 is invalid ./scan.hh: In member function 'void JigdoCache::deallocBuffer()': ./scan.hh:229:33: error: request for member 'resize' in '((JigdoCache*)this)->JigdoCache::buffer', which is of non-class type 'int' 229 | void deallocBuffer() { buffer.resize(0); } | ^~~~~~ ./scan.hh: In member function 'void JigdoCache::readFilenames(RecurseDir&)': ./scan.hh:426:13: error: reference to 'byte' is ambiguous 426 | const byte* data; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./scan.hh:429:32: error: cannot convert '' to 'const int*&' 429 | if (cacheFile->findName(data, dataSize, name, stSize, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | fileInfo.st_mtime).failed()) | ~~~~~~~~~~~~~~~~~~ In file included from ./scan.hh:27, from ./jigdo-file-cmd.hh:26, from jigdo-file-cmd.cc:25: ./cachefile.hh:95:32: note: initializing argument 1 of 'Status CacheFile::findName(const int*&, size_t&, const string&, off_t&, time_t&)' 95 | Status findName(const byte*& resultData, size_t& resultSize, | ~~~~~~~~~~~~~^~~~~~~~~~ In file included from ./jigdo-file-cmd.hh:28, from jigdo-file-cmd.cc:25: ./mkimage.hh: At global scope: ./mkimage.hh:75:43: error: ISO C++17 does not allow dynamic exception specifications 75 | static void seekFromEnd(bistream& file) throw(JigdoDescError); | ^~~~~ ./mkimage.hh:233:33: error: ISO C++17 does not allow dynamic exception specifications 233 | bistream& get(bistream& file) throw(JigdoDescError, bad_alloc); | ^~~~~ ./mkimage.hh:295:5: error: ISO C++17 does not allow dynamic exception specifications 295 | throw(JigdoDescError, bad_alloc) { | ^~~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file-cmd.cc:25: ./mktemplate.hh:110:16: error: reference to 'byte' is ambiguous 110 | static const byte IMAGE_INFO = 1, UNMATCHED_DATA = 2, MATCHED_FILE = 3; | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file-cmd.cc:25: ./mktemplate.hh:141:25: error: reference to 'byte' is ambiguous 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file-cmd.cc:25: ./mktemplate.hh:141:25: error: 'byte' has not been declared 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ ./mktemplate.hh:150:29: error: reference to 'byte' is ambiguous 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file-cmd.cc:25: ./mktemplate.hh:150:29: error: 'byte' has not been declared 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ ./mktemplate.hh:156:30: error: reference to 'byte' is ambiguous 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file-cmd.cc:25: ./mktemplate.hh:156:30: error: 'byte' has not been declared 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ ./mktemplate.hh:160:23: error: reference to 'byte' is ambiguous 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./config.h:217, from jigdo-file-cmd.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from jigdo-file-cmd.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./jigdo-file-cmd.hh:29, from jigdo-file-cmd.cc:25: ./mktemplate.hh:160:23: error: 'byte' has not been declared 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from jigdo-file-cmd.cc:27: ./recursedir.hh:79:7: error: ISO C++17 does not allow dynamic exception specifications 79 | throw(RecurseError, bad_alloc); | ^~~~~ ./recursedir.hh:105:5: error: ISO C++17 does not allow dynamic exception specifications 105 | throw(RecurseError); | ^~~~~ jigdo-file-cmd.cc:56:59: error: ISO C++17 does not allow dynamic exception specifications 56 | istream* openForInput(istream*& dest, const string& name) throw(Cleanup) { | ^~~~~ jigdo-file-cmd.cc:106:60: error: ISO C++17 does not allow dynamic exception specifications 106 | ostream* openForOutput(ostream*& dest, const string& name) throw(Cleanup) { | ^~~~~ jigdo-file-cmd.cc: In static member function 'static int JigdoFileCmd::makeTemplate()': jigdo-file-cmd.cc:221:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 221 | auto_ptr imageDel(openForInput(image, imageFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:223:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 223 | auto_ptr cfDel(new ConfigFile()); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:227:5: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 227 | auto_ptr jigdoMergeDel(openForInput(jigdoMerge, | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:240:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 240 | auto_ptr templDel(openForOutput(templ, templFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:253:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 253 | auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:269:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 269 | auto_ptr jigdoDel(openForOutput(jigdoF, jigdoFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc: In static member function 'static int JigdoFileCmd::makeImage()': jigdo-file-cmd.cc:306:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 306 | auto_ptr templDel(openForInput(templ, templFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc: In static member function 'static int JigdoFileCmd::listTemplate()': jigdo-file-cmd.cc:335:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 335 | auto_ptr templDel(openForInput(templ, templFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc: In static member function 'static int JigdoFileCmd::verifyImage()': jigdo-file-cmd.cc:370:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 370 | auto_ptr imageDel(openForInput(image, imageFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:376:5: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 376 | auto_ptr templDel(openForInput(templ, templFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc: In static member function 'static int JigdoFileCmd::printMissing(JigdoFileCmd::Command)': jigdo-file-cmd.cc:450:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 450 | auto_ptr templDel(openForInput(templ, templFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:465:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 465 | auto_ptr jigdoDel(openForInput(jigdo, jigdoFile)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:466:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 466 | auto_ptr cfDel(new ConfigFile()); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from jigdo-file-cmd.cc:17: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ jigdo-file-cmd.cc:494:18: error: 'const class MD5' has no member named 'sum' 494 | m.write(i->sum, 16).flush(); | ^~~ jigdo-file-cmd.cc:524:18: error: 'const class MD5' has no member named 'sum' 524 | m.write(i->sum, 16).flush(); | ^~~ jigdo-file-cmd.cc: In static member function 'static int JigdoFileCmd::md5sumFiles()': jigdo-file-cmd.cc:608:19: error: 'const class MD5Sum' has no member named 'digest' 608 | m.write(md->digest(), 16).flush(); | ^~~~~~ make[1]: *** [Makefile:95: jigdo-file-cmd.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c mkjigdo.cc -o mkjigdo.o In file included from ./util/md5sum.hh:37, from mkjigdo.cc:23: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from mkjigdo.cc:23: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from mkjigdo.cc:23: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from mkjigdo.cc:23: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:23: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from mkjigdo.cc:23: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh: At global scope: ./util/rsyncsum.hh:52:18: error: reference to 'byte' is ambiguous 52 | RsyncSum(const byte* mem, size_t len) : sum(0) { addBack(mem, len); }; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:61:27: error: reference to 'byte' is ambiguous 61 | RsyncSum& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:63:28: error: reference to 'byte' is ambiguous 63 | inline RsyncSum& addBack(byte x); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:63:28: error: 'byte' has not been declared 63 | inline RsyncSum& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:68:34: error: reference to 'byte' is ambiguous 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:68:34: error: 'byte' has not been declared 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:75:31: error: reference to 'byte' is ambiguous 75 | RsyncSum& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:77:32: error: reference to 'byte' is ambiguous 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:77:32: error: 'byte' has not been declared 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:101:27: error: reference to 'byte' is ambiguous 101 | inline RsyncSum64(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:108:36: error: reference to 'byte' is ambiguous 108 | INLINE RsyncSum64& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:109:30: error: reference to 'byte' is ambiguous 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:109:30: error: 'byte' has not been declared 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:110:36: error: reference to 'byte' is ambiguous 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:110:36: error: 'byte' has not been declared 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:111:33: error: reference to 'byte' is ambiguous 111 | RsyncSum64& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:112:34: error: reference to 'byte' is ambiguous 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:112:34: error: 'byte' has not been declared 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:127:30: error: reference to 'byte' is ambiguous 127 | RsyncSum64& addBack2(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:136:11: error: 'RsyncSum& RsyncSum::addBack' is not a static data member of 'class RsyncSum' 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~~~~~ ./util/rsyncsum.hh:136:29: error: reference to 'byte' is ambiguous 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:145:11: error: 'RsyncSum& RsyncSum::addBackNtimes' is not a static data member of 'class RsyncSum' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~~~~~ ./util/rsyncsum.hh:145:35: error: reference to 'byte' is ambiguous 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:145:50: error: expected primary-expression before 'n' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:145:51: error: expression list treated as compound expression in initializer [-fpermissive] 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:154:11: error: 'RsyncSum& RsyncSum::removeFront' is not a static data member of 'class RsyncSum' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:33: error: reference to 'byte' is ambiguous 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:154:48: error: expected primary-expression before 'areaSize' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:56: error: expression list treated as compound expression in initializer [-fpermissive] 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^ ./util/rsyncsum.hh:164:30: error: reference to 'byte' is ambiguous 164 | RsyncSum64::RsyncSum64(const byte* mem, size_t len) : sumLo(0), sumHi(0) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:188:13: error: 'RsyncSum64& RsyncSum64::removeFront' is not a static data member of 'class RsyncSum64' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~~~ ./util/rsyncsum.hh:188:37: error: reference to 'byte' is ambiguous 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.hh:188:52: error: expected primary-expression before 'areaSize' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:188:60: error: expression list treated as compound expression in initializer [-fpermissive] 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^ In file included from ./util/rsyncsum.hh:209, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.ih:34:39: error: reference to 'byte' is ambiguous 34 | RsyncSum64& RsyncSum64::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.ih:39:13: error: 'RsyncSum64& RsyncSum64::addBack' is not a static data member of 'class RsyncSum64' 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~~~~~~~ ./util/rsyncsum.ih:39:33: error: reference to 'byte' is ambiguous 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.ih:45:13: error: 'RsyncSum64& RsyncSum64::addBackNtimes' is not a static data member of 'class RsyncSum64' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~~~~~~~ ./util/rsyncsum.ih:45:39: error: reference to 'byte' is ambiguous 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./mktemplate.hh:42, from mkjigdo.cc:25: ./util/rsyncsum.ih:45:54: error: expected primary-expression before 'n' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.ih:45:55: error: expression list treated as compound expression in initializer [-fpermissive] 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ In file included from mkjigdo.cc:25: ./mktemplate.hh:110:16: error: reference to 'byte' is ambiguous 110 | static const byte IMAGE_INFO = 1, UNMATCHED_DATA = 2, MATCHED_FILE = 3; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:25: ./mktemplate.hh:141:25: error: reference to 'byte' is ambiguous 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:25: ./mktemplate.hh:141:25: error: 'byte' has not been declared 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ ./mktemplate.hh:150:29: error: reference to 'byte' is ambiguous 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:25: ./mktemplate.hh:150:29: error: 'byte' has not been declared 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ ./mktemplate.hh:156:30: error: reference to 'byte' is ambiguous 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:25: ./mktemplate.hh:156:30: error: 'byte' has not been declared 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ ./mktemplate.hh:160:23: error: reference to 'byte' is ambiguous 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mkjigdo.cc:25: ./mktemplate.hh:160:23: error: 'byte' has not been declared 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./cachefile.hh:85:21: error: reference to 'byte' is ambiguous 85 | Status find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./cachefile.hh:95:25: error: reference to 'byte' is ambiguous 95 | Status findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./cachefile.hh:102:28: error: reference to 'byte' is ambiguous 102 | inline void insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./cachefile.hh:119:3: error: reference to 'byte' is ambiguous 119 | byte* insert_prepare(size_t inSize); | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./cachefile.hh:141:30: error: reference to 'byte' is ambiguous 141 | void CacheFile::insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./cachefile.hh: In member function 'void CacheFile::insert(const int*, size_t, const string&, time_t, uint64)': ./cachefile.hh:143:10: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 143 | memcpy(insert_prepare(inSize), inData, inSize); | ^~~~~~~~~~~~~~ | insert_perform ./cachefile.hh: In member function 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64)': ./cachefile.hh:150:5: error: there are no arguments to 'insert_prepare' that depend on a template parameter, so a declaration of 'insert_prepare' must be available [-fpermissive] 150 | f(insert_prepare(inSize)); | ^~~~~~~~~~~~~~ ./cachefile.hh:150:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./scan.hh: At global scope: ./scan.hh:168:38: error: reference to 'byte' is ambiguous 168 | size_t unserializeCacheEntry(const byte* data, size_t dataSize, | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./scan.hh:312:14: error: template argument 1 is invalid 312 | vector buffer; | ^ ./scan.hh:312:14: error: template argument 2 is invalid ./scan.hh: In member function 'void JigdoCache::deallocBuffer()': ./scan.hh:229:33: error: request for member 'resize' in '((JigdoCache*)this)->JigdoCache::buffer', which is of non-class type 'int' 229 | void deallocBuffer() { buffer.resize(0); } | ^~~~~~ ./scan.hh: In member function 'void JigdoCache::readFilenames(RecurseDir&)': ./scan.hh:426:13: error: reference to 'byte' is ambiguous 426 | const byte* data; | ^~~~ In file included from ./config.h:217, from mkjigdo.cc:17: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mkjigdo.cc:17: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./scan.hh:429:32: error: cannot convert '' to 'const int*&' 429 | if (cacheFile->findName(data, dataSize, name, stSize, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | fileInfo.st_mtime).failed()) | ~~~~~~~~~~~~~~~~~~ In file included from ./scan.hh:27, from ./partialmatch.ih:24, from ./partialmatch.hh:178, from ./mktemplate.hh:218, from mkjigdo.cc:25: ./cachefile.hh:95:32: note: initializing argument 1 of 'Status CacheFile::findName(const int*&, size_t&, const string&, off_t&, time_t&)' 95 | Status findName(const byte*& resultData, size_t& resultSize, | ~~~~~~~~~~~~~^~~~~~~~~~ mkjigdo.cc: In member function 'void MkTemplate::finalizeJigdo(const string&, const string&, const MD5Sum&)': mkjigdo.cc:140:30: error: 'const class MD5Sum' has no member named 'digest' 140 | md5Sum.write(templMd5Sum.digest(), 16).flush(); | ^~~~~~ mkjigdo.cc:215:39: error: 'const class MD5Sum' has no member named 'digest' 215 | m.write((*i)->getMD5Sum(cache)->digest(), 16).flush(); | ^~~~~~ make[1]: *** [Makefile:95: mkjigdo.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c mktemplate.cc -o mktemplate.o In file included from mktemplate.cc:41: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:41: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:41: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:41: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:41: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:41: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:41: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope 336 | code = table[code - 32]; | ^~~~~ ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:26, from mktemplate.cc:42: ./util/bstream.hh: At global scope: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:26, from mktemplate.cc:42: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:26, from mktemplate.cc:42: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:26, from mktemplate.cc:42: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./mkimage.hh:28, from mktemplate.cc:42: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mktemplate.cc:42: ./cachefile.hh: At global scope: ./cachefile.hh:85:21: error: reference to 'byte' is ambiguous 85 | Status find(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mktemplate.cc:42: ./cachefile.hh:95:25: error: reference to 'byte' is ambiguous 95 | Status findName(const byte*& resultData, size_t& resultSize, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mktemplate.cc:42: ./cachefile.hh:102:28: error: reference to 'byte' is ambiguous 102 | inline void insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mktemplate.cc:42: ./cachefile.hh:119:3: error: reference to 'byte' is ambiguous 119 | byte* insert_prepare(size_t inSize); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mktemplate.cc:42: ./cachefile.hh:141:30: error: reference to 'byte' is ambiguous 141 | void CacheFile::insert(const byte* inData, size_t inSize, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mktemplate.cc:42: ./cachefile.hh: In member function 'void CacheFile::insert(const int*, size_t, const string&, time_t, uint64)': ./cachefile.hh:143:10: error: 'insert_prepare' was not declared in this scope; did you mean 'insert_perform'? 143 | memcpy(insert_prepare(inSize), inData, inSize); | ^~~~~~~~~~~~~~ | insert_perform ./cachefile.hh: In member function 'void CacheFile::insert(Functor, size_t, const string&, time_t, uint64)': ./cachefile.hh:150:5: error: there are no arguments to 'insert_prepare' that depend on a template parameter, so a declaration of 'insert_prepare' must be available [-fpermissive] 150 | f(insert_prepare(inSize)); | ^~~~~~~~~~~~~~ ./cachefile.hh:150:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./serialize.hh: At global scope: ./serialize.hh:82:11: error: reference to 'byte' is ambiguous 82 | typedef byte value_type; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./serialize.hh:83:17: error: reference to 'byte' is ambiguous 83 | typedef const byte* pointer; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./serialize.hh:84:17: error: reference to 'byte' is ambiguous 84 | typedef const byte& reference; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./serialize.hh:91:3: error: 'reference' does not name a type 91 | reference operator*() const { | ^~~~~~~~~ ./serialize.hh:93:3: error: 'pointer' does not name a type 93 | pointer operator->() const { | ^~~~~~~ ./serialize.hh:98:11: error: reference to 'byte' is ambiguous 98 | mutable byte val; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator()': ./serialize.hh:86:40: error: class 'SerialIstreamIterator' does not have any field named 'val' 86 | SerialIstreamIterator() : stream(0), val(0) { } | ^~~ ./serialize.hh: In constructor 'SerialIstreamIterator::SerialIstreamIterator(SerialIstreamIterator::istream_type&)': ./serialize.hh:87:56: error: class 'SerialIstreamIterator' does not have any field named 'val' 87 | SerialIstreamIterator(istream_type& s) : stream(&s), val(0) { } | ^~~ ./serialize.hh: At global scope: ./serialize.hh:112:42: error: reference to 'byte' is ambiguous 112 | SerialOstreamIterator& operator=(const byte val) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:31, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./serialize.hh: In member function 'SerialOstreamIterator& SerialOstreamIterator::operator=(int)': ./serialize.hh:113:17: warning: conversion from 'int' to 'std::basic_ostream::char_type' {aka 'char'} may change value [-Wconversion] 113 | stream->put(val); | ^~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh: At global scope: ./util/rsyncsum.hh:52:18: error: reference to 'byte' is ambiguous 52 | RsyncSum(const byte* mem, size_t len) : sum(0) { addBack(mem, len); }; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:61:27: error: reference to 'byte' is ambiguous 61 | RsyncSum& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:63:28: error: reference to 'byte' is ambiguous 63 | inline RsyncSum& addBack(byte x); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:63:28: error: 'byte' has not been declared 63 | inline RsyncSum& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:68:34: error: reference to 'byte' is ambiguous 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:68:34: error: 'byte' has not been declared 68 | inline RsyncSum& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:75:31: error: reference to 'byte' is ambiguous 75 | RsyncSum& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:77:32: error: reference to 'byte' is ambiguous 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:77:32: error: 'byte' has not been declared 77 | inline RsyncSum& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:101:27: error: reference to 'byte' is ambiguous 101 | inline RsyncSum64(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:108:36: error: reference to 'byte' is ambiguous 108 | INLINE RsyncSum64& addBack(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:109:30: error: reference to 'byte' is ambiguous 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:109:30: error: 'byte' has not been declared 109 | INLINE RsyncSum64& addBack(byte x); | ^~~~ ./util/rsyncsum.hh:110:36: error: reference to 'byte' is ambiguous 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:110:36: error: 'byte' has not been declared 110 | INLINE RsyncSum64& addBackNtimes(byte x, size_t n); | ^~~~ ./util/rsyncsum.hh:111:33: error: reference to 'byte' is ambiguous 111 | RsyncSum64& removeFront(const byte* mem, size_t len, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:112:34: error: reference to 'byte' is ambiguous 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:112:34: error: 'byte' has not been declared 112 | inline RsyncSum64& removeFront(byte x, size_t areaSize); | ^~~~ ./util/rsyncsum.hh:127:30: error: reference to 'byte' is ambiguous 127 | RsyncSum64& addBack2(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:136:11: error: 'RsyncSum& RsyncSum::addBack' is not a static data member of 'class RsyncSum' 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~~~~~ ./util/rsyncsum.hh:136:29: error: reference to 'byte' is ambiguous 136 | RsyncSum& RsyncSum::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:145:11: error: 'RsyncSum& RsyncSum::addBackNtimes' is not a static data member of 'class RsyncSum' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~~~~~ ./util/rsyncsum.hh:145:35: error: reference to 'byte' is ambiguous 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:145:50: error: expected primary-expression before 'n' 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:145:51: error: expression list treated as compound expression in initializer [-fpermissive] 145 | RsyncSum& RsyncSum::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.hh:154:11: error: 'RsyncSum& RsyncSum::removeFront' is not a static data member of 'class RsyncSum' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:33: error: reference to 'byte' is ambiguous 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:154:48: error: expected primary-expression before 'areaSize' 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:154:56: error: expression list treated as compound expression in initializer [-fpermissive] 154 | RsyncSum& RsyncSum::removeFront(byte x, size_t areaSize) { | ^ ./util/rsyncsum.hh:164:30: error: reference to 'byte' is ambiguous 164 | RsyncSum64::RsyncSum64(const byte* mem, size_t len) : sumLo(0), sumHi(0) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:188:13: error: 'RsyncSum64& RsyncSum64::removeFront' is not a static data member of 'class RsyncSum64' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~~~ ./util/rsyncsum.hh:188:37: error: reference to 'byte' is ambiguous 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.hh:188:52: error: expected primary-expression before 'areaSize' 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^~~~~~~~ ./util/rsyncsum.hh:188:60: error: expression list treated as compound expression in initializer [-fpermissive] 188 | RsyncSum64& RsyncSum64::removeFront(byte x, size_t areaSize) { | ^ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.ih:34:39: error: reference to 'byte' is ambiguous 34 | RsyncSum64& RsyncSum64::addBack(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.ih:39:13: error: 'RsyncSum64& RsyncSum64::addBack' is not a static data member of 'class RsyncSum64' 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~~~~~~~ ./util/rsyncsum.ih:39:33: error: reference to 'byte' is ambiguous 39 | RsyncSum64& RsyncSum64::addBack(byte x) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.ih:45:13: error: 'RsyncSum64& RsyncSum64::addBackNtimes' is not a static data member of 'class RsyncSum64' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~~~~~~~ ./util/rsyncsum.ih:45:39: error: reference to 'byte' is ambiguous 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/rsyncsum.hh:209, from ./scan.hh:31, from ./mkimage.hh:29, from mktemplate.cc:42: ./util/rsyncsum.ih:45:54: error: expected primary-expression before 'n' 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ ./util/rsyncsum.ih:45:55: error: expression list treated as compound expression in initializer [-fpermissive] 45 | RsyncSum64& RsyncSum64::addBackNtimes(byte x, size_t n) { | ^ In file included from ./mkimage.hh:29, from mktemplate.cc:42: ./scan.hh:168:38: error: reference to 'byte' is ambiguous 168 | size_t unserializeCacheEntry(const byte* data, size_t dataSize, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:29, from mktemplate.cc:42: ./scan.hh:312:14: error: template argument 1 is invalid 312 | vector buffer; | ^ ./scan.hh:312:14: error: template argument 2 is invalid ./scan.hh: In member function 'void JigdoCache::deallocBuffer()': ./scan.hh:229:33: error: request for member 'resize' in '((JigdoCache*)this)->JigdoCache::buffer', which is of non-class type 'int' 229 | void deallocBuffer() { buffer.resize(0); } | ^~~~~~ ./scan.hh: In member function 'void JigdoCache::readFilenames(RecurseDir&)': ./scan.hh:426:13: error: reference to 'byte' is ambiguous 426 | const byte* data; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./mkimage.hh:29, from mktemplate.cc:42: ./scan.hh:429:32: error: cannot convert '' to 'const int*&' 429 | if (cacheFile->findName(data, dataSize, name, stSize, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | fileInfo.st_mtime).failed()) | ~~~~~~~~~~~~~~~~~~ In file included from ./scan.hh:27, from ./mkimage.hh:29, from mktemplate.cc:42: ./cachefile.hh:95:32: note: initializing argument 1 of 'Status CacheFile::findName(const int*&, size_t&, const string&, off_t&, time_t&)' 95 | Status findName(const byte*& resultData, size_t& resultSize, | ~~~~~~~~~~~~~^~~~~~~~~~ In file included from mktemplate.cc:42: ./mkimage.hh: At global scope: ./mkimage.hh:75:43: error: ISO C++17 does not allow dynamic exception specifications 75 | static void seekFromEnd(bistream& file) throw(JigdoDescError); | ^~~~~ ./mkimage.hh:233:33: error: ISO C++17 does not allow dynamic exception specifications 233 | bistream& get(bistream& file) throw(JigdoDescError, bad_alloc); | ^~~~~ ./mkimage.hh:295:5: error: ISO C++17 does not allow dynamic exception specifications 295 | throw(JigdoDescError, bad_alloc) { | ^~~~~ In file included from mktemplate.cc:43: ./mktemplate.hh:110:16: error: reference to 'byte' is ambiguous 110 | static const byte IMAGE_INFO = 1, UNMATCHED_DATA = 2, MATCHED_FILE = 3; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:43: ./mktemplate.hh:141:25: error: reference to 'byte' is ambiguous 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:43: ./mktemplate.hh:141:25: error: 'byte' has not been declared 141 | INLINE bool scanImage(byte* buf, size_t bufferLength, size_t blockLength, | ^~~~ ./mktemplate.hh:150:29: error: reference to 'byte' is ambiguous 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:43: ./mktemplate.hh:150:29: error: 'byte' has not been declared 150 | INLINE bool checkMD5Match(byte* const buf, | ^~~~ ./mktemplate.hh:156:30: error: reference to 'byte' is ambiguous 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:43: ./mktemplate.hh:156:30: error: 'byte' has not been declared 156 | INLINE bool unmatchedAtEnd(byte* const buf, const size_t bufferLength, | ^~~~ ./mktemplate.hh:160:23: error: reference to 'byte' is ambiguous 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:43: ./mktemplate.hh:160:23: error: 'byte' has not been declared 160 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:81:33: error: reference to 'byte' is ambiguous 81 | inline Zobstream& write(const byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:99:11: error: reference to 'byte' is ambiguous 99 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:100:11: error: reference to 'byte' is ambiguous 100 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:105:27: error: reference to 'byte' is ambiguous 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:105:27: error: 'byte' has not been declared 105 | virtual void setNextOut(byte* n) = 0; | ^~~~ ./zstream.hh:106:26: error: reference to 'byte' is ambiguous 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:106:26: error: 'byte' has not been declared 106 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:108:21: error: reference to 'byte' is ambiguous 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:108:21: error: 'byte' has not been declared 108 | virtual void zip2(byte* start, unsigned len, bool finish) = 0; | ^~~~ ./zstream.hh:117:5: error: reference to 'byte' is ambiguous 117 | byte data[ZIPDATA_SIZE]; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:129:19: error: reference to 'byte' is ambiguous 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:129:19: error: 'byte' has not been declared 129 | inline void zip(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream.hh:132:3: error: reference to 'byte' is ambiguous 132 | byte* todoBuf; // Allocated during open(), deallocated during close() | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:39: ./zstream.hh: In destructor 'virtual Zobstream::~Zobstream()': ./zstream.hh:60:57: error: 'todoBuf' was not declared in this scope 60 | virtual ~Zobstream() { close(); delete zipBuf; Assert(todoBuf == 0); } | ^~~~~~~ ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh: At global scope: ./zstream.hh:159:13: error: reference to 'byte' is ambiguous 159 | virtual byte* nextOut() const = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:160:13: error: reference to 'byte' is ambiguous 160 | virtual byte* nextIn() const = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:164:28: error: reference to 'byte' is ambiguous 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:164:28: error: 'byte' has not been declared 164 | virtual void setNextIn(byte* n) = 0; | ^~~~ ./zstream.hh:175:26: error: reference to 'byte' is ambiguous 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:175:26: error: 'byte' has not been declared 175 | virtual void inflate(byte** nextOut, unsigned* availOut) = 0; | ^~~~ ./zstream.hh:208:19: error: reference to 'byte' is ambiguous 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:208:19: error: 'byte' has not been declared 208 | Zibstream& read(byte* x, unsigned n); | ^~~~ ./zstream.hh:237:3: error: reference to 'byte' is ambiguous 237 | byte* buf; // Contains compressed data | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:240:3: error: reference to 'byte' is ambiguous 240 | byte* nextOut; // Pointer into output buffer | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh: In destructor 'virtual Zibstream::~Zibstream()': ./zstream.hh:190:42: error: 'buf' was not declared in this scope 190 | virtual ~Zibstream() { close(); delete buf; if (z != 0) z->end(); delete z; } | ^~~ ./zstream.hh: In member function 'bool Zibstream::good() const': ./zstream.hh:215:43: error: 'buf' was not declared in this scope 215 | bool good() const { return is_open() && buf != 0; } | ^~~ ./zstream.hh: In constructor 'Zobstream::Zobstream(MD5Sum*)': ./zstream.hh:249:33: error: class 'Zobstream' does not have any field named 'todoBuf' 249 | : zipBuf(0), zipBufLast(0), todoBuf(0), todoBufSize(0), todoCount(0), | ^~~~~~~ ./zstream.hh: In member function 'void Zobstream::open(bostream&, unsigned int, unsigned int)': ./zstream.hh:259:3: error: 'todoBuf' was not declared in this scope; did you mean 'todoBufSz'? 259 | todoBuf = new byte[todoBufSize]; | ^~~~~~~ | todoBufSz ./zstream.hh:259:17: error: reference to 'byte' is ambiguous 259 | todoBuf = new byte[todoBufSize]; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh: At global scope: ./zstream.hh:265:6: error: variable or field 'zip' declared void 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~~ ./zstream.hh:265:21: error: reference to 'byte' is ambiguous 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:265:27: error: 'start' was not declared in this scope; did you mean 'stat'? 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~ | stat ./zstream.hh:265:34: error: expected primary-expression before 'unsigned' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~~~~~ ./zstream.hh:265:48: error: expected primary-expression before 'bool' 265 | void Zobstream::zip(byte* start, unsigned len, bool finish) { | ^~~~ ./zstream.hh: In member function 'Zobstream& Zobstream::put(unsigned char)': ./zstream.hh:273:37: error: 'todoBuf' was not declared in this scope 273 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:274:3: error: 'todoBuf' was not declared in this scope 274 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:274:36: error: reference to 'byte' is ambiguous 274 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh: In member function 'Zobstream& Zobstream::put(signed char)': ./zstream.hh:280:37: error: 'todoBuf' was not declared in this scope 280 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:281:3: error: 'todoBuf' was not declared in this scope 281 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:281:36: error: reference to 'byte' is ambiguous 281 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh: In member function 'Zobstream& Zobstream::put(char)': ./zstream.hh:287:37: error: 'todoBuf' was not declared in this scope 287 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:288:3: error: 'todoBuf' was not declared in this scope 288 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:288:36: error: reference to 'byte' is ambiguous 288 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh: In member function 'Zobstream& Zobstream::put(int)': ./zstream.hh:294:37: error: 'todoBuf' was not declared in this scope 294 | if (todoCount >= todoBufSize) zip(todoBuf, todoCount); | ^~~~~~~ ./zstream.hh:295:3: error: 'todoBuf' was not declared in this scope 295 | todoBuf[todoCount] = static_cast(x); | ^~~~~~~ ./zstream.hh:295:36: error: reference to 'byte' is ambiguous 295 | todoBuf[todoCount] = static_cast(x); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh: At global scope: ./zstream.hh:300:35: error: reference to 'byte' is ambiguous 300 | Zobstream& Zobstream::write(const byte* x, unsigned n) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh: In member function 'Zobstream& Zobstream::write(const int*, unsigned int)': ./zstream.hh:303:9: error: 'todoBuf' was not declared in this scope 303 | zip(todoBuf, todoCount); // Zip remaining data in todoBuf | ^~~~~~~ ./zstream.hh:304:20: error: reference to 'byte' is ambiguous 304 | zip(const_cast(x), n); // Zip byte array | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./zstream-gz.hh:24, from mktemplate.cc:46: ./zstream.hh:304:24: error: expected '>' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh:304:24: error: expected '(' before '*' token 304 | zip(const_cast(x), n); // Zip byte array | ^ | ( ./zstream.hh:304:25: error: expected primary-expression before '>' token 304 | zip(const_cast(x), n); // Zip byte array | ^ ./zstream.hh: In constructor 'Zibstream::Zibstream(unsigned int)': ./zstream.hh:311:40: error: class 'Zibstream' does not have any field named 'buf' 311 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ ./zstream.hh: In constructor 'Zibstream::Zibstream(bistream&, unsigned int)': ./zstream.hh:315:40: error: class 'Zibstream' does not have any field named 'buf' 315 | : z(0), stream(0), bufSize(bufSz), buf(0) { | ^~~ In file included from mktemplate.cc:46: ./zstream-gz.hh: At global scope: ./zstream-gz.hh:59:11: error: reference to 'byte' is ambiguous 59 | virtual byte* nextOut() const { return z.next_out; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:60:11: error: reference to 'byte' is ambiguous 60 | virtual byte* nextIn() const { return z.next_in; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:65:27: error: reference to 'byte' is ambiguous 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:65:27: error: 'byte' has not been declared 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^~~~ ./zstream-gz.hh:66:26: error: reference to 'byte' is ambiguous 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:66:26: error: 'byte' has not been declared 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ ./zstream-gz.hh:67:21: error: reference to 'byte' is ambiguous 67 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:67:21: error: 'byte' has not been declared 67 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZobstreamGz::totalOut() const': ./zstream-gz.hh:55:48: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 55 | virtual unsigned totalOut() const { return z.total_out; } | ~~^~~~~~~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZobstreamGz::totalIn() const': ./zstream-gz.hh:56:47: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 56 | virtual unsigned totalIn() const { return z.total_in; } | ~~^~~~~~~~ ./zstream-gz.hh: In member function 'virtual void ZobstreamGz::setNextOut(int*)': ./zstream-gz.hh:65:51: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 65 | virtual void setNextOut(byte* n) { z.next_out = n; } | ^ | | | int* ./zstream-gz.hh: In member function 'virtual void ZobstreamGz::setNextIn(int*)': ./zstream-gz.hh:66:49: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 66 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^ | | | int* ./zstream-gz.hh: At global scope: ./zstream-gz.hh:94:11: error: reference to 'byte' is ambiguous 94 | virtual byte* nextOut() const { return z.next_out; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:95:11: error: reference to 'byte' is ambiguous 95 | virtual byte* nextIn() const { return z.next_in; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:99:26: error: reference to 'byte' is ambiguous 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:99:26: error: 'byte' has not been declared 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^~~~ ./zstream-gz.hh:112:24: error: reference to 'byte' is ambiguous 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:46: ./zstream-gz.hh:112:24: error: 'byte' has not been declared 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZibstreamGz::totalOut() const': ./zstream-gz.hh:90:48: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 90 | virtual unsigned totalOut() const { return z.total_out; } | ~~^~~~~~~~~ ./zstream-gz.hh: In member function 'virtual unsigned int ZibstreamGz::totalIn() const': ./zstream-gz.hh:91:47: warning: conversion from 'uLong' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 91 | virtual unsigned totalIn() const { return z.total_in; } | ~~^~~~~~~~ ./zstream-gz.hh: In member function 'virtual void ZibstreamGz::setNextIn(int*)': ./zstream-gz.hh:99:49: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 99 | virtual void setNextIn(byte* n) { z.next_in = n; } | ^ | | | int* ./zstream-gz.hh: In member function 'virtual void ZibstreamGz::inflate(int**, unsigned int*)': ./zstream-gz.hh:113:18: error: cannot convert 'int*' to 'Bytef*' {aka 'unsigned char*'} in assignment 113 | z.next_out = *nextOut; z.avail_out = *availOut; | ^~~~~~~~ | | | int* ./zstream-gz.hh:115:18: error: cannot convert 'Bytef*' {aka 'unsigned char*'} to 'int*' in assignment 115 | *nextOut = z.next_out; *availOut = z.avail_out; | ~~^~~~~~~~ | | | Bytef* {aka unsigned char*} In file included from mktemplate.cc:47: ./zstream-bz.hh: At global scope: ./zstream-bz.hh:53:11: error: reference to 'byte' is ambiguous 53 | virtual byte* nextOut() const { return reinterpret_cast(z.next_out); } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:54:11: error: reference to 'byte' is ambiguous 54 | virtual byte* nextIn() const { return reinterpret_cast(z.next_in); } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:61:27: error: reference to 'byte' is ambiguous 61 | virtual void setNextOut(byte* n) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:61:27: error: 'byte' has not been declared 61 | virtual void setNextOut(byte* n) { | ^~~~ ./zstream-bz.hh:63:26: error: reference to 'byte' is ambiguous 63 | virtual void setNextIn(byte* n) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:63:26: error: 'byte' has not been declared 63 | virtual void setNextIn(byte* n) { | ^~~~ ./zstream-bz.hh:65:21: error: reference to 'byte' is ambiguous 65 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:65:21: error: 'byte' has not been declared 65 | virtual void zip2(byte* start, unsigned len, bool finish = false); | ^~~~ ./zstream-bz.hh:89:11: error: reference to 'byte' is ambiguous 89 | virtual byte* nextOut() const { return reinterpret_cast(z.next_out); } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:90:11: error: reference to 'byte' is ambiguous 90 | virtual byte* nextIn() const { return reinterpret_cast(z.next_in); } | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:96:26: error: reference to 'byte' is ambiguous 96 | virtual void setNextIn(byte* n) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:96:26: error: 'byte' has not been declared 96 | virtual void setNextIn(byte* n) { | ^~~~ ./zstream-bz.hh:112:24: error: reference to 'byte' is ambiguous 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:112:24: error: 'byte' has not been declared 112 | virtual void inflate(byte** nextOut, unsigned* availOut) { | ^~~~ ./zstream-bz.hh: In member function 'virtual void ZibstreamBz::inflate(int**, unsigned int*)': ./zstream-bz.hh:115:33: error: reference to 'byte' is ambiguous 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from mktemplate.cc:47: ./zstream-bz.hh:115:37: error: expected '>' before '*' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ ./zstream-bz.hh:115:37: error: expected '(' before '*' token ./zstream-bz.hh:115:38: error: expected primary-expression before '>' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ ./zstream-bz.hh:115:51: error: expected ')' before ';' token 115 | *nextOut = reinterpret_cast(z.next_out); *availOut = z.avail_out; | ^ mktemplate.cc: At global scope: mktemplate.cc:128:30: error: reference to 'byte' is ambiguous 128 | inline void writeBuf(const byte* const buf, size_t begin, size_t end, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc: In function 'void {anonymous}::writeBuf(const int*, size_t, size_t, size_t, Zobstream*)': mktemplate.cc:132:35: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 132 | zip->write(buf + begin, end - begin); | ~~~~^~~~~~~ mktemplate.cc:134:44: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] 134 | zip->write(buf + begin, bufferLength - begin); | ~~~~~~~~~~~~~^~~~~~~ mktemplate.cc:135:23: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 135 | zip->write(buf, end); | ^~~ mktemplate.cc: In function 'void {anonymous}::write48(bostream&, uint64)': mktemplate.cc:150:23: error: reference to 'byte' is ambiguous 150 | s.put(static_cast( x & 0xff)); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:151:23: error: reference to 'byte' is ambiguous 151 | s.put(static_cast((x >> 8) & 0xff)); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:152:23: error: reference to 'byte' is ambiguous 152 | s.put(static_cast((x >> 16) & 0xff)); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:153:23: error: reference to 'byte' is ambiguous 153 | s.put(static_cast((x >> 24) & 0xff)); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:154:23: error: reference to 'byte' is ambiguous 154 | s.put(static_cast((x >> 32) & 0xff)); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:155:23: error: reference to 'byte' is ambiguous 155 | s.put(static_cast((x >> 40) & 0xff)); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc: In member function 'bool MkTemplate::rereadUnmatched(FilePart*, uint64)': mktemplate.cc:307:20: error: template argument 1 is invalid 307 | ArrayAutoPtr tmpBuf(new byte[readAmount]); | ^ mktemplate.cc:307:33: error: reference to 'byte' is ambiguous 307 | ArrayAutoPtr tmpBuf(new byte[readAmount]); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:310:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 310 | auto_ptr inputFile(new bifstream(inputName.c_str(),ios::binary)); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from mktemplate.cc:35: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ mktemplate.cc:313:34: error: request for member 'get' in 'tmpBuf', which is of non-class type 'int' 313 | readBytes(*inputFile, tmpBuf.get(), | ^~~ mktemplate.cc:316:23: error: request for member 'get' in 'tmpBuf', which is of non-class type 'int' 316 | zip->write(tmpBuf.get(), n); // will catch Zerror "upstream" | ^~~ mktemplate.cc: In member function 'bool MkTemplate::matchExecCommands(MkTemplate::PartialMatch*)': mktemplate.cc:415:45: error: 'const class MD5Sum' has no member named 'digest' 415 | md5Sum.write(x->file()->getMD5Sum(cache)->digest(), 16).flush(); | ^~~~~~ mktemplate.cc: At global scope: mktemplate.cc:447:6: error: 'bool MkTemplate::checkMD5Match' is not a static data member of 'class MkTemplate' 447 | bool MkTemplate::checkMD5Match(byte* const buf, | ^~~~~~~~~~ mktemplate.cc:447:32: error: reference to 'byte' is ambiguous 447 | bool MkTemplate::checkMD5Match(byte* const buf, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:447:38: error: expected primary-expression before 'const' 447 | bool MkTemplate::checkMD5Match(byte* const buf, | ^~~~~ mktemplate.cc:448:5: error: expected primary-expression before 'const' 448 | const size_t bufferLength, const size_t data, | ^~~~~ mktemplate.cc:448:32: error: expected primary-expression before 'const' 448 | const size_t bufferLength, const size_t data, | ^~~~~ mktemplate.cc:449:5: error: expected primary-expression before 'const' 449 | const size_t md5BlockLength, uint64& nextEvent, | ^~~~~ mktemplate.cc:449:40: error: expected primary-expression before '&' token 449 | const size_t md5BlockLength, uint64& nextEvent, | ^ mktemplate.cc:449:42: error: 'nextEvent' was not declared in this scope 449 | const size_t md5BlockLength, uint64& nextEvent, | ^~~~~~~~~ mktemplate.cc:450:5: error: expected primary-expression before 'const' 450 | const size_t stillBuffered, Desc& desc) { | ^~~~~ mktemplate.cc:450:37: error: expected primary-expression before '&' token 450 | const size_t stillBuffered, Desc& desc) { | ^ mktemplate.cc:450:39: error: 'desc' was not declared in this scope; did you mean 'Desc'? 450 | const size_t stillBuffered, Desc& desc) { | ^~~~ | Desc mktemplate.cc:450:43: error: expression list treated as compound expression in initializer [-fpermissive] 450 | const size_t stillBuffered, Desc& desc) { | ^ mktemplate.cc:569:6: error: 'bool MkTemplate::unmatchedAtEnd' is not a static data member of 'class MkTemplate' 569 | bool MkTemplate::unmatchedAtEnd(byte* const buf, | ^~~~~~~~~~ mktemplate.cc:569:33: error: reference to 'byte' is ambiguous 569 | bool MkTemplate::unmatchedAtEnd(byte* const buf, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:569:39: error: expected primary-expression before 'const' 569 | bool MkTemplate::unmatchedAtEnd(byte* const buf, | ^~~~~ mktemplate.cc:570:5: error: expected primary-expression before 'const' 570 | const size_t bufferLength, const size_t data, Desc& desc) { | ^~~~~ mktemplate.cc:570:32: error: expected primary-expression before 'const' 570 | const size_t bufferLength, const size_t data, Desc& desc) { | ^~~~~ mktemplate.cc:570:55: error: expected primary-expression before '&' token 570 | const size_t bufferLength, const size_t data, Desc& desc) { | ^ mktemplate.cc:570:57: error: 'desc' was not declared in this scope; did you mean 'Desc'? 570 | const size_t bufferLength, const size_t data, Desc& desc) { | ^~~~ | Desc mktemplate.cc:570:61: error: expression list treated as compound expression in initializer [-fpermissive] 570 | const size_t bufferLength, const size_t data, Desc& desc) { | ^ mktemplate.cc:609:23: error: reference to 'byte' is ambiguous 609 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:609:23: error: 'byte' has not been declared 609 | RsyncSum64* rsum, byte* buf, size_t* data, size_t* n, size_t* rsumBack, | ^~~~ mktemplate.cc: In member function 'void MkTemplate::scanImage_mainLoop_fastForward(uint64, RsyncSum64*, int*, size_t*, size_t*, size_t*, size_t, size_t, uint32, size_t)': mktemplate.cc:655:35: warning: conversion from 'uint64' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 655 | unsigned len = nextAlignedOff - off; | ~~~~~~~~~~~~~~~^~~~~ mktemplate.cc:656:48: warning: conversion from 'uint64' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 656 | if (len > nextEvent - off) len = nextEvent - off; | ~~~~~~~~~~^~~~~ mktemplate.cc: At global scope: mktemplate.cc:718:13: error: 'bool MkTemplate::scanImage' is not a static data member of 'class MkTemplate' 718 | inline bool MkTemplate::scanImage(byte* buf, size_t bufferLength, | ^~~~~~~~~~ mktemplate.cc:718:35: error: reference to 'byte' is ambiguous 718 | inline bool MkTemplate::scanImage(byte* buf, size_t bufferLength, | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:718:41: error: 'buf' was not declared in this scope 718 | inline bool MkTemplate::scanImage(byte* buf, size_t bufferLength, | ^~~ mktemplate.cc:718:53: error: expected primary-expression before 'bufferLength' 718 | inline bool MkTemplate::scanImage(byte* buf, size_t bufferLength, | ^~~~~~~~~~~~ mktemplate.cc:719:12: error: expected primary-expression before 'blockLength' 719 | size_t blockLength, uint32 blockMask, size_t md5BlockLength, | ^~~~~~~~~~~ mktemplate.cc:719:32: error: expected primary-expression before 'blockMask' 719 | size_t blockLength, uint32 blockMask, size_t md5BlockLength, | ^~~~~~~~~ mktemplate.cc:719:50: error: expected primary-expression before 'md5BlockLength' 719 | size_t blockLength, uint32 blockMask, size_t md5BlockLength, | ^~~~~~~~~~~~~~ mktemplate.cc:720:11: error: expected primary-expression before '&' token 720 | MD5Sum& templMd5Sum) { | ^ mktemplate.cc:720:13: error: 'templMd5Sum' was not declared in this scope 720 | MD5Sum& templMd5Sum) { | ^~~~~~~~~~~ mktemplate.cc:720:24: error: expression list treated as compound expression in initializer [-fpermissive] 720 | MD5Sum& templMd5Sum) { | ^ mktemplate.cc: In member function 'bool MkTemplate::run(const string&, const string&)': mktemplate.cc:962:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'uint32' {aka 'unsigned int'} may change value [-Wconversion] 962 | int blockBits = bitWidth(fileCount) + 1; | ^~~~~~~~~ mktemplate.cc:994:20: error: template argument 1 is invalid 994 | ArrayAutoPtr bufDel(new byte[bufferLength]); | ^ mktemplate.cc:994:33: error: reference to 'byte' is ambiguous 994 | ArrayAutoPtr bufDel(new byte[bufferLength]); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:995:3: error: reference to 'byte' is ambiguous 995 | byte* buf = bufDel.get(); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:995:9: error: 'buf' was not declared in this scope 995 | byte* buf = bufDel.get(); | ^~~ mktemplate.cc:995:22: error: request for member 'get' in 'bufDel', which is of non-class type 'int' 995 | byte* buf = bufDel.get(); | ^~~ mktemplate.cc:1003:11: error: reference to 'byte' is ambiguous 1003 | const byte* t = reinterpret_cast(s.data()); | ^~~~ In file included from ./config.h:217, from mktemplate.cc:23: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from mktemplate.cc:23: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ mktemplate.cc:1004:24: error: 't' was not declared in this scope; did you mean 'tm'? 1004 | writeBytes(*templ, t, s.size()); | ^ | tm mktemplate.cc: At global scope: mktemplate.cc:141:8: warning: 'void {anonymous}::write48(bostream&, uint64)' defined but not used [-Wunused-function] 141 | void write48(bostream& s, uint64 x) { | ^~~~~~~ make[1]: *** [Makefile:95: mktemplate.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c job/cached-url.cc -o job/cached-url.o In file included from ./job/cached-url.hh:28, from job/cached-url.cc:26: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from job/cached-url.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from job/cached-url.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/cached-url.hh:28, from job/cached-url.cc:26: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from job/cached-url.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from job/cached-url.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/cached-url.hh:28, from job/cached-url.cc:26: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from job/cached-url.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from job/cached-url.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/cached-url.hh:28, from job/cached-url.cc:26: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from job/cached-url.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from job/cached-url.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/cached-url.hh:29, from job/cached-url.cc:26: ./job/datasource.hh:73:40: error: reference to 'byte' is ambiguous 73 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from job/cached-url.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from job/cached-url.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/cached-url.hh:31, from job/cached-url.cc:26: ./util/progress.hh:51:47: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 51 | void tick(const GTimeVal& now, int millisecs); | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from ./job/cached-url.hh:25, from job/cached-url.cc:26: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/cached-url.hh:31, from job/cached-url.cc:26: ./util/progress.hh:64:34: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 64 | int speed(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from ./job/cached-url.hh:25, from job/cached-url.cc:26: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/cached-url.hh:31, from job/cached-url.cc:26: ./util/progress.hh:67:37: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 67 | int timeLeft(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from ./job/cached-url.hh:25, from job/cached-url.cc:26: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/cached-url.hh:31, from job/cached-url.cc:26: ./util/progress.hh:111:33: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 111 | GTimeVal slotStart[SPEED_SLOTS]; // Timestamp of start of slot | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from ./job/cached-url.hh:25, from job/cached-url.cc:26: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ job/cached-url.cc: In static member function 'static gboolean Job::CachedUrl::spoolDataCallback(gpointer)': job/cached-url.cc:118:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 118 | GTimeVal start; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from ./job/cached-url.hh:25, from job/cached-url.cc:26: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ job/cached-url.cc:119:21: warning: 'void g_get_current_time(GTimeVal*)' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations] 119 | g_get_current_time(&start); | ~~~~~~~~~~~~~~~~~~^~~~~~~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:33, from /usr/include/glib-2.0/glib.h:54, from ./job/cached-url.hh:25, from job/cached-url.cc:26: /usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here 681 | void g_get_current_time (GTimeVal *result); | ^~~~~~~~~~~~~~~~~~ job/cached-url.cc:122:20: error: template argument 1 is invalid 122 | ArrayAutoPtr bufDel(new byte[BUFSIZE]); | ^ job/cached-url.cc:122:33: error: reference to 'byte' is ambiguous 122 | ArrayAutoPtr bufDel(new byte[BUFSIZE]); | ^~~~ In file included from ./config.h:217, from job/cached-url.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from job/cached-url.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ job/cached-url.cc:123:3: error: reference to 'byte' is ambiguous 123 | byte* buf = bufDel.get(); | ^~~~ In file included from ./config.h:217, from job/cached-url.cc:16: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from job/cached-url.cc:16: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ job/cached-url.cc:123:9: error: 'buf' was not declared in this scope 123 | byte* buf = bufDel.get(); | ^~~ job/cached-url.cc:123:22: error: request for member 'get' in 'bufDel', which is of non-class type 'int' 123 | byte* buf = bufDel.get(); | ^~~ job/cached-url.cc:144:48: warning: conversion from 'uint64' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 144 | unsigned toRead = uint64(readSpeed) * left / 1000000; | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ job/cached-url.cc:147:33: warning: conversion from 'std::streamsize' {aka 'long int'} to 'unsigned int' may change value [-Wconversion] 147 | unsigned n = x->file->gcount(); | ~~~~~~~~~~~~~~~^~ job/cached-url.cc:169:14: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 169 | GTimeVal nowTime; | ^~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from ./job/cached-url.hh:25, from job/cached-url.cc:26: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ job/cached-url.cc:170:23: warning: 'void g_get_current_time(GTimeVal*)' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations] 170 | g_get_current_time(&nowTime); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:33, from /usr/include/glib-2.0/glib.h:54, from ./job/cached-url.hh:25, from job/cached-url.cc:26: /usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here 681 | void g_get_current_time (GTimeVal *result); | ^~~~~~~~~~~~~~~~~~ job/cached-url.cc:173:38: warning: conversion from 'glong' {aka 'long int'} to 'unsigned int' may change value [-Wconversion] 172 | unsigned now = (nowTime.tv_sec - start.tv_sec) * 1000000 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | + nowTime.tv_usec - start.tv_usec; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ job/cached-url.cc:181:45: warning: conversion from 'uint64' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 181 | unsigned newSpeed = uint64(n) * 1000000 / timeTaken; | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ make[1]: *** [Makefile:95: job/cached-url.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/gtk-makeimage.cc -o gtk/gtk-makeimage.o In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./gtk/joblist.hh:29, from ./gtk/jobline.hh:23, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: ./net/download.hh:182:36: error: reference to 'byte' is ambiguous 182 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:29, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./job/datasource.hh:73:40: error: reference to 'byte' is ambiguous 73 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./job/single-url.hh:25, from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/progress.hh: At global scope: ./util/progress.hh:51:47: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 51 | void tick(const GTimeVal& now, int millisecs); | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/progress.hh:64:34: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 64 | int speed(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/progress.hh:67:37: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 67 | int timeLeft(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./util/progress.hh:111:33: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 111 | GTimeVal slotStart[SPEED_SLOTS]; // Timestamp of start of slot | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./job/single-url.hh:165:36: error: reference to 'byte' is ambiguous 165 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./job/single-url.hh:177:51: error: reference to 'byte' is ambiguous 177 | inline bool writeToDestStream(uint64 off, const byte* data, unsigned size); | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./job/url-mapping.hh:168:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 168 | auto_ptr > seen; | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from ./job/url-mapping.hh:34, from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./job/makeimagedl.hh:443:38: error: reference to 'byte' is ambiguous 443 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: ./job/makeimagedl.hh: In static member function 'static void Job::MakeImageDl::toggleLeafname(std::string*)': ./job/makeimagedl.hh:474:25: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 474 | int off = s->length() - 23; | ~~~~~~~~~~~~^~~~ ./job/makeimagedl.hh: In member function 'Job::MakeImageDl::Child* Job::MakeImageDl::childFor(PartUrlMapping*, const MD5*)': ./job/makeimagedl.hh:489:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 489 | auto_ptr > lastUrl(new vector); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from ./job/url-mapping.hh:34, from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/gtk-makeimage.cc:16: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from gtk/gtk-makeimage.cc:17: ./gtk/gtk-single-url.hh: At global scope: ./gtk/gtk-single-url.hh:110:38: error: reference to 'byte' is ambiguous 110 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gtk-makeimage.cc:14: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gtk-makeimage.cc:14: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from gtk/gtk-makeimage.cc:17: ./gtk/gtk-single-url.hh:151:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 151 | GTimeVal pauseStart; // timestamp of last download pause, or uninitialized | ^~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from gtk/gtk-makeimage.cc:17: ./gtk/gtk-single-url.hh: In member function 'void GtkSingleUrl::on_pauseButton_clicked()': ./gtk/gtk-single-url.hh:172:21: warning: 'void g_get_current_time(GTimeVal*)' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations] 172 | g_get_current_time(&pauseStart); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:33, from /usr/include/glib-2.0/glib.h:54, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: /usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here 681 | void g_get_current_time (GTimeVal *result); | ^~~~~~~~~~~~~~~~~~ gtk/gtk-makeimage.cc: In constructor 'GtkMakeImage::GtkMakeImage(const string&, const string&)': gtk/gtk-makeimage.cc:30:36: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 30 | unsigned destLen = destDir.length(); | ~~~~~~~~~~~~~~^~ gtk/gtk-makeimage.cc: In member function 'virtual bool GtkMakeImage::run()': gtk/gtk-makeimage.cc:61:44: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 61 | unsigned lastSlash = mid.jigdoUri().rfind('/'); | ~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from ./gtk/joblist.hh:28, from ./gtk/jobline.hh:23, from ./gtk/gtk-makeimage.hh:26, from gtk/gtk-makeimage.cc:16: ./job/job.hh: In instantiation of 'void IOSource::addListener(SomeIO&) [with SomeIO = Job::DataSource::IO]': ./job/makeimagedl.hh:516:22: required from here ./job/job.hh:130:43: warning: the compiler can assume that the address of 'l' will never be NULL [-Waddress] 130 | void addListener(SomeIO& l) { Assert(&l != 0); list.push_front(l); } ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ ./job/job.hh: In instantiation of 'void IOSource::addListener(SomeIO&) [with SomeIO = Job::MakeImageDl::IO]': gtk/gtk-makeimage.cc:28:21: required from here ./job/job.hh:130:43: warning: the compiler can assume that the address of 'l' will never be NULL [-Waddress] 130 | void addListener(SomeIO& l) { Assert(&l != 0); list.push_front(l); } ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ make[1]: *** [Makefile:95: gtk/gtk-makeimage.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/gui.cc -o gtk/gui.o In file included from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gui.cc:24: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gui.cc:24: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gui.cc:24: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gui.cc:24: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./gtk/joblist.hh:29, from ./gtk/jobline.hh:23, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: ./net/download.hh:182:36: error: reference to 'byte' is ambiguous 182 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/single-url.hh:22, from ./gtk/gtk-single-url.hh:28, from gtk/gui.cc:24: ./job/datasource.hh:73:40: error: reference to 'byte' is ambiguous 73 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/single-url.hh:25, from ./gtk/gtk-single-url.hh:28, from gtk/gui.cc:24: ./util/progress.hh:51:47: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 51 | void tick(const GTimeVal& now, int millisecs); | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./gtk/gtk-single-url.hh:28, from gtk/gui.cc:24: ./util/progress.hh:64:34: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 64 | int speed(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./gtk/gtk-single-url.hh:28, from gtk/gui.cc:24: ./util/progress.hh:67:37: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 67 | int timeLeft(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./gtk/gtk-single-url.hh:28, from gtk/gui.cc:24: ./util/progress.hh:111:33: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 111 | GTimeVal slotStart[SPEED_SLOTS]; // Timestamp of start of slot | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./gtk/gtk-single-url.hh:28, from gtk/gui.cc:24: ./job/single-url.hh:165:36: error: reference to 'byte' is ambiguous 165 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./gtk/gtk-single-url.hh:28, from gtk/gui.cc:24: ./job/single-url.hh:177:51: error: reference to 'byte' is ambiguous 177 | inline bool writeToDestStream(uint64 off, const byte* data, unsigned size); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from gtk/gui.cc:24: ./gtk/gtk-single-url.hh:110:38: error: reference to 'byte' is ambiguous 110 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from gtk/gui.cc:24: ./gtk/gtk-single-url.hh:151:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 151 | GTimeVal pauseStart; // timestamp of last download pause, or uninitialized | ^~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from gtk/gui.cc:24: ./gtk/gtk-single-url.hh: In member function 'void GtkSingleUrl::on_pauseButton_clicked()': ./gtk/gtk-single-url.hh:172:21: warning: 'void g_get_current_time(GTimeVal*)' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations] 172 | g_get_current_time(&pauseStart); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:33, from /usr/include/glib-2.0/glib.h:54, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-single-url.hh:26, from gtk/gui.cc:24: /usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here 681 | void g_get_current_time (GTimeVal *result); | ^~~~~~~~~~~~~~~~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh: At global scope: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./job/url-mapping.hh: At global scope: ./job/url-mapping.hh:168:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 168 | auto_ptr > seen; | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from ./job/url-mapping.hh:34, from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./job/makeimagedl.hh:443:38: error: reference to 'byte' is ambiguous 443 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/gui.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/gui.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: ./job/makeimagedl.hh: In static member function 'static void Job::MakeImageDl::toggleLeafname(std::string*)': ./job/makeimagedl.hh:474:25: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 474 | int off = s->length() - 23; | ~~~~~~~~~~~~^~~~ ./job/makeimagedl.hh: In member function 'Job::MakeImageDl::Child* Job::MakeImageDl::childFor(PartUrlMapping*, const MD5*)': ./job/makeimagedl.hh:489:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 489 | auto_ptr > lastUrl(new vector); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from ./job/url-mapping.hh:34, from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/gui.cc:25: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ gtk/gui.cc: In function 'void {anonymous}::setLicenseText(GtkTextBuffer*)': gtk/gui.cc:244:62: warning: conversion from 'std::streamsize' {aka 'long int'} to 'gint' {aka 'int'} may change value [-Wconversion] 244 | gtk_text_buffer_insert(textBuf, &iter, buf, file.gcount()); | ~~~~~~~~~~~^~ In file included from ./util/bstream.hh:34, from ./util/bstream-counted.hh:24, from ./gtk/gtk-single-url.hh:25, from gtk/gui.cc:24: ./job/job.hh: In instantiation of 'void IOSource::addListener(SomeIO&) [with SomeIO = Job::DataSource::IO]': ./job/makeimagedl.hh:516:22: required from here ./job/job.hh:130:43: warning: the compiler can assume that the address of 'l' will never be NULL [-Waddress] 130 | void addListener(SomeIO& l) { Assert(&l != 0); list.push_front(l); } ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ make[1]: *** [Makefile:95: gtk/gui.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' x86_64-alt-linux-g++ $cxx -c gtk/jobline.cc -o gtk/jobline.o In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./gtk/joblist.hh:29, from ./gtk/jobline.hh:23, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: ./net/download.hh:182:36: error: reference to 'byte' is ambiguous 182 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:29, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./job/datasource.hh:73:40: error: reference to 'byte' is ambiguous 73 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/bstream.hh:182:41: error: reference to 'byte' is ambiguous 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/bstream.hh:182:41: error: 'byte' has not been declared 182 | inline bistream& readBytes(bistream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:186:43: error: reference to 'byte' is ambiguous 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/bstream.hh:186:43: error: 'byte' has not been declared 186 | inline biostream& readBytes(biostream& s, byte* buf, streamsize count) { | ^~~~ ./util/bstream.hh:191:48: error: reference to 'byte' is ambiguous 191 | inline bostream& writeBytes(bostream& s, const byte* buf, streamsize count) { | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:37, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/bstream.hh:195:50: error: reference to 'byte' is ambiguous 195 | inline biostream& writeBytes(biostream& s, const byte* buf, | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:54:3: error: reference to 'byte' is ambiguous 54 | byte sum[16]; | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:57:12: error: reference to 'byte' is ambiguous 57 | operator byte*() { return sum; } | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:58:18: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] 58 | operator const byte*() const { return sum; } | ^~~~ ./util/md5sum.hh:58:3: error: 'operator const int' does not name a type 58 | operator const byte*() const { return sum; } | ^~~~~~~~ ./util/md5sum.hh:76:16: error: reference to 'byte' is ambiguous 76 | static const byte zero[16]; | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:116:31: error: reference to 'byte' is ambiguous 116 | inline MD5Sum& update(const byte* mem, size_t len); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:118:25: error: reference to 'byte' is ambiguous 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:118:25: error: 'byte' has not been declared 118 | inline MD5Sum& update(byte x) { update(&x, 1); return *this; } | ^~~~ ./util/md5sum.hh:133:16: error: reference to 'byte' is ambiguous 133 | inline const byte* digest() const; | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:170:10: error: reference to 'byte' is ambiguous 170 | static byte* md5_finish_ctx(struct md5_ctx* ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:171:10: error: reference to 'byte' is ambiguous 171 | static byte* md5_read_ctx(const md5_ctx *ctx, byte* resbuf); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:236:30: error: reference to 'byte' is ambiguous 236 | MD5Sum& MD5Sum::update(const byte* mem, size_t len) { | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finish()': ./util/md5sum.hh:247:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 247 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: In member function 'MD5Sum& MD5Sum::finishForReuse()': ./util/md5sum.hh:258:3: error: 'md5_finish_ctx' was not declared in this scope; did you mean 'md5_init_ctx'? 258 | md5_finish_ctx(p, sum); | ^~~~~~~~~~~~~~ | md5_init_ctx ./util/md5sum.hh: At global scope: ./util/md5sum.hh:274:7: error: reference to 'byte' is ambiguous 274 | const byte* MD5Sum::digest() const { | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh: In member function 'bool MD5::operator<(const MD5&) const': ./util/md5sum.hh:306:7: error: 'sum' was not declared in this scope 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:306:18: error: 'const class MD5' has no member named 'sum' 306 | if (sum[0] < x.sum[0]) return true; | ^~~ ./util/md5sum.hh:307:7: error: 'sum' was not declared in this scope 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh:307:18: error: 'const class MD5' has no member named 'sum' 307 | if (sum[0] > x.sum[0]) return false; | ^~~ ./util/md5sum.hh: In function 'bool operator==(const MD5&, const MD5&)': ./util/md5sum.hh:319:19: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:26: error: 'const class MD5' has no member named 'sum' 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~ ./util/md5sum.hh:319:43: error: reference to 'byte' is ambiguous 319 | return memcmp(a.sum, b.sum, 16 * sizeof(byte)) == 0; | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh: In member function 'MD5& MD5::clear()': ./util/md5sum.hh:333:3: error: reference to 'byte' is ambiguous 333 | byte* x = sum; | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.hh:333:9: error: 'x' was not declared in this scope 333 | byte* x = sum; | ^ ./util/md5sum.hh:333:13: error: 'sum' was not declared in this scope 333 | byte* x = sum; | ^~~ ./util/md5sum.hh: In member function 'Iterator MD5::serialize(Iterator) const': ./util/md5sum.hh:343:39: error: 'sum' was not declared in this scope 343 | for (int j = 0; j < 16; ++j) { *i = sum[j]; ++i; } | ^~~ ./util/md5sum.hh: In member function 'ConstIterator MD5::unserialize(ConstIterator)': ./util/md5sum.hh:348:34: error: 'sum' was not declared in this scope 348 | for (int j = 0; j < 16; ++j) { sum[j] = *i; ++i; } | ^~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::operator<<(const unsigned char*)': ./util/mimestream.hh:230:28: error: reference to 'byte' is ambiguous 230 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/mimestream.hh: In member function 'Base64Out& Base64Out::write(const unsigned char*, unsigned int)': ./util/mimestream.hh:239:28: error: reference to 'byte' is ambiguous 239 | (*this) << static_cast(*x++); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/mimestream.hh: At global scope: ./util/mimestream.hh:271:16: error: reference to 'byte' is ambiguous 271 | static const byte table[]; | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/mimestream.hh:282:12: error: reference to 'byte' is ambiguous 282 | void put(byte b) { val.push_back(b); } | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/mimestream.hh:282:12: error: 'byte' has not been declared 282 | void put(byte b) { val.push_back(b); } | ^~~~ ./util/mimestream.hh:283:22: error: template argument 1 is invalid 283 | typedef vector& ResultType; | ^ ./util/mimestream.hh:283:22: error: template argument 2 is invalid ./util/mimestream.hh:284:14: error: template argument 1 is invalid 284 | vector& result() { return val; } | ^ ./util/mimestream.hh:284:14: error: template argument 2 is invalid ./util/mimestream.hh:286:14: error: template argument 1 is invalid 286 | vector val; | ^ ./util/mimestream.hh:286:14: error: template argument 2 is invalid ./util/mimestream.hh: In member function 'void Base64StringIn::put(int)': ./util/mimestream.hh:282:26: error: request for member 'push_back' in '((Base64StringIn*)this)->Base64StringIn::val', which is of non-class type 'int' 282 | void put(byte b) { val.push_back(b); } | ^~~~~~~~~ ./util/mimestream.hh: At global scope: ./util/mimestream.hh:297:7: error: reference to 'byte' is ambiguous 297 | const byte Base64In::table[] = { | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/mimestream.hh: In member function 'Base64In& Base64In::put(const char*, unsigned int)': ./util/mimestream.hh:334:33: error: reference to 'byte' is ambiguous 334 | unsigned code = static_cast(*x); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.ih:17, from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/mimestream.hh:336:12: error: 'table' was not declared in this scope; did you mean 'mutable'? 336 | code = table[code - 32]; | ^~~~~ | mutable ./util/mimestream.hh:342:27: error: reference to 'byte' is ambiguous 342 | out.put(static_cast((data >> bits) & 255U)); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5&)': ./util/md5sum.ih:22:13: error: 'const class MD5' has no member named 'sum' 22 | m.write(r.sum, 16).flush(); | ^~~ ./util/md5sum.ih: In member function 'std::string MD5Sum::toString() const': ./util/md5sum.ih:28:9: error: reference to 'byte' is ambiguous 28 | const byte* d = digest(); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.ih:29:7: error: 'd' was not declared in this scope 29 | if (d == 0) { | ^ ./util/md5sum.ih: In function 'std::ostream& operator<<(std::ostream&, const MD5Sum&)': ./util/md5sum.ih:39:9: error: reference to 'byte' is ambiguous 39 | const byte* d = r.digest(); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./util/md5sum.hh:353, from ./job/makeimagedl.hh:35, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/md5sum.ih:40:7: error: 'd' was not declared in this scope 40 | if (d == 0) { | ^ ./util/md5sum.ih:38:47: warning: unused parameter 'r' [-Wunused-parameter] 38 | ostream& operator<<(ostream& s, const MD5Sum& r) { | ~~~~~~~~~~~~~~^ In file included from ./job/single-url.hh:25, from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/progress.hh: At global scope: ./util/progress.hh:51:47: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 51 | void tick(const GTimeVal& now, int millisecs); | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/progress.hh:64:34: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 64 | int speed(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/progress.hh:67:37: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 67 | int timeLeft(const GTimeVal& now) const; | ^~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/single-url.hh:25, from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./util/progress.hh:111:33: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 111 | GTimeVal slotStart[SPEED_SLOTS]; // Timestamp of start of slot | ^ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./job/single-url.hh:165:36: error: reference to 'byte' is ambiguous 165 | virtual void download_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:37, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./job/single-url.hh:177:51: error: reference to 'byte' is ambiguous 177 | inline bool writeToDestStream(uint64 off, const byte* data, unsigned size); | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./job/url-mapping.hh:168:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 168 | auto_ptr > seen; | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from ./job/url-mapping.hh:34, from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./job/makeimagedl.hh:443:38: error: reference to 'byte' is ambiguous 443 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: ./job/makeimagedl.hh: In static member function 'static void Job::MakeImageDl::toggleLeafname(std::string*)': ./job/makeimagedl.hh:474:25: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 474 | int off = s->length() - 23; | ~~~~~~~~~~~~^~~~ ./job/makeimagedl.hh: In member function 'Job::MakeImageDl::Child* Job::MakeImageDl::childFor(PartUrlMapping*, const MD5*)': ./job/makeimagedl.hh:489:3: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 489 | auto_ptr > lastUrl(new vector); | ^~~~~~~~ In file included from /usr/include/c++/11/memory:76, from ./job/url-mapping.hh:34, from ./job/makeimagedl.hh:39, from ./gtk/gtk-makeimage.hh:27, from gtk/jobline.cc:19: /usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from gtk/jobline.cc:20: ./gtk/gtk-single-url.hh: At global scope: ./gtk/gtk-single-url.hh:110:38: error: reference to 'byte' is ambiguous 110 | virtual void dataSource_data(const byte* data, unsigned size, | ^~~~ In file included from ./config.h:217, from gtk/jobline.cc:18: /usr/include/c++/11/cstddef:69:14: note: candidates are: 'enum class std::byte' 69 | enum class byte : unsigned char {}; | ^~~~ In file included from gtk/jobline.cc:18: ./config.h:253:23: note: 'typedef unsigned char byte' 253 | typedef unsigned char byte; | ^~~~ In file included from gtk/jobline.cc:20: ./gtk/gtk-single-url.hh:151:12: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 151 | GTimeVal pauseStart; // timestamp of last download pause, or uninitialized | ^~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here 545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ In file included from gtk/jobline.cc:20: ./gtk/gtk-single-url.hh: In member function 'void GtkSingleUrl::on_pauseButton_clicked()': ./gtk/gtk-single-url.hh:172:21: warning: 'void g_get_current_time(GTimeVal*)' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations] 172 | g_get_current_time(&pauseStart); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:33, from /usr/include/glib-2.0/glib.h:54, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from ./gtk/jobline.hh:20, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: /usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here 681 | void g_get_current_time (GTimeVal *result); | ^~~~~~~~~~~~~~~~~~ gtk/jobline.cc: In function 'bool {anonymous}::compareEnd(const string&, const char*)': gtk/jobline.cc:34:42: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 34 | static const unsigned extLen = strlen(ext); | ~~~~~~^~~~~ gtk/jobline.cc:36:31: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 36 | unsigned pos = uri.size() - extLen; | ~~~~~~~~~~~^~~~~~~~ gtk/jobline.cc: In static member function 'static void JobLine::create(const char*, const char*)': gtk/jobline.cc:59:40: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 59 | unsigned destLen = destination.length(); | ~~~~~~~~~~~~~~~~~~^~ gtk/jobline.cc:78:42: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 78 | unsigned lastDirSep = destination.rfind(DIRSEP); | ~~~~~~~~~~~~~~~~~^~~~~~~~ gtk/jobline.cc:99:41: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 99 | unsigned lastDirSep = uriStr.rfind('/'); | ~~~~~~~~~~~~^~~~~ In file included from ./gtk/joblist.hh:28, from ./gtk/jobline.hh:23, from ./gtk/gtk-makeimage.hh:26, from gtk/jobline.cc:19: ./job/job.hh: In instantiation of 'void IOSource::addListener(SomeIO&) [with SomeIO = Job::DataSource::IO]': ./job/makeimagedl.hh:516:22: required from here ./job/job.hh:130:43: warning: the compiler can assume that the address of 'l' will never be NULL [-Waddress] 130 | void addListener(SomeIO& l) { Assert(&l != 0); list.push_front(l); } ./util/debug.hh:91:14: note: in definition of macro 'Assert' 91 | ((void) ((_expr) ? 0 : \ | ^~~~~ make[1]: *** [Makefile:95: gtk/jobline.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/jigdo-0.7.3/src' make: *** [Makefile:35: all] Error 2 error: Bad exit status from /usr/src/tmp/rpm-tmp.23961 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.23961 (%build) Command exited with non-zero status 1 24.32user 3.95system 0:04.86elapsed 580%CPU (0avgtext+0avgdata 159756maxresident)k 0inputs+0outputs (0major+1361870minor)pagefaults 0swaps hsh-rebuild: rebuild of `jigdo-0.7.3-alt6.src.rpm' failed. Command exited with non-zero status 1 32.55user 6.96system 0:16.46elapsed 240%CPU (0avgtext+0avgdata 159756maxresident)k 0inputs+0outputs (30636major+1666807minor)pagefaults 0swaps