build under msys2

i'm trying to build graphviz under msys2 [1]

but after configure i get the following error

../../../graphviz-2.38.0/lib/cgraph/graph.c:276:10: warning: 'Agdirected' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
Agdesc_t Agdirected = { 1, 0, 0, 1 };
^
../../../graphviz-2.38.0/lib/cgraph/graph.c:277:10: warning: 'Agstrictdirected' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
Agdesc_t Agstrictdirected = { 1, 1, 0, 1 };
^
../../../graphviz-2.38.0/lib/cgraph/graph.c:278:10: warning: 'Agundirected' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
Agdesc_t Agundirected = { 0, 0, 0, 1 };
^
../../../graphviz-2.38.0/lib/cgraph/graph.c:279:10: warning: 'Agstrictundirected' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
Agdesc_t Agstrictundirected = { 0, 1, 0, 1 };
^
../../../graphviz-2.38.0/lib/cgraph/graph.c:281:10: warning: 'AgDefaultDisc' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
Agdisc_t AgDefaultDisc = { &AgMemDisc, &AgIdDisc, &AgIoDisc };
^
../../../graphviz-2.38.0/lib/cgraph/graph.c:281:28: error: initializer element is not constant
Agdisc_t AgDefaultDisc = { &AgMemDisc, &AgIdDisc, &AgIoDisc };
^
../../../graphviz-2.38.0/lib/cgraph/graph.c:281:28: note: (near initialization for 'AgDefaultDisc.mem')
../../../graphviz-2.38.0/lib/cgraph/graph.c:281:40: error: initializer element is not constant
Agdisc_t AgDefaultDisc = { &AgMemDisc, &AgIdDisc, &AgIoDisc };
^
../../../graphviz-2.38.0/lib/cgraph/graph.c:281:40: note: (near initialization for 'AgDefaultDisc.id')
../../../graphviz-2.38.0/lib/cgraph/graph.c:281:51: error: initializer element is not constant
Agdisc_t AgDefaultDisc = { &AgMemDisc, &AgIdDisc, &AgIoDisc };
^

someone can help me?

thanks in advance

[1] http://sourceforge.net/projects/msys2/

Recent comments