Minor oopsies in CF 2.2.2

Here you can discuss and share functionality improvements and helper programs to make Context Free better.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
User avatar
pakin
Posts: 43
Joined: Sat Apr 21, 2007 8:59 pm
Location: United States
Contact:

Minor oopsies in CF 2.2.2

Post by pakin »

Problem 1:

I just tried building CF 2.2.2, and received the following errors from gcc (v4.4.5):
cc -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -Isrc-common/agg-extras -O3 -Wall -c -o objs/lex.yy.o objs/lex.yy.c
<stdout>:865: error: conflicting types for ‘yyget_leng’
src-common/yglue.h:54: note: previous declaration of ‘yyget_leng’ was here
<stdout>:2304: error: conflicting types for ‘yyget_leng’
src-common/yglue.h:54: note: previous declaration of ‘yyget_leng’ was here
Sure enough, objs/lex.yy.c defines yyget_leng()'s return type as an int while src-common/yglue.h defines it as a size_t. I changed size_t to int in src-common/yglue.h, and that appeased the gods of Make.

Problem 2:

When I run the generated cfdg program it reports its version as "cfdg - 2.2.1(v11)". I'd have thought that building ContextFreeSource2.2.2.tgz would produce a 2.2.2 version number, eh?

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Minor oopsies in CF 2.2.2

Post by MtnViewJohn »

This thread covers the lexer warnings.

I forgot to bump the Unix version from 2.2.1 to 2.2.2 because all of the changes in 2.2.2 were specific to the Windows and Mac GUI versions.

nak
Posts: 15
Joined: Tue Jul 01, 2008 10:39 pm
Contact:

Re: Minor oopsies in CF 2.2.2

Post by nak »

Thanks for the fix pakin :)

Post Reply