Menu

#91 Localization issues with building on arch?

closed-no-activity
nobody
None
2022-08-07
2020-09-01
hoobertuder
No

Following the notes on compiling on arch and linux in general, I have been attempting to make cde on arch linux.

It is failing, I believe due to locialization issues, problem is I enabled the necessary localizations ...

[mother@netnoob44 ~]$ locale -a
C
de_DE
de_DE.iso88591
de_DE.utf8
deutsch
en_US
en_US.iso88591
en_US.utf8
es_ES
es_ES.iso88591
es_ES.utf8
french
fr_FR
fr_FR.iso88591
fr_FR.utf8
german
italian
it_IT
it_IT.iso88591
it_IT.utf8
POSIX
spanish

Here are the ones I have enabled in locale.gen

en_US.UTF-8 UTF-8
en_US ISO-8859-1

es_ES ISO-8859-1
fr_FR ISO-8859-1
it_IT ISO-8859-1
de_DE ISO-8859-1

es_ES.UTF-8 UTF-8
fr_FR.UTF-8 UTF-8
it_IT.UTF-8 UTF-8
de_DE.UTF-8 UTF-8

And now the relevant part of the build log, will post a complete build log soon.

dtdocbook fatal error:
Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2 /dthelp_htag2
make[4]: *** [Makefile:749: ../help-sdl/Appmanager.sdl] Error 1
make[4]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/fr_FR.ISO8859-1/help'
make[3]: *** [Makefile:734: all] Error 2
make[3]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/fr_FR.ISO8859-1'
making all in doc/it_IT.ISO8859-1...
make[3]: Entering directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cd e/doc/it_IT.ISO8859-1'
making all in doc/it_IT.ISO8859-1/help...
make[4]: Entering directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cd e/doc/it_IT.ISO8859-1/help'

  • mkdir -p ../help-sdl
    LANG=it_IT.ISO8859-1 SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/li b:/usr/dt/lib:/usr/lib DTLCXSEARCHPATH=../../../lib/DtHelp /bin/mksh ../../../pr ograms/dtdocbook/doc2sdl/dtdocbook -t ../../../programs/dtdocbook/doc2sdl -H ../ ../../programs/dthelp/parser/pass2/htag2/dthelp_htag2 -I ../../../programs/dtdoc book/instant/instant -L ../../../programs/dtdocbook/xlate_locale/xlate_locale -S ../../../programs/nsgmls/nsgmls -o ../help-sdl/Appmanager.sdl Appmanager/book. sgm
    dtdocbook fatal error:
    Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2 /dthelp_htag2
    make[4]: *** [Makefile:749: ../help-sdl/Appmanager.sdl] Error 1
    make[4]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/it_IT.ISO8859-1/help'
    make[3]: *** [Makefile:734: all] Error 2
    make[3]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/it_IT.ISO8859-1'
    make[2]: *** [Makefile:738: all] Error 2
    make[2]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc'
    make[1]: *** [xmakefile:1004: all.doc] Error 2
    make[1]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde '
    make: *** [Makefile:62: World] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...

It looks like its complaining about locales, but I have the enabled, what else must I do?

