diff -ur src/item.c.old src/item.c --- src/item.c.old Thu Feb 17 07:52:53 2005 +++ src/item.c Thu Feb 17 07:53:00 2005 @@ -1035,11 +1035,11 @@
{ struct Item *args; char *sp; + char host_basename[CF_MAXVARSIZE]; 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];
for (sp = s2+strlen(s2)-1; sp > s2; sp--) {
I get the following error on openbsd 3.6 w/o the patch
Manon
source='item.c' object='item.o' libtool=no DEPDIR=.deps depmode=gcc /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/db4//include -I/usr/include -pthread -I/usr/local/include -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -pthread -g -O2 -I/usr/local/db4//include -pthread -g -O2 -I/usr/local/db4//include -c item.c
item.c: In function `FuzzyHostMatch':
item.c:1042: syntax 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.)
*** Error code 1
Stop in /home/manon/cfengine-2.1.13/src. *** Error code 1
Stop in /home/manon/cfengine-2.1.13/src (line 541 of Makefile). *** Error code 1
Stop in /home/manon/cfengine-2.1.13 (line 281 of Makefile). -bash-3.00$ vi src/item.c
[1]+ Stopped vi src/item.c
pgpqOfaDDjnsn.pgp
Description: PGP signature_______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine