Help with elkhound port development

Brandon Allbery allbery.b at gmail.com
Fri Dec 12 11:42:52 PST 2014


On Fri, Dec 12, 2014 at 2:08 PM, Mark Brethen <mark.brethen at gmail.com>
wrote:
>
> :info:build head -n 73 agrampar.tab.h > agrampar.codes.h
> :info:build c++ -c -o agrampar.tab.o agrampar.tab.cc
>
> -g -Wall -Wno-deprecated -D__UNIX__ -O2 -DNDEBUG -I../smbase
> :info:build c++ -c -o ccsstr.o ccsstr.cc -g -Wall -Wno-deprecated
> -D__UNIX__ -O2 -DNDEBUG -I../smbase
> :info:build perl ../smbase/run-flex.pl
>
> -oagramlex.yy.cc
>
> agramlex.lex
> :info:build flex -oagramlex.yy.cc
>
> agramlex.lex
> :info:build modifying agramlex.yy.cc
>
>
> :info:build c++ -c -o agramlex.yy.o agramlex.yy.cc
>
> -g -Wall -Wno-deprecated -D__UNIX__ -O2 -DNDEBUG -I../smbase
> :info:build In file included from agramlex.lex:14:
> :info:build ./agrampar.codes.h:44:2: error: unterminated conditional
> directive
> :info:build #ifndef YYTOKENTYPE
> :info:build  ^
> :info:build ./agrampar.codes.h:33:2: error: unterminated conditional
> directive
> :info:build #ifndef YY_YY_AGRAMPAR_TAB_H_INCLUDED
> :info:build  ^
> :info:build In file included from agramlex.yy.cc:548
>
> :
> :info:build In file included from /usr/include/unistd.h:72:
> :info:build /usr/include/sys/unistd.h:132:1: error: expected identifier
>

Apparently bison has changed since this was written; the above errors come
from agrampar.codes.h being truncated in the middle of an enum declaration.
You may need to find an old version of bison to find out what it's really
trying to extract from the generated header, and either adjust the head -n
to match (if it's similar enough) or possibly write a script to generate
whatever it's actually expecting (if, say, the enum created by current
versions of bison was expected to be a set of #define-s).

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20141212/a3320474/attachment.html>


More information about the macports-dev mailing list