[SOLVED] Re: error: stray '@' in program
Florian Overkamp <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | SpeakUp BV |
| Message-ID | <[email protected]> |
Hi, just for future reference: On 02/26/2012 02:13 PM, Andreas Fink wrote: > if you dont need wapbox, simply disable it with a configure option (If I remember correctly its --disable-wap or --disable-wapbox (check --help)). > Only wapbox needs yacc/bison Thanks for that suggestion, but with --disable-wap it still tries to do stuff in the wmlscript directory, so build still fails. >>>> and then the make process fails with: >>>> >>>> gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/mysql -o wmlscript/wsgram.o -c wmlscript/wsgram.c >>>> wmlscript/wsgram.y: In function 'ws_yy_parse': >>>> wmlscript/wsgram.y:125: error: stray '@' in program >>>> wmlscript/wsgram.y:125:27: error: invalid suffix "first_line" on floating constant >>>> wmlscript/wsgram.y:138: error: stray '@' in program Ok, so inspecting wmlscript/wsgram.c and wsgram.h and comparing it to a clean checkout provides insight: Apparently these files get modified if you do not have bison (but byacc) to begin with, and this doesn't get fixed just by installing bison afterwards, seeing that my version doesn't look anything close to the one in svn. Simply getting a clean checkout for these two files resolves the issue entirely. Thanks all for thinking along. -- Met vriendelijke groet, Florian Overkamp SpeakUp BV T: 088-SPEAKUP (088-7732587) T: 053-4305842