[Pkg-lirc-maint] Bug#860039: liblirc-dev pkg-config does not provide proper include paths
Matthew Gabeler-Lee
cheetah at fastcat.org
Mon Apr 10 15:29:39 UTC 2017
Package: liblirc-dev
Version: 0.9.4c-9
Severity: normal
Trying to build an LIRC plugin using liblirc-dev doesn't work, because the installed pkg-config file does not provide proper include flags for the cflags output:
$ make
cc -I../usb_ir -fpic -DPLUGINDOCS=\"/usr/share/doc/lirc/plugindocs\" -c -o iguanair.o iguanair.c
In file included from /usr/include/lirc/ir_remote_types.h:52:0,
from /usr/include/lirc_driver.h:21,
from iguanair.c:31:
/usr/include/lirc/include/media/lirc.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
<builtin>: recipe for target 'iguanair.o' failed
make: *** [iguanair.o] Error 1
$ pkg-config --cflags lirc-driver
-fpic -DPLUGINDOCS=\"/usr/share/doc/lirc/plugindocs\"
$ ls /usr/include/lirc/config.h
/usr/include/lirc/config.h
It looks like it needs to export "-I/usr/include/lirc"
Which is strange because ... it also looks like it already does?
Cflags: -I${includedir} -fpic -DPLUGINDOCS='"${docdir}/plugindocs"'
Aaah, it seems that includedir is just set to /usr/include, but it needs to also give /usr/include/lirc
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages liblirc-dev depends on:
ii liblirc-client0 0.9.4c-9
ii liblirc0 0.9.4c-9
ii lsb-base 9.20161125
liblirc-dev recommends no packages.
liblirc-dev suggests no packages.
-- no debconf information
More information about the Pkg-lirc-maint
mailing list