[Flac-dev] flac-1.1.0: libtool warnings

Matt Zimmerman mdz at debian.org
Wed Feb 4 17:07:01 PST 2004


On Thu, Feb 05, 2004 at 03:56:19AM +0300, Alexey Tourbin wrote:

> And thanks for flac.  There's a minor problem when compiling flac:
> libtool warns about mixing up shared and static libraries. Typical
> messages are:
> 
> *** Warning: Linking the shared library libxmms-flac.la against the
> *** static library ../../src/plugin_common/libplugin_common.a is not portable!
> 
> *** Warning: Linking the shared library libxmms-flac.la against the
> *** static library ../../src/share/grabbag/libgrabbag.a is not portable!
> 
> *** Warning: Linking the shared library libxmms-flac.la against the
> *** static library ../../src/share/gain_analysis/libgain_analysis.a is not portable!
> 
> *** Warning: Linking the shared library libxmms-flac.la against the
> *** static library ../../src/share/utf8/libutf8.a is not portable!
> 
> This is because libtool compiles so called position independent
> object code for shared libraries (-fPIC compiler option) and non-PIC
> code for static libraries and executables.  Bringing non-PIC code into
> shared libraries seems to be harmless, though definitely not
> recommended (it affects dynamic linker internals).
> 
> To fix this issue, simply turning static noinst_LIBRARIES into
> libootl noinst_LTLIBRARIES is enough.  Libtool then will manage PIC and
> non-PIC object code automagically.

I ran into the same issue shortly after the release, when updating the
Debian packages, so I fixed it in CVS:

date: 2003/02/07 02:43:02;  author: mzimmerman;  state: Exp;  lines: +2 -2
Build libtool archives instead of plain .a archives, so that PIC versions
are built and can they be portably linked into shared libraries.

However, there has't been a new release since then.

-- 
 - mdz




More information about the Flac-dev mailing list