On Tue, 2004-02-24 at 11:54 +0200, Panu Matilainen wrote: > You need to initialize rpm first by calling rpmReadConfigFiles(). > However calls to rpmGetArchInfo() and rpmGetOsInfo() are surrounded by > #ifdef DYING, rpm itself uses this instead: > const char *platform = rpmExpand("%{_target_platform}", NULL); > const char *arch = rpmExpand("%{_target_cpu}", NULL); > const char *os = rpmExpand("%{_target_os}", NULL); > Thanks I was trying to read the arch info into my program's config.globals, long before i called rpmReadConfigFiles(). Dave Farning _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list