#53 Build broken with bison 2.6.2

v1.0 (example)

Hello. I can't build linux-gpib package from svn (revision 1589) with bison 2.6.2, but with bison 2.5 building is successfull.
My configure parameters:
./configure \ --prefix=/usr \ --with-linux-srcdir=/usr/src/linux-${_kernver} \ --disable-guile-binding \ --disable-perl-binding \ --disable-php-binding \ --disable-python-binding \ --disable-tcl-binding

Part of build log:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE=\"/etc/gpib.conf\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT libgpib_la-ibutil.lo -MD -MP -MF .deps/libgpib_la-ibutil.Tpo -c ibutil.c -fPIC -DPIC -o .libs/libgpib_la-ibutil.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE=\"/etc/gpib.conf\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT libgpib_la-globals.lo -MD -MP -MF .deps/libgpib_la-globals.Tpo -c globals.c -fPIC -DPIC -o .libs/libgpib_la-globals.o
mv -f .deps/libgpib_la-ibBoard.Tpo .deps/libgpib_la-ibBoard.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE=\"/etc/gpib.conf\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT libgpib_la-ibask.lo -MD -MP -MF .deps/libgpib_la-ibask.Tpo -c -o libgpib_la-ibask.lo `test -f 'ibask.c' || echo './'`ibask.c
In file included from parse.h:1:0,
from ibutil.c:26:
./ibConfYacc.h:155:5: error: conflicting types for 'gpib_yyparse'
In file included from ibutil.c:20:0:
ib_internal.h:131:5: note: previous declaration of 'gpib_yyparse' was here
make[4]: *** [libgpib_la-ibutil.lo] Error 1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE=\"/etc/gpib.conf\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT libgpib_la-ibask.lo -MD -MP -MF .deps/libgpib_la-ibask.Tpo -c ibask.c -fPIC -DPIC -o .libs/libgpib_la-ibask.o
mv -f .deps/libgpib_la-globals.Tpo .deps/libgpib_la-globals.Plo
mv -f .deps/libgpib_la-ibask.Tpo .deps/libgpib_la-ibask.Plo
make[4]: Exit from directory `/home/lampus/aur/build/linux-gpib-svn/src/linux-gpib/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Exit from directory `/home/lampus/aur/build/linux-gpib-svn/src/linux-gpib/lib'
make[2]: *** [all] Error 2
make[2]: Exit from directory `/home/lampus/aur/build/linux-gpib-svn/src/linux-gpib/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Exit from directory `/home/lampus/aur/build/linux-gpib-svn/src/linux-gpib'
make: *** [all] Error 2


  • Nicolas Boichat

    Nicolas Boichat - 2012-08-19

    I ran into the same problem (while building your AUR package, actually), it seems like linux-gpib uses deprecated features of bison.

    You can find a patch here, that fixes the problem:

    I haven't tested it very carefully (I didn't try with a device), but gpib_config recognizes syntax errors in the configuration file, so I guess it's fine.

    I did not try with bison 2.5, but I assume it should work, too.

    Please give it a try. Thanks!

  • Andreas Huettel

    Andreas Huettel - 2013-09-09

    Dave committed something relevant-looking to that file, and I did a successful compile with bison-2.7.1, so I assume this is fixed.
    (Now bison-3 might be a different question.)

  • Andreas Huettel

    Andreas Huettel - 2013-09-09
    • status: open --> closed-fixed
    • Group: --> v1.0 (example)

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks