gutenprint port problem with WITHOUT_X11=yes

David Raison david at ion.lu
Mon Dec 17 14:04:36 PST 2007


Dear maintainers,

I've had a problem installing gutenprint on my

lusitania gutenprint # uname -r
6.2-RELEASE-p9

As I use this machine as a file, printer and web-development server
only, i.e. headless, I have set "WITHOUT_X11=yes" in my make.conf.
Upgrading to gutenprint from gimp-print gave me the error:

e-x11.lo -MD -MP -MF .deps/gdkdrawable-x11.Tpo -c gdkdrawable-x11.c
-fPIC -DPIC -o .libs/gdkdrawable-x11.o
gdkdrawable-x11.c:32:24: cairo-xlib.h: No such file or directory
gdkdrawable-x11.c: In function `_gdk_x11_drawable_update_size':
gdkdrawable-x11.c:238: warning: implicit declaration of function
`cairo_xlib_surface_set_size'
gdkdrawable-x11.c: In function `gdk_x11_ref_cairo_surface':
gdkdrawable-x11.c:1469: warning: implicit declaration of function
`cairo_xlib_surface_create'
gdkdrawable-x11.c:1472: warning: assignment makes pointer from integer
without a cast
gdkdrawable-x11.c:1474: warning: implicit declaration of function
`cairo_xlib_surface_create_for_bitmap'
gdkdrawable-x11.c:1477: warning: assignment makes pointer from integer
without a cast
gmake[4]: *** [gdkdrawable-x11.lo] Error 1
gmake[4]: Leaving directory
`/usr/ports/x11-toolkits/gtk20/work/gtk+-2.12.3/gdk/x11'


searching for the error, I've found the following entry in cairo's Makefile:

.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--disable-xlib
PLIST_SUB+=    X11="@comment "
.else
USE_XORG+=      xrender
PLIST_SUB+=     X11=""
.endif

I had to comment out the part about disabling xlib to be able to build
gutenprint successfully.

I don't know if in this case the gutenprint port should check for xlib
support in cairo or if there's another dependency issue here.
I might as well have overlooked something and wouldn't mind to be
corrected ;)

Thanks for your time,
David Raison




More information about the freebsd-ports mailing list