After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 133216 - Incorrect array-initialization
Incorrect array-initialization
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.3.x
Other HP-UX
: Normal blocker
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2004-02-02 14:03 UTC by Jonas Jonsson
Modified: 2011-02-04 16:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonas Jonsson 2004-02-02 14:03:22 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
Comment 1 Jonas Jonsson 2004-02-04 10:40:55 UTC
Got a modern compiler version installed!

This compiles with 
HP C/HP-UX Version 11.11.06