python-igraph build failed since r2774

Bug #1011784 reported by h0cked
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
New
Undecided
Tamás Nepusz

Bug Description

igraph built was successfully, but it failed when I tried to build the python binding...

<pre>
guest@ubuntu:~/dev/t/python-igraph-0.6$ python setup.py build
Include path: /usr/local/include/igraph
Library path: /usr/local/lib
running build
running build_py
running build_ext
building 'igraph._igraph' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include -I/usr/include -I/usr/include/python2.7 -c src/common.c -o build/temp.linux-x86_64-2.7/src/common.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include -I/usr/include -I/usr/include/python2.7 -c src/vertexobject.c -o build/temp.linux-x86_64-2.7/src/vertexobject.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include -I/usr/include -I/usr/include/python2.7 -c src/edgeobject.c -o build/temp.linux-x86_64-2.7/src/edgeobject.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include -I/usr/include -I/usr/include/python2.7 -c src/graphobject.c -o build/temp.linux-x86_64-2.7/src/graphobject.o
src/graphobject.c: In function ‘igraphmodule_Graph_isomorphic_vf2’:
src/graphobject.c:7901:9: error: too many arguments to function ‘igraph_isomorphic_vf2’
/usr/local/include/igraph/igraph_topology.h:79:5: note: declared here
src/graphobject.c: In function ‘igraphmodule_Graph_count_isomorphisms_vf2’:
src/graphobject.c:7990:9: error: too many arguments to function ‘igraph_count_isomorphisms_vf2’
/usr/local/include/igraph/igraph_topology.h:94:5: note: declared here
src/graphobject.c: In function ‘igraphmodule_Graph_get_isomorphisms_vf2’:
src/graphobject.c:8063:9: error: too many arguments to function ‘igraph_get_isomorphisms_vf2’
/usr/local/include/igraph/igraph_topology.h:100:5: note: declared here
src/graphobject.c: In function ‘igraphmodule_Graph_subisomorphic_vf2’:
src/graphobject.c:8145:9: error: too many arguments to function ‘igraph_subisomorphic_vf2’
/usr/local/include/igraph/igraph_topology.h:108:5: note: declared here
src/graphobject.c: In function ‘igraphmodule_Graph_count_subisomorphisms_vf2’:
src/graphobject.c:8234:9: error: too many arguments to function ‘igraph_count_subisomorphisms_vf2’
/usr/local/include/igraph/igraph_topology.h:125:5: note: declared here
src/graphobject.c: In function ‘igraphmodule_Graph_get_subisomorphisms_vf2’:
src/graphobject.c:8304:9: error: too many arguments to function ‘igraph_get_subisomorphisms_vf2’
/usr/local/include/igraph/igraph_topology.h:131:5: note: declared here
error: command 'gcc' failed with exit status 1
</pre>

Thanks!

Revision history for this message
Tamás Nepusz (ntamas) wrote :

We have added a few new parameters to the isomorphism functions recently (in #2762), so it is likely that you have to update and recompile the C core before updating the Python interface.

Hint: we will release 0.6 officially in a few days, so maybe it's easier to wait a bit :)

Revision history for this message
h0cked (timobj) wrote :

Thanks for the response! I can wait. What I am doing doesn't not really require the latest version of igraph.

BTW, I did use the latest trunk version to compile both C and python interface. And it gives the same errors.

Thanks again!

Revision history for this message
Tamás Nepusz (ntamas) wrote :

Oh, hang on, I think I got it. You have compiled the C core but you haven't installed it before compiling the Python interface, right? The compiler picks up the old include file from /usr/local/include/igraph and not the new one from the freshly compiled C core, and the old include file does not include the new parameters for the isomorphism functions.

Changed in igraph:
assignee: nobody → Tamás Nepusz (ntamas)
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/457

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.