LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-18-2017, 03:10 PM   #1
Bertical
Member
 
Registered: Oct 2008
Location: Kingdom of Mercia
Distribution: Slackware
Posts: 83

Rep: Reputation: 14
pkg-config mystery


Code:
[titch@quackers ~]$ pkg-config --variable pc_path pkg-config
/usr/lib64/pkgconfig:/usr/share/pkgconfig
Code:
[titch@quackers ~]$ set | grep PKG_CONFIG
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
Code:
[titch@quackers ~]$ pkg-config --list-all
Nothing ! There's over 800 modules in /usr/lib64/pkgconfig ! Why don't they list ? Slackware64-current.
 
Old 05-18-2017, 03:55 PM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
It's because gkrellm.pc is corrupt (it has literal '\n' rather than a real \n).
You can fix it with a sed -i -e 's/\\n/\n/g' /usr/lib64/pkgconfig/gkrellm.pc


I found it by doing a pkg-config --validate *.pc in /usr/lib64/pkgconfig

P.S. I'll mention this in the 'requests for current thread' so Pat picks it up.

Last edited by GazL; 05-18-2017 at 04:02 PM.
 
2 members found this post helpful.
Old 05-20-2017, 01:52 PM   #3
Bertical
Member
 
Registered: Oct 2008
Location: Kingdom of Mercia
Distribution: Slackware
Posts: 83

Original Poster
Rep: Reputation: 14
Chapeau sir ! Well spotted.
 
Old 05-20-2017, 02:33 PM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Wow , in 14.2 i got this

Quote:
pkg-config --validate /usr/lib64/pkgconfig/*.pc
Quote:
Package '/gkrellm' has no Name: field
 
Old 05-20-2017, 07:43 PM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by USUARIONUEVO View Post
Wow , in 14.2 i got this
Yep, it's been broken a while, it seems.

Code:
cranium@toshiba:~$ cat /usr/lib64/pkgconfig/gkrellm.pc 
prefix=/usr\nName: GKrellM\nDescription: Extensible GTK system monitoring application\nVersion: 2.3.7\nRequires: gtk+-2.0 >= 2.4.0\nCflags: -I/usr/include\n
cranium@toshiba:~$  pkg-config --list-all | grep gkrellm
cranium@toshiba:~$
 
Old 05-21-2017, 01:26 AM   #6
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,212

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
The latest release (2.3.10) compiled with the Pat, SlackBuild, Does not seem to have this problem.
 
Old 05-21-2017, 02:01 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Apparently, it has been fixed since almost 1 year ago via this commit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pkg-config sinXposed Linux - Software 12 10-30-2008 05:48 AM
pkg-config help gexzd Linux - Newbie 14 05-03-2004 10:27 AM
How do i use PKG-Config? A1Ph4 Linux - Software 1 08-08-2003 09:06 PM
pkg-config TraCe66 Linux - Newbie 1 07-01-2003 02:56 PM
pkg-config Keebler Linux - Software 2 04-30-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration