comedilib: FTBFS: calib_yacc.y:340:2: error: too many arguments to function 'calib_yyparse'

Bug #1264686 reported by Andreas Moog
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
comedilib (Debian)
Fix Released
Unknown
comedilib (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/733322:

Package: comedilib
Version: 0.10.1-1
Severity: serious

Hi there,

building your package fails in a up-to-date amd64 sbuild chroot:

> libtool: compile: x86_64-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var/lib/libcomedi0\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c calib_lex.c -o libcomedi_la-calib_lex.o >/dev/null 2>&1
> /bin/bash ../libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var/lib/libcomedi0\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c -o libcomedi_la-calib_yacc.lo `test -f 'calib_yacc.c' || echo './'`calib_yacc.c
> libtool: compile: x86_64-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var/lib/libcomedi0\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c calib_yacc.c -fPIC -DPIC -o .libs/libcomedi_la-calib_yacc.o
> calib_yacc.y: In function '_comedi_parse_calibration_file':
> calib_yacc.y:340:2: error: too many arguments to function 'calib_yyparse'
> if( calib_yyparse( &priv ) )
> ^
> In file included from calib_yacc.y:36:0:
> ./calib_yacc.h:107:5: note: declared here
> int calib_yyparse (void);
> ^
> ./calib_yacc.c: In function 'calib_yyparse':
> ./calib_yacc.c:1596:7: error: too few arguments to function 'calib_yylex'
> yychar = yylex (&yylval);
> ^
> In file included from calib_yacc.y:27:0:
> libinternal.h:148:21: note: declared here
> #define YY_DECL int calib_yylex(YYSTYPE *calib_lvalp, yyscan_t yyscanner)
> ^
> calib_yacc.y:55:1: note: in expansion of macro 'YY_DECL'
> YY_DECL;
> ^
> calib_yacc.y:381:73: error: 'parse_arg' undeclared (first use in this function)
> fprintf(stderr, "input error on line %i\n", calib_yyget_lineno(priv(parse_arg)->yyscanner));
> ^
> calib_yacc.y:381:73: note: each undeclared identifier is reported only once for each function it appears in
> make[4]: *** [libcomedi_la-calib_yacc.lo] Error 1
> make[4]: Leaving directory `/«PKGBUILDDIR»/lib'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/«PKGBUILDDIR»/lib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/«PKGBUILDDIR»'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/«PKGBUILDDIR»'
> make: *** [build-arch-stamp] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2

Full buildlog attached.

--
Andreas Moog, Berliner Str. 29, 36205 Sontra/Germany
PGP-encrypted mails preferred (Key-ID: 74DE6624)
PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624

Tags: ftbfs trusty
Andreas Moog (ampelbein)
Changed in comedilib (Ubuntu):
importance: Undecided → High
tags: added: ftbfs trusty
Changed in comedilib (Debian):
importance: Undecided → Unknown
Revision history for this message
Delmic BV (delmicbv) wrote :

I'm not sure what's causing this bug. However I've got comedilib 0.10.1 compiled for 12.04 fine on my PPA: https://launchpad.net/~delmic-soft/+archive/odemis/+sourcepub/3743563/+listing-archive-extra .

It's based on the debian package and I didn't have to do anything special with respect to bison. Note that I _had_ to do a special trick to compile the right version of comedi_calibrate. The latest version of the tarball is actually since today available at http://www.comedi.org/download/comedi_calibrate-2.tar.gz

Revision history for this message
Daniel T Chen (crimsun) wrote :

@Delmic BV: Newer bison versions are much more strict. I've since uploaded a comedilib source package to 14.04 that resolves the failure to build.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package comedilib - 0.10.1-1ubuntu1

---------------
comedilib (0.10.1-1ubuntu1) trusty; urgency=low

  * FTBFS fixes:
    - Backport upstream changesets 90ce9a9, cc0c9e7, f4e228e, c689eff,
      and 2277e82;
    - Use explicit parameters.
  * Closes: #733322. LP: #1264686.

comedilib (0.10.1-1) unstable; urgency=low

  * New upstream release
  * Bump compat to 9
  * Add hardening
  * Upgraded copyright file

comedilib (0.10.0-3.1) unstable; urgency=low

  * Non-maintainer upload.
  * debian/patches/03_bison.patch: Apply patch from upstream to fix build
    failure with bison 2.6. (Closes: #710622)
  * debian/python-comedilib.install: Don't install static libraries for the
    Python package. They are of no use and cause a lintian autoreject.

comedilib (0.10.0-3) unstable; urgency=low

  * Change pdf backend from fop to no. Fixes compilation on mips.

comedilib (0.10.0-2) unstable; urgency=low

  * Add dependency on adduser (Closes: #677573)

comedilib (0.10.0-1) unstable; urgency=low

  [ Bernd Porr ]
  * Removed ruby from the build dependencies
  * Disabled install of firmware (via ./configure)

  [ Gudjon I. Gudjonsson ]
  * Upstream release (Closes: #669353)
  * Dropping ruby bindings support.
    Commented out all references to ruby (Closes: #676095)
  * Rename comedi.rules to 90-comedi.rules
  * Move 90-comedi.rules to /lib/udev/rules.d/
  * Add comedi_calibrate (Closes: #544906)
  * Add LDFLAGS= -lm to configure (Closes: #558848)
  * Change bash to sh in postinst script
  * Fix a few errors in manpages. Add patch
    02_fix_manpages.patch (Thanks to Yaroslav Halchenko)
  * Add upstream changelog
  * Update symbols file
  * Update copyright file to DEP5

comedilib (0.8.1-6) unstable; urgency=low

  * Bump standards version to 3.9.3
  * Change to dh_python2
  * Change XS-Python-Version to X-Python-Version
  * Add doc-base file
  * Add watch file
  * Add symbols file
  * Add get-orig-source target
  * Change dependency on udev to recommends (Closes: #570069)

comedilib (0.8.1-5.1) unstable; urgency=low

  * Non-maintainer upload.
  * Don't ship .la files (Closes: #621195).
 -- Daniel T Chen <email address hidden> Tue, 07 Jan 2014 17:22:30 -0500

Changed in comedilib (Ubuntu):
status: New → Fix Released
Changed in comedilib (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.