#1147482 auto-multiple-choice: FTBFS with OpenCV 5.0

#1147482#5
Date:
2026-09-12 09:04:41 UTC
From:
To:
Dear maintainer,

Your package fails to build from source against opencv 5.0.0+dfsg-1~exp1,
currently in experimental.

OpenCV 5.0 renames its entire install tree from opencv4 to opencv5 and ships
no compatibility shims:

  * pkg-config: only /usr/lib/<triplet>/pkgconfig/opencv5.pc.  There is no
                opencv4.pc and no opencv.pc.
  * headers:    /usr/include/opencv5/opencv2/..., no /usr/include/opencv4.
  * cmake:      /usr/lib/<triplet>/cmake/opencv5/OpenCVConfig.cmake.  A bare
                find_package(OpenCV) still resolves, but a pinned version
                such as find_package(OpenCV 4.7) no longer matches.
  * modules:    libopencv-calib3d-dev is split into libopencv-calib-dev,
                libopencv-geometry-dev, libopencv-stereo-dev and
                libopencv-ptcloud-dev; libopencv-features2d-dev becomes
                libopencv-features-dev.  The CMake component names change
                with them (features2d -> features).
  * geometry:   the new geometry module is not only a piece of calib3d.  It
                also absorbs shape and contour functions that used to live
                in imgproc -- contourArea, arcLength, approxPolyDP,
                boundingRect, minAreaRect, convexHull and
                getPerspectiveTransform among them -- and opencv2/opencv.hpp
                does not pull in opencv2/geometry.hpp, so code that reached
                those through the umbrella header now needs an explicit
                include of opencv2/geometry.hpp.

In auto-multiple-choice's case the build hardcodes the OpenCV 4 include
directory. The command that builds AMC-detect ends with
"-I /usr/include/opencv4 -lopencv_core -lopencv_imgproc
-lopencv_imgcodecs", and that directory does not exist under OpenCV 5,
whose headers live in /usr/include/opencv5. With no usable include path
AMC-detect.cc:40 and AMC-buildpdf.cc fail at "fatal error:
opencv2/core/core.hpp: No such file or directory", aborting the Makefile
targets AMC-detect (Makefile:134) and AMC-buildpdf (Makefile:137). The
missing header is a symptom of the wrong -I, not of a header that went
away. Replacing the hardcoded path and library list with a pkg-config
query, e.g. $(shell pkg-config --cflags --libs opencv5), would make the
build follow the install tree instead of pinning a version-specific path.

The same source builds fine in the same chroot against the OpenCV 4.10
packages currently in unstable, so this is specific to OpenCV 5.

The relevant part of the build log follows; the full log is attached.

  gcc -o AMC-detect AMC-detect.cc -Wdate-time -D_FORTIFY_SOURCE=2 -g
-O2 -ffile-prefix-map=/build/reproducible-path/auto-multiple-choice-1.7.0=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wl,-z,relro -Wl,-z,now
-lstdc++ -lm -I /usr/include/open [...]
  gcc -o AMC-buildpdf AMC-buildpdf.cc -Wdate-time -D_FORTIFY_SOURCE=2
-g -O2 -ffile-prefix-map=/build/reproducible-path/auto-multiple-choice-1.7.0=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wl,-z,relro -Wl,-z,now
-lstdc++ -lm -I/usr/include/p [...]
  gcc -o AMC-pdfformfields pdfformfields.c -Wdate-time
-D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/auto-multiple-choice-1.7.0=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wl,-z,relr [...]
  rsvg-convert -w 32 -h 32 icons/auto-multiple-choice.svg -o
icons/auto-multiple-choice.png
  gzip -n -k -S z icons/auto-multiple-choice.svg
  make -C doc
  make -C I18N
  rsvg-convert -a -w 16 -h 16 icons/auto-multiple-choice.svg -o
icons/auto-multiple-choice-16.png ;  rsvg-convert -a -w 22 -h 22
icons/auto-multiple-choice.svg -o icons/auto-multiple-choice-22.png ;
rsvg-convert -a -w 24 -h 24 icons/auto-multiple-choice.svg -o
icons/auto-multiple-choice-24.png ;  rsv [...]
  make[3]: Entering directory
