Package: libbabl-dev
Version: 0.1.10-1
Severity: important
Tags: upstream

The following minimal program illustrates the problem.

  #include <babl/babl.h>

  #include <stdlib.h>
  #include <stdio.h>

  int
  main (int argc, const char *const argv[])
  {
    babl_init ();

    const Babl * babl = babl_format ("RGB u8");

    printf ("RGB u8 bytes per pixel = %d", babl->format.bytes_per_pixel);

    return EXIT_SUCCESS;
  }

Compile as follows:

  gcc -I/usr/include/babl-0.1 -c -o test.o test.c
  test.c: In function ‘main’:
  test.c:13:46: error: dereferencing pointer to incomplete type

Results for g++ are a bit more explicit:

  g++ -I/usr/include/babl-0.1 -c -o test.o test.cpp
  test.cpp: In function ‘int main(int, const char* const*)’:
  test.cpp:13:46: error: invalid use of incomplete type ‘const Babl {aka
const union _Babl}’
  /usr/include/babl-0.1/babl/babl-types.h:31:15: error: forward declaration of
‘const Babl {aka const union _Babl}’

Compiler versions:
  gcc (Debian 4.6.3-1) 4.6.3
  g++ (Debian 4.6.3-1) 4.6.3

It appears that the babl-classes.h header file, which defines union _Babl, does
not get installed by the upstream babl/Makefile.am.  However, this header file
references a pile of other apparently internal header files so I'm not sure
whether it should be installed.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.utf8, LC_CTYPE=ja_JP.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libbabl-dev depends on:
ii  libbabl-0.1-0  0.1.10-1

libbabl-dev recommends no packages.

libbabl-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