pkg-config issues, modversion reporting is not correct and/or is outdated
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
pkg-config issues, modversion reporting is not correct and/or is outdated
Hello,
I was hoping someone who knows more than I regarding the functioning mechanisms of the pkg-config program can help me here.... in question is which version of glib-2.0 is installed-- which I know is version 2.49.2, because I just installed it. However, pkg-config continues to report the older version. to illustrate, I've provided the following two examples from terminal-- first running pkg-config, then ouputting hte countents of glib-2.0.pc:
what is the operating system ?
replacing the OS's glib with a DIFFERENT version can and WILL FUBAR it
Debian Unstable (booted with sysvinit instead of systemd). I already installed the newer version of glib, as far as I can tell anyway; but pkg-config doesn't think I did. I chose /usr for the prefix. Maybe glib uses a different prefix and that is why nothing has broken?
Last edited by firejuggler86; 07-16-2016 at 07:02 PM.
so you built a different version of glib instead of using the default deb
have fun ( you might want to reinstall the system ,if you are unable to reboot )
every now and then a *.pc file is not built
OR
and this is way more likely
you used the default /usr/local and installed it THERE
so the pc file in the default location did not change
/usr/lib64/pkgconfig/glib.pc
look in
/usr/local/lib64/pkgconfig
also you might want to read the output of
Code:
./configure --help
and software you are building
and then set the install location
like this
so you built a different version of glib instead of using the default deb
Sure did! Building from source is fun-- do it all the time .
I do appreciate the feedback, but if you go back and read the information I provided in the OP, you will see that the issue is neither that a .pc file failed to build, nor that it was installed in /usr/local instead of /usr.
So, I guess the broader question is this: what does pkg-config use for its search PATH? How can I check this? pkg-config is not a user that I can login as and run 'echo $PATH'. How does one go about finding out what a program's PATH is? Because, IF pkg-config displays modversions by finding .pc files, and if I have a .pc file in /usr/lib/pkgconfig that does reflect the newer version I installed, then there clearly must be a .pc file for the older version that comes first in pkg-config's PATH. (it's not in /usr/lib64 either-- which is why I would like to know how to see what PATH it DOES use-- so that I don't have to play guessing games trying to determine in which of the half dozen or more possible directories a file could be in).
I also use Debian sid and mine's in the expected directory: /usr/lib/x86_64-linux-gnu/pkgconfig/
Quote:
Building from source is fun-- do it all the time
I enjoy a good source build too, but I don't think I'd mess around with something as widely depended upon as libglib.
BTW, I still don't understand how you installed your copy of glib 2.49.2. Did you actually install it to /usr and overwrite the installed 2.48 version (extremely bad) or install it locally in /usr/local, or something else?
IMO, you would have been better off grabbing 2.49.2 from experimental if you really, really needed it.
Quote:
it's not in /usr/lib64
Debian hasn't used this path in about 5 years or so. Sorry, but the fact that you didn't know that doesn't do anything to alleviate concern that you're in over your head here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.