'/build/reproducible-path/auto-multiple-choice-1.7.0/doc'
  rsvg-convert -f pdf img_src/important.svg -o img_pdf/important.pdf
  make[3]: Entering directory
'/build/reproducible-path/auto-multiple-choice-1.7.0/I18N'
  msgfmt lang/ar.po -o lang/ar.mo
  rsvg-convert -f pdf img_src/note.svg -o img_pdf/note.pdf
  msgfmt lang/ca.po -o lang/ca.mo
  rsvg-convert -f pdf img_src/warning.svg -o img_pdf/warning.pdf
  msgfmt lang/de.po -o lang/de.mo
  dblatex -P latex.encoding=utf8 -b xetex -t tex -p custom.xsl
--texstyle=amcdocstyle --xslt-opts="--nonet" --xslt-opts="--catalogs"
auto-multiple-choice.en.xml -o auto-multiple-choice.en.tex
  dblatex -P latex.encoding=utf8 -b xetex -t tex -p custom.xsl
--texstyle=amcdocstyle --xslt-opts="--nonet" --xslt-opts="--catalogs"
auto-multiple-choice.fr.xml -o auto-multiple-choice.fr.tex
  dblatex -P latex.encoding=utf8 -b xetex -t tex -p custom.xsl
--texstyle=amcdocstyle --xslt-opts="--nonet" --xslt-opts="--catalogs"
auto-multiple-choice.ja.xml -o auto-multiple-choice.ja.tex
  msgfmt lang/es.po -o lang/es.mo
  /usr/bin/env perl extrait-fichiers.pl --liste
auto-multiple-choice.en.ext auto-multiple-choice.en.xml
  msgfmt lang/fr.po -o lang/fr.mo
  xsltproc --nonet --catalogs --param man.charmap.use.subset "0"
