Strange GLib error in pkg-config resultPkg-Config Error (No such file or directory)How do I add QtDeclarative to the pkg-config list“pkg-config --modversion glib-2.0” reports older versioncompile error: library is installed (apt-cache policy shows it) but pkg-config does not find itcpan installer fails with “Cannot find pkg-config command.”Package libprotobuf was not found in the pkg-config search path

How to change the order of integration when limit is a function?

How to accompany with piano in latin music when given only chords?

Is having your hand in your pocket during a presentation bad?

Non-electric Laser

Choice of solvent during thin layer chromatography

What are the limits on an impeached and not convicted president?

Why is the time of useful consciousness only seconds at high altitudes, when I can hold my breath much longer at ground level?

Vim freezes after Ctrl-S

Proof of bound on optimal TSP tour length in rectangular region

Coffee Grounds and Gritty Butter Cream Icing

How to prove (A v B), (A → C), (B → D) therefore (C v D)

Should I be able to see patterns in a HS256 encoded JWT?

Is Zhent just the term for any member of the Zhentarim?

Why do many websites hide input when entering a OTP

Is "Ram married his daughter" ambiguous?

How are characteristic classes morphisms of infinite loop spaces? (if they are)

Search for something difficult to count/estimate

Would we have more than 8 minutes of light, if the sun "went out"?

Network dynamic failover does not work if IP address differs between ethernet and wifi

Does python reuse repeated calculation results?

What kind of nut is this

What are the X Units for an elevation profile and how can I change them to meters?

Determine the Winner of a Game of Australian Football

How to nest multiple functions with multiple variables



Strange GLib error in pkg-config result


Pkg-Config Error (No such file or directory)How do I add QtDeclarative to the pkg-config list“pkg-config --modversion glib-2.0” reports older versioncompile error: library is installed (apt-cache policy shows it) but pkg-config does not find itcpan installer fails with “Cannot find pkg-config command.”Package libprotobuf was not found in the pkg-config search path






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2















Ubuntu 18.04 fresh installed.



$ pkg-config --list-all 2>&1 | grep -A2 -B2 GLib

(pkg-config:31662): GLib-CRITICAL **: 06:08:21.279: g_string_insert_len: assertion 'len == 0 || val != NULL' failed


What the hell is this? Is this something we need to fix?
It happens every time I use pkg-config



I had some GLib error during installation already. But system is somehow usable. More like a GLib problem. How can we fix this? And where is the problem actually?



update according @N0rbert



#dpkg --verify


Does not yield any related file change, only some common gnome tweaking xml and conf files.
Install the libglib2.0-dev does not help either. Same error pop up after pkg-config --list-all
Reinstall with the --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data does not help either. Well the find is the same as the repo one, so I do not expect this will change anything.










share|improve this question


























  • Looks like a bug in pkg-config

    – Elias
    Apr 16 at 22:24











  • @Elias more like a GLib bug?

    – Wang
    Apr 16 at 22:36

















2















Ubuntu 18.04 fresh installed.



$ pkg-config --list-all 2>&1 | grep -A2 -B2 GLib

(pkg-config:31662): GLib-CRITICAL **: 06:08:21.279: g_string_insert_len: assertion 'len == 0 || val != NULL' failed


What the hell is this? Is this something we need to fix?
It happens every time I use pkg-config



I had some GLib error during installation already. But system is somehow usable. More like a GLib problem. How can we fix this? And where is the problem actually?



update according @N0rbert



#dpkg --verify


Does not yield any related file change, only some common gnome tweaking xml and conf files.
Install the libglib2.0-dev does not help either. Same error pop up after pkg-config --list-all
Reinstall with the --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data does not help either. Well the find is the same as the repo one, so I do not expect this will change anything.










share|improve this question


























  • Looks like a bug in pkg-config

    – Elias
    Apr 16 at 22:24











  • @Elias more like a GLib bug?

    – Wang
    Apr 16 at 22:36













2












2








2








Ubuntu 18.04 fresh installed.



$ pkg-config --list-all 2>&1 | grep -A2 -B2 GLib

(pkg-config:31662): GLib-CRITICAL **: 06:08:21.279: g_string_insert_len: assertion 'len == 0 || val != NULL' failed


What the hell is this? Is this something we need to fix?
It happens every time I use pkg-config



I had some GLib error during installation already. But system is somehow usable. More like a GLib problem. How can we fix this? And where is the problem actually?



update according @N0rbert



#dpkg --verify


Does not yield any related file change, only some common gnome tweaking xml and conf files.
Install the libglib2.0-dev does not help either. Same error pop up after pkg-config --list-all
Reinstall with the --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data does not help either. Well the find is the same as the repo one, so I do not expect this will change anything.










