Hi Amin,

PRIxMAX is a "C" conversion specifier macro for integer type of uintmax_t.
It looks like a bug in jcc3.
The original code is:
sprintf(buffer, "%0*"PRIxMAX, (int) hexdig, hash);

Could be that a space between '"' and PRIxMAX is missing.

A quick fix for testing could be either enter a space before PRIxMAX.
sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash);
or try with
sprintf(buffer, "%08x", (int) hexdig, hash);

Regards
Bernd


Am 23.10.2017 um 18:21 schrieb Amin Farajian:
> Hi all,
> 
> I recently moved to python3, so I'm trying to install the recent version of
> Pylucene (version 6.5.0) which is compatible with python3.
> 
> But, to install the jcc I get the following error which I have no idea why
> it occurs:
> 
> jcc3/sources/jcc.cpp: In function ‘PyObject* t_jccenv_strhash(PyObject*,
> PyObject*)’:
> jcc3/sources/jcc.cpp:214:27: error: expected ‘)’ before ‘PRIxMAX’
>      sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash);
>                            ^
> jcc3/sources/jcc.cpp:214:54: warning: conversion lacks type at end of
> format [-Wformat=]
>      sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash);
>                                                       ^
> jcc3/sources/jcc.cpp:214:54: warning: too many arguments for format
> [-Wformat-extra-args]
> error: command 'gcc' failed with exit status 1
> 
> 
> Do you have any idea about this issue?
> 
> Thank you in advance,
> Amin
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to