From: Frodo Looijaard (frodol_at_dds.nl)
Date: Fri Feb 20 2004 - 10:56:28 EST
Hi folks,
while building CVS HEAD abiword-plugins on Debian unstable, I encounter a
problem with OTS:
AbiOts.cpp: In function `bool AbiOts_invoke(AV_View*, EV_EditMethodCallData*)':
AbiOts.cpp:98: error: invalid conversion from `const char*' to `const unsigned char*'
Offending line:
if (!ots_load_xml_dictionary (article, dictionary_file))
It seems it is declared in /usr/include/libots-1/ots/libots.h as:
gboolean ots_load_xml_dictionary (OtsArticle * Doc,unsigned const char *name);
Looking at libots.h, (almost) all char * parameters are changed to
unsigned char *.
OTS is 0.4.2+cvs.2004.02.20-1, so it is quite recent. Indeed, on
Debian testing, we have 0.4.1+cvs.2003.10.26-1, and it has
gboolean ots_load_xml_dictionary (OtsArticle * Doc, const char *name);
Plain OTS 0.4.2 also has the const char version. So somewhere between
0.4.2 and now, this declaration has changed. Not nice :-(
I'll fudge a quick solution for my setup, but this should somehow be
solved more thoroughly by the time OTS 0.4.3 is released. You have been
warned!
Thanks,
Frodo
-- Frodo Looijaard <frodol_at_dds.nl> PGP key and more: http://huizen.dds.nl/~frodol Defenestration n. (formal or joc.): The act of removing Windows from your computer in disgust, usually followed by the installation of Linux or some other Unix-like operating system.
This archive was generated by hypermail 2.1.4 : Fri Feb 20 2004 - 10:56:08 EST