Henrik Grubbström (Lysator) @ Pike (-) developers forum wrote:
Still have problem with blooody bison and lexer....
http://kiwi.oav.net/7.6.48.txt
(Note that I have tested on serveral computers using FreeBSD 5.4, or 6.0RC1. Every machines cannot use the port system to build pike. If I
Can you build it if you don't use the port system?
Yes.
cannot find a way to work around this nasty bug the new pike version cannot be updated on freebsd port tree which is bad for our community, so please help me to workaround this because I gonna be mad....)
From looking at your trace it looks like something has touched
y.tab.c:
| ===> Building for pike76-7.6.48 | mv /usr/ports/lang/pike76.new/work/Pike-v7.6.48/src/y.tab.h /usr/ports/lang/pike76.new/work/Pike-v7.6.48/src/language.h_src | cp /usr/ports/lang/pike76.new/work/Pike-v7.6.48/src/language.h_src /usr/ports/lang/pike76.new/work/Pike-v7.6.48/src/language.h [...] | gmake[1]: Entering directory `/usr/ports/lang/pike76.new/work/Pike-v7.6.48/src' | sed -e 's/YY_COUNT_TYPE/unsigned int/' \ | -e 's/YY_FROM_CONST//' \ | -e 's/short[ ]*int[ ]//* short */ int /g' \ | -e 's/(short[ ]*int)/(/* short */ int)/g' \ | < /usr/ports/lang/pike76.new/work/Pike-v7.6.48/src/y.tab.c > /usr/ports/lang/pike76.new/work/Pike-v7.6.48/src/language.c
What are the patches that are applied at the start?
The only patch applied is :
--- ../bin/install.pike.orig Sat Feb 21 03:14:53 2004 +++ ../bin/install.pike Sat Feb 21 03:12:41 2004 @@ -1380,7 +1380,7 @@
if(file_stat(vars->MANDIR_SRC)) { - install_dir(vars->MANDIR_SRC,combine_path(man_prefix,"man1"),0); + //install_dir(vars->MANDIR_SRC,combine_path(man_prefix,"man1"),0); } };
And ports make the following :
post-patch: @${REINPLACE_CMD} -e 's| -lgmp| -L${LOCALBASE}/lib -lgmp|' \ ${WRKSRC}/modules/Gmp/configure ${WRKSRC}/modules/_Image_XFace/configure @${REINPLACE_CMD} -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \ ${WRKSRC}/configure
| ===> Patching for pike76-7.6.48 | ===> pike76-7.6.48 depends on file: /usr/local/bin/perl5.8.7 - found | ===> Applying FreeBSD patches for pike76-7.6.48
Where have you hidden the bison?
| ===> pike76-7.6.48 depends on executable: bison - found [...] | checking for yacc clone that handles %pure_parser... Get bison if you want to do "make export"
Bison is never found when pike is compiled on freebsd... whatever I compile using port or using normal tarball.
I can give access to this box if needed.
/Xavier