Opened 11 years ago

Last modified 3 years ago

#42348 closed defect

graphviz @2.36.0 +ming: error: unknown type name 'textpara_t'; did you mean 'textspan_t'? — at Version 1

Reported by: davidfavor (David Favor) Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: graphviz, graphviz-devel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

See attached log.

gvrender_ming.c:45:15: warning: unused variable 'action' [-Wunused-variable]

Workaround is to build without +ming variant.

Change History (2)

Changed 11 years ago by davidfavor (David Favor)

Attachment: graphviz.log added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: graphviz-devel added
Status: newassigned
Summary: Latest graphviz with +ming variant build errorsgraphviz @2.36.0 +ming: error: unknown type name 'textpara_t'; did you mean 'textspan_t'?

The warning you quoted is just a warning. The real problem is what comes after the warning:

:info:build gvrender_ming.c:94:50: error: unknown type name 'textpara_t'; did you mean 'textspan_t'?
:info:build static void ming_textpara(GVJ_t * job, pointf p, textpara_t * para)
:info:build                                                  ^~~~~~~~~~
:info:build                                                  textspan_t
:info:build ../../lib/common/textspan.h:63:7: note: 'textspan_t' declared here
:info:build     } textspan_t;
:info:build       ^
:info:build gvrender_ming.c:126:45: error: no member named 'fontsize' in 'textspan_t'
:info:build     SWFTextField_setHeight(textfield, para->fontsize);
:info:build                                       ~~~~  ^
:info:build gvrender_ming.c:133:20: error: no member named 'width' in 'textspan_t'
:info:build         offset.x = -para->width;
:info:build                     ~~~~  ^
:info:build gvrender_ming.c:137:20: error: no member named 'width' in 'textspan_t'
:info:build         offset.x = -para->width/2.;
:info:build                     ~~~~  ^
:info:build gvrender_ming.c:141:23: error: no member named 'height' in 'textspan_t'
:info:build     offset.y = -para->height + para->fontsize*.4;  /* empirically determined */
:info:build                 ~~~~  ^
:info:build gvrender_ming.c:141:38: error: no member named 'fontsize' in 'textspan_t'
:info:build     offset.y = -para->height + para->fontsize*.4;  /* empirically determined */
:info:build                                ~~~~  ^
:info:build 1 warning and 6 errors generated.

Confirmed with graphviz @2.36.0 and @2.37.20140201.0545. I've reported it to the developers: http://www.graphviz.org/mantisbt/view.php?id=2420

Note: See TracTickets for help on using tickets.