Opened 16 years ago

Closed 8 years ago

#2065 closed enhancement (wontfix)

GDAL apps over-linking issue

Reported by: frankie Owned by: warmerdam
Priority: normal Milestone:
Component: ConfigBuild Version: unspecified
Severity: normal Keywords:
Cc: Mateusz Łoskot, Kyle Shannon

Description

Recent dpkg-shlibs in Debian sid is able to auto-detect linking against unused libraries. See for instance:

http://buildd.debian.org/fetch.cgi?pkg=gdal;ver=1.4.4-1;arch=amd64;stamp=1196773651

and looks for "shouldn't be linked with" warnings. The primary result is having programs over-depending on other packages in order to have ld happy at loading time. The practice of linking against all Gdal dependency libraries should be discouraged iff the specific platform does not require so. Libtool supports subdependencies as stated in

http://www.gnu.org/software/libtool/manual.html#Inter_002dlibrary-dependencies

but the gdal build system relink against all other inter-dep libs again and again for all binaries or so. Without libtool inter-deps need to be manually tracked per app, I think.

Change History (8)

comment:1 by Mateusz Łoskot, 16 years ago

Cc: Mateusz Łoskot added

Here is related ticket #2066

comment:2 by warmerdam, 16 years ago

Milestone: 1.6.0

This is not something we dare fiddle with for 1.5, setting for 1.6.

comment:3 by frankie, 16 years ago

It is also of interest seeing if -Wl,--as-needed could be a suitable trick without issues for C++ linkage. See http://www.gentoo.org/proj/en/qa/asneeded.xml for more information. Binutils folks could add that as default in the next future.

comment:4 by hobu, 15 years ago

Milestone: 1.6.11.7.0

comment:5 by Kyle Shannon, 15 years ago

Cc: Kyle Shannon added

comment:6 by Jukka Rahkonen, 9 years ago

Last commented 6 years ago. If this is still an issue then probably not a major one, or?

comment:7 by Even Rouault, 9 years ago

Milestone: 1.8.1

Removing obsolete milestone

comment:8 by Jukka Rahkonen, 8 years ago

Resolution: wontfix
Status: newclosed

7 years old build problem must be outdated, closing.

Note: See TracTickets for help on using tickets.