Your message dated Mon, 2 Jul 2012 11:43:27 +0200
with message-id 
<CAEfaS0MV9NZKfJMhP4HT=qmnc2fsvfq3gh_rsjwakv2bglv...@mail.gmail.com>
and subject line Re: Bug#679514: libbabl-dev: Compilation failure due to 
incomplete type
has caused the Debian Bug report #679514,
regarding libbabl-dev: Compilation failure due to incomplete type
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
679514: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679514
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
Package: libbabl-dev
Version: 0.1.10-1

Hi!

On Mon, Jul 2, 2012 at 11:14 AM, Olaf Meeuwissen
<[email protected]> wrote:
> Yes it does.  I guess then that all Babl "subtypes" are to be treated as
> opaque and any access to member variables is to go through the function
> API instead.

Good to know.

So, I'm closing this bug report since the issue has been solved.

Anyhow, feel free to re-open it if the solution is not enough for you
(probably you should ask upstream directly, in that case).

Thanks for your contribution to Debian!

Cheers.

-- 
Matteo F. Vescovi
Debian Maintainer
GnuPG KeyID: 83B2CF7A


--- End Message ---

Reply via email to