New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16720 (closed defect: worksforme)

Opened 3 years ago

Last modified 16 months ago

gnome-desktop 2.24.0 build failure

Reported by: vinc17@… Owned by: devans@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: kschombu@…, pgijnxn02@…, lists@…, aetherknight@…, fhwi93ne@…, dbonde+bugs+macosforge.org@…, jwhowse4@…, lev_@…, tmdias@…, gale@…, mcalhoun@…
Port: gnome-desktop

Description

I get the following error when I want to upgrade gnome-desktop:

 /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -DGNOME_DESKTOP_SYSCONFDIR=\"/opt/local/etc\" -DGNOME_DESKTOP_PIXMAPDIR=\"/opt/local/share/pixmaps\" -DGNOME_DESKTOP_ICONDIR=\"/opt/local/share/icons\" -DGNOME_CORE_INTERNAL -DDATADIR=\"/opt/local/share/gnome-desktop\" -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -I/usr/X11R6/include -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/libxml2 -I/opt/local/include/gtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -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/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/libart-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/startup-notification-1.0 -I/opt/local/include -O2 -MT gnome-rr.lo -MD -MP -MF .deps/gnome-rr.Tpo -c gnome-rr.c  -fno-common -DPIC -o .libs/gnome-rr.o
gnome-rr.c:46: error: parse error before 'XRRScreenResources'
gnome-rr.c:46: warning: no semicolon at end of struct or union
gnome-rr.c:53: error: parse error before '}' token
gnome-rr.c:73: error: parse error before 'RROutput'
gnome-rr.c:73: warning: no semicolon at end of struct or union
gnome-rr.c:85: error: parse error before '}' token
[...]

Attachments

Portfile.2.23.3 Download (1.5 KB) - added by pgijnxn02@… 3 years ago.
gnome-desktop 2.23.3 Portfile

Change History

follow-up: ↓ 2   Changed 3 years ago by vinc17@…

This was under Mac OS X 10.4.11. I've looked as the preprocessed output, and the problem is that XRRScreenResources is never defined. This seems to be the same problem as  http://live.gnome.org/JhbuildIssues/gnome-desktop. It is said that libXrandr >= 1.2 is needed.

in reply to: ↑ 1   Changed 3 years ago by kschombu@…

I am experiencing the same problem and I have libXrandr 2.1.0 installed. When I try to compile gnome-rr.c using the command in the original post I get exact same errors.

However, when installing gnome-desktop via the port command I get a different set of errors:

> sudo port instal gnome-desktop

