Bill Allombert on Fri, 12 May 2023 11:00:38 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: library .tbss mismatches
|
- To: Greg Marks <marks@gmarks.org>
- Subject: Re: library .tbss mismatches
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Fri, 12 May 2023 10:55:55 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1683881751; c=relaxed/relaxed; bh=3qPyy+2qhGN+tPzTYZTQbgnb/GGcAi9A1cQfNt6I1os=; h=DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=VH44THFYazQ53pJ74ZKMqwAsRk5pc3qTCEMneHk0BeEMyLb7KCGcPRALF2A9s3oby2it5VudZE2kzd+QMDXXC+EH0hwZ4Of7S9PMf7tXAIqcj0SjE1977SlrCrGNmTKYiD71Cox64kJgO8g+y43S4JzY1VNEWgYWBFNkP7mIrp0TaBEH9oZkeIidaowIIZTGYW1UzLJzkyvCcjQPcjUMETddlw4+l4ySUn1b03pQGAgZlzANImzZfbUakOv9M+nyep0zUougRBB2RRqiX7/xQDYg7Lrm/zuhoWP721wSENQOhC2Ym01I7c8QNcpfuCmEkafClLlxv4YFGrGe5I+qiQg0eAXryP2SV+wgtfcWU8L6Wcl4W5Pf1vgitgRi6NrgGPr/6lOL2XUplP6e9QJbmL6itubObXYwdeg8dGrXgZG+KfyMV8AkesmSx3HtUjedoR33ZTkCrvradeUG4Dv7tCmIsUy12Ucut2AhO9k1jU3IlnO2NVc/WpO4WZN8hgYT94SO+A0lrjYBCnh/uRFKpJRVHlitU4xZSRJpXY6XT63h87zwZmHJKfF/1IgGjJxiC6M37FdwByM4+R0Q00X/fRRd+wyJA1a88o4ApLFQWyrAGvQmpm3A+Cgi0raVOGkFD408ZxIqm+oKHGN760eri5UY45k2S4xrnAIkw6uFJcM=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1683881751; cv=none; b=RTQf9fY/mXwjRVq4+f0KpvyGZEyaUew3XWvb3pOohJD7uadv9Dc/pGlcLmUUEJrNMHgr8jlwQ5OM8y9wVItzOeffRtzTGsLpJed6n2xU8VqK7V3ALozbK1pzkvVYW0rG4AvOEAFBBHC9SDjNmN/1SfdvqucD/FVq9JY04NCFs6dn8XCoPJa53JS+IfqJg+eDQKbEe82jLPWptMlIXLUq7LzJmXzGhwgc0zYUwpbyWdcktEibUqU8pReb6MMsTuTxR0B1Vl/WNkKN1q94XnbIs+W9JcqEkjFfO0gExu/IR92R42ZzVKv9KsyHUSWLB7VgfAe3h8VDTpSyN4GAmND3A/9LxHL51OPdKc3kDlhA19mToXKRGcKoxAettJG5vVqNtZotmMThWw6QYv6ngKu3Iof4WbRaF8NivncXsMhubK9ipQxFVy3y7zkYTUwgjy2GfCf1qSju1rihdLQIo6fkKmRwi/tErn+aawqxLYI8aF++fDgr5Nijo8kkeF+nk869rqOsHVyliQrFy2Q9jOkfPzIEw+cTtRlpoZZkvLh9b09YATtic6xgeQn4d6UXYBPMpo3E8eTi1iZjbVgRkeZfRlZODmh9j/KZcvwkD9lkjTLJsyeQUijVrHXQpihKPe9aCOFIwaK63GdRUs/XD02MTVx81f3dAN5QFrHYPjQLW4I=
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Fri, 12 May 2023 11:00:38 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1683881751; bh=3qPyy+2qhGN+tPzTYZTQbgnb/GGcAi9A1cQfNt6I1os=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YLbA43pgliJl7w5Cn7nL17H0p4Rm90MmUkVtdxydboAPHOHb2j4LHY/h1adfyarB9 bzlxRZSu6PvHTGCWIpr32DKxb2Hb6IrKnKeDr6H2ilxrRmY2IupDVccLMGrWvY/05d K5+S0kGnJfdPXVmQ2zrj/M4y63ah2MOvvERAa6xyOqgGmwfa49ZupaD3naQEVSiBB6 GZ6wznCb+a738k2KxZ6/rVUt0VhrwHexImAI9G82//RSZNiOtdJRNgMfoWH4n8MqMY TRteZF54aq0gOdkVQyJZBLRbNtQWfhSGf69ssgU4qS7hktsUDqntolnK0ghy1ROuXA s1T4qZ8wfIPmN4SSFtk2FW1P9WKk4MfYvwNCX2z9yl3NhOqDbGdsEDgq7yk600SFkZ JRhA0QI95ME/SoO2gXKSK66n2fz/0VFf1jZEt5chSOfnT+OVPnaMo40uN/lLS9LTpz kUTOlWEYNZBr2JEX/xqpp1RTqhOduqZKB1nUyBRlWLm3a2eB82/mxEZDXaiLwFsseF kZ+/SPD+YLmiO0z9+gD6njTr6Fg3XSqk/XXy/MlS1CRMzjSBan9TP03czqrhmJAY6X lzXC90xUqfkITVn6/yGYAyoC/MFh9OOsa3s2g3zKwJ3jb4l49I2V/GhWUrIa6Ot0zN pCmuXNAiH9jLA43xondnAsNM=
- In-reply-to: <ZF2e9SlewBNnK+gw@xiphias.gmarks.org>
- Mail-followup-to: Greg Marks <marks@gmarks.org>, pari-users@pari.math.u-bordeaux.fr
- References: <ZF2e9SlewBNnK+gw@xiphias.gmarks.org>
On Thu, May 11, 2023 at 09:05:41PM -0500, Greg Marks wrote:
> On a computer on which, years ago, I installed Pari-GP both from the
> source tarball and from the Debian Linux repositories, I am unable to
> compile C programs such as the extgcd.c program in the Pari examples.
> I get these errors:
>
> $gcc -Wall -O3 -o extgcd extgcd.c -lpari
> /usr/bin/ld: PARI_SIGINT_block: TLS definition in /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libpari.so section .tbss mismatches non-TLS reference in /tmp/ccQUa8Wh.o
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libpari.so: error adding symbols: bad value
> collect2: error: ld returned 1 exit status
Hello Greg,
This error is caused by a mismatch between the library and the header files.
you are using /usr/lib/libpari.so, so you need to use the headers files
in /usr/include.
Probably you have a copy of the old headers in /usr/local/include/pari
(and probably other PARI files in /usr/local)
you can do
find / -name pari.h
to find old pari.h files
note: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libpari.so is actually
/usr/lib/libpari.so which is the version provided by Debian.
the files /usr/lib/x86_64-linux-gnu/libpari.so and /usr/include/x86_64-linux-gnu/pari/pari.h are
in the libpari-dev Debian package.
Now if you want to compile PARI by yourself, you need set --prefix to some directory
in Configure, do 'make install' and then set -I and -L to that directory in gcc.
See examples/Makefile and examples/EXPLAIN
If you are unsure follow the installation instruction, page 8.
<https://pari.math.u-bordeaux.fr/Events/PARIday2021/talks/sources.pdf>
cd to examples and do
make TARGET=extgcd
Cheers,
Bill