homebrew-gnuradio
homebrew-gnuradio copied to clipboard
Build problem, SWIG related
This log shows the problem:
https://gist.github.com/4073232
The error starts at line 1204:
Linking CXX shared module _pmt_swig.so
Undefined symbols for architecture x86_64:
"_PyCFunction_Check", referenced from:
__wrap_pmt_map in pmt_swigPYTHON_wrap.cxx.o
"_PyClass_Check", referenced from:
_swig_int_ptr_swigregister in pmt_swigPYTHON_wrap.cxx.o
"_PyFloat_Check", referenced from:
SWIG_AsVal_double(_object*, double*)in pmt_swigPYTHON_wrap.cxx.o
"_PyInstance_Check", referenced from:
_SWIG_Python_GetSwigThis in pmt_swigPYTHON_wrap.cxx.o
"_PyInt_Check", referenced from:
SWIG_AsVal_unsigned_SS_long(_object*, unsigned long*)in pmt_swigPYTHON_wrap.cxx.o
SWIG_AsVal_double(_object*, double*)in pmt_swigPYTHON_wrap.cxx.o
SWIG_AsVal_long(_object*, long*) in pmt_swigPYTHON_wrap.cxx.o
"_PyLong_Check", referenced from:
SWIG_AsVal_unsigned_SS_long(_object*, unsigned long*)in pmt_swigPYTHON_wrap.cxx.o
SWIG_AsVal_double(_object*, double*)in pmt_swigPYTHON_wrap.cxx.o
SWIG_AsVal_long(_object*, long*) in pmt_swigPYTHON_wrap.cxx.o
SWIG_AsVal_long_SS_long(_object*, long long*)in pmt_swigPYTHON_wrap.cxx.o
SWIG_AsVal_unsigned_SS_long_SS_long(_object*, unsigned long long*)in pmt_swigPYTHON_wrap.cxx.o
"_PyObject_Del", referenced from:
_init_pmt_swig in pmt_swigPYTHON_wrap.cxx.o
_SwigPyObject_dealloc in pmt_swigPYTHON_wrap.cxx.o
_SwigPyPacked_dealloc in pmt_swigPYTHON_wrap.cxx.o
"_PyString_Check", referenced from:
SWIG_AsPtr_std_string(_object*, std::basic_string<char, std::char_traits< char>, std::allocator<char> >**)in pmt_swigPYTHON_wrap.cxx.o
"_PyTuple_Check", referenced from:
__wrap_pmt_make_tuple in pmt_swigPYTHON_wrap.cxx.o
"__Py_InitPyPyModule", referenced from:
_init_pmt_swig in pmt_swigPYTHON_wrap.cxx.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
My brew doctor: https://gist.github.com/4073243
I finally managed to build by using brew install --debug, and editing every .cxx file generated by SWIG to add
#include </System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h>