share|improve this question
















Ubuntu 18.04 fresh installed.



$ pkg-config --list-all 2>&1 | grep -A2 -B2 GLib

(pkg-config:31662): GLib-CRITICAL **: 06:08:21.279: g_string_insert_len: assertion 'len == 0 || val != NULL' failed


What the hell is this? Is this something we need to fix?
It happens every time I use pkg-config



I had some GLib error during installation already. But system is somehow usable. More like a GLib problem. How can we fix this? And where is the problem actually?



update according @N0rbert



#dpkg --verify


Does not yield any related file change, only some common gnome tweaking xml and conf files.
Install the libglib2.0-dev does not help either. Same error pop up after pkg-config --list-all
Reinstall with the --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data does not help either. Well the find is the same as the repo one, so I do not expect this will change anything.







pkg-config






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 17 at 15:20







Wang

















asked Apr 16 at 22:19









WangWang

1337 bronze badges




1337 bronze badges















  • Looks like a bug in pkg-config

    – Elias
    Apr 16 at 22:24











  • @Elias more like a GLib bug?

    – Wang
    Apr 16 at 22:36

















  • Looks like a bug in pkg-config

    – Elias
    Apr 16 at 22:24











  • @Elias more like a GLib bug?

    – Wang
    Apr 16 at 22:36
















Looks like a bug in pkg-config

– Elias
Apr 16 at 22:24





Looks like a bug in pkg-config

– Elias
Apr 16 at 22:24













@Elias more like a GLib bug?

– Wang
Apr 16 at 22:36





@Elias more like a GLib bug?

– Wang
Apr 16 at 22:36










1 Answer
1






active

oldest

votes


















1
















1. Check system integrity



I do not see GLib-CRITICAL messages on my systems, so if unsure, then reinstall related packages with:



sudo apt-get install --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data


If problem persists, then check system integrity with:



sudo dpkg --verify


or debsums:



sudo apt-get install debsums
sudo debsums --all --changed


and reinstall packages with possible damaged/missed/changed files.



2. Install packages with *.pc files



About *.pc files. If you visit search on https://packages.ubuntu.com and evaluate search for *.pc files inside packages you will see the long list of related packages and files:




glib .pc s




So you need to install some related dev-packages.



At least one libglib2.0-dev with glib-2.0.pc:



sudo apt-get install libglib2.0-dev


and you will get something like:




$ pkg-config --list-all | grep -A2 -B2 GLib
iso-codes iso-codes - ISO country, language, script and currency codes and translations
caja-python Caja-Python - Caja-Python Components
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
gmodule-export-2.0 GModule - Dynamic module loader for GLib
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
geoclue-2.0 Geoclue - The Geoinformation Service
--
adwaita-icon-theme gnome-icon-theme - A collection of icons used as the basis for GNOME themes
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
glib-2.0 GLib - C Utility Library
mate-keybindings mate-keybindings - Keybindings configuration for MATE applications
gmodule-2.0 GModule - Dynamic module loader for GLib
gnome-system-tools gst - Gnome System Tools
gthread-2.0 GThread - Thread support for GLib
caja-sendto caja-sendto - Extend caja-sendto through plugins
xbitmaps X bitmaps - Bitmaps that are shared between X applications
--
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
xkeyboard-config XKeyboardConfig - X Keyboard configuration data
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
xkbcomp xkbcomp - XKB keymap compiler



(tested on clean Ubuntu 18.04.2 LTS virtual machine)




Note: Debian and Ubuntu are not source-based GNU/Linux distributions, i.e. they are not Gentoo or Funtoo. For latter it is expected to have includes and development packages and tools preinstalled, but for Debian it is not expected.






share|improve this answer



























  • In theory, if no other dev repo want this GLib pc info, pkg-config shouldn't even bother to check right? There must be some other packages installed some pc which leads to request this info, but in the mean time fail to make dependencies on it?

    – Wang
    Apr 17 at 15:07












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134494%2fstrange-glib-error-in-pkg-config-result%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1
















1. Check system integrity



I do not see GLib-CRITICAL messages on my systems, so if unsure, then reinstall related packages with:



sudo apt-get install --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data


If problem persists, then check system integrity with:



sudo dpkg --verify


or debsums:



sudo apt-get install debsums
sudo debsums --all --changed


and reinstall packages with possible damaged/missed/changed files.



2. Install packages with *.pc files



About *.pc files. If you visit search on https://packages.ubuntu.com and evaluate search for *.pc files inside packages you will see the long list of related packages and files:




glib .pc s




So you need to install some related dev-packages.



