RPM Community Forums

Mailing List Message of <rpm-devel>

Re: error in rpmconstant

From: Olivier Thauvin <nanardon@nanardon.zarb.org>
Date: Tue 25 Dec 2007 - 01:23:35 CET
Message-Id: <200712250123.40587.nanardon@nanardon.zarb.org>
Le mardi 25 décembre 2007, Ralf S. Engelschall a écrit :
> On Mon, Dec 24, 2007, Jason Corley wrote:
> > Getting this error with HEAD:
> >     rpmconstanttbl.c:287: error: 'RPMBUILD_FETCHSOURCE' undeclared
> > here (not in a function)
> > It looks like the error is with rpmconstant/rpmh2tbl not dealing
> > properly with an OpenPKG #ifdef, but exactly where and how I haven't
> > figured out yet.  Deleting the RPMBUILD_FETCHSOURCE line from
> > rpmconstantbl.c allows build to succeed.
>
> I've removed the wrapping #ifdef/#endif now as this seems to be the only
> solution. Now my favorite solution, but currently the only possible one
> AFAIK...

Yes, dealing with #ifdef in enum with a parser in perl is not easy, except we 
plan to rewrite a C preprocesser parser. Which is definitevelly not the goal.

I'll try to find a better solution, but I can't promise one :\




Received on Tue Dec 25 01:23:43 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.