Hello,
I'm trying to install m2crypto in a Python38 virtual env under FreeBSD 13.1 release p6.
I got a lot of errors such as:
I read some forums and installed swig, now the errors above disappeared but there is a new one :
During the installation, the following command creates this error:
I opened file _types.h which states :
I tried to search for this one but the proposed fixes don't work. I tried
or
or
But the variables aren't taken into account and the swig command which creates the problem is still the same.
Could someone please help me to solve this?
I'm trying to install m2crypto in a Python38 virtual env under FreeBSD 13.1 release p6.
Code:
pip install -v m2crypto
I got a lot of errors such as:
Code:
SWIG/_m2crypto_wrap.c:9489:19: error: incomplete defintion of type 'struct stack_st'
I read some forums and installed swig, now the errors above disappeared but there is a new one :
Code:
/usr/include/sys/_types.h:135: Error: CPP #error ""No support for your compiler for stdargs"".
During the installation, the following command creates this error:
Code:
swig -python -py3 -I/usr/lib/clang/13.0.0/include -I/usr/include -I/path/to/venv/include -I/usr/local/include/python3.8 -I/usr/include/openssl -includeall -modern -builtin -outdir /tmp/pip-install-_8nd1bhg/m2crypto_7769189214e74b43be2fce01ea4d3468/src/M2Crypto -o src/SWIG/_m2crypto_wrap.c src/SWIG/_m2crypto.i
I opened file _types.h which states :
Code:
#ifdef __GNUCLIKE_BUILTIN_VARARGS
typedef __builtin_va_list __va_list; /* internally known to gcc */
#else
#error "No support for your compiler for stdargs"
#endif
I tried to search for this one but the proposed fixes don't work. I tried
Code:
CFLAGS="-D __GNUCLIKE_BUILTIN_VARARGS" pip install m2crypto --no-binary=m2crypto
or
Code:
CPPFLAGS="-D __GNUCLIKE_BUILTIN_VARARGS" pip install m2crypto
or
Code:
env SWIG_FEATURES="-cpperraswarn -includeall -I/usr/include/openssl" pip install m2crypto
But the variables aren't taken into account and the swig command which creates the problem is still the same.
Could someone please help me to solve this?