admsXml will not compile with Bison 3.0 due to removal of deprecated features. #6

Closed
guitorri opened this Issue Oct 24, 2013 · 2 comments

4 participants

@guitorri

The compilation error boils down to:

Obsolete features removed on Bison 3.0:

  • Support for YYLEX_PARAM and YYPARSE_PARAM is removed (deprecated in Bison 1.875): use %lex-param, %parse-param, or %param.

Removal is reported here: http://lists.gnu.org/archive/html/info-gnu/2013-08/msg00000.html

Similar error and a their fix is reported on: https://bugs.freedesktop.org/show_bug.cgi?id=67354

See the error message below:

/bin/sh ../auxconf/ylwrap admstpathYacc.y y.tab.c admstpathYacc.c y.tab.h `echo admstpathYacc.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output admstpathYacc.output -- bison -o y.tab.c  
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DinsideadmstpathYacc   -g -O2  -Wall -MT libadmsAdmstpath_la-admstpathYacc.lo -MD -MP -MF .deps/libadmsAdmstpath_la-admstpathYacc.Tpo -c -o libadmsAdmstpath_la-admstpathYacc.lo `test -f 'admstpathYacc.c' || echo './'`admstpathYacc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DinsideadmstpathYacc -g -O2 -Wall -MT libadmsAdmstpath_la-admstpathYacc.lo -MD -MP -MF .deps/libadmsAdmstpath_la-admstpathYacc.Tpo -c admstpathYacc.c  -fno-common -DPIC -o .libs/libadmsAdmstpath_la-admstpathYacc.o
admstpathYacc.c: In function ‘admstpathparse’:
admstpathYacc.c:15987: error: too few arguments to function ‘admstpathlex’
admstpathYacc.y:14708: error: ‘mypparse’ undeclared (first use in this function)
admstpathYacc.y:14708: error: (Each undeclared identifier is reported only once
admstpathYacc.y:14708: error: for each function it appears in.)
admstpathYacc.y: In function ‘pparse’:
admstpathYacc.y:15690: error: too many arguments to function ‘admstpathparse’
admstpathYacc.y: In function ‘tparse’:
admstpathYacc.y:15723: error: too many arguments to function ‘admstpathparse’
admstpathYacc.y: In function ‘apath_main’:
admstpathYacc.y:15762: error: too many arguments to function ‘admstpathparse’
make[2]: *** [libadmsAdmstpath_la-admstpathYacc.lo] Error 1
make[1]: *** [all-recursive] Error 1
[…]
~/git/ADMS_upverter $ grep -r admstpathparse .
./admsXml/admstpathYacc.c:#define yyparse         admstpathparse
./admsXml/admstpathYacc.c:int admstpathparse (void);
./admsXml/admstpathYacc.c:    admstpathparse (mypparse);
./admsXml/admstpathYacc.c:    admstpathparse (mypparse);
[…]
~/git/ADMS_upverter $ grep -ri yyparse .
./admsXml/admstpathYacc.c:#define yyparse         admstpathparse
./admsXml/admstpathYacc.c:#define YYPARSE_PARAM mypparse
@rcfox rcfox added a commit that referenced this issue Oct 27, 2013
@rcfox rcfox Remove YYLEX_PARAM and YYPARSE_PARAM in favour of %lex-param and %par…
…se-param. This should fix #6.
9cb4010
@rcfox rcfox closed this Oct 27, 2013
@lutherthecat lutherthecat added a commit that referenced this issue Jan 29, 2014
@lutherthecat lutherthecat Updates from upverter for bison 3.
Remove YYLEX_PARAM and YYPARSE_PARAM in favour of %lex-param and %parse-param. This should fix #6.

Conflicts:
	admsXml/mkelements.pl
14aed82
@ClemensFMN

@lutherthecat : Thanks for providing / updating the cmake scripts - we are using adms in qucs (https://github.com/Qucs). Is it ok for you if we use your cmake scripts there?

@lutherthecat

@ClemensFMN, you have my permission to use the cmake scripts.

@guitorri guitorri added a commit that referenced this issue Apr 2, 2014
@rcfox rcfox Remove YYLEX_PARAM and YYPARSE_PARAM in favour of %lex-param and %par…
…se-param. This should fix #6.
6133dc7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment