#1129081 fpc: makes several packages to FTBFS (cannot find -lX11: No such file or directory)

#1129081#5
Date:
2026-02-26 17:20:49 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, the following 8 packages failed to build:

astap
cevomapgen
cqrlog
ddrescueview
lazpaint
morserunner
vmg
winff

with an error like this:

/<<PKGBUILDDIR>>/astap_main.pas(523,76) Hint: (5024) Parameter "ScrollPos" not used
(9022) Compiling resource /<<PKGBUILDDIR>>/astap.or
(9015) Linking /<<PKGBUILDDIR>>/astap
/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lX11: No such file or directory
/<<PKGBUILDDIR>>/astap.lpr(20,2) Error: (9013) Error while linking
/<<PKGBUILDDIR>>/astap.lpr(20,2) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Error: (lazarus) Compile Project, Target: /<<PKGBUILDDIR>>/astap: stopped with exit code 1
Info: (lazarus) [TCompiler.Compile] end
Error: (lazbuild) Failed compiling of project "/<<PKGBUILDDIR>>/astap_linux.lpi"
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2

A debbisect on astap shows this output:

bisection finished successfully
   last good timestamp: 20260212T143611Z
   first bad timestamp: 20260213T023117Z
the following packages differ between the last good and first bad timestamp:
   fp-compiler-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-compiler:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-base-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-base:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-fcl-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-fcl:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-gfx-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-gfx:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-gtk2-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-gtk2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-misc-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-misc:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-multimedia-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-multimedia:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-net-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-net:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-rtl-3.2.2:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47
   fp-units-rtl:amd64 3.2.2+dfsg-46 -> 3.2.2+dfsg-47

so I'm reporting this against the common src package for all of the above.

I've put full build logs here for reference:

https://people.debian.org/~sanvila/build-logs/202602/

Please reassign if appropriate.

Thanks.

#1129081#12
Date:
2026-02-26 17:29:07 UTC
From:
To:
Hi.

I forgot: If the individual packages are to blame for this, please close this bug
and I will file individual bugs (please suggest some text for those reports,
maybe "missing build-dependency on XXX"?).

