#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)
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)
comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Priority: | High → Normal |
Summary: | graphviz fails to build with ming + fix → graphviz +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 failure → graphviz +ming: build failure due to missing include |
---|
Changed 12 years ago by davidfavor (David Favor)
Attachment: | Portfile-fix-ming-variant.diff added |
---|
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: | new → closed |
Fixed in r103076 and reported to the developers.
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 |
---|
Workaround is to rebuild graphviz without +ming.