liblouis / liblouisutdml

An open-source library providing complete braille transcription services for xml, html and text documents
http://liblouis.io
GNU General Public License v3.0
24 stars 16 forks source link

unable to build liblouisutdml 2.7.0 with liblouis 3.6.0 #45

Closed rkeiii closed 6 years ago

rkeiii commented 6 years ago

Hello,

I'm not quite sure if this belongs in liblouis or liblouis utdml. I'm currently working on upgrading to liblouis 3.6.0 (from 3.2.0). When I try to compile liblouis 3.6.0 against liblouis utdml 2.7.0 I get the following error.

/bin/bash /liblouisutdml-2.7.0/build-aux/missing makeinfo --plaintext liblouisutdml.texi -o liblouisutdml.txt
make[1]: Leaving directory '/liblouisutdml-2.7.0/doc'
Making all in lbu_files
make[1]: Entering directory '/liblouisutdml-2.7.0/lbu_files'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/liblouisutdml-2.7.0/lbu_files'
Making all in liblouisutdml
make[1]: Entering directory '/liblouisutdml-2.7.0/liblouisutdml'
make  all-am
make[2]: Entering directory '/liblouisutdml-2.7.0/liblouisutdml'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I.. -DLBU_PATH=\"/usr/local/share/liblouisutdml/lbu_files/\" -DLIBLOUIS_TABLES_PATH=\"/usr/local/share/liblouis/tables/\" -DLBULIB -I/opt/jdk1.8.0_144/include -I/opt/jdk1.8.0_144/include/linux -I/usr/local/include/liblouis -I/usr/include/libxml2 -g -O2 -MT liblouisutdml_la-change_table.lo -MD -MP -MF .deps/liblouisutdml_la-change_table.Tpo -c -o liblouisutdml_la-change_table.lo `test -f 'change_table.c' || echo './'`change_table.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLBU_PATH=\"/usr/local/share/liblouisutdml/lbu_files/\" -DLIBLOUIS_TABLES_PATH=\"/usr/local/share/liblouis/tables/\" -DLBULIB -I/opt/jdk1.8.0_144/include -I/opt/jdk1.8.0_144/include/linux -I/usr/local/include/liblouis -I/usr/include/libxml2 -g -O2 -MT liblouisutdml_la-change_table.lo -MD -MP -MF .deps/liblouisutdml_la-change_table.Tpo -c change_table.c  -fPIC -DPIC -o .libs/liblouisutdml_la-change_table.o
In file included from change_table.c:34:0:
louisutdml.h:120:3: error: redeclaration of enumerator ‘ascii8’
   ascii8
   ^
In file included from louisutdml.h:36:0,
                 from change_table.c:34:
/usr/local/include/liblouis/internal.h:601:53: note: previous definition of ‘ascii8’ was here
 typedef enum { noEncoding, bigEndian, littleEndian, ascii8 } EncodingType;
                                                     ^
change_table.c: In function ‘change_table’:
change_table.c:49:7: warning: implicit declaration of function ‘logMessage’ [-Wimplicit-function-declaration]
       logMessage (LOG_ERROR, "Table %s cannot be found", newTable);
       ^
make[2]: *** [liblouisutdml_la-change_table.lo] Error 1
Makefile:801: recipe for target 'liblouisutdml_la-change_table.lo' failed
make[2]: Leaving directory '/liblouisutdml-2.7.0/liblouisutdml'
Makefile:660: recipe for target 'all' failed
make[1]: Leaving directory '/liblouisutdml-2.7.0/liblouisutdml'
make[1]: *** [all] Error 2
Makefile:702: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Am I missing something here? Do I need to wait for a new release of liblouisutdml before upgrading?

egli commented 6 years ago

Ah, sorry. This has been fixed in master but I never got around to officially create a release for it. You should be fine just grabbing the latest master.

I should create a new release I guess. I don't have time now. In August the earliest.

Hope that helps

rkeiii commented 6 years ago

Thank you for the reply Christian. We will await the new release of liblouisutdml.