Opened 13 years ago

Closed 13 years ago

#29992 closed defect (fixed)

xournal: Missing dependency gdk

Reported by: neverpanic (Clemens Lang) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: xournal

Description

I tried to install xournal, which failed with

:info:build xo-file.c:14:22: error: gdk/gdkx.h: No such file or directory
:info:build xo-file.c: In function 'attempt_screenshot_bg':
:info:build xo-file.c:935: warning: passing argument 1 of 'XGrabButton' makes pointer from integer without a cast
:info:build xo-file.c:938: warning: passing argument 1 of 'XWindowEvent' makes pointer from integer without a cast
:info:build xo-file.c:939: warning: passing argument 1 of 'XUngrabButton' makes pointer from integer without a cast
:info:build xo-file.c:14:22: error: gdk/gdkx.h: No such file or directory
:info:build xo-file.c: In function 'attempt_screenshot_bg':
:info:build xo-file.c:935: warning: passing argument 1 of 'XGrabButton' makes pointer from integer without a cast
:info:build xo-file.c:938: warning: passing argument 1 of 'XWindowEvent' makes pointer from integer without a cast
:info:build xo-file.c:939: warning: passing argument 1 of 'XUngrabButton' makes pointer from integer without a cast

I guess this header is provided by either the gdk-pixbuf or gdk-pixbuf2 port, which is not declared as a dependency for xournal.

Change History (5)

comment:1 Changed 13 years ago by neverpanic (Clemens Lang)

Cc: cal@… added

Cc Me!

comment:2 Changed 13 years ago by neverpanic (Clemens Lang)

Cc: cal@… removed

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

The dependency is not missing. xournal depends on libgnomecanvas which depends on gtk2 which provides /opt/local/include/gtk-2.0/gdk/gdkx.h.

Rather, is it possible you have installed ports including gtk2 with the +quartz variant and/or without the x11 variant? If so, that's the likely cause for the problem (and I suspect there is no workaround; I suspect xournal requires a gtk2 that has X11 support).

comment:4 Changed 13 years ago by neverpanic (Clemens Lang)

Thanks for the information. I guess this ticket can be closed as invalid then. Should we add a message if gtk2 is installed without +x11? Can we even check this?

comment:5 in reply to:  4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Replying to cal@…:

Should we add a message if gtk2 is installed without +x11? Can we even check this?

Good idea -- added in r79974.

Note: See TracTickets for help on using tickets.