On Fri, 29 Nov 2019, sc...@scottcomstock.com wrote:
In trying to build CDE on CentOS 7.7.1908 (x86_64), I noticed that the build fails when it attempts to build the documentation for locales other than C and en_US.UTF-8. locale -a shows all the necessary locales installed. Changing DtLocalesToBuild on the make command line doesn't work.
One thing, did you get an error building "instant" tool? making all in programs/dtdocbook/instant... make[4]: Entering directory `/home/saper/sw/cdesktopenv-code/cde/programs/dtdocbook/instant' gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I../lib/tptregexp -I../../../lib /DtSvc/DtUtil2 -I/usr/include/tcl -I../../.. -I../../../exports/include -I../../../imports/motif/include -I/usr/include - D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNL S16 -DOSMAJORVERSION=3 -DOSMINORVERSION=10 -DFUNCPROTO=15 -DNARROWPROTO -c -o main.o main.c gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I../lib/tptregexp -I../../../lib /DtSvc/DtUtil2 -I/usr/include/tcl -I../../.. -I../../../exports/include -I../../../imports/motif/include -I/usr/include - D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNL S16 -DOSMAJORVERSION=3 -DOSMINORVERSION=10 -DFUNCPROTO=15 -DNARROWPROTO -c -o util.o util.c gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I../lib/tptregexp -I../../../lib /DtSvc/DtUtil2 -I/usr/include/tcl -I../../.. -I../../../exports/include -I../../../imports/motif/include -I/usr/include - D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNL S16 -DOSMAJORVERSION=3 -DOSMINORVERSION=10 -DFUNCPROTO=15 -DNARROWPROTO -c -o info.o info.c gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I../lib/tptregexp -I../../../lib /DtSvc/DtUtil2 -I/usr/include/tcl -I../../.. -I../../../exports/include -I../../../imports/motif/include -I/usr/include - D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNL S16 -DOSMAJORVERSION=3 -DOSMINORVERSION=10 -DFUNCPROTO=15 -DNARROWPROTO -c -o translate.o translate.c gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I../lib/tptregexp -I../../../lib /DtSvc/DtUtil2 -I/usr/include/tcl -I../../.. -I../../../exports/include -I../../../imports/motif/include -I/usr/include - D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNL S16 -DOSMAJORVERSION=3 -DOSMINORVERSION=10 -DFUNCPROTO=15 -DNARROWPROTO -c -o traninit.o traninit.c gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I../lib/tptregexp -I../../../lib /DtSvc/DtUtil2 -I/usr/include/tcl -I../../.. -I../../../exports/include -I../../../imports/motif/include -I/usr/include - D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNL S16 -DOSMAJORVERSION=3 -DOSMINORVERSION=10 -DFUNCPROTO=15 -DNARROWPROTO -c -o tranvar.o tranvar.c gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I../lib/tptregexp -I../../../lib /DtSvc/DtUtil2 -I/usr/include/tcl -I../../.. -I../../../exports/include -I../../../imports/motif/include -I/usr/include - D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNL S16 -DOSMAJORVERSION=3 -DOSMINORVERSION=10 -DFUNCPROTO=15 -DNARROWPROTO -c -o tables.o tables.c gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I../lib/tptregexp -I../../../lib /DtSvc/DtUtil2 -I/usr/include/tcl -I../../.. -I../../../exports/include -I../../../imports/motif/include -I/usr/include - D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNL S16 -DOSMAJORVERSION=3 -DOSMINORVERSION=10 -DFUNCPROTO=15 -DNARROWPROTO -c -o browse.o browse.c rm -f instant gcc -g -pipe -o instant -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -L../../../exports/lib -L/usr/lib main.o util.o info.o translate.o traninit.o tranvar.o tables.o browse.o -lDtSvc -ltt -lXm -lXt -lSM -lICE -lXext -lX11 -L../lib/tptregexp -ltptregexp -ltcl8.6 -L/usr/dt/lib -L/usr/lib -lm -Wl,-rpath,/usr/dt/lib:/usr/lib /usr/bin/ld: cannot find -ltcl8.6 collect2: error: ld returned 1 exit status I think there are couple of issues here - Centos 7.7 does come with tcl8.5, not tcl8.6, but for example Fedora 30 (also has /etc/redhat-release) comes with tcl8.6. I believe that also this change is not good: $ git show 507665352ff975b836612147817e489627922dea commit 507665352ff975b836612147817e489627922dea Author: Jose Rubio <joserubiovida...@gmail.com> Date: Sun Sep 15 19:01:17 2019 +0200 Link TCL libraries and restrict tcl8.6 to SuSE only. diff --git a/cde/config/imake/imake.c b/cde/config/imake/imake.c index 6ca76d3..574af7c 100644 --- a/cde/config/imake/imake.c +++ b/cde/config/imake/imake.c @@ -824,7 +824,7 @@ get_distrib(FILE *inFile) { struct stat sb; - static char* yast = "/sbin/YaST"; + static char* yast = "/sbin/yast"; static char* redhat = "/etc/redhat-release"; fprintf (inFile, "%s\n", "#define LinuxUnknown 0"); diff --git a/cde/programs/dtdocbook/instant/Imakefile b/cde/programs/dtdocbook/instant/Imakefile index 09f8cca..08071e9 100644 --- a/cde/programs/dtdocbook/instant/Imakefile +++ b/cde/programs/dtdocbook/instant/Imakefile @@ -7,6 +7,10 @@ TCLLIB = -ltcl #if defined(LinuxArchitecture) TCLINC = -I/usr/include/tcl +#if DefaultLinuxDistribution == LinuxSuSE +TCLLIB = -ltcl8.6 +#endif + #elif defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture) TCLINC = -I/usr/local/include/tcl8.6 TCLLIB = -ltcl86 Shouldn't DefaultLinuxDistribution be just LinuxDistribution (in case it gets overridden)? Another issue is why it gets autodetected as SuSE... Having said that, I get a build error with tcl working with Fedora as well: + mkdir -p cde.dti making all in doc/C/help... make[4]: Entering directory '/home/saper/src/cdesktopenv-code/cde/doc/C/help'LANG=C SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/lib:/usr/dt/lib:/usr/lib DTLCXSEARCHPATH=../../../lib/DtHelp /bin/ksh ../../../programs/dtdocbook/doc2sdl/dtdocboo
k -t ../../../programs/dtdocbook/doc2sdl -H ../../../programs/dthelp/parser/pass2/htag2/d thelp_htag2 -I ../../../programs/dtdocbook/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:748: ../help-sdl/Appmanager.sdl] Error 1 Marcin
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel