pkg-config reports incorrect version

Daniel E. Macks dmacks at netspace.org
Fri Aug 11 09:43:12 PDT 2006


Rich Shepard <rshepard at appl-ecosys.com> said:
>    When I run 'pkg-config --modversion glib-2.0' it reports 2.8.6, but I have
> 2.12.1 installed. This mis-match confuses 'configure' when I try to build an
> application.
>
>    The man page and mail list archives did not suggest how I can tweak
> pkg-config to report the correctly installed library. Your help is needed to
> teach me how to resolve this.

I'd be more inclined to believe the bug is in glib2's pkg-config file
or in your system finding it. Check your glib-2.0.pc to see what the
Version field says. And try 'pkg-config --debug --modversion glib-2.0'
to track which directory's glib-2.0.pc file is being used. Maybe
there's more than one .pc file and pkg-config is picking the wrong
one?

dan

-- 
Daniel Macks
dmacks at netspace.org
http://www.netspace.org/~dmacks




More information about the pkg-config mailing list