(I suspect after reading #967348 that the above might indeed be the case)

Thanks.

#1129081#21
Date:
2026-02-26 20:21:45 UTC
From:
To:
Hi Santiago.

fpc does not itself need X11. Its a command line compiler.

I think the best solution is to add a dependency on libx11-dev
to the lazarus lcl. Leave this with me.

Cheers,
Peter

P.S.  Lazarus currently stuck in NEW.

#1129081#26
Date:
2026-02-27 01:16:08 UTC
From:
To:
dependency is the best course of action here.

See this other package (src:transgui) which I discovered later,
note that this time the error is not "cannot find -lX11":

(9015) Linking /<<PKGBUILDDIR>>/units/transgui
/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lgdk-x11-2.0: No such file or directory
/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lgtk-x11-2.0: No such file or directory
/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lgdk_pixbuf-2.0: No such file or directory
/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lpango-1.0: No such file or directory
/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -latk-1.0: No such file or directory
/<<PKGBUILDDIR>>/transgui.lpr(56,1) Error: (9013) Error while linking
/<<PKGBUILDDIR>>/transgui.lpr(56,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted

If fpc does not really need X11, it would seem that those are really
bugs in the affected packages, including src:transgui, not in fpc.

I think this would be a good opportunity to fix the packages themselves.

Thanks.

#1129081#33
Date:
2026-02-27 13:04:30 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libqtpas, 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 1129081@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Peter Blackman <peterb@debian.org> (supplier of updated libqtpas 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: Fri, 27 Feb 2026 11:31:23 +0000
Source: libqtpas
Architecture: source
Version: 4.6+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Pascal Packaging Team <pkg-pascal-devel@lists.alioth.debian.org>
Changed-By: Peter Blackman <peterb@debian.org>
Closes: 1129081
Changes:
 libqtpas (4.6+dfsg-1) unstable; urgency=medium
 .
   * New upstream version 4.6+dfsg
   * Update Standards to 4.7.3 (Remove Priority:)
   * Update copyright
   * Remove unused lintian override
   * Add dependency on libx11-dev (Closes: #1129081)
Checksums-Sha1:
 aafca3587102a6039e06855b3d30bbd142601c40 2135 libqtpas_4.6+dfsg-1.dsc
 f9d75c42b27134bb70df983bcfaf922445cf6a0b 361140 libqtpas_4.6+dfsg.orig.tar.xz
 4ef3156495927e82802266f352618c069d37567d 7288 libqtpas_4.6+dfsg-1.debian.tar.xz
 2bd482cc857c1ae2ac6803853b985a945af9fb54 11372 libqtpas_4.6+dfsg-1_source.buildinfo
Checksums-Sha256:
 fd2f8450856684ae8cbe8dfaca83782602c42e999f87d4fd0b35662616ce98ed 2135 libqtpas_4.6+dfsg-1.dsc
 15e1db23dd96044eb6ab10601f472d00746e3376276d192c9aa47caaf51245fa 361140 libqtpas_4.6+dfsg.orig.tar.xz
 a7614785debad12427ef005ea7c7330965ef30424bc39c7d1756b5f53e015bac 7288 libqtpas_4.6+dfsg-1.debian.tar.xz
 2e9455e7a087b3e7d7f05162c99aa3a7336ea5a73859b3d85e9766761061a753 11372 libqtpas_4.6+dfsg-1_source.buildinfo
Files:
 5fb35033c7822ac8e14eb6ce1ba48597 2135 libs optional libqtpas_4.6+dfsg-1.dsc
 a226e776ec8c0117d368c250db0200ab 361140 libs optional libqtpas_4.6+dfsg.orig.tar.xz
 5f707f79b42f22ec519092a72e483298 7288 libs optional libqtpas_4.6+dfsg-1.debian.tar.xz
 8c59bb74d8f43613606055534d8c878c 11372 libs optional libqtpas_4.6+dfsg-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE33HzyvBUkEl4+kj4tty6Zj6hsVAFAmmhkhQACgkQtty6Zj6h
sVBiaw//VTVSRkQDzs3FoXs1OfhDUkUp1O4NdR2Qnfxr4AZGGS8nVOp+FLlxHBkN
hOVIrxt4OHPBPAszyjYjXaRxKc5tzQizdBf0ETchticpLhayvTvYjdq/2NpPB56T
CEtE5LTcWTPG/sIsokZL0F+EyB1p8lMdW/ryf25RFA8xa01mYdyljfjmpB/vtMAY
F81HQbsUDybb8sZYOs+yVMZpXzZ9UKns3UxNppeimqCxynTo06BgoBmWr8IiQ7dM
5fUXKRYaBGDyXVZGsLiLlY2Lxt4naTMMv0G3s4HFTqx6HSVnJbmRA3L7//JdRh88
qn76Ki+yhWcivtK+MqymMuX1MqHR9g9wbVlCaQxF47MYv5HemWDsIO82NvGF7E7z
GqAuV8cN4LMJ8EmkULdKaT5EIShWwPiGFkFG44QhR75tXuR/s1QM1yjqvAQ8EXyC
xg4tw2ZTN5z69aFkcPIpYNBs95E2rPAw8tZupVrp9ehxGwRRpFjHU1AwuEROJTw2
pRUJvhXxf4/u5Af3gYB6bXlFJHvTTomyRXnFVXSFmkw4U8Tl4QxiG7+9Ut6T4Oka
zYVat2dR6FPylYKd7OCBfRI2HomNwPRVhVXEs4+SQWvnMCfLKxlzEIWL5GFfwxrl
qRAx3EYQ//ZqBdBejtfbDxVfwgRDXk5KG/ghQq/QWwQic4cGgH0=
=mOev
-----END PGP SIGNATURE-----

#1129081#40
Date:
2026-02-27 14:45:34 UTC
From:
To:
Agreed. There are other missing dependences apart from X11,
and I have only fixed for X11 (in libqtpas & libqt6pas, closing 1129081).
Those builds that only failed through "cannot find -lX11" should now be OK.

These other dependences were previously pulled via libgtk2.0-dev [1],
which for Qt packages, makes no sense going forward.

  libatk1.0-dev
  libcairo2-dev
  libgdk-pixbuf-2.0-dev
  libpango1.0-dev

So these need adding to affected packages.

[1] https://packages.debian.org/forky/libgtk2.0-dev

#1129081#45
Date:
2026-02-27 16:01:59 UTC
From:
To:
On second thoughts, I think fixing this in fpc (your original suggestion!)
is best.

fp-units-gtk2 binary package used to depend on libgtk2.0-dev.
As it no longer does that, it should instead, depend on the above
packages directly.

(The fp-units-gtk2 package contains various stuff apary from gtk2)

I'll do another upload of fpc.