Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json-c12 and 13 has invalid spec with Cflags: -I${includedir}/json-c #10

Open
ni4 opened this issue Jun 18, 2024 · 0 comments
Open

json-c12 and 13 has invalid spec with Cflags: -I${includedir}/json-c #10

ni4 opened this issue Jun 18, 2024 · 0 comments

Comments

@ni4
Copy link

ni4 commented Jun 18, 2024

Having installed json-c12-devel from this repository on rhel8/ubi container, got the issues linking to the json-c12 with the CMake message:

CMake Error in src/tests/CMakeLists.txt:
  Imported target "JSON-C::JSON-C" includes non-existent path

    "/usr/include/json-c"

  in its INTERFACE_INCLUDE_DIRECTORIES.

After the check it appears that installed /usr/lib64/pkgconfig/json-c12.pc has the following contents, which should be a cause of error (notice Cflags has json-c, without the 12):

[root@ceca4766267b opt]# cat /usr/lib64/pkgconfig/json-c12.pc 
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include

Name: json-c
Description: JSON implementation in C
Version: 0.12.1
Requires: 
Libs:  -L${libdir} -ljson-c12
Cflags: -I${includedir}/json-c
@ni4 ni4 changed the title json-c12 has invalid spec with Cflags: -I${includedir}/json-c json-c12 and 13 has invalid spec with Cflags: -I${includedir}/json-c Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant