From goochmi at gmail.com Thu May 21 12:57:03 2015 From: goochmi at gmail.com (Michael Gooch) Date: Thu, 21 May 2015 15:57:03 -0400 Subject: Is PKG_CONFIG_PATH being ignored by pkg-config in some circumstances? Message-ID: <555E388F.9050903@gmail.com> either that or it is not capable of handling the ':' separated list in PKG_CONFIG_PATH that the manual file says it is. I am using modules http://modules.sourceforge.net/ I cannot load all the modules' *.pc files into the same directory, because conflicting files may exist in different builds. I REQUIRE that the pkg-config utilities work as described by searching all the paths listed in PKG_CONFIG_PATH and not expecting only a single path there, or all files in a central location. do I need to enable that behavior by adding a configure flag to the pkg-config build process? what do I do? for instance I am trying to compile R and have it link against cairo, but pkg-config is telling R that i doesn't know anything about cairo, despite it being installed at /UCHC/HPC/Gooch/biotoolmodules/cairo/1.14.2, having the /lib/pkgconfig directory with the required files, and having that path added to PKG_CONFIG_PATH the current value of PKG_CONFIG_PATH is : /UCHC/HPC/Gooch/biotoolmodules/curl/7.42.1/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/openssl/1.0.2a/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/libmetalink/0.1.2/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/libIDN/1.30/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/glib2/2.44.0/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/pixman/0.32.6/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/libsigc++/2.4.1/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/cairo/1.14.2/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/libffi/3.2.1/lib/pkgconfig:/UCHC/HPC/Gooch/biotoolmodules/gcc/5.1.0/lib64/pkgconfig the contents of the manfile says: PKG_CONFIG_PATH A colon-separated (on Windows, semicolon-separated) list of directories to search for .pc files. The default directory will always be searched after searching the path; the default is libdir/pkgconfig:datadir/pkgconfig where libdir is the libdir for pkg-config and datadir is the datadir for pkg-config when it was installed. so i'm not sure what is going wrong. sometimes pkg-config --list-all shows me all the packages, other times i get no return text at all. From dank at kegel.com Thu May 21 13:13:48 2015 From: dank at kegel.com (Dan Kegel) Date: Thu, 21 May 2015 13:13:48 -0700 Subject: Is PKG_CONFIG_PATH being ignored by pkg-config in some circumstances? In-Reply-To: <555E388F.9050903@gmail.com> References: <555E388F.9050903@gmail.com> Message-ID: I had to debug a mysterious problem like that recently; it was caused by a missing package. strace -e trace=file was very helpful for seeing what pkgconfig was doing. From nicholson at endlessm.com Thu May 21 17:26:17 2015 From: nicholson at endlessm.com (Dan Nicholson) Date: Thu, 21 May 2015 17:26:17 -0700 Subject: Is PKG_CONFIG_PATH being ignored by pkg-config in some circumstances? In-Reply-To: References: <555E388F.9050903@gmail.com> Message-ID: On Thu, May 21, 2015 at 1:13 PM, Dan Kegel wrote: > I had to debug a mysterious problem like that recently; it was caused > by a missing package. > > strace -e trace=file was very helpful for seeing what pkgconfig was doing. You can also try running "pkg-config --debug --exists cairo" to see exactly what pkg-config is trying to do. What you're doing should be supported. -- Dan From nicholson at endlessm.com Thu May 21 17:55:04 2015 From: nicholson at endlessm.com (Dan Nicholson) Date: Thu, 21 May 2015 17:55:04 -0700 Subject: Is PKG_CONFIG_PATH being ignored by pkg-config in some circumstances? In-Reply-To: <555E78E7.3000402@gmail.com> References: <555E388F.9050903@gmail.com> <555E78E7.3000402@gmail.com> Message-ID: On May 21, 2015 5:31 PM, "Michael Gooch" wrote: > > if i use echo $? after running the exists command for cairo i get a 1. Its supposed to be a zero in the event of success right? maybe i'm missing a dependency (or a pkg config path for that dependency) that cairo needs to consider itself functional and present. > > I do see that it is searching for several things. > > M. Gooch > > P.S. here is the output of the command with the debug thrown in > > http://pastebin.com/xcbGMpBR If that's the entire output, it looks like it stops looking for fontconfig. Also, what version of pkg-config are you using? It says it doesn't recognize Libs.private, which has been supported for a long time. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: