abiword-1.0.2: Gtk-WARNING **: invalid cast from `GtkMenuBar' to `GtkMenu'

From: Gansser, Martin (MGansser@rand.de)
Date: Wed Jun 12 2002 - 08:34:40 EDT

  • Next message: John W.: "Re: Code Formatting"

    Hi,

    I made a test with abiword-1.0.2 on hp-ux 10.20 and hp-ux 11.00, in this case
    all system software was installed in /usr/local and not in /opt.

    I used the developer style (gmake realclean
    gmake ABI_OPT_DEBUG=1 UNIX_CAN_BUILD_STATIC=0 UNIX_CAN_BUILD_DYNAMIC=1 install)
    because I have not all neccessary programs installed for autogen.sh (automake, autoconf ..).

    the only problem I have is, that the menu text 'File Edit View .. failed on the top of the menue, see screenshot
    http://cloud.prohosting.com/patos/images/abi_test.jpeg and the following
    WARNING **: invalid cast from `GtkMenuBar' to `GtkMenu' appears on the console.

    any idea, is something missing ?

    thanks Martin

    PS: this is the link line:

    Building library /users/mgansser/GNU/abiword-1.0.2/abi/src/HP_B.10.20_9000-785_OBJ/obj/libAbiWordVer.a
    gmake[4]: Leaving directory `/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/main/xp'
    gmake ABI_ROOT=/users/mgansser/GNU/abiword-1.0.2/abi -C unix build
    gmake[4]: Entering directory `/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/main/unix'
    Building with [LicensedTrademarks:Off Debug:Off BiDi:Off Gnome:Off LibXML:Off Pspell:Off Scripting:Off].
    UnixMain.cpp:
    cc1plus: warning: changing search order for system directory "/usr/local/include"
    cc1plus: warning: as it has already been specified as a non-system directory
    In file included from /users/mgansser/GNU/abiword-1.0.2/abi/src/af/xap/unix/xap_UnixClipboard.h:23,
                     from /users/mgansser/GNU/abiword-1.0.2/abi/src/wp/ap/unix/ap_UnixClipboard.h:29,
                     from /users/mgansser/GNU/abiword-1.0.2/abi/src/wp/ap/unix/ap_UnixApp.h:32,
                     from UnixMain.cpp:22:
    /usr/local/include/glib-1.2/glib.h:1308:23: warning: ISO C does not permit named variadic macros
    /usr/local/include/glib-1.2/glib.h:1311:25: warning: ISO C does not permit named variadic macros
    /usr/local/include/glib-1.2/glib.h:1314:26: warning: ISO C does not permit named variadic macros
    /usr/local/include/glib-1.2/glib.h:1317:25: warning: ISO C does not permit named variadic macros
    Linking dynamic /users/mgansser/GNU/abiword-1.0.2/abi/src/HP_B.10.20_9000-785_OBJ/bin/AbiWord_d
    g++ -o /users/mgansser/GNU/abiword-1.0.2/abi/src/HP_B.10.20_9000-785_OBJ/bin/AbiWord_d -O2 -Wall -an
    si -pedantic -L/usr/contrib/lib -L/usr/local/lib -DHAVE_STRERROR -D_HPUX_SOURCE -DSETENV_MISSING -DS
    NPRINTF_MISSING -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/inc
    lude -I/usr/contrib/include -I/usr/local/include -DABIWORD_APP_NAME="AbiWord" -DABIWORD_APP_LIBDIR="
    AbiWord" -DNDEBUG -I/users/mgansser/GNU/abiword-1.0.2/abi/src/config -I/users/mgansser/GNU/abiword-1
    .0.2/abi/src/af/xap/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/src/af/xap/unix -I/users/mgansser/GNU
    /abiword-1.0.2/abi/src/af/ev/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/src/af/ev/unix -I/users/mgan
    sser/GNU/abiword-1.0.2/abi/src/af/util/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/src/af/util/unix -
    I/users/mgansser/GNU/abiword-1.0.2/abi/src/af/gr/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/src/af/g
    r/unix -I/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/ap/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/
    src/wp/ap/unix -I/users/mgansser/GNU/abiword-1.0.2/abi/src/text/ptbl/xp -I/users/mgansser/GNU/abiwor
    d-1.0.2/abi/src/text/fmt/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/impexp/xp -I/users/mganss
    er/GNU/abiword-1.0.2/abi/src/wp/ap/xp/ToolbarIcons -I/users/mgansser/GNU/abiword-1.0.2/abi/src/../..
    /expat/lib -I/users/mgansser/GNU/abiword-1.0.2/abi/src/../../wv/exporter -I/users/mgansser/GNU/abiwo
    rd-1.0.2/abi/src/wp/ap/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/ap/unix -I/users/mgansser/G
    NU/abiword-1.0.2/abi/src/text/fmt/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/impexp/xp -I/use
    rs/mgansser/GNU/abiword-1.0.2/abi/src/text/ptbl/xp -I/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/ap
    /xp/ToolbarIcons -I/users/mgansser/GNU/abiword-1.0.2/abi/src/other/spell/xp -I/users/mgansser/GNU/ab
    iword-1.0.2/abi/src/other/fribidi/xp -DABI_BUILD_VERSION="1.0.1" -I/usr/local/include/gtk-1.2 -I/usr
    /local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/local/include/glib-1.2 -I/usr/local/lib
    /glib/include -DSUPPORTS_UT_IDLE=1 /users/mgansser/GNU/abiword-1.0.2/abi/src/HP_B.10.20_9000-785_OBJ
    /obj/UnixMain.o -L/users/mgansser/GNU/abiword-1.0.2/abi/src/HP_B.10.20_9000-785_OBJ/obj -lAbiGr -lAb
    iFmt -lAbiPTbl -lAbiImpExp -lAbiXAp -lAbiWPAp -lAbiEv -lAbiUtil -lAbiImpExp -lAbiWordVer -lAbiSpell
    -lAbi_libwv -lAbiGr -lAbiFmt -lAbiPTbl -lAbiImpExp -lAbiXAp -lAbiWPAp -lAbiEv -lAbiUtil -lAbiImpExp
    -lAbiWordVer -lAbiSpell -lAbi_libwv -lAbiGr -lAbiFmt -lAbiPTbl -lAbiImpExp -lAbiXAp -lAbiWPAp -lAbiE
    v -lAbiUtil -lAbiImpExp -lAbiWordVer -lAbiSpell -lAbi_libwv -lpng -lz -L/usr/local/lib -lgtk -lgdk -
    Wl,-E -lgmodule -lglib -ldld -lintl -lXext -lX11 -lm -L/users/mgansser/GNU/abiword-1.0.2/abi/../psic
    onv/psiconv/.libs -lpsiconv -L/users/mgansser/GNU/abiword-1.0.2/abi/../expat/lib/.libs -lexpat
    /usr/local/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.1/../../../../hppa2.0-hp-hpux10.20/bin/nm: /usr/local/
    lib/libpng.sl: no symbols
    /usr/local/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.1/../../../../hppa2.0-hp-hpux10.20/bin/nm: /usr/local/
    lib/libz.sl: no symbols
    Linking static /users/mgansser/GNU/abiword-1.0.2/abi/src/HP_B.10.20_9000-785_OBJ/bin/AbiWord_s
    gmake[4]: Leaving directory `/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/main/unix'
    gmake[3]: Leaving directory `/users/mgansser/GNU/abiword-1.0.2/abi/src/wp/main'
    gmake[2]: Leaving directory `/users/mgansser/GNU/abiword-1.0.2/abi/src/wp'
    Skipping non-directory ask...
    gmake[1]: Leaving directory `/users/mgansser/GNU/abiword-1.0.2/abi/src'
    rs_root:{/users/mgansser/GNU/abiword-1.0.2/abi} #

    this is the part of hpux.mk:

    ifeq ($(HPUX_MAJOR), 10)
      USE_EXTERNAL_SNPRINTF = 1
      # Includes
      OS_INCLUDES = -I/usr/contrib/include -I/usr/local/include
      # Compiler flags
      PLATFORM_FLAGS = -L/usr/contrib/lib -L/usr/local/lib
      PORT_FLAGS = -DHAVE_STRERROR -D_HPUX_SOURCE -DSETENV_MISSING -DSNPRINTF_MISSING
    else
      # Includes
      OS_INCLUDES = -I/usr/contrib/include -I/usr/local/include
      # Compiler flags
      PLATFORM_FLAGS = -L/usr/contrib/lib -L/usr/local/lib
      PORT_FLAGS = -DHAVE_STRERROR -D_HPUX_SOURCE -DSETENV_MISSING
    endif

    ifeq ($(USE_EXTERNAL_SNPRINTF),1)
      #OS_LIBS += -L/usr/local/lib -liconv -L/usr/local/lib -lsnprintf
    endif

    OS_CFLAGS = $(DSO_CFLAGS) $(PLATFORM_FLAGS) $(PORT_FLAGS)

    PLATFORM_FLAGS +=
    PORT_FLAGS +=

    GLIB_CONFIG = /usr/local/bin/glib-config
    GTK_CONFIG = /usr/local/bin/gtk-config
    GNOME_CONFIG = gnome-config

    # Shared library flags
    MKSHLIB = $(LD) $(DSO_LDOPTS) -b -o $(@:$(OBJDIR)/%.sl=%.sl)

    # Which links can this platform create. Define one or
    # both of these options.
    # (On HP-UX, we *can* build dynamic, but it's safer not to, since other
    # systems we distribute HP-UX packages to may not have all the shared
    # libraries in the same locations.)
    UNIX_CAN_BUILD_DYNAMIC=1
    UNIX_CAN_BUILD_STATIC=1
    ABI_REQUIRE_PEER_ICONV=1
    ABI_OPT_DEBUG=0



    This archive was generated by hypermail 2.1.4 : Wed Jun 12 2002 - 08:41:49 EDT