help-cfengine
[Top][All Lists]
Advanced

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

Re: cfengine-2.1.13 compile error redhat 7.2, 7.3


From: David E. Nelson
Subject: Re: cfengine-2.1.13 compile error redhat 7.2, 7.3
Date: Wed, 2 Feb 2005 15:45:57 -0600 (CST)


Hi Brian,

I reported this to Mark yesterday. He suggested that I d/l the latest snapshot from the Developer page....OR....you can edit item.c so that lines around 1042 read:

{ struct Item *args;
  char *sp;
  long cmp = -1, start = -1, end = -1;

  Debug("SRDEBUG in FuzzyHostMatch(): %s vs %s\n",s2,s1);
  args = SplitStringAsItemList(s1,',');
  sp = s2;
  char host_basename[CF_MAXVARSIZE];

Basically, you want all variable declations before any code executions.

Regards,
         /\/elson

On Wed, 2 Feb 2005, Brian E. Seppanen wrote:

item.c: In function `FuzzyHostMatch':
item.c:1042: parse error before `char'
item.c:1066: `host_basename' undeclared (first use in this function)
item.c:1066: (Each undeclared identifier is reported only once
item.c:1066: for each function it appears in.)
make[2]: *** [item.o] Error 1
make[2]: Leaving directory `/usr/src/cfengine-2.1.13/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/cfengine-2.1.13/src'
make: *** [all-recursive] Error 1

I've gotten the following compile error on a host running redhat-7.3
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)

and redhat-7.2
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)

I've gotten the same error when trying to cross-compile for ppc_8xx series
cpu on redhat-7.3

/opt/hardhat/devkit/ppc/8xx//bin/ppc_8xx-gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/var/dist/cyclades/acslinux-2.3.0/db-4.2.52.NC//include
-I/var/dist/cyclades/acslinux-2.3.0/openssl-0.9.7d//include  -pthread  -g
-O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -pthread -O2
-I/opt/hardhat/devkit/ppc/8xx//powerpc-hardhat-linux/include -DCF_OLD_DB
-I/var/dist/cyclades/acslinux-2.3.0/db-4.2.52.NC//include
-D_FILE_OFFSET_BITS=64   -pthread -O2
-I/opt/hardhat/devkit/ppc/8xx//powerpc-hardhat-linux/include -DCF_OLD_DB
-I/var/dist/cyclades/acslinux-2.3.0/db-4.2.52.NC//include
-D_FILE_OFFSET_BITS=64 -c item.c
item.c: In function `FuzzyHostMatch':
item.c:1042: parse error before `char'
item.c:1066: `host_basename' undeclared (first use in this function)
item.c:1066: (Each undeclared identifier is reported only once
item.c:1066: for each function it appears in.)
make[3]: *** [item.o] Error 1
make[3]: Leaving directory
`/var/dist/cyclades/acslinux-2.3.0/cfengine-2.1.13/src'
make[2]: *** [all] Error 2


Thanks for all of the help.


Brian Seppanen
seppy@chartermi.net
608.826.1464


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine


--
~~ ** ~~  If you didn't learn anything when you broke it the 1st ~~ ** ~~
                        time, then break it again.




reply via email to

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