You are not logged in.

#1 2014-01-12 08:56:24

kilmister
Member
Registered: 2012-01-28
Posts: 22

GGobi fails to compile, wrong function calls in graphviz.c

Hi there,

I'm having troubles to makepkg ggobi, where make fails due to the below pasted errors.
I am on a 64-bit system (a MacBook I put Arch on), not sure if that is relevant.
Does anyone have an idea what is wrong here?

Thanks,
Alex

graphviz.c: In function 'dot_neato_layout_cb':
graphviz.c:215:3: error: too few arguments to function 'aginit'
aginit();
^
In file included from /usr/include/graphviz/types.h:49:0,
from /usr/include/graphviz/gvc.h:17,
from graphviz.c:16:
/usr/include/graphviz/cgraph.h:359:13: note: declared here
extern void aginit(Agraph_t * g, int kind, char *rec_name, int rec_size,
^
graphviz.c:220:3: error: incompatible type for argument 2 of 'agopen'
graph = agopen("graph", kind);
^
In file included from /usr/include/graphviz/types.h:49:0,
from /usr/include/graphviz/gvc.h:17,
from graphviz.c:16:
/usr/include/graphviz/cgraph.h:266:18: note: expected 'Agdesc_t' but argument is of type 'gint'
extern Agraph_t *agopen(char *name, Agdesc_t desc, Agdisc_t * disc);
^
graphviz.c:220:3: error: too few arguments to function 'agopen'
graph = agopen("graph", kind);
^
In file included from /usr/include/graphviz/types.h:49:0,
from /usr/include/graphviz/gvc.h:17,
from graphviz.c:16:
/usr/include/graphviz/cgraph.h:266:18: note: declared here
extern Agraph_t *agopen(char *name, Agdesc_t desc, Agdisc_t * disc);
^
graphviz.c:226:5: error: too few arguments to function 'agnode'
agnode(graph, name);
^
In file included from /usr/include/graphviz/types.h:49:0,
from /usr/include/graphviz/gvc.h:17,
from graphviz.c:16:
/usr/include/graphviz/cgraph.h:280:18: note: declared here
extern Agnode_t *agnode(Agraph_t * g, char *name, int createflag);
^
graphviz.c:248:7: error: too few arguments to function 'agedge'
edge = agedge(graph, tail, head);
^
In file included from /usr/include/graphviz/types.h:49:0,
from /usr/include/graphviz/gvc.h:17,
from graphviz.c:16:
/usr/include/graphviz/cgraph.h:291:18: note: declared here
extern Agedge_t *agedge(Agraph_t * g, Agnode_t * t, Agnode_t * h,
^
graphviz.c:285:36: error: 'Agnode_t' has no member named 'name'
agsafeset (graph, "root", ctr->name, NULL);
^
graphviz.c:315:13: warning: assignment makes pointer from integer without a cast [enabled by default]
sym = agfindattr(graph,"dim");
^
graphviz.c:317:15: warning: assignment makes pointer from integer without a cast [enabled by default]
sym = agraphattr(graph,"dim","");
^
graphviz.c:319:26: error: 'attrsym_t' has no member named 'index'
agxset(graph, sym->index, buf);
^
graphviz.c:354:11: error: 'Agnode_t' has no member named 'u'
node->u.width = node->u.height = .001;
^
graphviz.c:354:27: error: 'Agnode_t' has no member named 'u'
node->u.width = node->u.height = .001;
^
Makefile:393: recipe for target 'plugin_la-graphviz.lo' failed
make[3]: *** [plugin_la-graphviz.lo] Error 1 

Offline

Board footer

Powered by FluxBB