• Bug#265766: gpsim: FTBFS: Missing Build-Depends on 'bison' and gcc-3.4

    From Andreas Jochens@1:229/2 to All on Sat Aug 14 22:40:08 2004
    From: [email protected]

    Package: gpsim
    Severity: normal
    Tags: patch

    When building 'gpsim' in a clean chroot I get the following error:

    make[3]: Entering directory `/gpsim-0.20.14/cli'
    yacc -dvt parse.yy && mv y.tab.c parse.cc
    /bin/sh: yacc: command not found
    make[3]: *** [parse.cc] Error 127
    make[3]: Leaving directory `/gpsim-0.20.14/cli'

    Please add the missing Build-Depends on 'bison' to debian/control.

    The attached patch also fixes a problem in src/modules.h which prevents
    'gpsim' to be compiled using gcc-3.4.

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/gpsim-0.20.14/debian/control ./debian/control
    --- ../tmp-orig/gpsim-0.20.14/debian/control 2004-08-14 22:18:55.151542441 +0200
    +++ ./debian/control 2004-08-14 22:18:51.462103321 +0200
    @@ -2,7 +2,7 @@
    Section: electronics
    Priority: optional
    Maintainer: Stephen M Moraco <[email protected]>
    -Build-Depends: debhelper (>> 4.0.0), automake, libreadline4-dev, libncurses5-dev, libpopt-dev, libglib1.2-dev, libgtk1.2-dev, libgtkextra-dev, xlibs-dev, libtool, flex, exdbm, autotools-dev
    +Build-Depends: debhelper (>> 4.0.0), automake, libreadline4-dev, libncurses5-dev, libpopt-dev, libglib1.2-dev, libgtk1.2-dev, libgtkextra-dev, xlibs-dev, libtool, flex, exdbm, autotools-dev, bison
    Standards-Version: 3.5.9

    Package: gpsim
    diff -urN ../tmp-orig/gpsim-0.20.14/src/modules.h ./src/modules.h
    --- ../tmp-orig/gpsim-0.20.14/src/modules.h 2004-08-14 22:18:55.134545025 +0200
    +++ ./src/modules.h 2004-08-14 22:09:05.047251929 +0200
    @@ -128,7 +128,7 @@
    public:

    char *names[2];
    - ExternalModule * (*module_constructor) (char *module_name=NULL);
    + Exte