Pkg-config fails when a package is flagged as conflicting with itself

Thomas Moulard thomas.moulard at
Tue Jul 14 21:11:50 PDT 2009

I ran into this problem by chance.
It is quite easy to reproduce you just have to make a package conflict
with itself
and any call of pkg-config refering to that package will produce a segv.

 pkg-config --modversion foo
zsh: segmentation fault  pkg-config --modversion foo

$ pkg-config --version

Also, if a package requires itself, it enters an infinite loop and
stop when open fails
because too many files are opened.
pkg-config then stop properly but I think that loop detection would
produce easier
to read error messages and wouldn't be that hard to implement.

Any thoughts about this or maybe is it already fixed in recent versions...?

Thomas Moulard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.pc
Type: application/octet-stream
Size: 309 bytes
Desc: not available
Url : 

More information about the pkg-config mailing list