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 566242 - goffice-0.6.5 and before relies on X11 gtk+
goffice-0.6.5 and before relies on X11 gtk+
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: Gtk+
0.6.x
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2009-01-01 22:59 UTC by ramon
Modified: 2009-01-12 08:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Tentative patch (1.84 KB, patch)
2009-01-03 15:48 UTC, Morten Welinder
none Details | Review

Description ramon 2009-01-01 22:59:11 UTC
Steps to reproduce:
1. compile goffice against a non-X11 gtk+ (aqua will do)
2. 
3. 


Stack trace:
foo-canvas-rect-ellipse.c:45:22: error: gdk/gdkx.h: No such file or directory
foo-canvas-rect-ellipse.c: In function 'foo_canvas_rect_realize':
foo-canvas-rect-ellipse.c:847: warning: implicit declaration of function 'gdk_x11_drawable_get_xdisplay'
foo-canvas-rect-ellipse.c:847: warning: nested extern declaration of 'gdk_x11_drawable_get_xdisplay'
foo-canvas-rect-ellipse.c:847: warning: assignment makes pointer from integer without a cast
foo-canvas-rect-ellipse.c:855: warning: implicit declaration of function 'gdk_x11_visual_get_xvisual'
foo-canvas-rect-ellipse.c:855: warning: nested extern declaration of 'gdk_x11_visual_get_xvisual'
foo-canvas-rect-ellipse.c:855: warning: assignment makes pointer from integer without a cast
foo-canvas-rect-ellipse.c: In function 'render_rect_alpha':
foo-canvas-rect-ellipse.c:908: warning: assignment makes pointer from integer without a cast
foo-canvas-rect-ellipse.c:911: warning: implicit declaration of function 'gdk_x11_drawable_get_xid'
foo-canvas-rect-ellipse.c:911: warning: nested extern declaration of 'gdk_x11_drawable_get_xid'


Other information:
Comment 1 ramon 2009-01-01 23:00:28 UTC
I'm trying to build a native gnucash on osx and this is the last blocking issue, I've resolved most other build depedancy problems....

Solving this would leave me with solving any gnucash related problems :-)
Comment 2 Jean Bréfort 2009-01-02 08:39:13 UTC
This is imported code, so no easy solution. We might write a new simple cairo based canvas widget, analogous to foocanvas, but it needs work.
Comment 3 ramon 2009-01-02 09:06:17 UTC
Mmm how do other parts of the code solve this problem ?

Isn't there a generic way of getting at the needed functions defined in gtk+ ?
This must be a common problem, the same holds true for goffice on windows...

P.S> I'm total newbie to gtk+ or goffice code so please accept my apologies if the above is complete BS
Comment 4 Jean Bréfort 2009-01-02 09:20:51 UTC
Good point. I had a look to the code. These calls are used only when libXrender is present. It should be possible to add a --without-xrender option to configure, but somebody might have a better idea.
Comment 5 Morten Welinder 2009-01-03 15:48:53 UTC
Created attachment 125691 [details] [review]
Tentative patch

Please try this patch.  It was made against HEAD, but ought to work
for 0.6.x too.
Comment 6 Morten Welinder 2009-01-10 23:44:33 UTC
Applied to HEAD.  Feel free to apply to 0.6.x after testing.
Comment 7 ramon 2009-01-12 08:19:03 UTC
I tested it and it applies without a problem to 0.6.5.

It compiles, however I was trying to build gnucash on OSX with aqua support, I can get that to compile correctly now (this was the last non-compiling dep) but it doesn't run correctly.

By the looks of the gnucash error it doesn't seem to be a goffice problem though.