#14905 closed defect (fixed)
metacity fails to build (core/compositor.c issues)
Reported by: | paulbeard@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | metacity | Cc: | jmroot (Joshua Root), gui-dos (Guido Soranzio), bbyer@… |
Port: |
Description
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_metacity/work/metacity-2.22.0" && make all " returned error 2 Command output: core/compositor.c: In function 'process_property_notify': core/compositor.c:2020: error: 'info' undeclared (first use in this function) core/compositor.c:2040: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'expose_area': core/compositor.c:2091: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:2091: error: parse error before 'region' core/compositor.c:2094: error: 'region' undeclared (first use in this function) core/compositor.c: In function 'process_expose': core/compositor.c:2104: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'process_unmap': core/compositor.c:2136: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'process_map': core/compositor.c:2154: error: 'cw' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:2201: error: parse error before 'XDamageNotifyEvent' core/compositor.c: In function 'process_damage': core/compositor.c:2203: error: 'cw' undeclared (first use in this function) core/compositor.c:2203: error: 'compositor' undeclared (first use in this function) core/compositor.c:2204: error: 'event' undeclared (first use in this function) core/compositor.c: In function 'process_shape': core/compositor.c:2220: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'show_overlay_window': core/compositor.c:2314: warning: unused variable 'display' core/compositor.c: In function 'get_output_window': core/compositor.c:2352: warning: unused variable 'display' make[4]: *** [compositor.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Attachments (6)
Change History (34)
comment:1 Changed 17 years ago by jmroot (Joshua Root)
Cc: | jmr@… added |
---|
comment:3 Changed 17 years ago by jmroot (Joshua Root)
Sorry, I should have been more specific. Please run port clean metacity
first so that the build state is reset and the configure stage will be re-run, and then build with -d.
Changed 17 years ago by paulbeard@…
Attachment: | metacity.log.gz added |
---|
comment:4 Changed 17 years ago by paulbeard@…
Yeah, I should have realized that. New log is available.
comment:5 Changed 17 years ago by mtalexander (Mike Alexander)
This seems to be failing because three header files are missing: X11/extensions/Xcomposite.h, X11/extensions/Xdamage.h, and X11/extensions/Xfixes.h. I ran into the same problem running on 10.4.11 and couldn't find these files anywhere, either on my machine or in MacPorts. Perhaps it works on 10.5.x.
comment:6 follow-up: 7 Changed 17 years ago by jmroot (Joshua Root)
Those extensions aren't present on 10.5 either, and their absence is the reason for using --disable-compositor
. Thing is, that actually prevents compositor.c from being built, for me.
comment:7 Changed 17 years ago by dbevans (David B. Evans)
Replying to jmr@macports.org:
Those extensions aren't present on 10.5 either, and their absence is the reason for using
--disable-compositor
. Thing is, that actually prevents compositor.c from being built, for me.
Looking at the code, these include files are required whether or not --disable-compositor is used. This switch just turns off code in the various compositor related functions causing them to return a null result. It appears that the include files are found in xorg's libXdamage, libXcomposite and libXfixes which are not current ports but might be done similar to existing xorg-libXxxx ports. May be other second level dependencies as well. Perhaps the maintainer of the other related ports (bbyer) might want to look at this?
comment:8 Changed 17 years ago by paulbeard@…
Any reason not to mark it as BROKEN in the meantime? Will that break anything else?
comment:9 Changed 17 years ago by paulbeard@…
Any way to swap in another window manager in the meantime or drop back to a/the prior version?
comment:10 follow-up: 11 Changed 17 years ago by jmroot (Joshua Root)
Cc: | gui_dos@… added |
---|
On Leopard, there seem to be some bits missing from X11 on machines that come with 10.5.2 preinstalled, which are present on machines that have been updated from 10.5.0. Installing the latest xquartz release might help.
For Tiger, an updated xorg-xproto and/or xorg port may be needed.
comment:11 Changed 17 years ago by paulbeard@…
Replying to jmr@macports.org:
On Leopard, there seem to be some bits missing from X11 on machines that come with 10.5.2 preinstalled, which are present on machines that have been updated from 10.5.0. Installing the latest xquartz release might help.
For Tiger, an updated xorg-xproto and/or xorg port may be needed.
Just to be clear, I am on Tiger. Any reason not to drop back to the previous release?
comment:12 Changed 17 years ago by paulbeard@…
has anyone CC:ed bbyer on this? Or can someone swap in openbox or something else for metacity so these stalled ports can be upgraded? I have a handful that are stuck.
comment:13 Changed 17 years ago by jmroot (Joshua Root)
Cc: | bbyer@… added |
---|
I just noticed that there are xorg-compositeproto, xorg-damageproto, and xorg-fixesproto ports. Does installing those help?
comment:15 follow-up: 16 Changed 17 years ago by jeremyhu (Jeremy Huddleston Sequoia)
FTR (I know you're on Tiger), this should compile on 10.5 assuming you have XCode 3 with the X11SDK installed. The protos aren't installed for normal users. X11-2.2.0 or later is also an option since it includes all the protos as well.
As for tiger, you should be able to just install the protos (either by hand or from macports).
comment:16 Changed 17 years ago by paulbeard@…
Replying to jeremyhu@freedesktop.org:
FTR (I know you're on Tiger), this should compile on 10.5 assuming you have XCode 3 with the X11SDK installed. The protos aren't installed for normal users. X11-2.2.0 or later is also an option since it includes all the protos as well.
As for tiger, you should be able to just install the protos (either by hand or from macports).
Installing the protos didn't change anything. Maybe I'm just obsolete? Leopard won't run on this hardware (well, it will but it would be unenjoyable: 800 MHz and 640 Mb RAM is not enough to float that boat).
comment:17 follow-up: 18 Changed 17 years ago by jmroot (Joshua Root)
Apparently the headers that are included by compositor.c are not part of the *proto packages, but are installed with the extension libraries themselves. I'll attach a patch to try.
Changed 17 years ago by jmroot (Joshua Root)
Attachment: | metacity-Portfile.diff added |
---|
comment:18 Changed 17 years ago by paulbeard@…
Replying to jmr@macports.org:
Apparently the headers that are included by compositor.c are not part of the *proto packages, but are installed with the
extension libraries themselves. I'll attach a patch to try.
Well, it still fails but differently, I think. Here's what I hope are the relevant bits from the -dv output from a post-patch build.
creating libmetacity-private.la (cd .libs && rm -f libmetacity-private.la && ln -s ../libmetacity-private.la libmetacity-private.la) /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/pixman-1 -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/startup-notification-1.0 -I ./include -DMETACITY_LIBEXECDIR=\"/opt/local/libexec\" -DHOST_ALIAS=\"\" -DMETACITY_LOCALEDIR=\"/opt/local/share/locale\" -DMETACITY_PKGDATADIR=\"/opt/local/share/metacity\" -DMETACITY_DATADIR=\"/opt/local/share\" -DG_LOG_DOMAIN=\"metacity\" -DSN_API_NOT_YET_FROZEN=1 -I/opt/local/include -I/usr/X11R6/include -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT async-getprop.o -MD -MP -MF .deps/async-getprop.Tpo -c -o async-getprop.o `test -f 'core/async-getprop.c' || echo './'`core/async-getprop.c mv -f .deps/async-getprop.Tpo .deps/async-getprop.Po /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/pixman-1 -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/startup-notification-1.0 -I ./include -DMETACITY_LIBEXECDIR=\"/opt/local/libexec\" -DHOST_ALIAS=\"\" -DMETACITY_LOCALEDIR=\"/opt/local/share/locale\" -DMETACITY_PKGDATADIR=\"/opt/local/share/metacity\" -DMETACITY_DATADIR=\"/opt/local/share\" -DG_LOG_DOMAIN=\"metacity\" -DSN_API_NOT_YET_FROZEN=1 -I/opt/local/include -I/usr/X11R6/include -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT bell.o -MD -MP -MF .deps/bell.Tpo -c -o bell.o `test -f 'core/bell.c' || echo './'`core/bell.c mv -f .deps/bell.Tpo .deps/bell.Po /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/pixman-1 -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/startup-notification-1.0 -I ./include -DMETACITY_LIBEXECDIR=\"/opt/local/libexec\" -DHOST_ALIAS=\"\" -DMETACITY_LOCALEDIR=\"/opt/local/share/locale\" -DMETACITY_PKGDATADIR=\"/opt/local/share/metacity\" -DMETACITY_DATADIR=\"/opt/local/share\" -DG_LOG_DOMAIN=\"metacity\" -DSN_API_NOT_YET_FROZEN=1 -I/opt/local/include -I/usr/X11R6/include -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT boxes.o -MD -MP -MF .deps/boxes.Tpo -c -o boxes.o `test -f 'core/boxes.c' || echo './'`core/boxes.c mv -f .deps/boxes.Tpo .deps/boxes.Po /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/pixman-1 -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/startup-notification-1.0 -I ./include -DMETACITY_LIBEXECDIR=\"/opt/local/libexec\" -DHOST_ALIAS=\"\" -DMETACITY_LOCALEDIR=\"/opt/local/share/locale\" -DMETACITY_PKGDATADIR=\"/opt/local/share/metacity\" -DMETACITY_DATADIR=\"/opt/local/share\" -DG_LOG_DOMAIN=\"metacity\" -DSN_API_NOT_YET_FROZEN=1 -I/opt/local/include -I/usr/X11R6/include -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT compositor.o -MD -MP -MF .deps/compositor.Tpo -c -o compositor.o `test -f 'core/compositor.c' || echo './'`core/compositor.c In file included from core/compositor.c:42: /opt/local/include/X11/extensions/damageproto.h:140: error: parse error before 'xRectangle' /opt/local/include/X11/extensions/damageproto.h:140: warning: no semicolon at end of struct or union /opt/local/include/X11/extensions/damageproto.h:141: warning: type defaults to 'int' in declaration of 'geometry' /opt/local/include/X11/extensions/damageproto.h:141: warning: data definition has no type or storage class /opt/local/include/X11/extensions/damageproto.h:142: warning: type defaults to 'int' in declaration of 'xDamageNotifyEvent' /opt/local/include/X11/extensions/damageproto.h:142: warning: data definition has no type or storage class core/compositor.c:124: error: parse error before 'XserverRegion' core/compositor.c:124: warning: no semicolon at end of struct or union core/compositor.c:131: error: parse error before '}' token core/compositor.c:131: warning: type defaults to 'int' in declaration of 'MetaCompScreen' core/compositor.c:131: warning: data definition has no type or storage class core/compositor.c:158: error: parse error before 'Damage' core/compositor.c:158: warning: no semicolon at end of struct or union core/compositor.c:163: error: parse error before 'border_size' core/compositor.c:163: warning: type defaults to 'int' in declaration of 'border_size' core/compositor.c:163: warning: data definition has no type or storage class core/compositor.c:164: error: parse error before 'extents' core/compositor.c:164: warning: type defaults to 'int' in declaration of 'extents' core/compositor.c:164: warning: data definition has no type or storage class core/compositor.c:174: error: parse error before 'border_clip' core/compositor.c:174: warning: type defaults to 'int' in declaration of 'border_clip' core/compositor.c:174: warning: data definition has no type or storage class core/compositor.c:178: error: parse error before '}' token core/compositor.c:178: warning: type defaults to 'int' in declaration of 'MetaCompWindow' core/compositor.c:178: warning: data definition has no type or storage class core/compositor.c:242: error: parse error before 'XserverRegion' core/compositor.c: In function 'dump_xserver_region': core/compositor.c:244: error: 'display' undeclared (first use in this function) core/compositor.c:244: error: (Each undeclared identifier is reported only once core/compositor.c:244: error: for each function it appears in.) core/compositor.c:253: error: 'region' undeclared (first use in this function) core/compositor.c:255: warning: implicit declaration of function 'XFixesFetchRegionAndBounds' core/compositor.c:255: warning: nested extern declaration of 'XFixesFetchRegionAndBounds' core/compositor.c:255: warning: assignment makes pointer from integer without a cast core/compositor.c:260: error: 'location' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:343: error: parse error before '*' token core/compositor.c: In function 'presum_gaussian': core/compositor.c:350: error: 'info' undeclared (first use in this function) core/compositor.c: In function 'make_shadow': core/compositor.c:406: error: 'info' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:570: error: parse error before '*' token core/compositor.c:573: warning: return type defaults to 'int' core/compositor.c:573: warning: no previous prototype for 'find_window_for_screen' core/compositor.c: In function 'find_window_for_screen': core/compositor.c:574: error: 'info' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:582: error: parse error before '*' token core/compositor.c:585: warning: return type defaults to 'int' core/compositor.c:585: warning: no previous prototype for 'find_window_in_display' core/compositor.c: In function 'find_window_in_display': core/compositor.c:590: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'create_root_buffer': core/compositor.c:723: error: 'info' undeclared (first use in this function) core/compositor.c: In function 'paint_root': core/compositor.c:755: error: 'info' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:772: error: parse error before '*' token core/compositor.c: In function 'window_has_shadow': core/compositor.c:774: error: parse error before ')' token core/compositor.c:778: error: 'cw' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:803: error: parse error before 'win_extents' core/compositor.c:803: error: parse error before '*' token core/compositor.c:804: warning: return type defaults to 'int' core/compositor.c:804: warning: no previous prototype for 'win_extents' core/compositor.c: In function 'win_extents': core/compositor.c:807: error: 'info' undeclared (first use in this function) core/compositor.c:810: error: 'cw' undeclared (first use in this function) core/compositor.c:862: warning: implicit declaration of function 'XFixesCreateRegion' core/compositor.c:862: warning: nested extern declaration of 'XFixesCreateRegion' core/compositor.c: At top level: core/compositor.c:866: error: parse error before 'border_size' core/compositor.c:866: error: parse error before '*' token core/compositor.c:867: warning: return type defaults to 'int' core/compositor.c:867: error: 'border_size' redeclared as different kind of symbol core/compositor.c:163: error: previous declaration of 'border_size' was here core/compositor.c: In function 'border_size': core/compositor.c:868: error: 'cw' undeclared (first use in this function) core/compositor.c:870: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:870: error: parse error before 'border' core/compositor.c:873: error: 'border' undeclared (first use in this function) core/compositor.c:873: warning: implicit declaration of function 'XFixesCreateRegionFromWindow' core/compositor.c:873: warning: nested extern declaration of 'XFixesCreateRegionFromWindow' core/compositor.c:878: warning: implicit declaration of function 'XFixesTranslateRegion' core/compositor.c:878: warning: nested extern declaration of 'XFixesTranslateRegion' core/compositor.c: At top level: core/compositor.c:885: error: parse error before '*' token core/compositor.c: In function 'get_window_format': core/compositor.c:887: error: 'cw' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:900: error: parse error before '*' token core/compositor.c: In function 'get_window_picture': core/compositor.c:902: error: 'cw' undeclared (first use in this function) core/compositor.c:913: warning: implicit declaration of function 'have_name_window_pixmap' core/compositor.c:913: warning: nested extern declaration of 'have_name_window_pixmap' core/compositor.c:916: warning: implicit declaration of function 'XCompositeNameWindowPixmap' core/compositor.c:916: warning: nested extern declaration of 'XCompositeNameWindowPixmap' core/compositor.c: At top level: core/compositor.c:944: error: parse error before 'XserverRegion' core/compositor.c: In function 'paint_dock_shadows': core/compositor.c:946: error: 'screen' undeclared (first use in this function) core/compositor.c:948: error: 'info' undeclared (first use in this function) core/compositor.c:953: error: 'cw' undeclared (first use in this function) core/compositor.c:954: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:954: error: parse error before 'shadow_clip' core/compositor.c:958: error: 'shadow_clip' undeclared (first use in this function) core/compositor.c:959: warning: implicit declaration of function 'XFixesIntersectRegion' core/compositor.c:959: warning: nested extern declaration of 'XFixesIntersectRegion' core/compositor.c:960: error: 'region' undeclared (first use in this function) core/compositor.c:962: warning: implicit declaration of function 'XFixesSetPictureClipRegion' core/compositor.c:962: warning: nested extern declaration of 'XFixesSetPictureClipRegion' core/compositor.c:962: error: 'root_buffer' undeclared (first use in this function) core/compositor.c:970: warning: implicit declaration of function 'XFixesDestroyRegion' core/compositor.c:970: warning: nested extern declaration of 'XFixesDestroyRegion' core/compositor.c: At top level: core/compositor.c:979: error: parse error before 'XserverRegion' core/compositor.c: In function 'paint_windows': core/compositor.c:981: error: 'screen' undeclared (first use in this function) core/compositor.c:982: error: 'info' undeclared (first use in this function) core/compositor.c:987: error: 'cw' undeclared (first use in this function) core/compositor.c:988: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:988: error: parse error before 'paint_region' core/compositor.c:995: error: 'region' undeclared (first use in this function) core/compositor.c:1002: error: 'paint_region' undeclared (first use in this function) core/compositor.c:1007: warning: implicit declaration of function 'XFixesCopyRegion' core/compositor.c:1007: warning: nested extern declaration of 'XFixesCopyRegion' core/compositor.c:1010: error: 'desktop_region' undeclared (first use in this function) core/compositor.c:1017: error: 'windows' undeclared (first use in this function) core/compositor.c:1022: error: parse error before ')' token core/compositor.c:1088: error: 'root_buffer' undeclared (first use in this function) core/compositor.c:1100: warning: implicit declaration of function 'XFixesSubtractRegion' core/compositor.c:1100: warning: nested extern declaration of 'XFixesSubtractRegion' core/compositor.c:1124: error: parse error before ')' token core/compositor.c:1130: error: parse error before 'shadow_clip' core/compositor.c:1132: error: 'shadow_clip' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:1197: error: parse error before 'XserverRegion' core/compositor.c: In function 'paint_all': core/compositor.c:1199: error: 'info' undeclared (first use in this function) core/compositor.c:1199: error: 'screen' undeclared (first use in this function) core/compositor.c:1204: error: 'region' undeclared (first use in this function) core/compositor.c: In function 'repair_screen': core/compositor.c:1242: error: 'info' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:1308: error: parse error before 'XserverRegion' core/compositor.c: In function 'add_damage': core/compositor.c:1310: error: 'screen' undeclared (first use in this function) core/compositor.c:1311: error: 'info' undeclared (first use in this function) core/compositor.c:1317: warning: implicit declaration of function 'XFixesUnionRegion' core/compositor.c:1317: warning: nested extern declaration of 'XFixesUnionRegion' core/compositor.c:1318: error: 'damage' undeclared (first use in this function) core/compositor.c: In function 'damage_screen': core/compositor.c:1333: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:1333: error: parse error before 'region' core/compositor.c:1341: error: 'region' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:1347: error: parse error before '*' token core/compositor.c: In function 'repair_win': core/compositor.c:1349: error: 'cw' undeclared (first use in this function) core/compositor.c:1351: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:1351: error: parse error before 'parts' core/compositor.c:1356: error: 'parts' undeclared (first use in this function) core/compositor.c:1357: warning: implicit declaration of function 'XDamageSubtract' core/compositor.c:1357: warning: nested extern declaration of 'XDamageSubtract' core/compositor.c: At top level: core/compositor.c:1376: error: parse error before '*' token core/compositor.c: In function 'free_win': core/compositor.c:1379: error: 'cw' undeclared (first use in this function) core/compositor.c:1380: error: 'info' undeclared (first use in this function) core/compositor.c:1386: error: 'destroy' undeclared (first use in this function) core/compositor.c:1446: warning: implicit declaration of function 'XDamageDestroy' core/compositor.c:1446: warning: nested extern declaration of 'XDamageDestroy' core/compositor.c: In function 'map_win': core/compositor.c:1466: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'unmap_win': core/compositor.c:1497: error: 'cw' undeclared (first use in this function) core/compositor.c:1498: error: 'info' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:1522: error: parse error before 'MetaCompWindow' core/compositor.c: In function 'determine_mode': core/compositor.c:1526: error: 'cw' undeclared (first use in this function) core/compositor.c:1528: error: 'display' undeclared (first use in this function) core/compositor.c:1551: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:1551: error: parse error before 'damage' core/compositor.c:1552: error: 'damage' undeclared (first use in this function) core/compositor.c:1556: error: 'screen' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:1581: error: parse error before 'MetaCompWindow' core/compositor.c: In function 'get_window_type': core/compositor.c:1583: error: 'display' undeclared (first use in this function) core/compositor.c:1592: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'add_win': core/compositor.c:1634: error: 'info' undeclared (first use in this function) core/compositor.c:1635: error: 'cw' undeclared (first use in this function) core/compositor.c:1644: error: parse error before ')' token core/compositor.c:1674: warning: implicit declaration of function 'XDamageCreate' core/compositor.c:1674: warning: nested extern declaration of 'XDamageCreate' core/compositor.c: In function 'destroy_win': core/compositor.c:1715: error: 'info' undeclared (first use in this function) core/compositor.c:1716: error: 'cw' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:1740: error: parse error before '*' token core/compositor.c: In function 'restack_win': core/compositor.c:1744: error: 'info' undeclared (first use in this function) core/compositor.c:1748: error: 'cw' undeclared (first use in this function) core/compositor.c:1757: error: 'ncw' undeclared (first use in this function) core/compositor.c:1757: error: parse error before ')' token core/compositor.c:1764: error: 'above' undeclared (first use in this function) core/compositor.c:1775: error: 'cw2' undeclared (first use in this function) core/compositor.c:1775: error: parse error before ')' token core/compositor.c: At top level: core/compositor.c:1789: error: parse error before '*' token core/compositor.c: In function 'resize_win': core/compositor.c:1799: error: 'info' undeclared (first use in this function) core/compositor.c:1801: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:1801: error: parse error before 'damage' core/compositor.c:1804: error: 'cw' undeclared (first use in this function) core/compositor.c:1813: error: 'damage' undeclared (first use in this function) core/compositor.c:1836: error: 'x' undeclared (first use in this function) core/compositor.c:1837: error: 'y' undeclared (first use in this function) core/compositor.c:1839: error: 'width' undeclared (first use in this function) core/compositor.c:1839: error: 'height' undeclared (first use in this function) core/compositor.c:1882: error: 'border_width' undeclared (first use in this function) core/compositor.c:1883: error: 'override_redirect' undeclared (first use in this function) core/compositor.c: In function 'process_circulate_notify': core/compositor.c:1914: error: 'cw' undeclared (first use in this function) core/compositor.c:1916: error: 'top' undeclared (first use in this function) core/compositor.c:1917: error: 'info' undeclared (first use in this function) core/compositor.c:1928: error: parse error before ')' token core/compositor.c: In function 'process_configure_notify': core/compositor.c:1948: error: 'cw' undeclared (first use in this function) core/compositor.c:1982: error: 'info' undeclared (first use in this function) core/compositor.c: In function 'process_property_notify': core/compositor.c:2020: error: 'info' undeclared (first use in this function) core/compositor.c:2040: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'expose_area': core/compositor.c:2091: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:2091: error: parse error before 'region' core/compositor.c:2094: error: 'region' undeclared (first use in this function) core/compositor.c: In function 'process_expose': core/compositor.c:2104: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'process_unmap': core/compositor.c:2136: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'process_map': core/compositor.c:2154: error: 'cw' undeclared (first use in this function) core/compositor.c: At top level: core/compositor.c:2201: error: parse error before 'XDamageNotifyEvent' core/compositor.c: In function 'process_damage': core/compositor.c:2203: error: 'cw' undeclared (first use in this function) core/compositor.c:2203: error: 'compositor' undeclared (first use in this function) core/compositor.c:2204: error: 'event' undeclared (first use in this function) core/compositor.c: In function 'process_shape': core/compositor.c:2220: error: 'cw' undeclared (first use in this function) core/compositor.c: In function 'show_overlay_window': core/compositor.c:2317: warning: implicit declaration of function 'have_cow' core/compositor.c:2317: warning: nested extern declaration of 'have_cow' core/compositor.c:2319: error: 'XserverRegion' undeclared (first use in this function) core/compositor.c:2319: error: parse error before 'region' core/compositor.c:2321: error: 'region' undeclared (first use in this function) core/compositor.c:2323: warning: implicit declaration of function 'XFixesSetWindowShapeRegion' core/compositor.c:2323: warning: nested extern declaration of 'XFixesSetWindowShapeRegion' core/compositor.c:2324: error: 'ShapeInput' undeclared (first use in this function) core/compositor.c: In function 'get_output_window': core/compositor.c:2358: warning: implicit declaration of function 'XCompositeGetOverlayWindow' core/compositor.c:2358: warning: nested extern declaration of 'XCompositeGetOverlayWindow' make[4]: *** [compositor.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Warning: the following items did not execute (for metacity): org.macports.build
Changed 17 years ago by paulbeard@…
full log of verbose/debug build, with jmr's patches.
comment:20 follow-up: 21 Changed 17 years ago by paulbeard@…
Still wedged. Wouldn't dropping another WM in there be easier?
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/pixman-1 -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/startup-notification-1.0 -I ./include -DMETACITY_LIBEXECDIR=\"/opt/local/libexec\" -DHOST_ALIAS=\"\" -DMETACITY_LOCALEDIR=\"/opt/local/share/locale\" -DMETACITY_PKGDATADIR=\"/opt/local/share/metacity\" -DMETACITY_DATADIR=\"/opt/local/share\" -DG_LOG_DOMAIN=\"metacity\" -DSN_API_NOT_YET_FROZEN=1 -I/opt/local/include -I/usr/X11R6/include -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT compositor.o -MD -MP -MF .deps/compositor.Tpo -c -o compositor.o `test -f 'core/compositor.c' || echo './'`core/compositor.c core/compositor.c:161: error: parse error before 'Damage' core/compositor.c:161: warning: no semicolon at end of struct or union core/compositor.c:181: error: parse error before '}' token core/compositor.c:181: warning: type defaults to 'int' in declaration of 'MetaCompWindow' core/compositor.c:181: warning: data definition has no type or storage class core/compositor.c: In function 'dump_xserver_region': core/compositor.c:258: warning: implicit declaration of function 'XFixesFetchRegionAndBounds' core/compositor.c:258: warning: nested extern declaration of 'XFixesFetchRegionAndBounds' core/compositor.c:258: warning: assignment makes pointer from integer without a cast core/compositor.c: At top level: core/compositor.c:573: error: parse error before '*' token core/compositor.c:576: warning: return type defaults to 'int' core/compositor.c:576: warning: no previous prototype for 'find_window_for_screen' core/compositor.c:585: error: parse error before '*' token core/compositor.c:588: warning: return type defaults to 'int' core/compositor.c:588: warning: no previous prototype for 'find_window_in_display'
Changed 17 years ago by jmroot (Joshua Root)
Attachment: | patch-src-core-compositor.c.diff added |
---|
comment:21 follow-up: 22 Changed 17 years ago by jmroot (Joshua Root)
Patch updated again.
Replying to paulbeard@gmail.com:
Wouldn't dropping another WM in there be easier?
That wouldn't help the gnome apps that are specifically looking for metacity.
comment:22 follow-up: 24 Changed 17 years ago by paulbeard@…
Replying to jmr@macports.org:
Patch updated again.
Replying to paulbeard@gmail.com:
Wouldn't dropping another WM in there be easier?
That wouldn't help the gnome apps that are specifically looking for metacity.
I am building again after a clean --work
. I was under the impression it was possible to use a different WM.
comment:23 Changed 17 years ago by paulbeard@…
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/pixman-1 -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/startup-notification-1.0 -I ./include -DMETACITY_LIBEXECDIR=\"/opt/local/libexec\" -DHOST_ALIAS=\"\" -DMETACITY_LOCALEDIR=\"/opt/local/share/locale\" -DMETACITY_PKGDATADIR=\"/opt/local/share/metacity\" -DMETACITY_DATADIR=\"/opt/local/share\" -DG_LOG_DOMAIN=\"metacity\" -DSN_API_NOT_YET_FROZEN=1 -I/opt/local/include -I/usr/X11R6/include -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT compositor.o -MD -MP -MF .deps/compositor.Tpo -c -o compositor.o `test -f 'core/compositor.c' || echo './'`core/compositor.c core/compositor.c: In function 'dump_xserver_region': core/compositor.c:252: warning: unused variable 'bounds' core/compositor.c:251: warning: unused variable 'rects' core/compositor.c:250: warning: unused variable 'nrects' core/compositor.c:249: warning: unused variable 'dpy' core/compositor.c: In function 'win_extents': core/compositor.c:867: warning: implicit declaration of function 'XFixesCreateRegion' core/compositor.c:867: warning: nested extern declaration of 'XFixesCreateRegion' core/compositor.c: In function 'border_size': core/compositor.c:878: warning: implicit declaration of function 'XFixesCreateRegionFromWindow' core/compositor.c:878: warning: nested extern declaration of 'XFixesCreateRegionFromWindow' core/compositor.c:883: warning: implicit declaration of function 'XFixesTranslateRegion' core/compositor.c:883: warning: nested extern declaration of 'XFixesTranslateRegion' core/compositor.c: In function 'get_window_picture': core/compositor.c:918: warning: implicit declaration of function 'have_name_window_pixmap' core/compositor.c:918: warning: nested extern declaration of 'have_name_window_pixmap' core/compositor.c:921: warning: implicit declaration of function 'XCompositeNameWindowPixmap' core/compositor.c:921: warning: nested extern declaration of 'XCompositeNameWindowPixmap' core/compositor.c: In function 'paint_dock_shadows': core/compositor.c:964: warning: implicit declaration of function 'XFixesIntersectRegion' core/compositor.c:964: warning: nested extern declaration of 'XFixesIntersectRegion' core/compositor.c:967: warning: implicit declaration of function 'XFixesSetPictureClipRegion' core/compositor.c:967: warning: nested extern declaration of 'XFixesSetPictureClipRegion' core/compositor.c:975: warning: implicit declaration of function 'XFixesDestroyRegion' core/compositor.c:975: warning: nested extern declaration of 'XFixesDestroyRegion' core/compositor.c: In function 'paint_windows': core/compositor.c:1012: warning: implicit declaration of function 'XFixesCopyRegion' core/compositor.c:1012: warning: nested extern declaration of 'XFixesCopyRegion' core/compositor.c:1105: warning: implicit declaration of function 'XFixesSubtractRegion' core/compositor.c:1105: warning: nested extern declaration of 'XFixesSubtractRegion' core/compositor.c: In function 'add_damage': core/compositor.c:1322: warning: implicit declaration of function 'XFixesUnionRegion' core/compositor.c:1322: warning: nested extern declaration of 'XFixesUnionRegion' core/compositor.c: In function 'repair_win': core/compositor.c:1362: warning: implicit declaration of function 'XDamageSubtract' core/compositor.c:1362: warning: nested extern declaration of 'XDamageSubtract' core/compositor.c: In function 'free_win': core/compositor.c:1451: warning: implicit declaration of function 'XDamageDestroy' core/compositor.c:1451: warning: nested extern declaration of 'XDamageDestroy' core/compositor.c: In function 'add_win': core/compositor.c:1679: warning: implicit declaration of function 'XDamageCreate' core/compositor.c:1679: warning: nested extern declaration of 'XDamageCreate' core/compositor.c: At top level: core/compositor.c:2206: error: parse error before 'XDamageNotifyEvent' core/compositor.c: In function 'process_damage': core/compositor.c:2208: error: 'compositor' undeclared (first use in this function) core/compositor.c:2208: error: (Each undeclared identifier is reported only once core/compositor.c:2208: error: for each function it appears in.) core/compositor.c:2209: error: 'event' undeclared (first use in this function) core/compositor.c: In function 'show_overlay_window': core/compositor.c:2322: warning: implicit declaration of function 'have_cow' core/compositor.c:2322: warning: nested extern declaration of 'have_cow' core/compositor.c:2328: warning: implicit declaration of function 'XFixesSetWindowShapeRegion' core/compositor.c:2328: warning: nested extern declaration of 'XFixesSetWindowShapeRegion' core/compositor.c:2329: error: 'ShapeInput' undeclared (first use in this function) core/compositor.c: In function 'get_output_window': core/compositor.c:2363: warning: implicit declaration of function 'XCompositeGetOverlayWindow' core/compositor.c:2363: warning: nested extern declaration of 'XCompositeGetOverlayWindow' make[4]: *** [compositor.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_metacity/work/metacity-2.22.0" && make all " returned error 2 Command output: core/compositor.c: In function 'repair_win': core/compositor.c:1362: warning: implicit declaration of function 'XDamageSubtract' core/compositor.c:1362: warning: nested extern declaration of 'XDamageSubtract' core/compositor.c: In function 'free_win': core/compositor.c:1451: warning: implicit declaration of function 'XDamageDestroy' core/compositor.c:1451: warning: nested extern declaration of 'XDamageDestroy' core/compositor.c: In function 'add_win': core/compositor.c:1679: warning: implicit declaration of function 'XDamageCreate' core/compositor.c:1679: warning: nested extern declaration of 'XDamageCreate' core/compositor.c: At top level: core/compositor.c:2206: error: parse error before 'XDamageNotifyEvent' core/compositor.c: In function 'process_damage': core/compositor.c:2208: error: 'compositor' undeclared (first use in this function) core/compositor.c:2208: error: (Each undeclared identifier is reported only once core/compositor.c:2208: error: for each function it appears in.) core/compositor.c:2209: error: 'event' undeclared (first use in this function) core/compositor.c: In function 'show_overlay_window': core/compositor.c:2322: warning: implicit declaration of function 'have_cow' core/compositor.c:2322: warning: nested extern declaration of 'have_cow' core/compositor.c:2328: warning: implicit declaration of function 'XFixesSetWindowShapeRegion' core/compositor.c:2328: warning: nested extern declaration of 'XFixesSetWindowShapeRegion' core/compositor.c:2329: error: 'ShapeInput' undeclared (first use in this function) core/compositor.c: In function 'get_output_window': core/compositor.c:2363: warning: implicit declaration of function 'XCompositeGetOverlayWindow' core/compositor.c:2363: warning: nested extern declaration of 'XCompositeGetOverlayWindow' make[4]: *** [compositor.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Warning: the following items did not execute (for metacity): org.macports.build Error: Status 1 encountered during processing.
comment:24 Changed 17 years ago by rhwood@…
Replying to paulbeard@gmail.com:
I was under the impression it was possible to use a different WM.
One can use a different WM, but one still needs metacity to build in my experience. GNOME clings to metacity as a lowest common denominator and is designed so that the failure of a different WM to start (for example code in the WM to handle complex effects bomb out on bad X drivers) will lead to metacity starting to provide a minimally acceptable user interface (at least this is my experience in Fedora8/RHEL5 land).
As far as I can recall, the gnome-control-center builds metacity-specific stuff as well.
comment:25 Changed 17 years ago by paulbeard@…
Well, until I get 10.5, I have to forget about GNOME, it seems. One day . . . .
comment:26 Changed 16 years ago by paulbeard@…
Whoa, someone fixed this: it works now, on 10.4.11. If no one else reports it, I vote for closing it.
comment:27 Changed 16 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Must have been r37534. Glad it's finally working for you. (I don't even remember what prompted that change...)
That's strange,
--disable-compositor
is passed to configure. Could you please attach a full debug-mode log?