Package: libpmix-dev
Version: 4.0.0-4
Severity: important

Dear Maintainer,

When asking for compilation flags to pkg-config for pmix, we get
no flags at all:

% pkg-config --cflags pmix

this is the case when headers are in /usr/include.
Indeed, when looking at the content of pmix.pc, we have:

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include
[...]
Cflags: -I${includedir}

but headers are actually installed in /usr/lib/x86_64-linux-gnu/pmix2
and not in /usr/include. The path for includes in pmix.pc is not
consistent with the place where the headers are actually installed.

We can confirm the bug by trying to build the examples:

% cd /usr/share/doc/libpmix-dev/examples
% gcc `pkg-config --cflags --libs pmix` client.c
client.c:34:10: fatal error: pmix.h: No such file or directory
   34 | #include <pmix.h>
      |          ^~~~~~~~
compilation terminated.

Either the headers should be installed in /usr/include, or the
path in pmix.pc should be point to the correct location.

Thanks.


-- System Information:
Debian Release: 11.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldoldstable'), (500, 'unstable'), (500, 
'testing'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-5-amd64 (SMP w/16 CPU threads)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpmix-dev depends on:
ii  libpmix2  4.0.0-4

libpmix-dev recommends no packages.

libpmix-dev suggests no packages.

-- no debconf information

Reply via email to