On Tue, 24 Feb 2004, David Farning wrote: > I am trying to pull the system arch from rpmlib using > > rpmGetArchInfo((const char **)&os_name, &os_val); > > my output is > > warning: Unknown system: (null) > warning: Please contact rpm-list@xxxxxxxxxx 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); - Panu - _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list