[liblouis-liblouisxml] Error compiling liblouisutdml, updated from git

  • From: lars@xxxxxxxxxxx (Lars Bjørndal)
  • To: liblouis-liblouisxml <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Sat, 16 Jan 2016 22:07:58 +0100

Hi, developers!

When I try to compile the latest git of liblouisutdml, I get an error:

liblouisutdml.c: In function 'processXmlDocument':
liblouisutdml.c:149:50: warning: pointer targets in passing argument 1 of
'ignore_case_comp' differ in signedness [-Wpointer-sign]
if (ud->format_for >= utd && ignore_case_comp (ud->doc->encoding,
^
In file included from liblouisutdml.c:36:0:
louisutdml.h:415:5: note: expected 'const char *' but argument is of type
'const xmlChar * {aka const unsigned char *}'
int ignore_case_comp (const char *str1, const char *str2, int length);
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I..
-DLBU_PATH=\"/usr/share/liblouisutdml/lbu_files/\"
-DLIBLOUIS_TABLES_PATH=\"/usr/share/liblouis/tables/\" -DLBULIB
-I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux
-I/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-14.b17.fc22.x86_64/include
-I/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-14.b17.fc22.x86_64/include/linux
-I/usr/include/liblouis -I/usr/include/libxml2 -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64
-mtune=generic -c paths.c -fPIC -DPIC -o .libs/liblouisutdml_la-paths.o
logging.c:130:1: error: conflicting types for 'defaultLogCallback'
defaultLogCallback (logLevels level, const char *message)
^
logging.c:63:13: note: previous declaration of 'defaultLogCallback' was here
static void defaultLogCallback(int level, const char *message);
^
logging.c:63:13: warning: 'defaultLogCallback' used but never defined
logging.c:130:1: warning: 'defaultLogCallback' defined but not used
[-Wunused-function]
defaultLogCallback (logLevels level, const char *message)
^
Makefile:838: recipe for target 'liblouisutdml_la-logging.lo' failed
make[2]: *** [liblouisutdml_la-logging.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
'/home/lrs/rpmbuild/BUILD/liblouisutdml-2.6.0/liblouisutdml'
Makefile:658: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory
'/home/lrs/rpmbuild/BUILD/liblouisutdml-2.6.0/liblouisutdml'
Makefile:701: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


I'm using file2brl a lot, so hope this will be fixed.

Thanks and regards,

Lars
For a description of the software, to download it and links to
project pages go to http://liblouis.org

Other related posts:

  • » [liblouis-liblouisxml] Error compiling liblouisutdml, updated from git - Lars Bjørndal