Opened 7 years ago

Last modified 7 years ago

#42348 assigned defect

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

Reported by: davidfavor (David Favor) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: graphviz, graphviz-devel

Description (last modified by ryandesign (Ryan Schmidt))

See attached log.

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

Workaround is to build without +ming variant.

Attachments (1)

graphviz.log (32.2 KB) - added by davidfavor (David Favor) 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by davidfavor (David Favor)

Attachment: graphviz.log added

comment:1 Changed 7 years ago by ryandesign (Ryan 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

comment:2 Changed 7 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.