GNOME Bugzilla – Bug 165564
incompatible type for argument 8 of `gnome_program_init_common'
Last modified: 2005-02-02 22:53:29 UTC
Steps to reproduce: 1. Decompressed libgnome-2.9.1.tar.bz2 2. Ran ./configure 3. Ran make -s Stack trace: There is not stack trace, this is while attempting to compile 'libgnome- 2.9.1.tar.bz'. Also received the same error with 'libgnome-2.8.0.tar.bz2'. Below is the error generated in its entirety... ccache gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -Wall -Wmissing- prototypes -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib- 2.0/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include - I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0 - I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -DG_DISABLE_DEPRECATED - DLIBGNOME_PREFIX=\"/usr\" -DLIBGNOME_LIBDIR=\"/usr/lib\" - DLIBGNOME_DATADIR=\"/usr/share\" -DLIBGNOME_BINDIR=\"/usr/bin\" - DLIBGNOME_LOCALSTATEDIR=\"/usr/var\" -DLIBGNOME_SYSCONFDIR=\"/etc\" - DVERSION=\"2.9.1\" -DGNOMEVFSVERSION=\"2.8.2\" -DG_LOG_DOMAIN=\"Gnome\" -g -O3 - g -O3 -mtune=ev56 -mcpu=ev56 -mieee -funroll-loops -mmax -ffast-math -fstrict- aliasing -pipe -fexpensive-optimizations -finline -foptimize-register-move - foptimize-sibling-calls -fomit-frame-pointer -MT gnome-program.lo -MD -MP - MF .deps/gnome-program.Tpo -c gnome-program.c -fPIC -DPIC -o .libs/gnome- program.o gnome-program.c: In function `gnome_program_module_load': gnome-program.c:1423: warning: dereferencing type-punned pointer will break strict-aliasing rules gnome-program.c: In function `accessibility_invoke_module': gnome-program.c:1523: warning: dereferencing type-punned pointer will break strict-aliasing rules gnome-program.c: In function `gnome_program_init_paramv': gnome-program.c:1932: error: incompatible type for argument 8 of `gnome_program_init_common' make[3]: *** [gnome-program.lo] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 I was running the following tools: GCC-3.4.3 Make-3.80 Binutils-2.15 GTK-2.6.0 GLIB-2.6.0 Pango-1.8.0 etc. Other information:
Could you try without all the extra compiler flags? Just run ./configure and drop -O3 and all the other optimisation stuff.
Fixed on both branches.
Here you go, a nice gcc dump while compiling gdm. I ran the command below: gcc -E -DHAVE_CONFIG_H -DGDM_CONFIG_FILE=\"/etc/gdm/gdm.conf\" -I. -I.. - I../vicious-extensions -DGNOMELOCALEDIR=\""/usr/share/locale"\" - DLOCALEDIR=\"/usr/share/locale\" -DXTHREADS -D_XOPEN_SOURCE=500 - DXUSE_MTSAFE_API -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk- 2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango- 1.0 -I/usr/include/freetype2 -I/usr/X11/include -I/usr/include/glib-2.0 - I/usr/lib/glib-2.0/include -I/usr/include/libgnomeui-2.0 - I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 - I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 - I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs- 2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 - I/usr/include/libxml2 -I/usr/include/libglade-2.0 -DXTHREADS - D_XOPEN_SOURCE=500 -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk- 2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango- 1.0 -I/usr/include/freetype2 -I/usr/X11/include -I/usr/include/glib-2.0 - I/usr/lib/glib-2.0/include -DPAM_PREFIX=\"/etc\" -g -O3 -g -O3 -mtune=ev56 - mcpu=ev56 -mieee -funroll-loops -mmax -ffast-math -fstrict-aliasing -pipe - fexpensive-optimizations -ffloat-store -finline -Winline -foptimize-register- move -foptimize-sibling-calls -fforce-addr -fforce-mem -fomit-frame-pointer - Wall -Wmissing-prototypes -c server.c http://kcnetwork.net/tmp/gdm-GCC-DUMP.txt Tell me what you think? To my untrained eye, its pulling in a lot of glib and gtk headers... If you like, I can set you up a temp account and you can log in yourself and run all the commands you like?