At least one libglib2.0-dev with glib-2.0.pc:



sudo apt-get install libglib2.0-dev


and you will get something like:




$ pkg-config --list-all | grep -A2 -B2 GLib
iso-codes iso-codes - ISO country, language, script and currency codes and translations
caja-python Caja-Python - Caja-Python Components
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
gmodule-export-2.0 GModule - Dynamic module loader for GLib
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
geoclue-2.0 Geoclue - The Geoinformation Service
--
adwaita-icon-theme gnome-icon-theme - A collection of icons used as the basis for GNOME themes
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
glib-2.0 GLib - C Utility Library
mate-keybindings mate-keybindings - Keybindings configuration for MATE applications
gmodule-2.0 GModule - Dynamic module loader for GLib
gnome-system-tools gst - Gnome System Tools
gthread-2.0 GThread - Thread support for GLib
caja-sendto caja-sendto - Extend caja-sendto through plugins
xbitmaps X bitmaps - Bitmaps that are shared between X applications
--
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
xkeyboard-config XKeyboardConfig - X Keyboard configuration data
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
xkbcomp xkbcomp - XKB keymap compiler



(tested on clean Ubuntu 18.04.2 LTS virtual machine)




Note: Debian and Ubuntu are not source-based GNU/Linux distributions, i.e. they are not Gentoo or Funtoo. For latter it is expected to have includes and development packages and tools preinstalled, but for Debian it is not expected.






share|improve this answer



























  • In theory, if no other dev repo want this GLib pc info, pkg-config shouldn't even bother to check right? There must be some other packages installed some pc which leads to request this info, but in the mean time fail to make dependencies on it?

    – Wang
    Apr 17 at 15:07















1
















1. Check system integrity



I do not see GLib-CRITICAL messages on my systems, so if unsure, then reinstall related packages with:



sudo apt-get install --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data


If problem persists, then check system integrity with:



sudo dpkg --verify


or debsums:



sudo apt-get install debsums
sudo debsums --all --changed


and reinstall packages with possible damaged/missed/changed files.



2. Install packages with *.pc files



About *.pc files. If you visit search on https://packages.ubuntu.com and evaluate search for *.pc files inside packages you will see the long list of related packages and files:




glib .pc s




So you need to install some related dev-packages.



At least one libglib2.0-dev with glib-2.0.pc:



sudo apt-get install libglib2.0-dev


and you will get something like:




$ pkg-config --list-all | grep -A2 -B2 GLib
iso-codes iso-codes - ISO country, language, script and currency codes and translations
caja-python Caja-Python - Caja-Python Components
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
gmodule-export-2.0 GModule - Dynamic module loader for GLib
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
geoclue-2.0 Geoclue - The Geoinformation Service
--
adwaita-icon-theme gnome-icon-theme - A collection of icons used as the basis for GNOME themes
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
glib-2.0 GLib - C Utility Library
mate-keybindings mate-keybindings - Keybindings configuration for MATE applications
gmodule-2.0 GModule - Dynamic module loader for GLib
gnome-system-tools gst - Gnome System Tools
gthread-2.0 GThread - Thread support for GLib
caja-sendto caja-sendto - Extend caja-sendto through plugins
xbitmaps X bitmaps - Bitmaps that are shared between X applications
--
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
xkeyboard-config XKeyboardConfig - X Keyboard configuration data
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
xkbcomp xkbcomp - XKB keymap compiler



(tested on clean Ubuntu 18.04.2 LTS virtual machine)




Note: Debian and Ubuntu are not source-based GNU/Linux distributions, i.e. they are not Gentoo or Funtoo. For latter it is expected to have includes and development packages and tools preinstalled, but for Debian it is not expected.






share|improve this answer



























  • In theory, if no other dev repo want this GLib pc info, pkg-config shouldn't even bother to check right? There must be some other packages installed some pc which leads to request this info, but in the mean time fail to make dependencies on it?

    – Wang
    Apr 17 at 15:07













1














1










1









1. Check system integrity



I do not see GLib-CRITICAL messages on my systems, so if unsure, then reinstall related packages with:



sudo apt-get install --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data


If problem persists, then check system integrity with:



sudo dpkg --verify


or debsums:



sudo apt-get install debsums
sudo debsums --all --changed


and reinstall packages with possible damaged/missed/changed files.



2. Install packages with *.pc files



About *.pc files. If you visit search on https://packages.ubuntu.com and evaluate search for *.pc files inside packages you will see the long list of related packages and files:




glib .pc s




So you need to install some related dev-packages.



At least one libglib2.0-dev with glib-2.0.pc:



sudo apt-get install libglib2.0-dev