--param make.year.ranges "1" --param make.single.year.ranges "1"
--param man.output.lang.in.name.enabled "1"
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
auto-multiple-choice.en.xml
  rm -f html/auto-multiple-choice.en/*.html
  /usr/bin/env perl extrait-fichiers.pl --liste
auto-multiple-choice.fr.ext auto-multiple-choice.fr.xml
  msgfmt lang/ja.po -o lang/ja.mo
  xsltproc --nonet --catalogs --param man.charmap.use.subset "0"
--param make.year.ranges "1" --param make.single.year.ranges "1"
--param man.output.lang.in.name.enabled "1"
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
auto-multiple-choice.fr.xml
  msgfmt lang/pt_BR.po -o lang/pt_BR.mo
  rm -f html/auto-multiple-choice.fr/*.html
  Variable $SGML_CATALOG_FILES not set
  pngtopnm icons/auto-multiple-choice.png | ppmtoxpm >
icons/auto-multiple-choice.xpm
  msgfmt lang/pt_PT.po -o lang/pt_PT.mo
  Variable $SGML_CATALOG_FILES not set
  msgfmt lang/ta.po -o lang/ta.mo
  ppmtoxpm: (Computing colormap...
  ppmtoxpm: ...Done.  32 colors found.)
  xsltproc --nonet --catalogs --stringparam base.dir
html/auto-multiple-choice.en/ doc-xhtml.xsl
auto-multiple-choice.en.xml
  /usr/bin/env perl extrait-fichiers.pl --liste
auto-multiple-choice.ja.ext auto-multiple-choice.ja.xml
  xsltproc --nonet --catalogs --param man.charmap.use.subset "0"
--param make.year.ranges "1" --param make.single.year.ranges "1"
--param man.output.lang.in.name.enabled "1"
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
auto-multiple-choice.ja.xml
  rm -f html/auto-multiple-choice.ja/*.html
  rsvg-convert -w 24 -h 24 img_src/important.svg -o html/images/important.png
  Variable $SGML_CATALOG_FILES not set
  rsvg-convert -w 24 -h 24 img_src/note.svg -o html/images/note.png
  rsvg-convert -w 24 -h 24 img_src/warning.svg -o html/images/warning.png
  xsltproc --nonet --catalogs --stringparam base.dir
html/auto-multiple-choice.fr/ doc-xhtml.xsl
auto-multiple-choice.fr.xml
  rsvg-convert -w 12 -h 12 img_src/callouts/1.svg -o html/images/callouts/1.png
  Variable $SGML_CATALOG_FILES not set
  rsvg-convert -w 12 -h 12 img_src/callouts/10.svg -o
html/images/callouts/10.png
  xsltproc --nonet --catalogs --stringparam base.dir
html/auto-multiple-choice.ja/ doc-xhtml.xsl
auto-multiple-choice.ja.xml
  rsvg-convert -w 12 -h 12 img_src/callouts/11.svg -o
html/images/callouts/11.png
  Variable $SGML_CATALOG_FILES not set
  rsvg-convert -w 12 -h 12 img_src/callouts/12.svg -o
html/images/callouts/12.png
  rsvg-convert -w 12 -h 12 img_src/callouts/13.svg -o
html/images/callouts/13.png
  Variable $SGML_CATALOG_FILES not set
  rsvg-convert -w 12 -h 12 img_src/callouts/14.svg -o
html/images/callouts/14.png
  rsvg-convert -w 12 -h 12 img_src/callouts/15.svg -o
html/images/callouts/15.png
  rsvg-convert -w 12 -h 12 img_src/callouts/2.svg -o html/images/callouts/2.png
  rsvg-convert -w 12 -h 12 img_src/callouts/3.svg -o html/images/callouts/3.png
  rsvg-convert -w 12 -h 12 img_src/callouts/4.svg -o html/images/callouts/4.png
  rsvg-convert -w 12 -h 12 img_src/callouts/5.svg -o html/images/callouts/5.png
  rsvg-convert -w 12 -h 12 img_src/callouts/6.svg -o html/images/callouts/6.png
  rsvg-convert -w 12 -h 12 img_src/callouts/7.svg -o html/images/callouts/7.png
  rsvg-convert -w 12 -h 12 img_src/callouts/8.svg -o html/images/callouts/8.png
  rsvg-convert -w 12 -h 12 img_src/callouts/9.svg -o html/images/callouts/9.png
  find modeles/ar/groups.d -type d -exec chmod 0755 '{}' \;
  find modeles/ar/scoring.d -type d -exec chmod 0755 '{}' \;
  AMC-detect.cc:40:10: fatal error: opencv2/core/core.hpp: No such
file or directory
     40 | #include "opencv2/core/core.hpp"
        |          ^~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  find modeles/ar/groups.d -type f -exec chmod 0644 '{}' \;
  make[2]: *** [Makefile:134: AMC-detect] Error 1
  make[2]: *** Waiting for unfinished jobs....
  find modeles/ar/scoring.d -type f -exec chmod 0644 '{}' \;
  tar cn -C modeles/ar/groups.d --sort=name --owner=root --group=root
--numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/ar/groups.tgz
  find modeles/ar/separate.d -type d -exec chmod 0755 '{}' \;
  find modeles/ar/simple.d -type d -exec chmod 0755 '{}' \;
  find modeles/en/Nominative-sheets-separateanswersheet.d -type d
-exec chmod 0755 '{}' \;
  find modeles/en/Nominative-sheets.d -type d -exec chmod 0755 '{}' \;
  find modeles/en/topics-latex.d -type d -exec chmod 0755 '{}' \;
  find modeles/fr/Pre-remplies-ensemble.d -type d -exec chmod 0755 '{}' \;
  find modeles/fr/Pre-remplies.d -type d -exec chmod 0755 '{}' \;
  find modeles/ar/separate.d -type f -exec chmod 0644 '{}' \;
  find modeles/ar/simple.d -type f -exec chmod 0644 '{}' \;
  find modeles/en/Nominative-sheets-separateanswersheet.d -type f
-exec chmod 0644 '{}' \;
  find modeles/en/Nominative-sheets.d -type f -exec chmod 0644 '{}' \;
  tar cn -C modeles/ar/scoring.d --sort=name --owner=root --group=root
--numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/ar/scoring.tgz
  find modeles/en/topics-latex.d -type f -exec chmod 0644 '{}' \;
  find modeles/fr/topics-latex.d -type d -exec chmod 0755 '{}' \;
  find modeles/fr/Pre-remplies-ensemble.d -type f -exec chmod 0644 '{}' \;
  find modeles/fr/Pre-remplies.d -type f -exec chmod 0644 '{}' \;
  find modeles/fr/topics-latex.d -type f -exec chmod 0644 '{}' \;
  make[3]: Leaving directory
'/build/reproducible-path/auto-multiple-choice-1.7.0/I18N'
  find modeles/other/survey.d -type d -exec chmod 0755 '{}' \;
  /usr/bin/env perl ./index.pl auto-multiple-choice.en
auto-multiple-choice.fr auto-multiple-choice.ja > html/index.html
  tar cn -C modeles/ar/separate.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/ar/separate.tgz
  tar cn -C modeles/ar/simple.d --sort=name --owner=root --group=root
--numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/ar/simple.tgz
  find modeles/other/survey.d -type f -exec chmod 0644 '{}' \;
  tar cn -C modeles/en/Nominative-sheets-separateanswersheet.d
--sort=name --owner=root --group=root --numeric-owner
--mtime=@1451602800 -O . | gzip -n -c >
modeles/en/Nominative-sheets-separateanswersheet.tgz
  tar cn -C modeles/en/Nominative-sheets.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/en/Nominative-sheets.tgz
  tar cn -C modeles/en/topics-latex.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/en/topics-latex.tgz
  tar cn -C modeles/fr/Pre-remplies-ensemble.d --sort=name
--owner=root --group=root --numeric-owner --mtime=@1451602800 -O . |
gzip -n -c > modeles/fr/Pre-remplies-ensemble.tgz
  tar cn -C modeles/fr/Pre-remplies.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/fr/Pre-remplies.tgz
  tar cn -C modeles/fr/topics-latex.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/fr/topics-latex.tgz
  tar cn -C modeles/other/survey.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/other/survey.tgz
  Warn: AUTHOR sect.: no personblurb|contrib for Alexis Bienvenüe
  Note: AUTHOR sect.: see http://www.docbook.org/tdg5/en/html/contr
  Note: AUTHOR sect.: see http://www.docbook.org/tdg5/en/html/perso
  Warn: AUTHOR sect.: no personblurb|contrib for Frédéric Bréal
  Note: AUTHOR sect.: see http://www.docbook.org/tdg5/en/html/contr
  Note: AUTHOR sect.: see http://www.docbook.org/tdg5/en/html/perso
  Build the book set list...
  Variable $SGML_CATALOG_FILES not set
  Build the book set list...
  Variable $SGML_CATALOG_FILES not set
  *** File auto-multiple-choice.en.xml
    I lang=en
    * extracting modeles/en/simple-txt
      embedded description / N=AMC-TXT format simple example
    * extracting modeles/en/simple-txt-nominative-sheets
    * extracting modeles/en/simple
      embedded description / N=Simple example
    * extracting modeles/en/groups
      embedded description / N=Groups
    * extracting modeles/en/separate
      embedded description / N=Separate answers
    * extracting modeles/en/scoring
      embedded description / N=Scoring strategy
  Build the book set list...
  Variable $SGML_CATALOG_FILES not set
  In file included from AMC-buildpdf.cc:23:
  buildpdf.cc:42:10: fatal error: opencv2/core/core.hpp: No such file
or directory
     42 | #include "opencv2/core/core.hpp"
        |          ^~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  make[2]: *** [Makefile:137: AMC-buildpdf] Error 1

Please close this bug if it turns out to be a collision with another ongoing
transition rather than an OpenCV 5 problem.

Thanks,
Aron

#1147482#12
Date:
2026-09-12 21:08:35 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
auto-multiple-choice, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1147482@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexis Bienvenüe <pado@passoire.fr> (supplier of updated auto-multiple-choice package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 12 Sep 2026 16:07:21 +0200
Source: auto-multiple-choice
Architecture: source
Version: 1.7.0-5
Distribution: unstable
Urgency: medium
Maintainer: Alexis Bienvenüe <pado@passoire.fr>
Changed-By: Alexis Bienvenüe <pado@passoire.fr>
Closes: 1147482
Changes:
 auto-multiple-choice (1.7.0-5) unstable; urgency=medium
 .
   * Adapt to OpenCV5. Closes: #1147482.
   * Update upstream gitlab group name.
Checksums-Sha1:
 617a1ac0ddb4711e835a93beff5e11a731303f33 3503 auto-multiple-choice_1.7.0-5.dsc
 ee5d3e616c37103a00d4f10ba752f2bafe21339a 15236 auto-multiple-choice_1.7.0-5.debian.tar.xz
 4520db52145f7e1d2ba990cf4580b4494596683d 12433976 auto-multiple-choice_1.7.0-5.git.tar.xz
 7bbcb69bd59c14d1c84bb42aec43b5ca870469de 17720 auto-multiple-choice_1.7.0-5_source.buildinfo
Checksums-Sha256:
 6b919a46937895657f12b4a56b279579bf544380cb3756423e022bae7937cf1c 3503 auto-multiple-choice_1.7.0-5.dsc
 1209e97de7eba4b1e72041ac5e5df61401c77f89ab34065fccf21d11ed08516a 15236 auto-multiple-choice_1.7.0-5.debian.tar.xz
 9caa4f8d5001794fe232efce5d98c197c5dd771f300339e5c68b61ccbff9121a 12433976 auto-multiple-choice_1.7.0-5.git.tar.xz
 d74d0a92abec6506f6962dd34dcd6d6a051b8528efb850d64bba449944b2e64c 17720 auto-multiple-choice_1.7.0-5_source.buildinfo
Files:
 60ee503b4d57ba9833842db284d1ef5b 3503 education optional auto-multiple-choice_1.7.0-5.dsc
 9fca0527a415b76b5094407f326c1193 15236 education optional auto-multiple-choice_1.7.0-5.debian.tar.xz
 72d237ac91237db66e0f0e651f941316 12433976 education None auto-multiple-choice_1.7.0-5.git.tar.xz
 2207be97aca9a69d76dae61da4e2ea37 17720 education optional auto-multiple-choice_1.7.0-5_source.buildinfo
Git-Tag-Info: tag=853aca98379ea4f48c9b3a2715a533d1ddd8e1d2 fp=aa222b227899319eca3c1a364ad58e3068e669e2
Git-Tag-Tagger: Alexis Bienvenüe <pado@passoire.fr>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmqlul8ACgkQYG0ITkaD
wHkGQw//XD1BX3oEUiPuLXeK8CvtIidOtDygLhvt1ZpZNCeKy33+yOpi+xV3zQdD
CzUu23VgW+gdUiPiTVza5S8lzyIplO/6F2+z5XVx1pBcXLvq7zx1He8mQIQBP7tS
pMqK6ee+26RnhMUdxX5zYOVzaf9cMnAayPmkwZ0UsPrvEBjqtsmeaexpBA3ht6Ne
jhPwwizABIriIi7FANnnaKvZepknedV5wVFBNQMeQoV1r7r8WVsVlILluF00v4hv
OXxtsCgbOtgfBR7SNlhXFqCZ6/fvbyFrwa3sf6DiqMoDZGr+Xg9ETBVjWfGAuumF
ox2nbsUVCKMV5n5PzngDh67TiGgAaSiETBY2hdNNkcqvYyh+k9FfWhLVS+u/zf59
VR/OluEFLFIT57TgCNxvPgwwS9LtFl2UB1hToJdm+zzIpX9d5Y/TFsId0uFUMBfN
ApZi9yxEmGlXhi8ri4HyjkwQDOx0ixpYm2BULjIVby1fC3uHm9kvCWbgYTjAv5f6
GDad6LgzzeX6cw+6K6L0TcM7E/FY2Eb/Ot2ZD1GqGCIwv0m4AidTVvSjFDwwoPYI
a/qg5kqQxHmo4f1qlWM6X+aPtcskNdD2JS8dEHJObtyeuuOPFh2bDxHEs8FySthI
+46bJR/Pg+lV3luLve/u1ZbXRDxEHpDNhgjQTwBrGfrLpbYscms=
=huvS
-----END PGP SIGNATURE-----