abiword-0.99.3: ispell_checker.cpp:327: cannot convert .. on hp- ux 11.00

From: Gansser, Martin (MGansser@rand.de)
Date: Fri Mar 22 2002 - 08:29:35 EST

  • Next message: Andrzej Pruszynski: "Re: what gives?"

    Hi,

    I compiled abiword-0.99.3 on a machine with hp-ux 11.00.
    Now I get the following error messages:

    gmake realclean
    gmake ABI_OPT_DEBUG=0 UNIX_CAN_BUILD_STATIC=1 UNIX_CAN_BUILD_DYNAMIC=1
    install
    ...
    spell_checker.cpp: In function `void couldNotLoadDictionary(const char*)':
    ispell_checker.cpp:327: cannot convert `const char*' to `char*' for argument
       `3' to `int snprintf(char*, long unsigned int, char*, ...)'
    gmake[4]: ***
    [/users/mgansser/GNU/abiword-0.99.3/abi/src/../src/HP_B.11.00_9000-785_OBJ/o
    bj/spell/i
    spell_checker.o] Error 1
    gmake[4]: Leaving directory
    `/users/mgansser/GNU/abiword-0.99.3/abi/src/other/spell/xp'
    gmake[3]: *** [build] Error 2
    gmake[3]: Leaving directory
    `/users/mgansser/GNU/abiword-0.99.3/abi/src/other/spell'
    gmake[2]: *** [build] Error 2
    gmake[2]: Leaving directory
    `/users/mgansser/GNU/abiword-0.99.3/abi/src/other'
    gmake[1]: *** [build] Error 2
    gmake[1]: Leaving directory `/users/mgansser/GNU/abiword-0.99.3/abi/src'
    gmake: *** [install] Error 2

    The following error message occurs, if I use the external snprintf: (by
    setting HPUX_MAJOR to 11 in hpux.mk)

    In file included from spell_manager.h:24,
                     from spell_manager.cpp:20:
    /users/mgansser/GNU/abiword-0.99.3/abi/src/af/util/xp/ut_string.h:147:
    declaration
       of C function `int snprintf(char*, long unsigned int, const char*, ...)'
       conflicts with
    /opt/gcc/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:493:
    previous
       declaration `int snprintf(char*, long unsigned int, char*, ...)' here
    gmake[4]: ***
    [/users/mgansser/GNU/abiword-0.99.3/abi/src/../src/HP_B.11.00_9000-785_OBJ/o
    bj/spell/
    pell_manager.o] Error 1
    gmake[4]: Leaving directory
    `/users/mgansser/GNU/abiword-0.99.3/abi/src/other/spell/xp'
    gmake[3]: *** [build] Error 2
    gmake[3]: Leaving directory
    `/users/mgansser/GNU/abiword-0.99.3/abi/src/other/spell'
    gmake[2]: *** [build] Error 2
    gmake[2]: Leaving directory
    `/users/mgansser/GNU/abiword-0.99.3/abi/src/other'
    gmake[1]: *** [build] Error 2
    gmake[1]: Leaving directory `/users/mgansser/GNU/abiword-0.99.3/abi/src'
    gmake: *** [install] Error 2

    any help ?

    thanks Martin

    PS: all works fine on the old hp-ux 10.20, but the machine not longer exists
    ...



    This archive was generated by hypermail 2.1.4 : Fri Mar 22 2002 - 08:32:56 EST