LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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: 13
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 Guru
 
Registered: May 2008
Posts: 5,037
Blog Entries: 16

Rep: Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668
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: 13
Chapeau sir ! Well spotted.
 
Old 05-20-2017, 02:33 PM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,169

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
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: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,321

Rep: Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673
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: 1,703

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
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: 3,985

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration