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

Bug#43073: using libdpkg



Package: dpkg
Version: 1.4.1.6
Severity: important

libdpkg's unusable for development

#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <stdio.h>

int main(void) {
        int tmp;

        modstatdb_init("/var/lib/dpkg", msdbrw_readonly);


        tmp = countpackages();
        printf("pkg: %d\n", tmp);

        modstatdb_shutdown();
}

... you get a pile of parse error before ... -> data definition has no
type or storage class.

All those parse errors are due to #define's in config.h within the dpkg 
source code.

potato, kernel: 2.2.10, libc6: 2.1.2-0pre7


Reply to: