Error while linking
lazarus / 1-Linux
----------------------------------------------------------------------
ChPr · 2021-11-15 09:14
Hello everybody,
I have a Raspberry Pi 3B+ with "Buster" on which I had installed
Lazarus 2.0.6. It was working fine until my SD card broke. No way to
restart it and ... no way to find my backup SD.
So I took a new SD card on which I installed "Buster", then Lazarus
according to the same method I had used:
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i LAZARUS
2.0.6 INSTALLATION ON A RASPBERRY To install the 3 attached debian
packages, you must first make sure you have the libraries:
"libgtk2.0-dev libgpm-dev libncurses-dev". If not, install them: -
sudo apt install libgtk2.0-dev libgpm-dev libncurses-dev Then go to
the directory where you downloaded the *.deb files and run
successively : - sudo dpkg -i fpc-laz_3.0.4_armhf.deb - sudo dpkg
-i fpc-src_3.0.4_armhf.deb lazarus-project_2.0.6-0_armhf.deb NOTE: If
you want to rebuild everything yourself, all explanations are given in
this link : -
https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian
Unfortunately, I can't compile, I get a linking error:
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i
/usr/bin/ld: can't find -lgtk-x11-2.0/usr/bin/ld: can't find
-lgobject-2.0/usr/bin/ld: can't find -lglib-2.0/usr/bin/ld: can't find
-lgthread-2.0/usr/bin/ld: can't find -lgmodule-2.0/usr/bin/ld: can't
find -lpango-1.0/usr/bin/ld: can't find -lcairo/usr/bin/ld: can't find
-latk-1.0project1.lpr(23,0)Error Error while linking
I think it comes from the following errors when installing the
libraries "libgtk2.0-dev libgpm-dev libncurses-dev" because they
generated me the following errors:
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i
pi@raspberrypi:~ $ sudo apt install libgtk2.0-dev libgpm-dev
libncurses-devReading package lists... DoneBuild dependency treeRead
status information... DoneYou can run "*apt --fix-broken install*" to
fix these problems.The following packages contain unmet
dependencies*:libgtk2.0-dev: Depends: gir1.2-gtk-2.0 (=
2.24.32-3+rpt1) but will not be installedDepends: libglib2.0-dev (>=
2.27.3) but will not be installedDepends: libgdk-pixbuf2.0-dev (>=
2.21.0) but will not be installedDepends: libpango1.0-dev (>= 1.20)
but will not be installedDepends: libatk1.0-dev (>= 1.29.2) but will
not be installedDepends: libcairo2-dev (>= 1.6.4-6.1) but will not be
installedDepends: libxext-dev (>= 1:1.0.1-2) but will not be
installedDepends: libxinerama-dev (>= 1:1.0.1-4.1) but will not be
installedDepends: libxi-dev (>= 1:1.0.1-4) but will not be
installedDepends: libxrandr-dev (>= 2:1.2.99) but will not be
installedDepends on: libxcursor-dev but will not be installedDepends:
libxfixes-dev (>= 1:3.0.0-3) but will not be installedDepends:
libxcomposite-dev (>= 1:0.2.0-3) but will not be installedDepends:
libxdamage-dev (>= 1:1.0.1-3) but will not be installedDepends:
libxml2-utils but will not be installedRecommended: debhelper but will
not be installedE: Dependencies not met. Try "*apt --fix-broken
install*" without package(or specify a solution).
Do you have any idea what to do to fix this?
Thanks in advance.
Pierre.
[Edited to fix subject line.]
----------------------------------------------------------------------
winni · 2021-11-15 09:43
Hi
Line 5 tells you the solution:
Code: Bash [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i apt --fix-
broken install
Winni
----------------------------------------------------------------------
ChPr · 2021-11-15 10:19
I had done it, unfortunately, it didn't work. It seems that there is
an IP problem.
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i
pi@raspberrypi:~ $ sudo apt --fix-broken installLecture des listes de
paquets... FaitConstruction de l'arbre des dépendancesLecture des
informations d'état... FaitCorrection des dépendances... FaitLes
paquets supplémentaires suivants seront installés : autoconf automake
autopoint autotools-dev debhelper dh-autoreconf dh-strip-
nondeterminism dwz gettext gir1.2-gtk-2.0 gir1.2-harfbuzz-0.0 icu-
devtools intltool-debian libarchive-cpio-perl libarchive-zip-perl
libatk1.0-dev libblkid-dev libcairo-script-interpreter2 libcairo2-dev
libffi-dev libfile-stripnondeterminism-perl libfontconfig1-dev
libfribidi-dev libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-dev
libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libgtk2.0-dev
libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libltdl-dev liblzo2-2
libmail-sendmail-perl libmount-dev libpango1.0-dev libpcre16-3
libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev
libselinux1-dev libsepol1-dev libsigsegv2 libsys-hostname-long-perl
libtool libxcb-render0-dev libxcb-shm0-dev libxcomposite-dev
libxcursor-dev libxdamage-dev libxext-dev libxfixes-dev libxft-dev
libxi-dev libxinerama-dev libxml2-utils libxrandr-dev libxrender-dev
m4 pango1.0-tools po-debconf x11proto-composite-dev x11proto-damage-
dev x11proto-fixes-dev x11proto-input-dev x11proto-randr-dev
x11proto-xext-dev x11proto-xinerama-devPaquets suggérés : autoconf-
archive gnu-standards autoconf-doc dh-make gettext-doc libasprintf-dev
libgettextpo-dev libcairo2-doc libglib2.0-doc libgraphite2-utils
libgtk2.0-doc icu-doc libtool-doc imagemagick libpango1.0-doc
gfortran | fortran95-compiler gcj-jdk libxext-doc m4-doc libmail-box-
perlLes NOUVEAUX paquets suivants seront installés : autoconf
automake autopoint autotools-dev debhelper dh-autoreconf dh-strip-
nondeterminism dwz gettext gir1.2-gtk-2.0 gir1.2-harfbuzz-0.0 icu-
devtools intltool-debian libarchive-cpio-perl libarchive-zip-perl
libatk1.0-dev libblkid-dev libcairo-script-interpreter2 libcairo2-dev
libffi-dev libfile-stripnondeterminism-perl libfontconfig1-dev
libfribidi-dev libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-dev
libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libgtk2.0-dev
libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libltdl-dev liblzo2-2
libmail-sendmail-perl libmount-dev libpango1.0-dev libpcre16-3
libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev
libselinux1-dev libsepol1-dev libsigsegv2 libsys-hostname-long-perl
libtool libxcb-render0-dev libxcb-shm0-dev libxcomposite-dev
libxcursor-dev libxdamage-dev libxext-dev libxfixes-dev libxft-dev
libxi-dev libxinerama-dev libxml2-utils libxrandr-dev libxrender-dev
m4 pango1.0-tools po-debconf x11proto-composite-dev x11proto-damage-
dev x11proto-fixes-dev x11proto-input-dev x11proto-randr-dev
x11proto-xext-dev x11proto-xinerama-dev0 mis à jour, 70 nouvellement
installés, 0 à enlever et 0 non mis à jour.1 partiellement installés
ou enlevés.Il est nécessaire de prendre 9 292 ko/27,2 Mo dans les
archives.Après cette opération, 105 Mo d'espace disque supplémentaires
seront utilisés.Souhaitez-vous continuer ? [O/n] oErr :1
http://raspbian.raspberrypi.org/raspbian buster/main armhf icu-
devtools armhf 63.1-6 404 Not Found [IP : 2a00:1098:0:80:1000:75:0:3
80]Err :2 http://raspbian.raspberrypi.org/raspbian buster/main armhf
libicu-dev armhf 63.1-6 404 Not Found [IP :
2a00:1098:0:80:1000:75:0:3 80]Err :3
http://raspbian.raspberrypi.org/raspbian buster/main armhf
pango1.0-tools armhf 1.42.4-7~deb10u1 404 Not Found [IP :
2a00:1098:0:80:1000:75:0:3 80]Err :4
http://raspbian.raspberrypi.org/raspbian buster/main armhf
libpango1.0-dev armhf 1.42.4-7~deb10u1 404 Not Found [IP :
2a00:1098:0:80:1000:75:0:3 80]Err :5
http://raspbian.raspberrypi.org/raspbian buster/main armhf
libxml2-utils armhf 2.9.4+dfsg1-7+b3 404 Not Found [IP :
2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/icu-
devtools_63.1-6_armhf.deb 404 Not Found [IP :
2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/libicu-
dev_63.1-6_armhf.deb 404 Not Found [IP : 2a00:1098:0:80:1000:75:0:3
80]E: Impossible de récupérer http://raspbian.raspberrypi.org/raspbian
/pool/main/p/pango1.0/pango1.0-tools_1.42.4-7~deb10u1_armhf.deb 404
Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]E: Impossible de
récupérer http://raspbian.raspberrypi.org/raspbian/pool/main/p/pango1.
0/libpango1.0-dev_1.42.4-7~deb10u1_armhf.deb 404 Not Found [IP :
2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer http://raspbi
an.raspberrypi.org/raspbian/pool/main/libx/libxml2/libxml2-
utils_2.9.4+dfsg1-7+b3_armhf.deb 404 Not Found [IP :
2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer certaines
archives, peut-être devrez-vous lancer apt-get update ou essayer avec
--fix-missing ?pi@raspberrypi:~ $
Sincerely.
Pierre
----------------------------------------------------------------------
Zvoni · 2021-11-15 10:40
IPv6?
----------------------------------------------------------------------
trev · 2021-11-15 10:47
Works for me on IPv6 with curl, but the file -- icu-
devtools_63.1-6_armhf.deb -- is not found:
Quote
404 Not Found
Not Found
The requested URL was not found on this server.
Apache/2.4.25 (Debian) Server at raspbian.raspberrypi.org
Port 80
----------------------------------------------------------------------
ChPr · 2021-11-15 10:53
Quote from: Zvoni on November 15, 2021, 11:40:26 amIPv6?
Yes, but what do to correct this ?
Sincerely.
Pierre.
----------------------------------------------------------------------
trev · 2021-11-15 11:06
Perhaps sudo apt -o Acquire::ForceIPv4=true --fix-broken install
----------------------------------------------------------------------
ChPr · 2021-11-15 11:54
Quote from: trev on November 15, 2021, 12:06:26 pmPerhaps sudo apt -o
Acquire::ForceIPv4=true --fix-broken install
Thank you for this idea. The resut is :
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i
pi@raspberrypi:~ $ sudo apt -o Acquire::ForceIPv4=true --fix-broken
installLecture des listes de paquets... FaitConstruction de l'arbre
des dépendancesLecture des informations d'état... FaitCorrection des
dépendances... FaitLes paquets supplémentaires suivants seront
installés : autoconf automake autopoint autotools-dev debhelper dh-
autoreconf dh-strip-nondeterminism dwz gettext gir1.2-gtk-2.0
gir1.2-harfbuzz-0.0 icu-devtools intltool-debian libarchive-cpio-perl
libarchive-zip-perl libatk1.0-dev libblkid-dev libcairo-script-
interpreter2 libcairo2-dev libffi-dev libfile-stripnondeterminism-
perl libfontconfig1-dev libfribidi-dev libgdk-pixbuf2.0-bin libgdk-
pixbuf2.0-dev libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev
libgtk2.0-dev libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libltdl-
dev liblzo2-2 libmail-sendmail-perl libmount-dev libpango1.0-dev
libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev
libselinux1-dev libsepol1-dev libsigsegv2 libsys-hostname-long-perl
libtool libxcb-render0-dev libxcb-shm0-dev libxcomposite-dev
libxcursor-dev libxdamage-dev libxext-dev libxfixes-dev libxft-dev
libxi-dev libxinerama-dev libxml2-utils libxrandr-dev libxrender-dev
m4 pango1.0-tools po-debconf x11proto-composite-dev x11proto-damage-
dev x11proto-fixes-dev x11proto-input-dev x11proto-randr-dev
x11proto-xext-dev x11proto-xinerama-devPaquets suggérés : autoconf-
archive gnu-standards autoconf-doc dh-make gettext-doc libasprintf-dev
libgettextpo-dev libcairo2-doc libglib2.0-doc libgraphite2-utils
libgtk2.0-doc icu-doc libtool-doc imagemagick libpango1.0-doc gfortran
| fortran95-compiler gcj-jdk libxext-doc m4-doc libmail-box-perlLes
NOUVEAUX paquets suivants seront installés : autoconf automake
autopoint autotools-dev debhelper dh-autoreconf dh-strip-
nondeterminism dwz gettext gir1.2-gtk-2.0 gir1.2-harfbuzz-0.0 icu-
devtools intltool-debian libarchive-cpio-perl libarchive-zip-perl
libatk1.0-dev libblkid-dev libcairo-script-interpreter2 libcairo2-dev
libffi-dev libfile-stripnondeterminism-perl libfontconfig1-dev
libfribidi-dev libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-dev
libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libgtk2.0-dev
libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libltdl-dev liblzo2-2
libmail-sendmail-perl libmount-dev libpango1.0-dev libpcre16-3
libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libselinux1-dev
libsepol1-dev libsigsegv2 libsys-hostname-long-perl libtool libxcb-
render0-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev
libxdamage-dev libxext-dev libxfixes-dev libxft-dev libxi-dev
libxinerama-dev libxml2-utils libxrandr-dev libxrender-dev m4
pango1.0-tools po-debconf x11proto-composite-dev x11proto-damage-dev
x11proto-fixes-dev x11proto-input-dev x11proto-randr-dev x11proto-
xext-dev x11proto-xinerama-dev0 mis à jour, 70 nouvellement installés,
0 à enlever et 0 non mis à jour.1 partiellement installés ou
enlevés.Il est nécessaire de prendre 9 292 ko/27,2 Mo dans les
archives.Après cette opération, 105 Mo d'espace disque supplémentaires
seront utilisés.Souhaitez-vous continuer ? [O/n] oErr :1
http://raspbian.raspberrypi.org/raspbian buster/main armhf icu-
devtools armhf 63.1-6 404 Not Found [IP : 93.93.128.193 80]Err :2
http://raspbian.raspberrypi.org/raspbian buster/main armhf libicu-dev
armhf 63.1-6 404 Not Found [IP : 93.93.128.193 80]Err :3
http://raspbian.raspberrypi.org/raspbian buster/main armhf
pango1.0-tools armhf 1.42.4-7~deb10u1 404 Not Found [IP :
93.93.128.193 80]Err :4 http://raspbian.raspberrypi.org/raspbian
buster/main armhf libpango1.0-dev armhf 1.42.4-7~deb10u1 404 Not
Found [IP : 93.93.128.193 80]Err :5
http://raspbian.raspberrypi.org/raspbian buster/main armhf
libxml2-utils armhf 2.9.4+dfsg1-7+b3 404 Not Found [IP :
93.93.128.193 80]E: Impossible de récupérer
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/icu-
devtools_63.1-6_armhf.deb 404 Not Found [IP : 93.93.128.193 80]E:
Impossible de récupérer
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/libicu-
dev_63.1-6_armhf.deb 404 Not Found [IP : 93.93.128.193 80]E:
Impossible de récupérer http://raspbian.raspberrypi.org/raspbian/pool/
main/p/pango1.0/pango1.0-tools_1.42.4-7~deb10u1_armhf.deb 404 Not
Found [IP : 93.93.128.193 80]E: Impossible de récupérer http://raspbia
n.raspberrypi.org/raspbian/pool/main/p/pango1.0/libpango1.0-
dev_1.42.4-7~deb10u1_armhf.deb 404 Not Found [IP : 93.93.128.193
80]E: Impossible de récupérer http://raspbian.raspberrypi.org/raspbian
/pool/main/libx/libxml2/libxml2-utils_2.9.4+dfsg1-7+b3_armhf.deb 404
Not Found [IP : 93.93.128.193 80]E: Impossible de récupérer certaines
archives, peut-être devrez-vous lancer apt-get update ou essayer avec
--fix-missing ?pi@raspberrypi:~ $
Though the address are IPV4, there is alway the same problem.
Using --fix-missing gives :
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i
pi@raspberrypi:~ $ sudo apt --fix-missing installLecture des listes de
paquets... FaitConstruction de l'arbre des dépendancesLecture des
informations d'état... FaitVous pouvez lancer « apt --fix-broken
install » pour corriger ces problèmes.Les paquets suivants contiennent
des dépendances non satisfaites : lazarus-project : Dépend:
libgtk2.0-dev (>= 2.6.0) mais il n'est pas installéE: Dépendances non
satisfaites. Essayez « apt --fix-broken install » sans paquet (ou
indiquez une solution).pi@raspberrypi:~ $
Always the same problem.
Sincerely.
Pierre.
----------------------------------------------------------------------
marcov · 2021-11-15 12:15
I think it is slowly time to move this to a debian support forum. It
goes beyond pascal support.
----------------------------------------------------------------------
dbannon · 2021-11-15 12:21
yes, as marcov suggests, this is not a FPC/Lazarus issue. You have a
apt config problem.
You will get better diagnostic information just trying to clean up apt
-
Code: [Select]sudo apt update
is that works with out error, try -
Code: [Select]sudo apt upgrade
If that does not get you back to a sensible apt response and allow the
fix-broken to work, you need to seek help, probably on a raspberry pi
forum. Its an apt problem !
EDIT : how I know its an apt problem ?
Code: [Select]dbannon@dell:~/qemu/sparc64$ wget
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/icu-
devtools_63.1-6_armhf.deb
--2021-11-15 23:14:16--
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/icu-
devtools_63.1-6_armhf.deb
Resolving raspbian.raspberrypi.org (raspbian.raspberrypi.org)...
93.93.128.193, 2a00:1098:0:80:1000:75:0:3
Connecting to raspbian.raspberrypi.org
(raspbian.raspberrypi.org)|93.93.128.193|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-11-15 23:14:17 ERROR 404: Not Found.
Davo
----------------------------------------------------------------------
ChPr · 2021-11-15 14:45
I would like to thank all of you because with the help of your
suggestions I was able to load my missing libraries.
Before asking you, I had used apt-get, but it didn't bring any result.
So it seems that apt is more appropriate for this kind of
manipulation.
Thanks again to you.
Pierre.
----------------------------------------------------------------------
Zvoni · 2021-11-15 14:47
Quote from: dbannon on November 15, 2021, 01:21:20 pm
EDIT : how I know its an apt problem ?
Code: [Select]dbannon@dell:~/qemu/sparc64$ wget
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/icu-
devtools_63.1-6_armhf.deb
--2021-11-15 23:14:16--
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/icu-
devtools_63.1-6_armhf.deb
Resolving raspbian.raspberrypi.org (raspbian.raspberrypi.org)...
93.93.128.193, 2a00:1098:0:80:1000:75:0:3
Connecting to raspbian.raspberrypi.org
(raspbian.raspberrypi.org)|93.93.128.193|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-11-15 23:14:17 ERROR 404: Not Found.
Davo
It's not. The file simply doesn't exist, but
not existing: icu-devtools_63.1-6_armhf.deb
exists: icu-devtools_63.1-6+deb10u1_armhf.deb
exists: icu-devtools_67.1-7_armhf.deb
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/
----------------------------------------------------------------------
dbannon · 2021-11-15 22:52
Quote from: Zvoni on November 15, 2021, 03:47:37 pm.....
It's not. The file simply doesn't exist, but
not existing: icu-devtools_63.1-6_armhf.deb
exists: icu-devtools_63.1-6+deb10u1_armhf.deb
exists: icu-devtools_67.1-7_armhf.deb
http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/
Which is why I suggested he needed to refresh his apt cache.
@ChPr - It probably does not matter which you use, apt or apt-get,
both do the same thing, apt has a slightly friendlier user interface,
the older apt-get is a touch more suited to scripting.
Glad you have sorted it out.
Davo