Could you please add the missing 'const' and see if that's the only such compile error ?
Thanks ! Andi.. > On Jun 6, 2018, at 17:06, A. Coady (JIRA) <j...@apache.org> wrote: > > A. Coady created PYLUCENE-42: > -------------------------------- > > Summary: JCC build fails with Python 3.7 (release candidate). > Key: PYLUCENE-42 > URL: https://issues.apache.org/jira/browse/PYLUCENE-42 > Project: PyLucene > Issue Type: Bug > Reporter: A. Coady > > > Using PyLucene 7.2.0-rc1 and the official docker image {{python:rc}}. > {code} > gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall > -Wstrict-prototypes -fPIC -D_java_generics -DJCC_VER="3.1" > -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux > -I_jcc3 -Ijcc3/sources -I/usr/local/include/python3.7m -c > jcc3/sources/jcc.cpp -o build/temp.linux-x86_64-3.7/jcc3/sources/jcc.o > -DPYTHON -fno-strict-aliasing -Wno-write-strings > cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for > C/ObjC but not for C++ > jcc3/sources/jcc.cpp: In function ‘PyObject* initVM(PyObject*, PyObject*, > PyObject*)’: > jcc3/sources/jcc.cpp:486:52: error: invalid conversion from ‘const char*’ to > ‘char*’ [-fpermissive] > char *option = PyUnicode_AsUTF8(arg); > ~~~~~~~~~~~~~~~~^~~~~ > error: command 'gcc' failed with exit status 1 > The command '/bin/sh -c cd jcc && JCC_JDK=/usr/lib/jvm/default-java > python setup.py install' returned a non-zero code: 1 > make: *** [rc] Error 1 > {code} > > > > -- > This message was sent by Atlassian JIRA > (v7.6.3#76005)