> From: John Burrell <[email protected]>
> Date: Thu, 11 May 2017 21:50:36 +0000
>
>
> John Burrell wrote:
> > I've installed the dev version of LFS and now compiling aspell-0.60.6.1 
> > fails.
> >
> >
> > The bug has been reported on debian here -
> >
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853320
> >
> > I haven't found a solution yet.
>
> Yes, I ran into exactly that error.
>
>
>   g++ -DHAVE_CONFIG_H -I. -I./gen -I./gen -I./common -I./interfaces/cc/
> -I./modules/speller/default/ -DLOCALEDIR=/usr/share/locale -Wdate-time
> -D_FORTIFY_SOURCE=2 -g -O2 "-fdebug-prefix-map=/<<PKGBUILDDIR>>=."
> -fstack-protector-strong -Wformat -Werror=format-security -fno-exceptions
> -c modules/filter/tex.cpp  -fPIC -DPIC -o modules/filter/.libs/tex.o
> modules/filter/tex.cpp: In member function 'bool
> {anonymous}::TexFilter::process_char(acommon::FilterChar::Chr)':
>
> modules/filter/tex.cpp:177:72: error: ISO C++ forbids comparison between
> pointer and integer [-fpermissive]
>     if (top.in_what == Parm || top.in_what == Opt || top.do_check == '\0')
>
> The '\0' is an old way to check for a null string.  It probably can be
> fixed with
>
> strlen(top.do_check) == 0
>
> or possibly
>
> top.do_check == (char*)'\0'
>
>
> I was able to get the package to build but it needed fixes to
> modules/filter/tex.cpp and prog/check_funs.cpp for basically the same
> problem in both files.
>
> I did not check the function of the built package.
>
>    -- Bruce
>
> Yes that works. Thanks for that.


_What_ are you saying 'works': the strlen() approach, or the char*
approach, or both?


Also, could you possibly set your mailer to indent-quote (e.g. with
'> ') your replies.



akh





--
-- 
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