[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778531: libdebian-installer4-dev: Cannot include from C++



Package: libdebian-installer4-dev
Version: 0.98
Severity: normal

I cannot build C++ programs using this library. G++ shows a lot of errors and warnings.

/usr/include/debian-installer/package.h:32:14: error: use of enum ‘di_package_dependency_type’ without previous declaration
 typedef enum di_package_dependency_type di_package_dependency_type;
              ^
/usr/include/debian-installer/package.h:32:67: error: invalid type in declaration before ‘;’ token
 typedef enum di_package_dependency_type di_package_dependency_type;
                                                                   ^
/usr/include/debian-installer/package.h:33:14: error: use of enum ‘di_package_priority’ without previous declaration
 typedef enum di_package_priority di_package_priority;
              ^
/usr/include/debian-installer/package.h:33:53: error: invalid type in declaration before ‘;’ token
 typedef enum di_package_priority di_package_priority;
                                                     ^
....

/usr/include/debian-installer/package.h: In function ‘di_package* di_package_alloc(di_packages_allocator*)’:
/usr/include/debian-installer/package.h:161:59: error: invalid conversion from ‘void*’ to ‘di_package*’ [-fpermissive]
   return di_mem_chunk_alloc0 (allocator->package_mem_chunk);
                                                           ^
/usr/include/debian-installer/package.h: In function ‘di_package_dependency* di_package_dependency_alloc(di_packages_allocator*)’:
/usr/include/debian-installer/package.h:166:70: error: invalid conversion from ‘void*’ to ‘di_package_dependency*’ [-fpermissive]
   return di_mem_chunk_alloc0 (allocator->package_dependency_mem_chunk);
                                                                      ^
Also, there is no extern "C"-trick in the headers.

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libdebian-installer4-dev depends on:
ii  libdebian-installer-extra4  0.98
ii  libdebian-installer4        0.98

libdebian-installer4-dev recommends no packages.

libdebian-installer4-dev suggests no packages.

-- no debconf information


Reply to: