You are not logged in.

#1 2015-11-10 12:04:24

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

"Unused shared library" warnings from namcap

I am not sure why I did not see them before, but now namcap shows up messages about unsused shared libraries. Obviously this has been commited to the sources two years ago, but till these days I did not notice.

How do such things to be handled in packages?

For instance, sxemacs-git and gauche-git show many of them.

Offline

#2 2015-11-10 12:46:49

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: "Unused shared library" warnings from namcap

Can you specify "many"? Paste them.

Offline

#3 2015-11-10 12:52:40

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,785
Website

Re: "Unused shared library" warnings from namcap

Neither of those packages build, so I can't check what messages you're getting.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#4 2015-11-10 14:27:08

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: "Unused shared library" warnings from namcap

Awebb wrote:

Can you specify "many"? Paste them.

"Many" means ~250 in case of gauche-git.
See here .
sxemacs has not as many (66), but neverheless too much, see here.

Offline

#5 2015-11-10 14:29:14

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: "Unused shared library" warnings from namcap

WorMzy wrote:

Neither of those packages build, so I can't check what messages you're getting.

For me both do.

Offline

#6 2015-11-10 14:48:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: "Unused shared library" warnings from namcap

Stefan Husmann wrote:
WorMzy wrote:

Neither of those packages build, so I can't check what messages you're getting.

For me both do.

In a clean chroot?

There's not much you can do about it. It's typically a problem with the upstream build system, using the same linker commands for everything.

Offline

#7 2015-11-10 16:19:06

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: "Unused shared library" warnings from namcap

Scimmia wrote:
Stefan Husmann wrote:
WorMzy wrote:

Neither of those packages build, so I can't check what messages you're getting.

For me both do.

In a clean chroot?

Honestly I typically do not buid in clean chroots, because the time and disk space factor is normally not worth it. But I will try in these cases.
edit: gauche builds in a clean chroot with a slightly edited PKGBUILD. sxemacs does not, will examine.

Last edited by Stefan Husmann (2015-11-10 16:30:42)

Offline

#8 2015-11-11 10:22:59

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: "Unused shared library" warnings from namcap

Scimmia wrote:

There's not much you can do about it. It's typically a problem with the upstream build system, using the same linker commands for everything.

This is the part you need to read. That's to be expected after a decade or more with stuff like autoconf and cmake. It's not that I don't like those systems, but programmers don't really learn how to write their own makefiles anymore, so they will often just swallow what the helper scripts serve and probably never realize something isn't right.

I'd direct your question upstream.

Offline

#9 2015-11-11 12:46:01

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: "Unused shared library" warnings from namcap

Okay, but is this just a nice to have feature, not to link against solibs when it is not needed, or does this open backdoors for evil guys?

Offline

Board footer

Powered by FluxBB