Opened 12 years ago

Closed 12 years ago

Last modified 4 years ago

#37847 closed defect (fixed)

graphviz +ming: build failure due to missing include

Reported by: davidfavor (David Favor) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: Smattr (Matthew Fernandez)
Port: graphviz

Description (last modified by larryv (Lawrence Velázquez))

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.

Attachments (2)

graphviz-ming-build.log (504.2 KB) - added by davidfavor (David Favor) 12 years ago.
Portfile-fix-ming-variant.diff (392 bytes) - added by davidfavor (David Favor) 12 years ago.

Download all attachments as: .zip

Change History (10)

Changed 12 years ago by davidfavor (David Favor)

Attachment: graphviz-ming-build.log added

comment:1 Changed 12 years ago by davidfavor (David Favor)

Workaround is to rebuild graphviz without +ming.

comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Priority: HighNormal
Summary: graphviz fails to build with ming + fixgraphviz +ming: build failure

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.

comment:3 Changed 12 years ago by larryv (Lawrence Velázquez)

Summary: graphviz +ming: build failuregraphviz +ming: build failure due to missing include

Changed 12 years ago by davidfavor (David Favor)

comment:4 Changed 12 years ago by davidfavor (David Favor)

Just added a Portfile diff to fix this problem.

Please integrate this so the +ming variant can compile.

Thanks.

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

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.

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

comment:7 Changed 4 years ago by Smattr (Matthew Fernandez)

Is this still something that needs fixing in Graphviz?

comment:8 Changed 4 years ago by Smattr (Matthew Fernandez)

Cc: Smattr added
Note: See TracTickets for help on using tickets.