Discussion

  • Mike T.

    Mike T. - 2020-10-02

    I'm having thr same problem trying to build release 2.3.1 on debian buster. Any ideas..?

    # locale -a
    C
    C.UTF-8
    en_GB.utf8
    en_US.utf8
    POSIX
    
     
    • hoobertuder

      hoobertuder - 2020-10-04
      Nope. Never fixed it and never got replied to about it. 
       
      I think it's related to what CDE thinks the locales will be called versus what they're actually called.
       
       
      Sent: Friday, October 02, 2020 at 2:44 PM
      From: "Mike T." <mike-t@users.sourceforge.net>
      To: "[cdesktopenv:tickets] " <91@tickets.cdesktopenv.p.re.sourceforge.net>
      Subject: [cdesktopenv:tickets] #91 Localization issues with building on arch?

      I'm having thr same problem trying to build release 2.3.1 on debian buster. Any ideas..?

      # locale -a
      C
      C.UTF-8
      en_GB.utf8
      en_US.utf8
      POSIX
      

      [tickets:#91] Localization issues with building on arch?

      Status: open
      Created: Tue Sep 01, 2020 12:32 AM UTC by hoobertuder
      Last Updated: Tue Sep 01, 2020 12:32 AM UTC
      Owner: nobody

      Following the notes on compiling on arch and linux in general, I have been attempting to make cde on arch linux.

      It is failing, I believe due to locialization issues, problem is I enabled the necessary localizations ...

      [mother@netnoob44 ~]$ locale -a
      C
      de_DE
      de_DE.iso88591
      de_DE.utf8
      deutsch
      en_US
      en_US.iso88591
      en_US.utf8
      es_ES
      es_ES.iso88591
      es_ES.utf8
      french
      fr_FR
      fr_FR.iso88591
      fr_FR.utf8
      german
      italian
      it_IT
      it_IT.iso88591
      it_IT.utf8
      POSIX
      spanish

      Here are the ones I have enabled in locale.gen

      en_US.UTF-8 UTF-8
      en_US ISO-8859-1

      es_ES ISO-8859-1
      fr_FR ISO-8859-1
      it_IT ISO-8859-1
      de_DE ISO-8859-1

      es_ES.UTF-8 UTF-8
      fr_FR.UTF-8 UTF-8
      it_IT.UTF-8 UTF-8
      de_DE.UTF-8 UTF-8

      And now the relevant part of the build log, will post a complete build log soon.

      dtdocbook fatal error:
      Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2 /dthelp_htag2
      make[4]: [Makefile:749: ../help-sdl/Appmanager.sdl] Error 1
      make[4]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/fr_FR.ISO8859-1/help'
      make[3]:
      [Makefile:734: all] Error 2
      make[3]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/fr_FR.ISO8859-1'
      making all in doc/it_IT.ISO8859-1...
      make[3]: Entering directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cd e/doc/it_IT.ISO8859-1'
      making all in doc/it_IT.ISO8859-1/help...
      make[4]: Entering directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cd e/doc/it_IT.ISO8859-1/help'
      + mkdir -p ../help-sdl
      LANG=it_IT.ISO8859-1 SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/li b:/usr/dt/lib:/usr/lib DTLCXSEARCHPATH=../../../lib/DtHelp /bin/mksh ../../../pr ograms/dtdocbook/doc2sdl/dtdocbook -t ../../../programs/dtdocbook/doc2sdl -H ../ ../../programs/dthelp/parser/pass2/htag2/dthelp_htag2 -I ../../../programs/dtdoc book/instant/instant -L ../../../programs/dtdocbook/xlate_locale/xlate_locale -S ../../../programs/nsgmls/nsgmls -o ../help-sdl/Appmanager.sdl Appmanager/book. sgm
      dtdocbook fatal error:
      Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2 /dthelp_htag2
      make[4]: [Makefile:749: ../help-sdl/Appmanager.sdl] Error 1
      make[4]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/it_IT.ISO8859-1/help'
      make[3]:
      [Makefile:734: all] Error 2
      make[3]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/it_IT.ISO8859-1'
      make[2]: [Makefile:738: all] Error 2
      make[2]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc'
      make[1]:
      [xmakefile:1004: all.doc] Error 2
      make[1]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde '
      make: *** [Makefile:62: World] Error 2
      ==> ERROR: A failure occurred in build().
      Aborting...

      It looks like its complaining about locales, but I have the enabled, what else must I do?


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cdesktopenv/tickets/91/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
       
  • Mike T.

    Mike T. - 2020-10-02

    Success !! Selected the following locales using dpkg-reconfigure

    de_DE.ISO-8859-1
    en_GB.ISO-8859-1
    en_GB.UTF-8 (Already selected)
    en_US.ISO-8859-1
    es_ES.ISO-8859-1
    fr_FR.ISO-8859-1
    it_IT.ISO-8859-1

    root # dpkg-reconfigure locales
    Generating locales (this might take a while)...
    de_DE.ISO-8859-1... done
    en_GB.ISO-8859-1... done
    en_GB.UTF-8... done
    en_US.ISO-8859-1... done
    es_ES.ISO-8859-1... done
    fr_FR.ISO-8859-1... done
    it_IT.ISO-8859-1... done
    Generation complete.
    root #

    Then specified the locale when running 'make World'

    root # cd cdesktopenv-code/cde *
    root #
    make World IMAKEDEFINES='-DDtLocalesToBuild="enUS.UTF-8"'*

     

    Last edit: Mike T. 2020-10-02
    • hoobertuder

      hoobertuder - 2020-10-04
      I tried that as well, no luck.
       
      works on openbsd without specifying any locales, though. but I haven't been able to make it work on a single linux distro
       
       
      Sent: Friday, October 02, 2020 at 6:05 PM
      From: "Mike T." <mike-t@users.sourceforge.net>
      To: "[cdesktopenv:tickets] " <91@tickets.cdesktopenv.p.re.sourceforge.net>
      Subject: [cdesktopenv:tickets] #91 Localization issues with building on arch?

      Success !!

      # cd cdesktopenv-code/cde
      # make World IMAKE_DEFINES='-DDtLocalesToBuild="en_US.UTF-8"'
      

      It would sem that specifing the local to build might be what is needed..?


      [tickets:#91] Localization issues with building on arch?

      Status: open
      Created: Tue Sep 01, 2020 12:32 AM UTC by hoobertuder
      Last Updated: Fri Oct 02, 2020 06:44 PM UTC
      Owner: nobody

      Following the notes on compiling on arch and linux in general, I have been attempting to make cde on arch linux.

      It is failing, I believe due to locialization issues, problem is I enabled the necessary localizations ...

      [mother@netnoob44 ~]$ locale -a
      C
      de_DE
      de_DE.iso88591
      de_DE.utf8
      deutsch
      en_US
      en_US.iso88591
      en_US.utf8
      es_ES
      es_ES.iso88591
      es_ES.utf8
      french
      fr_FR
      fr_FR.iso88591
      fr_FR.utf8
      german
      italian
      it_IT
      it_IT.iso88591
      it_IT.utf8
      POSIX
      spanish

      Here are the ones I have enabled in locale.gen

      en_US.UTF-8 UTF-8
      en_US ISO-8859-1

      es_ES ISO-8859-1
      fr_FR ISO-8859-1
      it_IT ISO-8859-1
      de_DE ISO-8859-1

      es_ES.UTF-8 UTF-8
      fr_FR.UTF-8 UTF-8
      it_IT.UTF-8 UTF-8
      de_DE.UTF-8 UTF-8

      And now the relevant part of the build log, will post a complete build log soon.

      dtdocbook fatal error:
      Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2 /dthelp_htag2
      make[4]: [Makefile:749: ../help-sdl/Appmanager.sdl] Error 1
      make[4]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/fr_FR.ISO8859-1/help'
      make[3]:
      [Makefile:734: all] Error 2
      make[3]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/fr_FR.ISO8859-1'
      making all in doc/it_IT.ISO8859-1...
      make[3]: Entering directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cd e/doc/it_IT.ISO8859-1'
      making all in doc/it_IT.ISO8859-1/help...
      make[4]: Entering directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cd e/doc/it_IT.ISO8859-1/help'
      + mkdir -p ../help-sdl
      LANG=it_IT.ISO8859-1 SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/li b:/usr/dt/lib:/usr/lib DTLCXSEARCHPATH=../../../lib/DtHelp /bin/mksh ../../../pr ograms/dtdocbook/doc2sdl/dtdocbook -t ../../../programs/dtdocbook/doc2sdl -H ../ ../../programs/dthelp/parser/pass2/htag2/dthelp_htag2 -I ../../../programs/dtdoc book/instant/instant -L ../../../programs/dtdocbook/xlate_locale/xlate_locale -S ../../../programs/nsgmls/nsgmls -o ../help-sdl/Appmanager.sdl Appmanager/book. sgm
      dtdocbook fatal error:
      Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2 /dthelp_htag2
      make[4]: [Makefile:749: ../help-sdl/Appmanager.sdl] Error 1
      make[4]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/it_IT.ISO8859-1/help'
      make[3]:
      [Makefile:734: all] Error 2
      make[3]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/it_IT.ISO8859-1'
      make[2]: [Makefile:738: all] Error 2
      make[2]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc'
      make[1]:
      [xmakefile:1004: all.doc] Error 2
      make[1]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde '
      make: *** [Makefile:62: World] Error 2
      ==> ERROR: A failure occurred in build().
      Aborting...

      It looks like its complaining about locales, but I have the enabled, what else must I do?


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cdesktopenv/tickets/91/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
       
  • Mike T.

    Mike T. - 2020-10-04

    What distributions have you tried?

    Is there an excisting display/window manager already installed?

    What is your default locale?

     
    • hoobertuder

      hoobertuder - 2020-10-07
      Default locale was c
      but I use en us utf8 for everything, I think.
       
      I have tried debian, arch and some forks of arch.
       
      I have added pretty much every locale its asked me to although i had the correct names for them..
       
       
       
       
      Sent: Sunday, October 04, 2020 at 9:13 AM
      From: "Mike T." <mike-t@users.sourceforge.net>
      To: "[cdesktopenv:tickets] " <91@tickets.cdesktopenv.p.re.sourceforge.net>
      Subject: [cdesktopenv:tickets] #91 Localization issues with building on arch?

      What distributions have you tried?

      Is there an excisting display/window manager already installed?

      What is your default locale?


      [tickets:#91] Localization issues with building on arch?

      Status: open
      Created: Tue Sep 01, 2020 12:32 AM UTC by hoobertuder
      Last Updated: Fri Oct 02, 2020 10:05 PM UTC
      Owner: nobody

      Following the notes on compiling on arch and linux in general, I have been attempting to make cde on arch linux.

      It is failing, I believe due to locialization issues, problem is I enabled the necessary localizations ...

      [mother@netnoob44 ~]$ locale -a
      C
      de_DE
      de_DE.iso88591
      de_DE.utf8
      deutsch
      en_US
      en_US.iso88591
      en_US.utf8
      es_ES
      es_ES.iso88591
      es_ES.utf8
      french
      fr_FR
      fr_FR.iso88591
      fr_FR.utf8
      german
      italian
      it_IT
      it_IT.iso88591
      it_IT.utf8
      POSIX
      spanish

      Here are the ones I have enabled in locale.gen

      en_US.UTF-8 UTF-8
      en_US ISO-8859-1

      es_ES ISO-8859-1
      fr_FR ISO-8859-1
      it_IT ISO-8859-1
      de_DE ISO-8859-1

      es_ES.UTF-8 UTF-8
      fr_FR.UTF-8 UTF-8
      it_IT.UTF-8 UTF-8
      de_DE.UTF-8 UTF-8

      And now the relevant part of the build log, will post a complete build log soon.

      dtdocbook fatal error:
      Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2 /dthelp_htag2
      make[4]: [Makefile:749: ../help-sdl/Appmanager.sdl] Error 1
      make[4]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/fr_FR.ISO8859-1/help'
      make[3]:
      [Makefile:734: all] Error 2
      make[3]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/fr_FR.ISO8859-1'
      making all in doc/it_IT.ISO8859-1...
      make[3]: Entering directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cd e/doc/it_IT.ISO8859-1'
      making all in doc/it_IT.ISO8859-1/help...
      make[4]: Entering directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cd e/doc/it_IT.ISO8859-1/help'
      + mkdir -p ../help-sdl
      LANG=it_IT.ISO8859-1 SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/li b:/usr/dt/lib:/usr/lib DTLCXSEARCHPATH=../../../lib/DtHelp /bin/mksh ../../../pr ograms/dtdocbook/doc2sdl/dtdocbook -t ../../../programs/dtdocbook/doc2sdl -H ../ ../../programs/dthelp/parser/pass2/htag2/dthelp_htag2 -I ../../../programs/dtdoc book/instant/instant -L ../../../programs/dtdocbook/xlate_locale/xlate_locale -S ../../../programs/nsgmls/nsgmls -o ../help-sdl/Appmanager.sdl Appmanager/book. sgm
      dtdocbook fatal error:
      Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2 /dthelp_htag2
      make[4]: [Makefile:749: ../help-sdl/Appmanager.sdl] Error 1
      make[4]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/it_IT.ISO8859-1/help'
      make[3]:
      [Makefile:734: all] Error 2
      make[3]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc/it_IT.ISO8859-1'
      make[2]: [Makefile:738: all] Error 2
      make[2]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde /doc'
      make[1]:
      [xmakefile:1004: all.doc] Error 2
      make[1]: Leaving directory '/home/mother/.cache/yay/cdesktopenv-git/src/code/cde '
      make: *** [Makefile:62: World] Error 2
      ==> ERROR: A failure occurred in build().
      Aborting...

      It looks like its complaining about locales, but I have the enabled, what else must I do?


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cdesktopenv/tickets/91/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
       
  • Mike T.

    Mike T. - 2020-10-08

    Is there an excisting display/window manager already installed?

     
  • Mike T.

    Mike T. - 2020-10-11

    I found that

    make World IMAKE_DEFINES='-DDtLocalesToBuild="en_US.UTF-8"'
    

    worked - on a 86 and ARM.

    However,

    make World IMAKE_DEFINES='-DDtLocalesToBuild="en_GB.UTF-8"'
    

    Did not.

     

    Last edit: Mike T. 2020-10-11
  • Andrey

    Andrey - 2020-11-19

    Is there any solution? Can't compile on Manjaro, the same problem

     
    • Danilo Pecher

      Danilo Pecher - 2020-11-22

      I'm currently working on a solution. As a stop-gap measure, you can just install and ignore the errors for missing files. The CDE will work just fine, but the help system will be empty.

       
      • Andrey

        Andrey - 2020-11-23

        Thank you, it works! But for some reason there is no dtstyle...

         
  • Roger Brown

    Roger Brown - 2021-06-20

    I use a docker image to build the packages so they don't snapshot my entire system, the start of that sets up the locale...

    FROM archlinux:base-devel
    WORKDIR /tmp
    
    RUN grep -v NoExtract < /etc/pacman.conf > /etc/pacman.conf.NoExtract && mv /etc/pacman.conf.NoExtract /etc/pacman.conf
    
    RUN echo $'en_US.UTF-8 UTF-8\n\
    de_DE.UTF-8 UTF-8\n\
    de_DE ISO-8859-1\n\
    es_ES.UTF-8 UTF-8\n\
    es_ES ISO-8859-1\n\
    fr_FR.UTF-8 UTF-8\n\
    fr_FR ISO-8859-1\n\
    it_IT.UTF-8 UTF-8\n\
    it_IT ISO-8859-1' > /etc/locale.gen
    
    RUN pacman -Sy --noconfirm glibc
    
    RUN pacman -Sy --noconfirm subversion
    
    RUN useradd -m -d /home/packager -g users packager
    
    RUN pacman -Sy --noconfirm subversion xorg-server dnsutils libxinerama libxss ncurses openmotif rpcbind xbitmaps ksh tcl compress libxaw xorg-xrdb
     xorg-xset xorg-xsetroot xorg-mkfontscale xorg-bdftopcf xorg-fonts-100dpi xorg-fonts-75dpi xorg-fonts-misc xorg-fonts-cyrillic xorg-fonts-type1 xo
    rg-server-devel git bison flex bc rpcsvc-proto
    

    There is more that follows but that is for my setting up of my GPG keys and repository.

     
  • Roger Brown

    Roger Brown - 2021-06-20

    The arch docker images unfortunately disable the locale with NoExtract so I remove that from /etc/pacman.conf, then I set up /etc/locale.gen with what we need, then reload glibc which will then generate the locales.

     

    Last edit: Roger Brown 2021-06-20
  • noeu

    noeu - 2021-12-11

    I saw this with exactly the same error message (dtdocbook fatal error) problem but couldn't solve it.

    https://sourceforge.net/p/cdesktopenv/wiki/LinuxBuild/
    After that, when I look at the Linux Build information, it says that ncompress is needed to build the help file.
    Installing ncompress fixed this issue.

    If you have the same problem and can't solve it, check for ncompress.

     
  • Jon Trulson

    Jon Trulson - 2022-08-07
    • status: open --> closed-no-activity
     

Log in to post a comment.

MongoDB Logo MongoDB