Re: Errors in rpmfind 1.2 compile

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Thu Apr 08 1999 - 09:19:25 EDT


On Thu, Apr 08, 1999 at 08:56:07AM -0400, Brian Bruns wrote:
> Hello, I think I've found a bug in the compiling of rpmfind 1.2...
>
> Here is the error I am getting (I built this from the rpmfind srpm):
>
> gcc -O2 -Wall -I. -I./XML -c rpmfind.c
> rpmfind.c: In function `initializeRpmLookup':
> rpmfind.c:1483: too few arguments to function `rpmReadConfigFiles'
> make: *** [rpmfind.o] Error 1
>
> I'm using rpm 2.92 (from the latest redhat rawhide release).

  the code says:
#if defined(HAVE_RPM_RPMIO_H) /* XXX hack to detect rpm 3.0 */
    rpmReadConfigFiles(NULL, NULL);
#else
    rpmReadConfigFiles(NULL, NULL, NULL, 0);
#endif

  Seems that 2.92 has rpm/rpmio.h installed but the rpmReadConfigFiles
still requires 4 args. I guess it's really dependant on this exact version
it compiles fine with old rpm-devel (#else) and should work fine with the
latest rpm-3.0 once released ...
  You can hack the code just for the purpose of releasing a version for
the intermediate release.

Daniel

-- 
	    [Yes, I have moved back to France !]
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux, WWW, rpmfind,
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | rpm2html, XML,
http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu May 10 2001 - 18:40:10 EDT