pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47875: graphviz won't build on Mac OS X, and doesn't support quartz



>Number:         47875
>Category:       pkg
>Synopsis:       graphviz won't build on Mac OS X, and doesn't support quartz
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 01 18:30:00 +0000 2013
>Originator:     Jan Danielsson
>Release:        N/A
>Organization:
La Cosa Nostra
>Environment:
Darwin farrah.local 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan  6 22:37:10 
PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
>Description:
Building graphics/graphviz on Mac OS X results in:

-----------------
[---]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common 
-I../../lib/pathplan -I../../lib/gvc -I../../lib/graph -I../../lib/cdt 
-D_REENTRANT 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/pango-1.0 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/cairo 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/glib/glib-2.0 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/lib/glib-2.0/include 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/libpng16 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.x11-buildlink/include/pixman-1 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.x11-buildlink/include 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.x11-buildlink/include/freetype2 
-DNO_POSTSCRIPT_ALIAS=1 -isystem /usr/include 
-I/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/gettext -pipe -O2 
-fno-common -Wall -MT gvdevice_xlib.lo -MD -MP -MF .deps/gvdevice_xli
 b.Tpo -c gvdevice_xlib.c  -fno-common -DPIC -o .libs/gvdevice_xlib.o
In file included from 
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/extensions/render.h:29,
                 from 
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/extensions/Xrender.h:33,
                 from gvdevice_xlib.c:59:
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/Xdefs.h:38: 
error: redefinition of typedef 'Atom'
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/X.h:60: error: 
previous declaration of 'Atom' was here
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/Xdefs.h:64: 
error: redefinition of typedef 'XID'
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/X.h:46: error: 
previous declaration of 'XID' was here
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/Xdefs.h:73: 
error: redefinition of typedef 'Mask'
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/X.h:58: error: 
previous declaration of 'Mask' was here
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/Xdefs.h:86: 
error: redefinition of typedef 'Font'
/Users/jan/pkgsrc/graphics/graphviz/work/.buildlink/include/X11/X.h:51: error: 
previous declaration of 'Font' was here
gvdevice_xlib.c: In function 'handle_expose':
gvdevice_xlib.c:95: warning: implicit declaration of function 'XCopyArea'
gvdevice_xlib.c: In function 'find_argb_visual':
gvdevice_xlib.c:135: warning: implicit declaration of function 'XGetVisualInfo'
gvdevice_xlib.c:138: warning: assignment makes pointer from integer without a 
cast
gvdevice_xlib.c:150: warning: implicit declaration of function 'XFree'
gvdevice_xlib.c: In function 'handle_xlib_events':
gvdevice_xlib.c:184: warning: implicit declaration of function 'XPending'
gvdevice_xlib.c:185: warning: implicit declaration of function 'XNextEvent'
gvdevice_xlib.c: In function 'update_display':
gvdevice_xlib.c:245: warning: implicit declaration of function 'XFreePixmap'
gvdevice_xlib.c:246: warning: implicit declaration of function 'XCreatePixmap'
gvdevice_xlib.c:252: warning: implicit declaration of function 'XFillRectangle'
gvdevice_xlib.c: In function 'init_window':
gvdevice_xlib.c:304: warning: implicit declaration of function 'XCreateColormap'
gvdevice_xlib.c:324: warning: implicit declaration of function 'XCreateWindow'
gvdevice_xlib.c:348: warning: implicit declaration of function 
'Xutf8SetWMProperties'
gvdevice_xlib.c:361: warning: implicit declaration of function 'XCreateGC'
gvdevice_xlib.c:361: warning: assignment makes pointer from integer without a 
cast
gvdevice_xlib.c:371: warning: implicit declaration of function 'XSelectInput'
gvdevice_xlib.c:373: warning: implicit declaration of function 'XInternAtom'
gvdevice_xlib.c:374: warning: implicit declaration of function 'XSetWMProtocols'
gvdevice_xlib.c:375: warning: implicit declaration of function 'XMapWindow'
gvdevice_xlib.c: In function 'xlib_initialize':
gvdevice_xlib.c:470: warning: implicit declaration of function 'XOpenDisplay'
gvdevice_xlib.c:470: warning: assignment makes pointer from integer without a 
cast
gvdevice_xlib.c:473: warning: implicit declaration of function 'XDisplayName'
gvdevice_xlib.c:473: warning: format '%s' expects type 'char *', but argument 3 
has type 'int'
gvdevice_xlib.c:473: warning: format '%s' expects type 'char *', but argument 3 
has type 'int'
gvdevice_xlib.c:487: warning: implicit declaration of function 'XStringToKeysym'
gvdevice_xlib.c:492: warning: implicit declaration of function 
'XKeysymToKeycode'
gvdevice_xlib.c: In function 'xlib_finalize':
gvdevice_xlib.c:524: warning: implicit declaration of function 
'XConnectionNumber'
gvdevice_xlib.c:598: warning: implicit declaration of function 'XFlush'
gvdevice_xlib.c:613: warning: implicit declaration of function 'XCloseDisplay'
*** Error code 1

Stop.
bmake: stopped in 
/Users/jan/pkgsrc/graphics/graphviz/work/graphviz-2.26.3/plugin/xlib
*** Error code 1
[---]
-----------------

Furthermore, graphviz supports:

--with-quartz=no

..but is currently not supported by pkgsrc. Perhaps something along the line of 
what graphics/cairo does should be done for graphviz as well:

.if exists(/System/Library/Frameworks/Carbon.framework)
CONFIGURE_ARGS+=        --with-quartz=yes
.endif
>How-To-Repeat:
Attempt to build graphics/graphiviz on Mac OS X.
>Fix:
A workaround to get past the build-problem is to disable tcl:

PKG_OPTIONS.graphviz = -tcl




Home | Main Index | Thread Index | Old Index