help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AddMacroValue - internal error #1


From: Avi Green
Subject: AddMacroValue - internal error #1
Date: Tue, 13 Feb 2001 16:25:15 -0500

Dear fellow cfengineers,

I have a cfengine script called cfsoftware.conf that I use for
installing and uninstalling software packages.  Until recently this was
just a large shellcommands list and worked fine.  At my boss's request,
I converted all of the software versions in the shellcommands from
constants to variables (one version variable per shellcommand).  I
placed all the variable definitions in the control section.

Here's an excerpt:


control:        

        solaris.web::
                pd_apache_versions = ( 1.3.12-2 )

        solaris::
                # pd_perl_ver = ( 5.005.02 )
                perl_pkgver = ( 5.005_03 )

        any::
                pd_template_processor_versions = ( 0.8.1-2 )


shellcommands:

        stage2.solaris.web::

                "$(RPMMANAGE.SH) -s $(cfserver) pd_apache
$(pd_apache_versions) sparc64 solaris $(LOGDIR)/$(CFSOFTWARE_OUT)"



Unfortunately this script fails with the following message:
AddMacroValue - internal error #1.

Here's the error context (using -v -d1):

Class:: any::
   (No actions pending in Control Defintions:)
HandleClass(any)
Simple identifier or class = (any)
HandleClass(end)
HandleId(pd_template_processor_versions)
RecordMacroId(pd_template_processor_versions)
LEFTBRACK
HandleItem(0.8.1-2)
simple item = (0.8.1-2)

(Action is control, storing variable
[pd_template_processor_versions=0.8.1-2])
AddMacroValue(pd_template_processor_versions=0.8.1-2)
CompareMacro(pd_template_processor_versiodingus.bluetape.com:cfsoftware.conf:AddMacroValue
- internal error #1
ns,pd_sputnik_services_versions=0.8.0-2)=pd_sputnik_services_versions
Added Macro at hash address 72: pd_template_processor_versions=0.8.1-2
RIGHTBRACK



I can sometimes get rid of the error by removing lines from the version
section, but there doesn't seem to be any rhyme or reason for which
lines to remove, and the error sometimes just moves if I remove a
section of code.  The context information in the verbose output doesn't
help much, though it does generally suggest that the error has to do
with the CompareMacro function.

Any ideas?  This is really important for me to fix ASAP.  I've spent a
lot of time experimenting with this, but I'm at wit's end.

Thank you for your time,
Avi

p.s.  I checked the list archives, reference and tutorial but didn't
find anything helpful.

======================================================
= Avi Green :-) avi at sputnik7.com (-: 212 217-1147 =
========  Unix SysAdmin & System Specialist  =========
=============  http://www.sputnik7.com  ==============
===== Netcasting Music, Videos, Film & Anime 24/7 ====



reply via email to

[Prev in Thread] Current Thread [Next in Thread]