[Aptitude-devel] Bug#1011681: aptitude: FTBFS: ../../../../src/generic/apt/dpkg.cc:100:31: error: ‘chroot’ was not declared in this scope; did you mean ‘chrootDir’?

Lucas Nussbaum lucas at debian.org
Thu May 26 07:37:43 BST 2022


Source: aptitude
Version: 0.8.13-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I../../../../src/generic/apt -I../../..  -I../../.. -I../../../../src/generic/apt -I../../../.. -I../../../../src -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DHELPDIR=\"/usr/share/aptitude\" -DPKGDATADIR=\"/usr/share/aptitude\"  -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/cwidget -I/usr/lib/x86_64-linux-gnu/cwidget -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include    -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -D_REENTRANT -std=gnu++17 -Wall  -c -o dpkg.o ../../../../src/generic/apt/dpkg.cc
> ../../../../src/generic/apt/dpkg.cc: In function ‘bool aptitude::apt::dpkg_multi_arch(bool)’:
> ../../../../src/generic/apt/dpkg.cc:100:31: error: ‘chroot’ was not declared in this scope; did you mean ‘chrootDir’?
>   100 |       if (chrootDir != "/" && chroot(chrootDir.c_str()) != 0)
>       |                               ^~~~~~
>       |                               chrootDir
> ../../../../src/generic/apt/dpkg.cc:107:20: error: ‘STDIN_FILENO’ was not declared in this scope
>   107 |       dup2(nullfd, STDIN_FILENO);
>       |                    ^~~~~~~~~~~~
> ../../../../src/generic/apt/dpkg.cc:107:7: error: ‘dup2’ was not declared in this scope
>   107 |       dup2(nullfd, STDIN_FILENO);
>       |       ^~~~
> ../../../../src/generic/apt/dpkg.cc:108:20: error: ‘STDOUT_FILENO’ was not declared in this scope
>   108 |       dup2(nullfd, STDOUT_FILENO);
>       |                    ^~~~~~~~~~~~~
> ../../../../src/generic/apt/dpkg.cc:109:20: error: ‘STDERR_FILENO’ was not declared in this scope
>   109 |       dup2(nullfd, STDERR_FILENO);
>       |                    ^~~~~~~~~~~~~
> ../../../../src/generic/apt/dpkg.cc:110:7: error: ‘execvp’ was not declared in this scope
>   110 |       execvp(Args[0], (char**) &Args[0]);
>       |       ^~~~~~
> ../../../../src/generic/apt/dpkg.cc:112:7: error: ‘_exit’ was not declared in this scope; did you mean ‘_Exit’?
>   112 |       _exit(2);
>       |       ^~~~~
>       |       _Exit
> make[6]: *** [Makefile:583: dpkg.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/05/25/aptitude_0.8.13-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Aptitude-devel mailing list