GNOME Bugzilla – Bug 133216
Incorrect array-initialization
Last modified: 2011-02-04 16:16:03 UTC
gmake[5]: Entering directory `/alcesys/build/garnome-0.29.1/platform/gtk+/work/main.d/gtk+-2.3.2/gtk' source='gtktreemodel.c' object='gtktreemodel.lo' libtool=yes \ depfile='.deps/gtktreemodel.Plo' tmpdepfile='.deps/gtktreemodel.TPlo' \ depmode=hp /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile /bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/alcesys/build/gnome-2.6/lib\" -DGTK_DATADIR=\"/alcesys/build/gnome-2.6/share\" -DGTK_DATA_PREFIX=\"/alcesys/build/gnome-2.6\" -DGTK_SYSCONFDIR=\"/alcesys/build/gnome-2.6/etc\" -DGTK_VERSION=\"2.3.2\" -DGTK_BINARY_VERSION=\"2.2.0\" -DGTK_HOST=\"hppa2.0w-hp-hpux11.11\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_ENABLE_DEBUG -D_REENTRANT -I/alcesys/build/gnome-2.6/include/glib-2.0 -I/alcesys/build/gnome-2.6/lib/glib-2.0/include -I/alcesys/build/gnome-2.6/include -I/usr/include/X11R6 -I/alcesys/build/gnome-2.6/include/pango-1.0 -I/alcesys/build/gnome-2.6/include/freetype2 -I/alcesys/build/gnome-2.6/include/atk-1.0 -I/alcesys/build/gnome-2.6/include -I/usr/contrib/X11R6/include -I/usr/include/X11R6 -I/usr/local/include -I/usr/local/gnu/include +DA2.0W -Ae -c -o gtktreemodel.lo `test -f 'gtktreemodel.c' || echo './'`gtktreemodel.c /bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/alcesys/build/gnome-2.6/lib\" -DGTK_DATADIR=\"/alcesys/build/gnome-2.6/share\" -DGTK_DATA_PREFIX=\"/alcesys/build/gnome-2.6\" -DGTK_SYSCONFDIR=\"/alcesys/build/gnome-2.6/etc\" -DGTK_VERSION=\"2.3.2\" -DGTK_BINARY_VERSION=\"2.2.0\" -DGTK_HOST=\"hppa2.0w-hp-hpux11.11\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_ENABLE_DEBUG -D_REENTRANT -I/alcesys/build/gnome-2.6/include/glib-2.0 -I/alcesys/build/gnome-2.6/lib/glib-2.0/include -I/alcesys/build/gnome-2.6/include -I/usr/include/X11R6 -I/alcesys/build/gnome-2.6/include/pango-1.0 -I/alcesys/build/gnome-2.6/include/freetype2 -I/alcesys/build/gnome-2.6/include/atk-1.0 -I/alcesys/build/gnome-2.6/include -I/usr/contrib/X11R6/include -I/usr/include/X11R6 -I/usr/local/include -I/usr/local/gnu/include +DA2.0W -Ae -c gtktreemodel.c -Wp,-M.deps/gtktreemodel.TPlo +Z -DPIC -o .libs/gtktreemodel.o cpp: "/usr/include/sys/param.h", line 379: warning 2001: Redefinition of macro MIN. cpp: "/usr/include/sys/param.h", line 380: warning 2001: Redefinition of macro MAX. cc: "gtktreemodel.c", line 133: error 1521: Incorrect initialization. cc: "gtktreemodel.c", line 133: error 1521: Incorrect initialization. cc: "gtktreemodel.c", line 134: error 1521: Incorrect initialization. cc: "gtktreemodel.c", line 135: error 1521: Incorrect initialization. cc: "gtktreemodel.c", line 135: error 1521: Incorrect initialization. cc: "gtktreemodel.c", line 223: warning 604: Pointers are not assignment-compatible. cc: "gtktreemodel.c", line 253: warning 604: Pointers are not assignment-compatible. cc: "gtktreemodel.c", line 287: warning 604: Pointers are not assignment-compatible. gmake[5]: *** [gtktreemodel.lo] Error 1 The following construction doesn't seem to work with HP-UX C-compiler: #include <stdio.h> long foo(void) { return 1L; } long bar(void) { return 2L; } int main(int argc, char *argv[]) { long frotz[] = { ( foo () ), ( bar () ) }; printf("Hello Gnome-2.6, where are You?\n"); return 0; } /opt/ansic/bin/cc -Ae +DA2.0W -o frotz gtype.c cc: "gtype.c", line 15: error 1521: Incorrect initialization. cc: "gtype.c", line 15: error 1521: Incorrect initialization. The compiler is: HP C/HP-UX Version B.11.01.21
Got a modern compiler version installed! This compiles with HP C/HP-UX Version 11.11.06