Package: libhiredis-dev
Version: 0.11.0-3
Severity: normal

Dear Maintainer,

hiredis.pc shipped in libhiredis-dev does not provide
-I/usr/include/hiredis when asked for --cflags.

However, examples in the same package include hiredis by #include <hiredis.h>,
so path to directory containing hiredis.h should be emitted by pkg-config.

See for yourself:
$ cd /usr/share/doc/libhiredis-dev/examples
$ gcc example.c $(pkg-config --cflags --libs hiredis)
example.c:5:21: fatal error: hiredis.h: No such file or directory
compilation terminated.
$ gcc -o /tmp/a.out example.c $(pkg-config --cflags --libs hiredis)
-I/usr/include/hiredis
$

I suppose

Cflags: -I${includedir} -D_FILE_OFFSET_BITS=64

should be changed to

Cflags: -I${includedir}/hiredis -D_FILE_OFFSET_BITS=64

in the .pc file.

-- System Information:
Debian Release: 7.1
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libhiredis-dev depends on:
ii  libhiredis0.10  0.11.0-3

libhiredis-dev recommends no packages.

libhiredis-dev suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to