Bug#686525: /usr/include/unicap/unicap.h: unicap.h uses "private" keyword as variable name
Jorge Muñoz
punkto at gmail.com
Sat Sep 1 14:27:22 UTC 2012
Package: libunicap2-dev
Version: 0.9.12-2
Severity: normal
File: /usr/include/unicap/unicap.h
Tags: upstream patch
As unicap uses "private" as a variable name, it is not possible to
compile this library with c++ code (usefull in OpenFrameworks 0.061,
for example).
Steps to reproduce:
1. Create a test file with
$ cat >> test_unicap.cpp << EOF
#include "unicap.h"
int main(){}
EOF
2. Try to compile it with:
$ g++ `pkg-config --cflags libunicap` -o test_unicap test_unicap.cpp
This will give the following error:
In file included from test_unicap.cpp:1:0:
/usr/include/unicap/unicap.h:218:34: error: expected unqualified-id before ‘private’
/usr/include/unicap/unicap.h:218:33: error: expected ‘;’ at end of member declaration
/usr/include/unicap/unicap.h:218:41: error: expected ‘:’ before ‘;’ token
This problem is fixed in upstream, but not in this version of unicap.
I have submitted a patch where the name of the variable is changed
in unicap.h as well as in unicap.c
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-3-486
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libunicap2-dev depends on:
ii libunicap2 0.9.12-2
libunicap2-dev recommends no packages.
libunicap2-dev suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unicap-debdiff
Type: text/x-diff
Size: 7069 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20120901/383d4c08/attachment.diff>
More information about the pkg-multimedia-maintainers
mailing list