Re: how to fix lintian error: library-not-linked-against-libc

2025-01-29 Thread Russ Allbery
Ahmad Khalifa writes: > Instead, lintian should alert that some symbols are "unversioned". The problem is that unversioned symbols are often correct. For one, not every shared library uses symbol versioning; we may want them all to use symbol versioning, and certainly way more of them do today,

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-29 Thread Ahmad Khalifa
On 29/01/2025 00:01, Russ Allbery wrote: Ahmad Khalifa writes: On 28/01/2025 22:28, Sam Hartman wrote: "Russ" == Russ Allbery writes: Russ> recollection (it's been a *lot* of years so I'm hoping I'm Russ> getting this right) is that this interfered with proper Russ> symbo

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-28 Thread Russ Allbery
Ahmad Khalifa writes: > On 28/01/2025 22:28, Sam Hartman wrote: >>> "Russ" == Russ Allbery writes: >> Russ> recollection (it's been a *lot* of years so I'm hoping I'm >> Russ> getting this right) is that this interfered with proper >> Russ> symbol versioning and could cause th

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-28 Thread Ahmad Khalifa
On 28/01/2025 22:28, Sam Hartman wrote: "Russ" == Russ Allbery writes: Russ> recollection (it's been a *lot* of years so I'm hoping I'm Russ> getting this right) is that this interfered with proper symbol Russ> versioning and could cause the symbols to be resolved weirdly R

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-28 Thread Sam Hartman
> "Russ" == Russ Allbery writes: Russ> recollection (it's been a *lot* of years so I'm hoping I'm Russ> getting this right) is that this interfered with proper symbol Russ> versioning and could cause the symbols to be resolved weirdly Russ> in a way that could cause serious bu

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-28 Thread Russ Allbery
Ahmad Khalifa writes: > But reading that, I don't see how the linker could declare a dynamic > GLIBC_ symbol without the related library reference. > In fact, it should choke with "undefined reference" long before outputting > a .so file. Even when compiling with -nolibc. But there is always a >

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-28 Thread Ahmad Khalifa
On 27/01/2025 23:14, Russ Allbery wrote: Ahmad Khalifa writes: Having said that, lintian is slow enough as a single thread, I'd vote for downgrading the tag to Pedantic, but not deleting it. So, I guess I'll say this more explicitly: I am opposed to downgrading the tag to pedantic. If the tag

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-27 Thread Russ Allbery
Ahmad Khalifa writes: > On 27/01/2025 18:24, Russ Allbery wrote: >> Annoying to implement because I think the implementation would have to >> know what symbols are provided by libc. > To my knowledge objdump will spit out the symbols with (GLIBC_v*) Oh, if one can reliably detect libc symbols b

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-27 Thread Ahmad Khalifa
On 27/01/2025 18:24, Russ Allbery wrote: Marvin Renich writes: * Russ Allbery [250126 12:47]: In theory it would be possible to do better in Lintian by scanning the symbol table to see if the libc dependency is really unneeded. But doing that sounds at least a little annoying. Annoying to

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-27 Thread Russ Allbery
Marvin Renich writes: > * Russ Allbery [250126 12:47]: >> In theory it would be possible to do better in Lintian by scanning the >> symbol table to see if the libc dependency is really unneeded. But >> doing that sounds at least a little annoying. > Annoying to users of lintian or annoying to i

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-27 Thread Marvin Renich
* Russ Allbery [250126 12:47]: > In theory it would be possible to do better in Lintian by scanning the > symbol table to see if the libc dependency is really unneeded. But doing > that sounds at least a little annoying. Annoying to users of lintian or annoying to implement? How so? I thought o

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Russ Allbery
Simon McVittie writes: > On Sun, 26 Jan 2025 at 09:14:30 -0800, Russ Allbery wrote: >> maybe it's more common these days to have plugin libraries that aren't >> linked with libc? Back in the day, it was very rare for people to >> successfully manage to write code that never called a libc symbol.

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Simon McVittie
On Sun, 26 Jan 2025 at 09:14:30 -0800, Russ Allbery wrote: > maybe it's more common these days to have plugin libraries > that aren't linked with libc? Back in the day, it was very rare for people > to successfully manage to write code that never called a libc symbol. In ecosystems with a "platfor

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Russ Allbery
Jeremy Bícha writes: > On Sun, Jan 26, 2025 at 6:28 AM Ahmad Khalifa wrote: >> The lintian error is a great heads-up and it's up to the reader to >> decide whether it's a true error to fix or a false-positive to >> override. > I have never seen this Lintian error actually be useful. I think an

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Ahmad Khalifa
On 26/01/2025 12:41, Jeremy Bícha wrote: On Sun, Jan 26, 2025 at 6:28 AM Ahmad Khalifa wrote: The lintian error is a great heads-up and it's up to the reader to decide whether it's a true error to fix or a false-positive to override. I have never seen this Lintian error actually be useful. I

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Jeremy Bícha
On Sun, Jan 26, 2025 at 6:28 AM Ahmad Khalifa wrote: > The lintian error is a great heads-up and it's up to the reader to > decide whether it's a true error to fix or a false-positive to override. I have never seen this Lintian error actually be useful. I think an error is far too strong for this

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread David Kalnischkies
Hi, unrelated to your question, but there are things that jump out for me: Am Sat, Jan 25, 2025 at 10:57:26PM -0600, schrieb Steven Robbins: > The (CMake-generated) link line does have a bunch of options. Nothing jumped > out at me: > > /usr/bin/c++ -fPIC -g -O2 > -ffile-prefix-map=/home/stev

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Ahmad Khalifa
On 26/01/2025 11:19, Andrey Rakhmatullin wrote: On Sun, Jan 26, 2025 at 11:07:12AM +, Ahmad Khalifa wrote: I do this to confirm if lintian is correct: $ objdump -p file.so ... NEEDED libc.so.6 ... No? Lintian already says there is no "NEEDED libc.so.6"

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Andrey Rakhmatullin
On Sun, Jan 26, 2025 at 01:02:25AM -0600, Steven Robbins wrote: > > I've come to realise the ITK build has 15 libraries that lintian flags with > > error library-not-linked-against-libc. > > Someone suggested to run ldd -r. Okay, so what does this tell me? > > $ ldd -r /lib/x86_64-linux-gnu/libI

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Andrey Rakhmatullin
On Sun, Jan 26, 2025 at 11:07:12AM +, Ahmad Khalifa wrote: > > The error description seems straightforward.  But how does one solve > > this?  I have to assume that the linker would by default link with the > > libc (?), so perhaps the linker invocation has options that suppress > > this?  What

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-26 Thread Ahmad Khalifa
On 26/01/2025 04:57, Steven Robbins wrote: I've come to realise the ITK build has 15 libraries that lintian flags with ... The error description seems straightforward.  But how does one solve this?  I have to assume that the linker would by default link with the libc (?), so perhaps the linke

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-25 Thread Steven Robbins
On Saturday, January 25, 2025 10:57:26 P.M. CST you wrote: > I've come to realise the ITK build has 15 libraries that lintian flags with > error library-not-linked-against-libc. Someone suggested to run ldd -r. Okay, so what does this tell me? $ ldd -r /lib/x86_64-linux-gnu/libITKColormap-5.4.so

Re: how to fix lintian error: library-not-linked-against-libc

2025-01-25 Thread Andrey Rakhmatullin
On Sat, Jan 25, 2025 at 10:57:26PM -0600, Steven Robbins wrote: > I've come to realise the ITK build has 15 libraries that lintian flags with > error library-not-linked-against-libc. > > https://lintian.debian.org/tags/library-not-linked-against-libc.html[1] > > The error description seems str

how to fix lintian error: library-not-linked-against-libc

2025-01-25 Thread Steven Robbins
I've come to realise the ITK build has 15 libraries that lintian flags with error library-not-linked-against-libc. https://lintian.debian.org/tags/library-not-linked-against-libc.html[1] The error description seems straightforward. But how does one solve this? I have to assume that the lin