On Sep 17, 2009, at 1:50 PM, Saravanan Shanmugham (sarvi) wrote:
I am trying to compile and install RPM 5.1.9.tar.gz And am running into the following errors. Is there any configure option I should be trying.Has this been fixed in a later release? gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../db3 -I../db3 -I../pcre -I../pcre-DRPM_OS_LINUX=020609 -g -O2 -D_GNU_SOURCE -D_REENTRANT -MT rpmdigest.o-MD -MP -MF .deps/rpmdigest.Tpo -c -o rpmdigest.o rpmdigest.c rpmdigest.c:265: error: optionsTable[1].argInfo') rpmdigest.c:267: error: initializer element is not constantrpmdigest.c:267: error: (near initialization for POPT_ARG_ARGV' undeclared here (not in afunction)<BR>rpmdigest.c:265: error: initializer element is not constant<BR>rpmdigest.c:265: error: (near initialization foroptionsTable[1]')<BR>rpmdigest.c:270: error: initializer element is notconstant<BR></FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><SPAN class=156564317-17092009><FONT face=Arial size=2>Sarvi</FONT></SPAN></DIV></BODY></HTML>
You need popt-1.15 (or you need to patch out POPT_ARG_ARGV,which should be in slightly older versions of RPM, POPT_ARG_ARGV was added
to popt like a year ago or so). I'll attach a copy of a rpmdigest.c that has the necessary retrofit, rpmdigest.c is rather small. Look for the #if !defined(POPT_ARG_ARGV) ... #endif sections. Installing popt-1.15 is the preferred solution. You can also easily live without building rpmdigest.c, nothing in RPM itself needs rpmdigest, which is mostly included in RPM so that the same code paths used by RPM internally can also be exercised externally in a standalone executable. 73 de Jeff
rpmdigest.c
Description: Binary data