Getting rid of annoying (but harmless) linking warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hiya,

'Twas brillig, and Maarten Bosmans at 26/03/11 11:28 did gyre and gimble:
> Check whether output of
> pkg-config --libs dbus-1
> pkg-config --libs sndfile
> contains any offensive parameters.
> 
> If there is anything out of the ordinary, cat libpulsecommon-1.0.la
> could also reveal something, as I suspect your problem has more to do
> with libtool than with autotools.

OK, this took me a while to chase down, but it turned out to be coming
from two different places, and required fixes in three other packages on
my system. No change in PA needed.

1. libasyncns. It's libasyncns.pc file was giving out bogus libdir
flags. That is fixed with this patch (Lennart, please commit this to
upstream libasyncns please!)

http://svnweb.mageia.org/packages/cauldron/libasyncns/current/SOURCES/libasyncns-0.8-libdir.patch?revision=77953&view=markup

2. flac (libFLAC) is a bit weird. It detects ogg support automatically,
but if you do not pass an appropriate configure flag to it, will include
/usr/lib in it's .la files. I applied the following patch to ensure that
the ogg.m4 file was the same as the one provided by libogg itself
(although strictly speaking this is not needed):
http://svnweb.mageia.org/packages/cauldron/flac/current/SOURCES/flac-1.2.1-ogg-m4.patch?revision=77968&view=markup

And then ensured the --with-ogg argument was passed to configure. By
passing this argument, the /usr/lib path was not leaked. Go figure.

3. I rebuilt libsndfile as this pulled in the leaky libdir path from
flac in it's libsndfile.la file.


After all that, everything is nice and quiet :)

Thanks for the hints in tracking it down.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux