8000 Unable to compile python plugin with python-3.3 · Issue #505 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Unable to compile python plugin with python-3.3 #505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
trtrmitya opened this issue Jan 3, 2014 · 3 comments
Closed

Unable to compile python plugin with python-3.3 #505

trtrmitya opened this issue Jan 3, 2014 · 3 comments
Labels

Comments

@trtrmitya
Copy link

Hello!

I try to compile collected-5.4.0 on FreeBSD with python support. I want to use python version 3
(3.3.3 to be specific).

manpage for collectd-python mentions python version 3, so I assume it is supported.

But I get the following error:

libtool: compile: cc -DHAVE_CONFIG_H -I. -DPREFIX="/usr/local" -DCONFIGFILE=
"/usr/local/etc/collectd.conf" -DLOCALSTATEDIR="/var" -DPKGLOCALSTATEDIR="/v
ar/db/collectd" -DPIDFILE="/var/run/collectd.pid" -DPLUGINDIR="/usr/local/li
b/collectd" -DPKGDATADIR="/usr/local/share/collectd" -I/usr/local/include/pyt
hon3.3m -I/usr/local/include -Wall -Werror -fno-strict-aliasing -Wno-strict-alia
sing -O2 -pipe -O2 -fno-strict-aliasing -pipe -MT python_la-python.lo -MD -MP -MF .deps/python_la-python.Tpo -c python.c -fPIC -DPIC -o .libs/python_la-python.
o
cc1: warnings being treated as errors
python.c: In function 'cpy_init_python':
python.c:1023: warning: passing argument 2 of 'PySys_SetArgv' from incompatible pointer type
python.c: In function 'cpy_config':
python.c:1071: warning: implicit declaration of function 'PyUnicode_SetDefaultEncoding'
gmake[3]: *** [python_la-python.lo] Error 1
gmake[3]: Leaving directory `/place/WRK/ports/net-mgmt/collectd5/work/collectd-5.4.0/src'
gmake[2]: *** [all-recursive] Error 1

@trtrmitya
Copy link
Author

Hello!

Any chance python3 support could be fixed please (docs claim python3 is supported)?

@trtrmitya
Copy link
Author

Time comes, I tried with python3.4 and it compiles! But dumps core on start:

collectd -f

Fatal Python error: no mem for sys.argv
ValueError: character U+6f633c00 is not in range [U+0000; U+10ffff]
Abort (core dumped)

ajdiaz pushed a commit to ajdiaz/collectd that referenced this issue Feb 19, 2015
@rubenk
Copy link
Contributor
rubenk commented Aug 5, 2016

Fixed by 920d5ea

@trtrmitya I just compiled collectd with python33, python34 and python35 on FreeBSD current but can't reproduce your coredump. If you can still trigger it with the latest version of collectd from git, please open a new issue, preferable with a stack trace.

@rubenk rubenk closed this as completed Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
0