and you will get something like:




$ pkg-config --list-all | grep -A2 -B2 GLib
iso-codes iso-codes - ISO country, language, script and currency codes and translations
caja-python Caja-Python - Caja-Python Components
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
gmodule-export-2.0 GModule - Dynamic module loader for GLib
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
geoclue-2.0 Geoclue - The Geoinformation Service
--
adwaita-icon-theme gnome-icon-theme - A collection of icons used as the basis for GNOME themes
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
glib-2.0 GLib - C Utility Library
mate-keybindings mate-keybindings - Keybindings configuration for MATE applications
gmodule-2.0 GModule - Dynamic module loader for GLib
gnome-system-tools gst - Gnome System Tools
gthread-2.0 GThread - Thread support for GLib
caja-sendto caja-sendto - Extend caja-sendto through plugins
xbitmaps X bitmaps - Bitmaps that are shared between X applications
--
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
xkeyboard-config XKeyboardConfig - X Keyboard configuration data
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
xkbcomp xkbcomp - XKB keymap compiler



(tested on clean Ubuntu 18.04.2 LTS virtual machine)




Note: Debian and Ubuntu are not source-based GNU/Linux distributions, i.e. they are not Gentoo or Funtoo. For latter it is expected to have includes and development packages and tools preinstalled, but for Debian it is not expected.






share|improve this answer















1. Check system integrity



I do not see GLib-CRITICAL messages on my systems, so if unsure, then reinstall related packages with:



sudo apt-get install --reinstall libglib2.0-0 libglib2.0-bin libglib2.0-data


If problem persists, then check system integrity with:



sudo dpkg --verify


or debsums:



sudo apt-get install debsums
sudo debsums --all --changed


and reinstall packages with possible damaged/missed/changed files.



2. Install packages with *.pc files



About *.pc files. If you visit search on https://packages.ubuntu.com and evaluate search for *.pc files inside packages you will see the long list of related packages and files:




glib .pc s




So you need to install some related dev-packages.



At least one libglib2.0-dev with glib-2.0.pc:



sudo apt-get install libglib2.0-dev


and you will get something like:




$ pkg-config --list-all | grep -A2 -B2 GLib
iso-codes iso-codes - ISO country, language, script and currency codes and translations
caja-python Caja-Python - Caja-Python Components
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
gmodule-export-2.0 GModule - Dynamic module loader for GLib
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
geoclue-2.0 Geoclue - The Geoinformation Service
--
adwaita-icon-theme gnome-icon-theme - A collection of icons used as the basis for GNOME themes
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
glib-2.0 GLib - C Utility Library
mate-keybindings mate-keybindings - Keybindings configuration for MATE applications
gmodule-2.0 GModule - Dynamic module loader for GLib
gnome-system-tools gst - Gnome System Tools
gthread-2.0 GThread - Thread support for GLib
caja-sendto caja-sendto - Extend caja-sendto through plugins
xbitmaps X bitmaps - Bitmaps that are shared between X applications
--
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
xkeyboard-config XKeyboardConfig - X Keyboard configuration data
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
xkbcomp xkbcomp - XKB keymap compiler



(tested on clean Ubuntu 18.04.2 LTS virtual machine)




Note: Debian and Ubuntu are not source-based GNU/Linux distributions, i.e. they are not Gentoo or Funtoo. For latter it is expected to have includes and development packages and tools preinstalled, but for Debian it is not expected.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 17 at 8:46

























answered Apr 17 at 7:40









N0rbertN0rbert

32.3k10 gold badges76 silver badges155 bronze badges




32.3k10 gold badges76 silver badges155 bronze badges















  • In theory, if no other dev repo want this GLib pc info, pkg-config shouldn't even bother to check right? There must be some other packages installed some pc which leads to request this info, but in the mean time fail to make dependencies on it?

    – Wang
    Apr 17 at 15:07

















  • In theory, if no other dev repo want this GLib pc info, pkg-config shouldn't even bother to check right? There must be some other packages installed some pc which leads to request this info, but in the mean time fail to make dependencies on it?

    – Wang
    Apr 17 at 15:07
















In theory, if no other dev repo want this GLib pc info, pkg-config shouldn't even bother to check right? There must be some other packages installed some pc which leads to request this info, but in the mean time fail to make dependencies on it?

– Wang
Apr 17 at 15:07





In theory, if no other dev repo want this GLib pc info, pkg-config shouldn't even bother to check right? There must be some other packages installed some pc which leads to request this info, but in the mean time fail to make dependencies on it?

– Wang
Apr 17 at 15:07


















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134494%2fstrange-glib-error-in-pkg-config-result%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?