Bug#869152: lv2-dev: type conflict of <X11/Xlib.h> and <lv2.h>

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug#869152: lv2-dev: type conflict of <X11/Xlib.h> and <lv2.h>

Joël Krähemann-2
Package: lv2-dev
Version: 1.14.0~dfsg1-1
Severity: important

Dear Maintainer,

As doing #include <X11/Xlib.h> before <lv2.h> I get following compiler errors:

/usr/lib/lv2/atom.lv2/forge.h:114:11: error: two or more data types in declaration specifiers
LV2_URID Bool;
^
/usr/lib/lv2/atom.lv2/forge.h: In function 'lv2_atom_forge_init':
/usr/lib/lv2/atom.lv2/forge.h:147:9: error: expected identifier before 'int'
forge->Bool     = map->map(map->handle, LV2_ATOM__Bool);
^
/usr/lib/lv2/atom.lv2/forge.h: In function 'lv2_atom_forge_bool':
/usr/lib/lv2/atom.lv2/forge.h:408:54: error: expected identifier before 'int'
const LV2_Atom_Bool a = { { sizeof(int32_t), forge->Bool }, val ? 1 : 0 };
^

The compilation of my program aborted with the above error message. However
as swapping the include order, it compiles.

I was expecting no conflict in the header files.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-1-rt-amd64 (SMP w/24 CPU cores; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information