Hi Adrian, units 2.02 uses YYPARSE_PARAM and YYLEX_PARAM, which are gone in Bison 3.0. I had a quick look at parse.y but couldn't figure out off-hand how to fix this; so before I dig further I thought I'd ask you if you had an idea...
Regards, Stephen Begin forwarded message: Date: Sat, 28 Dec 2013 20:03:06 +0100 From: David Suárez <david.sephi...@gmail.com> To: sub...@bugs.debian.org Subject: Bug#733374: units: FTBFS: parse.y:29:34: error: 'comm' undeclared (first use in this function) Source: units Version: 2.02-1 Severity: serious Tags: jessie sid User: debian...@lists.debian.org Usertags: qa-ftbfs-20131226 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > gcc -std=gnu99 -D_FORTIFY_SOURCE=2 > -DUNITSFILE=\"/usr/share/units/definitions.units\" > -DLOCALEMAP=\"/usr/share/units/locale.map\" -DREADLINE -DSUPPORT_UTF8 > -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" > -DPACKAGE_VERSION=\"2.02\" -DPACKAGE_STRING=\"GNU\ units\ 2.02\" > -DPACKAGE_BUGREPORT=\"adri...@gnu.org\" > -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 > -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 > -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -g -O2 -fstack-protector > --param=ssp-buffer-size=4 -Wformat -Werror=format-security -I. -c > parse.tab.c parse.y: In function 'unitsparse': parse.y:29:34: error: 'comm' > undeclared (first use in this function) #define COMM ((struct commtype > *)comm) ^ parse.y:187:7: note: in expansion of macro 'COMM' input: > EOL { COMM->result = makenumunit(1,&err); CHECK; YYACCEPT; } ^ > parse.y:29:34: note: each undeclared identifier is reported only once for > each function it appears in #define COMM ((struct commtype *)comm) ^ > parse.y:187:7: note: in expansion of macro 'COMM' input: EOL > { COMM->result = makenumunit(1,&err); CHECK; YYACCEPT; } ^ parse.y: In > function 'parseunit': parse.y:472:3: error: too many arguments to function > 'unitsparse' if (yyparse(&comm)){ ^ parse.tab.c:63:25: note: declared here > #define yyparse unitsparse ^ parse.tab.c:1152:1: note: in expansion > of macro 'yyparse' yyparse (void) > ^ > make[1]: *** [parse.tab.o] Error 1 The full build log is available from: http://aws-logs.debian.net/ftbfs-logs/2013/12/26/units_2.02-1_unstable.log A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on EC2 VM instances from Amazon Web Services, using a clean, minimal and up-to-date chroot. Every failed build was retried once to eliminate random failures.
signature.asc
Description: PGP signature