-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I was trying to get the tests running on pycircuits so tried to install python-gnucap.
I had to create a link from ../gnucap-2009-12-07/src/ gnucap so that the include files could be found and this diff
diff --git a/numpy_interface.h b/numpy_interface.h
index 226a8c2..e617d9e 100644
--- a/numpy_interface.h
+++ b/numpy_interface.h
@@ -1,4 +1,4 @@
-#include <gnucap/m_matrix.h>
+#include "gnucap/m_matrix.h"
#include <Python.h>
#include <numpy/arrayobject.h>
I then get this error
(py27)michaelt@michaelt-VirtualBox:/home/dub-projects/ismtxrx/users/mthompson/work/gnucap-python$ python setup.py build
running build
running build_py
copying gnucap.py -> build/lib.linux-i686-2.7
running build_ext
building '_gnucap' extension
swigging gnucap.i to gnucap_wrap.cpp
swig -python -c++ -DHAS_NUMPY -Wall -o gnucap_wrap.cpp gnucap.i
gnucap.i:171: Warning(517): Director class 'SIM' is abstract, abstract method 'setup' is private
gnucap.i:196: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:197: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:198: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:199: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:201: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:202: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:203: Warning(454): Setting a pointer/reference variable may leak memory.
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gnucap.cc -o build/temp.linux-i686-2.7/gnucap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /usr/include/python2.7/Python.h:8:0,
from numpy_interface.h:2,
from gnucap.cc:9:
/usr/include/python2.7/pyconfig.h:1155:0: warning: "POSIX_C_SOURCE" redefined
/usr/include/features.h:163:0: note: this is the location of the previous definition
/usr/include/python2.7/pyconfig.h:1177:0: warning: "XOPEN_SOURCE" redefined
/usr/include/features.h:165:0: note: this is the location of the previous definition
gnucap.cc: In function ‘std::string command(char)’:
gnucap.cc:25:60: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:27:39: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:29:22: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:19:19: warning: ignoring return value of ‘char tmpnam(char*)’, declared with attribute warn_unused_result
gnucap/constant.h: At global scope:
gnucap/constant.h:98:14: warning: ‘LINEAR’ defined but not used
/usr/include/python2.7/numpy/__multiarray_api.h:1187:1: warning: ‘int _import_array()’ defined but not used
error: command 'gcc' failed with exit status 1