• Bug#265474: ksimus-floatingpoint: FTBFS (gcc-3.4/amd64): extra `;' and

    From Andreas Jochens@1:229/2 to All on Fri Aug 13 13:00:10 2004
    From: [email protected]

    Package: ksimus-floatingpoint
    Severity: normal
    Tags: patch

    When building 'ksimus-floatingpoint' with gcc-3.4 I get the following error:

    /bin/sh ../libtool --silent --mode=compile --tag=CXX x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/share/qt3/include -I. -I/usr/include/kde -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -
    pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -c -o random.lo `test -f 'random.cpp' || echo './'`random.cpp
    cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC/Pascal but not for C++
    In file included from random.h:34,
    from random.cpp:42:
    float1out.h:179: error: extra `;'
    In file included from random.cpp:42:
    random.h:162: error: extra `;'
    random.h: In constructor `KSimLibFloatingPoint::Random::Random(CompContainer*, const ComponentInfo*)':
    random.h:103: warning: `KSimLibFloatingPoint::Random::m_useSeed' will be initialized after
    random.h:102: warning: `long int KSimLibFloatingPoint::Random::m_seed' random.cpp:94: warning: when initialized here
    random.cpp: At global scope:
    random.cpp:340: error: extra `;'
    make[3]: *** [random.lo] Error 1
    make[3]: Leaving directory `/ksimus-floatingpoint-0.3.6/ksimus-floatingpoint'

    With the attached patch 'ksimus-floatingpoint' can be compiled using gcc-3.4.

    The patch also adds '-fPIC' to CXXFLAGS in debian/rules because otherwise
    the package FTBFS on amd64 (and probably other architectures).

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/ksimus-floatingpoint-0.3.6/debian/rules ./debian/rules --- ../tmp-orig/ksimus-floatingpoint-0.3.6/debian/rules 2004-08-13 12:18:05.189766145 +0200
    +++ ./debian/rules 2004-08-13 12:18:01.630307265 +0200
    @@ -35,7 +35,7 @@
    if test ! -f configure; then \
    $(MAKE) -f admin/Makefile.common ;\
    fi
    - QTDIR=/usr/share/qt3 ./configure \
    + CXXFLAGS=-fPIC QTDIR=/usr/share/qt3 ./configure \
    --host=$(DEB_HOST_GNU_TYPE) \
    --build=$(DEB_BUILD_GNU_TYPE) \
    $(configkde) \
    diff -urN ../tmp-orig/ksimus-floatingpoint-0.3.6/ksimus-floatingpoint/convertboolfloat.cpp ./ksimus-floatingpoint/convertboolfloat.cpp
    --- ../tmp-orig/ksimus-floatingpoint-0.3.6/ksimus-floatingpoint/convertboolfloat.cpp 2002-11-30 01:33:20.000000000 +0100
    +++ ./ksimus-floatingpoint/convertboolfloat.cpp 2004-08-13 11:59:26.032903849 +0200
    @@ -295,5 +295,5 @@
    //###############################################################
    //###############################################################

    -}; //namespace KSimLibFloatingPoint