[PATCH] lexer.c [was: Error in compiling with russian support]
David Relson
relson at osagesoftware.com
Tue May 24 13:04:43 CEST 2005
On Tue, 24 May 2005 09:48:41 +0500
Lev Butyrev wrote:
> Hi. Sorry for my bad english.
>
> Compilation bogofilter 0.94.12 close with error:
>
> gcc -DBOGOFILTER -g -O2 -Wpointer-arith -ggdb -Wall -W
> -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast
> -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return
> -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs
> -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wsequence-point
> -Wreturn-type -Wno-system-headers -Wformat -o bogofilter bogofilter.o
> main.o libbogofilter.a strlcpy.o strlcat.o -ldb libbf_gsl.a -lm
> libbogofilter.a(lexer.o)(.text+0x666): In function `yyinput':
> /usr/src/bogofilter/bogofilter-0.94.12/src/lexer.c:330: undefined
> reference to `htmlUNICODE_decode'
> collect2: ld returned 1 exit status
>
> Compilation bogofilter 0.92.8 finished without errors.
> distributive slackware
> gcc version 3.3.4
> glibc-2.3.4
> glibc-i18n-2.3.4
>
> Do I have to upgrade glibc?
Hello Lev,
A function name in bogofilter's code got changed in one place, but not another.
You need this patch.
David
--- lexer.c.orig 24 Mar 2005 00:01:49 -0000 1.118
+++ lexer.c 23 May 2005 21:34:06 -0000
@@ -327,7 +327,7 @@
/* EK - decoding things like м and charset_table */
#ifdef CP866
- count = htmlUNICODE_decode(buf, count);
+ count = decode_and_htmlUNICODE_to_cp866(buf, count);
#else
#ifndef ENABLE_ICONV
for (i = 0; i < count; i++ )
More information about the Bogofilter
mailing list