On 10/30/20 6:15 PM, Ken Moffat via blfs-dev wrote:
I see we've already had one set of fixes for changes in icu68, I
hope it is not going to trash a lot of things.

I've been building libxml2 --with-icu for some time, that breaks:

/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  
-I./include -I./include  -pedantic -Wall -Wextra -Wshadow -Wpointer-arith 
-Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes 
-Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wno-long-long 
-Wno-format-extra-args -D_REENTRANT   -O3 -march=native 
-fstack-clash-protection -D_FORTIFY_SOURCE=2 -fstack-protector-strong -MT 
encoding.lo -MD -MP -MF .deps/encoding.Tpo -c -o encoding.lo encoding.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I./include -pedantic 
-Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings 
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs 
-Winline -Wredundant-decls -Wno-long-long -Wno-format-extra-args -D_REENTRANT 
-O3 -march=native -fstack-clash-protection -D_FORTIFY_SOURCE=2 
-fstack-protector-strong -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c 
encoding.c  -fPIC -DPIC -o .libs/encoding.o
encoding.c: In function 'xmlEncOutputChunk':
encoding.c:1961:31: error: 'TRUE' undeclared (first use in this function)
  1961 |                               TRUE);
       |                               ^~~~
encoding.c:1961:31: note: each undeclared identifier is reported only once for 
each function it appears in
make[2]: *** [Makefile:1287: encoding.lo] Error 1

This comes from encoding.c

#ifdef LIBXML_ICU_ENABLED
     else if (handler->uconv_out != NULL) {
         ret = xmlUconvWrapper(handler->uconv_out, 0, out, outlen, in, inlen,
                               TRUE);
     }
#endif /* LIBXML_ICU_ENABLED */

For the moment I can't see anything online (it looks like we are on
the bleeding edge using icu68) so I'll just work around it by
omitting --with-icu for the moment so I can get on with looking at
the consequences of python2 using altinstall (more on that when I've
got more things built).

ĸen

Hi Ken,


Try changing 'TRUE' to 'true' in encoding.c (line 1961). I don't have the ability to test that at the moment, but I think that might work. Check out this link for more details on what has changed in ICU-68, the most important thing being the removal of the FALSE and TRUE macros:

http://site.icu-project.org/download/68


- Doug

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to