#16798 closed defect (fixed)
gnumeric fails to build on Leopard
Reported by: | mvanier@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | gnumeric | Cc: | vakuumfluktuation@…, cfertig@…, mf2k (Frank Schima), macports@…, dhelder@…, mike@…, jmroot (Joshua Root) |
Port: | gnumeric |
Description (last modified by jmroot (Joshua Root))
I've managed to compile all the dependencies of gnumeric, but the gnumeric compile itself fails:
[...lots of output omitted...] mkdir .libs /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -DGNUMERIC_DATADIR=\"/opt/local/share/gnumeric/1.9.0\" -I../.. -I../../src -I../../src/tools -DGNUMERIC_INTERNAL -DXTHREADS -D_REENTRANT -DORBIT2=1 -I/opt/local/include/libgoffice-0.6 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libgsf-1 -I/opt/local/include/libxml2 -I/opt/local/include/gtk-2.0 -I/opt/local/include/libglade-2.0 -I/opt/local/include/libart-2.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include/gconf/2 -I/opt/local/include/gnome-keyring-1 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/libbonoboui-2.0 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-activation-2.0 -I/opt/local/include/gail-1.0 -I/opt/local/include -O2 -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -Wall -Wmissing-prototypes -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -Wdeclaration-after-statement -Wnested-externs -Wmissing-noreturn -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-pointer-sign -MT dao-gui-utils.lo -MD -MP -MF .deps/dao-gui-utils.Tpo -c dao-gui-utils.c -fno-common -DPIC -o .libs/dao-gui-utils.o In file included from dao-gui-utils.h:35, from dao-gui-utils.c:30: tool-dialogs.h:63: error: syntax error before 'GtkSignalFunc' tool-dialogs.h:66: warning: function declaration isn't a prototype dao-gui-utils.c:86: error: syntax error before 'GtkSignalFunc' dao-gui-utils.c: In function 'dialog_tool_init_outputs': dao-gui-utils.c:87: error: number of arguments doesn't match prototype dao-gui-utils.h:42: error: prototype declaration dao-gui-utils.c:90: error: 'state' undeclared (first use in this function) dao-gui-utils.c:90: error: (Each undeclared identifier is reported only once dao-gui-utils.c:90: error: for each function it appears in.) dao-gui-utils.c:101: error: 'sensitivity_cb' undeclared (first use in this function) make[4]: *** [dao-gui-utils.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
Change History (17)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Port: | gnumeric added |
comment:2 follow-up: 6 Changed 16 years ago by vakuumfluktuation@…
comment:4 Changed 16 years ago by cfertig@…
Same problem on Leopard 10.5.5, XCode 3.1, and MacPorts 1.6.0.
comment:6 Changed 16 years ago by frig.neutron@…
Replying to vakuumfluktuation@…:
I get the exact same error under Tiger 10.4.11, XCode 2.5 and MacPorts 1.6.0 ...
Any idea?
No idea thus far. Same issue.
comment:12 follow-up: 14 Changed 16 years ago by mike@…
Gnumeric 1.9.0 uses deprecated GTK2 symbols. However, src/dialogs/Makefile defines CFLAGS such that GTK_DISABLE_DEPRECATED is defined. This definition needs to be removed or we will have to wait until gnumeric is updated to avoid deprecated symbols.
This is also an issue in src/widgets/Makefile and src/Makefile.
In addition, there is a #warning in widget-font-selector.c that causes compilation to fail.
All of these are really upstream issues, but they could be temporarily addressed in the Portfile.
comment:13 Changed 16 years ago by mike@…
It looks like releases of gnumeric newer than 1.9.0 require goffice 0.8.0+, which is not yet available in Macports.
comment:14 Changed 16 years ago by vakuumfluktuation@…
Replying to mike@…:
All of these are really upstream issues, but they could be temporarily addressed in the Portfile.
Could you post an adjusted Portfile, incorporating these temporarily fixes? I'm not quite sure how to do it myself... Thanks!
comment:15 Changed 16 years ago by jmroot (Joshua Root)
Cc: | jmr@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in r45710 (by switching back to the stable branch).
comment:16 Changed 16 years ago by mike@…
I was able to build gnumeric 1.9.4 on MacPorts 7.1 / Mac OS X 10.4.11. In order to do this, I had to manually build goffice 0.7.4. It seems that newer versions of gnumeric fix the deprecated symbols issue that caused this problem in the first place.
I get the exact same error under Tiger 10.4.11, XCode 2.5 and MacPorts 1.6.0 ...
Any idea?