--->  Fetching gnome-desktop
--->  Verifying checksum(s) for gnome-desktop
--->  Extracting gnome-desktop
--->  Configuring gnome-desktop
--->  Building gnome-desktop with target all
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_gnome-desktop/work/gnome-desktop-2.24.0" && make all " returned error 2
Command output: gnome-rr.c:1111: error: dereferencing pointer to incomplete type
gnome-rr.c: At top level:
gnome-rr.c:1117: error: syntax error before 'RRMode'
gnome-rr.c:1118: warning: 'mode_new' was used with no prototype before its definition
gnome-rr.c: In function 'mode_new':
gnome-rr.c:1119: error: invalid application of 'sizeof' to incomplete type 'GnomeRRMode' 
gnome-rr.c:1121: error: dereferencing pointer to incomplete type
gnome-rr.c:1121: error: 'id' undeclared (first use in this function)
gnome-rr.c:1122: error: dereferencing pointer to incomplete type
gnome-rr.c:1122: error: 'info' undeclared (first use in this function)
gnome-rr.c: In function 'gnome_rr_mode_get_id':
gnome-rr.c:1131: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_width':
gnome-rr.c:1138: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_freq':
gnome-rr.c:1145: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_height':
gnome-rr.c:1152: error: dereferencing pointer to incomplete type
gnome-rr.c: At top level:
gnome-rr.c:1156: error: syntax error before 'XRRModeInfo'
gnome-rr.c:1157: warning: 'mode_initialize' was used with no prototype before its definition
gnome-rr.c: In function 'mode_initialize':
gnome-rr.c:1158: error: 'mode' undeclared (first use in this function)
gnome-rr.c:1159: error: 'info' undeclared (first use in this function)
gnome-rr.c: In function 'mode_free':
gnome-rr.c:1170: error: dereferencing pointer to incomplete type
make[3]: *** [gnome-rr.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

  Changed 3 years ago by kschombu@…

(duplicate comment removed by admin)

  Changed 3 years ago by kschombu@…

  • cc kschombu@… added

Cc Me!

  Changed 3 years ago by pgijnxn02@…

  • cc pgijnxn02@… added

Cc Me!

  Changed 3 years ago by pgijnxn02@…

Here's the  upstream gnome bug.

I will attempt to install a newer  X Server to solve this.

  Changed 3 years ago by pgijnxn02@…

Alas, it appears there's no way to upgrade the X Server in Tiger. Is that correct?

Changed 3 years ago by pgijnxn02@…

gnome-desktop 2.23.3 Portfile

  Changed 3 years ago by pgijnxn02@…

Since eel requires at least gnome-desktop 2.23.3, here's a Portfile to use as a workaround. The only changes I've made from the 2.22.3 Portfile are the version number and the checksum.

in reply to: ↑ description   Changed 3 years ago by lists@…

I'm experiencing the same thing on Leopard 10.5.5.

I've replaced the portfile with the attached one, and get:

Unable to execute port: extra characters after close-quote

The error with the official Portfile:

--->  Building gnome-desktop
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_gnome-desktop/work/gnome-desktop-2.24.0" && make all " returned error 2
Command output: gnome-rr.c:1111: error: dereferencing pointer to incomplete type
gnome-rr.c: At top level:
gnome-rr.c:1117: error: syntax error before 'RRMode'
gnome-rr.c:1118: warning: 'mode_new' was used with no prototype before its definition
gnome-rr.c: In function 'mode_new':
gnome-rr.c:1119: error: invalid application of 'sizeof' to incomplete type 'GnomeRRMode' 
gnome-rr.c:1121: error: dereferencing pointer to incomplete type
gnome-rr.c:1121: error: 'id' undeclared (first use in this function)
gnome-rr.c:1122: error: dereferencing pointer to incomplete type
gnome-rr.c:1122: error: 'info' undeclared (first use in this function)
gnome-rr.c: In function 'gnome_rr_mode_get_id':
gnome-rr.c:1131: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_width':
gnome-rr.c:1138: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_freq':
gnome-rr.c:1145: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_height':
gnome-rr.c:1152: error: dereferencing pointer to incomplete type
gnome-rr.c: At top level:
gnome-rr.c:1156: error: syntax error before 'XRRModeInfo'
gnome-rr.c:1157: warning: 'mode_initialize' was used with no prototype before its definition
gnome-rr.c: In function 'mode_initialize':
gnome-rr.c:1158: error: 'mode' undeclared (first use in this function)
gnome-rr.c:1159: error: 'info' undeclared (first use in this function)
gnome-rr.c: In function 'mode_free':
gnome-rr.c:1170: error: dereferencing pointer to incomplete type
make[3]: *** [gnome-rr.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

  Changed 3 years ago by lists@…

  • cc lists@… added

Cc Me!

  Changed 3 years ago by mp@…

Installing  version 2.3.1 of XQuartz on my MBP running OSX 10.5.5 has fixed the problem for me, but I guess this isn't really helpful for Tiger users...

  Changed 3 years ago by aetherknight@…

  • cc aetherknight@… added

Cc Me!

  Changed 3 years ago by fhwi93ne@…

  • cc fhwi93ne@… added

Cc Me!

  Changed 3 years ago by dbonde+bugs+macosforge.org@…

  • cc dbonde+bugs+macosforge.org@… added

Cc Me!

  Changed 3 years ago by jwhowse4@…

  • cc jwhowse4@… added

Cc Me!

  Changed 3 years ago by blb@…

  • cc lev_@… added

Cc reporter of dup #16987.

follow-up: ↓ 18   Changed 3 years ago by pgijnxn02@…

This bug is still present in 2.24.1 ... which I would expect since the upstream bug is still unresolved.

in reply to: ↑ 17   Changed 3 years ago by macports@…

Bug still present for me. Attached ports file fixed issue for me.

  Changed 3 years ago by bluegod@…

I had the same issue, solved with the attached port file (but that means downgrade gnome!)

  Changed 3 years ago by jmr@…

Does installing xorg-randrproto help at all?

  Changed 3 years ago by pgijnxn02@…

Installing xorg-randrproto did not solve it for me.

Current result:

Command output: gnome-rr.c: In function 'mode_new':
gnome-rr.c:1123: error: invalid application of 'sizeof' to incomplete type 'GnomeRRMode'
gnome-rr.c:1125: error: dereferencing pointer to incomplete type
gnome-rr.c:1125: error: 'id' undeclared (first use in this function)
gnome-rr.c:1126: error: dereferencing pointer to incomplete type
gnome-rr.c:1126: error: 'info' undeclared (first use in this function)
gnome-rr.c: In function 'gnome_rr_mode_get_id':
gnome-rr.c:1135: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_width':
gnome-rr.c:1142: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_freq':
gnome-rr.c:1149: error: dereferencing pointer to incomplete type
gnome-rr.c: In function 'gnome_rr_mode_get_height':
gnome-rr.c:1156: error: dereferencing pointer to incomplete type
gnome-rr.c: At top level:
gnome-rr.c:1160: error: parse error before 'XRRModeInfo'
gnome-rr.c:1161: warning: 'mode_initialize' was used with no prototype before its definition
gnome-rr.c: In function 'mode_initialize':
gnome-rr.c:1162: error: 'mode' undeclared (first use in this function)
gnome-rr.c:1163: error: 'info' undeclared (first use in this function)
gnome-rr.c: In function 'mode_free':
gnome-rr.c:1174: error: dereferencing pointer to incomplete type

follow-up: ↓ 23   Changed 3 years ago by pgijnxn02@…

I had this problem, and gnome-desktop 2.24.2_0 now builds for me.

in reply to: ↑ 22   Changed 3 years ago by vinc17@…

Replying to pgijnxn02@…:

I had this problem, and gnome-desktop 2.24.2_0 now builds for me.

Here it still fails.

  Changed 3 years ago by tmdias@…

  • cc tmdias@… added

Cc Me!

follow-up: ↓ 28   Changed 3 years ago by gale@…

Several months have passed. It is looking doubtful that upstream will backport to support older X servers.

Since we have little control over our X servers, I think unfortunately there is no choice but to downgrade gnome-desktop until every version of OSX that we support has an X server with XRandR 1.2. Or until upstream fixes this, if they ever do.

Perhaps there is some other solution, using variants or something. It sounds tricky to me though.

This has been blocking other ports for a long time. We need to take some action now to clear up the logjam.

  Changed 3 years ago by gale@…

  • cc gale@… added

Cc Me!

  Changed 3 years ago by mcalhoun@…

  • cc mcalhoun@… added

Cc Me!

in reply to: ↑ 25   Changed 3 years ago by vinc17@…

Replying to gale@…:

Since we have little control over our X servers, I think unfortunately there is no choice but to downgrade gnome-desktop until every version of OSX that we support has an X server with XRandR 1.2. Or until upstream fixes this, if they ever do.

IMHO, it's more a problem with an X library than with an X server: the X server can be on a remote machine (which is not necessarily a Mac OS X machine), and I don't see how a remote machine can affect the build of a MacPorts port. Now, if we do not control the X server, perhaps we can control the libraries, e.g. how about all those xorg* ports?

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

  Changed 16 months ago by jmr@…

  • owner changed from macports-tickets@… to devans@…

  Changed 16 months ago by devans@…

  • status changed from new to closed
  • resolution set to worksforme

Can't reproduce problem with current port version 2.30.2. Assuming ticket is outdated.

  Changed 16 months ago by vinc17@…

Yes, it was outdated.

Note: See TracTickets for help on using tickets.