Opened 18 years ago

Closed 18 years ago

#7530 closed defect (fixed)

BUG: graphviz port fails to build with +no_x11

Reported by: jpm@… Owned by: gwright@…
Priority: High Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

this is occurring with a sync'ed darwinports 1.2 install on ppc/10.4.5 with apple's X11 and SDK.

jpm.freemason ~ -=> sudo port install graphviz +no_x11 [ ] ---> Fetching graphviz ---> Attempting to fetch graphviz-2.6.tar.gz from http://www.graphviz.org/pub/graphviz/ARCHIVE/ ---> Verifying checksum(s) for graphviz ---> Extracting graphviz ---> Applying patches to graphviz ---> Configuring graphviz ---> Building graphviz with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_graphics_graphviz/work/graphviz-2.6" && MACOSX_DEPLOYMENT_TARGET=10.4 make all" returned error 2 Command output: /usr/include/X11/Xlib.h:3229: error: previous declaration of 'XSetFunction' was here /usr/include/tkIntXlibDecls.h:890: error: conflicting types for 'XSetLineAttributes' /usr/include/X11/Xlib.h:3257: error: previous declaration of 'XSetLineAttributes' was here /usr/include/tkIntXlibDecls.h:897: error: conflicting types for 'XCreateIC' /usr/include/X11/Xlib.h:3847: error: previous declaration of 'XCreateIC' was here /usr/include/tkIntXlibDecls.h:909: error: conflicting types for 'XDrawSegments' /usr/include/X11/Xlib.h:2394: error: previous declaration of 'XDrawSegments' was here /usr/include/tkIntXlibDecls.h:913: error: conflicting types for 'XForceScreenSaver' /usr/include/X11/Xlib.h:2506: error: previous declaration of 'XForceScreenSaver' was here /usr/include/tkIntXlibDecls.h:916: error: conflicting types for 'XDrawLine' /usr/include/X11/Xlib.h:2342: error: previous declaration of 'XDrawLine' was here /usr/include/tkIntXlibDecls.h:919: error: conflicting types for 'XFillRectangle' /usr/include/X11/Xlib.h:2489: error: previous declaration of 'XFillRectangle' was here /usr/include/tkIntXlibDecls.h:923: error: conflicting types for 'XClearWindow' /usr/include/X11/Xlib.h:2150: error: previous declaration of 'XClearWindow' was here /usr/include/tkIntXlibDecls.h:925: error: conflicting types for 'XDrawPoint' /usr/include/X11/Xlib.h:2359: error: previous declaration of 'XDrawPoint' was here /usr/include/tkIntXlibDecls.h:928: error: conflicting types for 'XDrawPoints' /usr/include/X11/Xlib.h:2368: error: previous declaration of 'XDrawPoints' was here /usr/include/tkIntXlibDecls.h:932: error: conflicting types for 'XWarpPointer' /usr/include/X11/Xlib.h:3516: error: previous declaration of 'XWarpPointer' was here /usr/include/tkIntXlibDecls.h:938: error: conflicting types for 'XQueryColor' /usr/include/X11/Xlib.h:2953: error: previous declaration of 'XQueryColor' was here /usr/include/tkIntXlibDecls.h:941: error: conflicting types for 'XQueryColors' /usr/include/X11/Xlib.h:2960: error: previous declaration of 'XQueryColors' was here make[4]: * [tkspline.lo] Error 1 make[3]: * [all-recursive] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Error: /opt/local/bin/port: Status 1 encountered during processing. jpm.freemason ~ -=>

Change History (4)

comment:1 Changed 18 years ago by blb@…

Owner: changed from darwinports-bugs@… to gwright@…

Assigning to maintainer.

comment:2 Changed 18 years ago by gwright@…

Status: newassigned

I'll take a look. I think I know why this is happening.

-Greg

comment:3 Changed 18 years ago by mww@…

Summary: graphviz port fails to build with +no_x11BUG: graphviz port fails to build with +no_x11

comment:4 Changed 18 years ago by gwright@…

Resolution: fixed
Status: assignedclosed

Hi Jean-Pierre,

The problem was that gd2, on which graphviz depends, had a dependency on X11. I have made a new port, gd2-nox11, that builds without X11 and is used by graphviz when you use the +no_x11 varaint.

A separate port is needed because there is no way in darwinports to specify a variant in a dependency.

Best Wishes, Greg

Note: See TracTickets for help on using tickets.