[MacPorts] #37847: graphviz fails to build with ming + fix
#37847: graphviz fails to build with ming + fix ---------------------+-------------------------------- Reporter: david@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: graphviz ---------------------+-------------------------------- graphviz fails when build is unable to find the cgraph.h file. Problem is fixed by adding -I/opt/local/include/graphviz for include file searching. cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-2.30.0/plugin/ming /usr/bin/clang -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/gvc -I../../lib/graph -I../../lib/cdt -I/opt/local/include/graphviz -I/opt/local/include -I/opt/local/include -I/opt/local/include -pipe -O2 -arch x86_64 -fno- common -Wall -MT gvrender_ming.lo -MD -MP -MF .deps/gvrender_ming.Tpo -c gvrender_ming.c -fno-common -DPIC -o .libs/gvrender_ming.o Attached is build log. -- Ticket URL: <https://trac.macports.org/ticket/37847> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37847: graphviz fails to build with ming + fix -----------------------+-------------------------------- Reporter: david@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: graphviz | -----------------------+-------------------------------- Comment (by david@…): Workaround is to rebuild graphviz without +ming. -- Ticket URL: <https://trac.macports.org/ticket/37847#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37847: graphviz +ming: build failure -----------------------+-------------------------- Reporter: david@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: graphviz | -----------------------+-------------------------- Changes (by larryv@…): * priority: High => Normal * owner: macports-tickets@… => ryandesign@… Old description:
graphviz fails when build is unable to find the cgraph.h file.
Problem is fixed by adding -I/opt/local/include/graphviz for include file searching.
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-2.30.0/plugin/ming
/usr/bin/clang -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/gvc -I../../lib/graph -I../../lib/cdt -I/opt/local/include/graphviz -I/opt/local/include -I/opt/local/include -I/opt/local/include -pipe -O2 -arch x86_64 -fno- common -Wall -MT gvrender_ming.lo -MD -MP -MF .deps/gvrender_ming.Tpo -c gvrender_ming.c -fno-common -DPIC -o .libs/gvrender_ming.o
Attached is build log.
New description: graphviz fails when build is unable to find the cgraph.h file. Problem is fixed by adding -I/opt/local/include/graphviz for include file searching. {{{ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-2.30.0/plugin/ming /usr/bin/clang -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/gvc -I../../lib/graph -I../../lib/cdt -I/opt/local/include/graphviz -I/opt/local/include -I/opt/local/include -I/opt/local/include -pipe -O2 -arch x86_64 -fno- common -Wall -MT gvrender_ming.lo -MD -MP -MF .deps/gvrender_ming.Tpo -c gvrender_ming.c -fno-common -DPIC -o .libs/gvrender_ming.o }}} Attached is build log. -- Comment: Thanks for the ticket. In the future, please try to Cc relevant port maintainers. Also, use [[WikiFormatting]] while writing your tickets and avoid setting the Priority field, as that is reserved for the use of MacPorts team members. -- Ticket URL: <https://trac.macports.org/ticket/37847#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37847: graphviz +ming: build failure due to missing include -----------------------+-------------------------- Reporter: david@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: graphviz | -----------------------+-------------------------- -- Ticket URL: <https://trac.macports.org/ticket/37847#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37847: graphviz +ming: build failure due to missing include -----------------------+-------------------------- Reporter: david@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: graphviz | -----------------------+-------------------------- Comment (by david@…): Just added a Portfile diff to fix this problem. Please integrate this so the +ming variant can compile. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/37847#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37847: graphviz +ming: build failure due to missing include -----------------------+-------------------------- Reporter: david@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: graphviz | -----------------------+-------------------------- Comment (by ryandesign@…): That patch only works if another version of graphviz is already installed, and it will use that version's cgraph.h which might not be the same as this version's. -- Ticket URL: <https://trac.macports.org/ticket/37847#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37847: graphviz +ming: build failure due to missing include -----------------------+-------------------------- Reporter: david@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: graphviz | -----------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Fixed in r103076 and [http://www.graphviz.org/mantisbt/view.php?id=2257 reported to the developers]. -- Ticket URL: <https://trac.macports.org/ticket/37847#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts