Failed to build on NetBSD9.1 - Full compilation log attached.
making all in doc/C/guides...
LANG=C SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/lib:/usr/pkg/lib:/usr/X11R7/lib DTLCXSEARCHPATH=../../../lib/DtHelp DTINFO_HOME=../../../programs/dtinfo/dtinfogen DTINFO_BIN=../../../programs/dtinfo/dtinfogen/install:../../../programs/dtinfo/dtinfogen/mmdb/StyleSheet:../../../programs/dtinfo/dtinfogen/mmdb/src:../../../programs/nsgmls:../../../programs/dtsr ../../../programs/dtinfo/dtinfogen/infolib/etc/dtinfogen tocgen -T ../../../doc/tmp -n cde -d "CDE and Motif Information Library" -f usersGuide/TOC.sgm -id cde.usersGuide.toc -title "User's Guide" usersGuide/book.sgm
eval: /root/cdesktopenv-code/cde/programs/dtinfo/dtinfogen/infolib/etc/dtinfogen_worker: not found
*** Error code 127
Stop.
make[4]: stopped in /root/cdesktopenv-code/cde/doc/C/guides
making all in doc/C/m-guides...
making all in doc/de_DE.ISO8859-1...
making all in doc/de_DE.ISO8859-1/help...
+ mkdir -p ../help-sdl
LANG=de_DE.ISO8859-1 SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/lib:/usr/pkg/lib:/usr/X11R7/lib DTLCXSEARCHPATH=../../../lib/DtHelp /usr/pkg/bin/ksh93 ../../../programs/dtdocbook/doc2sdl/dtdocbook -t ../../../programs/dtdocbook/doc2sdl -H ../../../programs/dthelp/parser/pass2/htag2/dthelp_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
../../../programs/dtdocbook/doc2sdl/dtdocbook[107]: ../../../programs/dtdocbook/xlate_locale/xlate_locale: not found [No such file or directory]
dtdocbook fatal error:
Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2/dthelp_htag2
*** Error code 1
Stop.
make[4]: stopped in /root/cdesktopenv-code/cde/doc/de_DE.ISO8859-1/help
*** Error code 1
Stop.
make[3]: stopped in /root/cdesktopenv-code/cde/doc/de_DE.ISO8859-1
making all in doc/es_ES.ISO8859-1...
making all in doc/es_ES.ISO8859-1/help...
+ mkdir -p ../help-sdl
LANG=es_ES.ISO8859-1 SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/lib:/usr/pkg/lib:/usr/X11R7/lib DTLCXSEARCHPATH=../../../lib/DtHelp /usr/pkg/bin/ksh93 ../../../programs/dtdocbook/doc2sdl/dtdocbook -t ../../../programs/dtdocbook/doc2sdl -H ../../../programs/dthelp/parser/pass2/htag2/dthelp_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
../../../programs/dtdocbook/doc2sdl/dtdocbook[107]: ../../../programs/dtdocbook/xlate_locale/xlate_locale: not found [No such file or directory]
dtdocbook fatal error:
Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2/dthelp_htag2
*** Error code 1
Stop.
make[4]: stopped in /root/cdesktopenv-code/cde/doc/es_ES.ISO8859-1/help
*** Error code 1
Stop.
make[3]: stopped in /root/cdesktopenv-code/cde/doc/es_ES.ISO8859-1
making all in doc/fr_FR.ISO8859-1...
making all in doc/fr_FR.ISO8859-1/help...
+ mkdir -p ../help-sdl
LANG=fr_FR.ISO8859-1 SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/lib:/usr/pkg/lib:/usr/X11R7/lib DTLCXSEARCHPATH=../../../lib/DtHelp /usr/pkg/bin/ksh93 ../../../programs/dtdocbook/doc2sdl/dtdocbook -t ../../../programs/dtdocbook/doc2sdl -H ../../../programs/dthelp/parser/pass2/htag2/dthelp_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
../../../programs/dtdocbook/doc2sdl/dtdocbook[107]: ../../../programs/dtdocbook/xlate_locale/xlate_locale: not found [No such file or directory]
dtdocbook fatal error:
Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2/dthelp_htag2
*** Error code 1
Stop.
make[4]: stopped in /root/cdesktopenv-code/cde/doc/fr_FR.ISO8859-1/help
*** Error code 1
Stop.
make[3]: stopped in /root/cdesktopenv-code/cde/doc/fr_FR.ISO8859-1
making all in doc/it_IT.ISO8859-1...
making all in doc/it_IT.ISO8859-1/help...
+ mkdir -p ../help-sdl
LANG=it_IT.ISO8859-1 SGML_SEARCH_PATH=".:.." LD_LIBRARY_PATH=../../../exports/lib:/usr/pkg/lib:/usr/X11R7/lib DTLCXSEARCHPATH=../../../lib/DtHelp /usr/pkg/bin/ksh93 ../../../programs/dtdocbook/doc2sdl/dtdocbook -t ../../../programs/dtdocbook/doc2sdl -H ../../../programs/dthelp/parser/pass2/htag2/dthelp_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
../../../programs/dtdocbook/doc2sdl/dtdocbook[107]: ../../../programs/dtdocbook/xlate_locale/xlate_locale: not found [No such file or directory]
dtdocbook fatal error:
Error processing book.out.sdl by ../../../programs/dthelp/parser/pass2/htag2/dthelp_htag2
*** Error code 1
Stop.
make[4]: stopped in /root/cdesktopenv-code/cde/doc/it_IT.ISO8859-1/help
*** Error code 1
Stop.
make[3]: stopped in /root/cdesktopenv-code/cde/doc/it_IT.ISO8859-1
*** Error code 1
Stop.
make[2]: stopped in /root/cdesktopenv-code/cde/doc
*** Error code 1
Stop.
make[1]: stopped in /root/cdesktopenv-code/cde
*** Error code 1
Stop.
make: stopped in /root/cdesktopenv-code/cde
#
Hi, could you try editing PositionIndependentCFlags within config/cf/bsdLib.rules to read -fPIC instead of -fpic? That might help with some of the compilation failures within your log.
Kind regards, Lev
CDE git master now specifies -fPIC by default on BSD platforms. If you could please try building that and report back on any further errors, it would be greatly appreciated.
Last edit: Lev Kujawski 2021-02-07
I've made the changes from -fpic ro -fPIC and it is compiling now. It will take 1 day or 2 as I'm using a SunBlade100 500Mhz to compile it. Will post here the outcome. Thanks for your help.
Compilation finishes without errors (apparently) but installation complain about a few missing things. Dtlogin works fine, but the desktop doesn't start and give the message attached.
Hi, I have an additional patch for you to fix the endianness issue on SPARC. This should allow the DtMmdb library (and its dependencies) to build correctly. For the ToolTalk error, are you running rpcbind (/etc/rc.d/rpcbind)?
I know these older systems can require some patience, and I appreciate your help to get CDE running well on SPARC.
No worries mate... no need to appreciate. I do appreciate your effort on keeping CDE alive!
This is my rc.conf:
And checking the rpcbind status it shows:
I'm afraid I have no idea how to run this .patch file. Can you give me the exact command?
Tried the below, not sure if this is the expected result.
Last edit: Leo Schneider 2021-02-07
Hmm... Taking a closer look (the color coding concealed it) at the installation log, I notice that /usr/dt/bin/rpc.ttdbserver is missing. That's probably the source of your error if it is actually not present, although I can only speculate as to why it did not build.
To save time, you could run make within lib/tt just to build that component of CDE.
Last edit: Lev Kujawski 2021-02-07
I did apply the patch you've sent (as per my previous comment) and did the "make World" again to see how it goes (and then saw this comment).
So I've aborted the "make World" and I'm running the make under lib/tt
I found that the "exports" folder is empty and looking the compilation logs, it ios complaining about:
So I've created the folder structure and linked the
/lib/api/c/tt_c.hinto that folder, ranmakeagain and aparently it was compiled successfully. However, CDE still not working, same error. I may have to domake Worldagain.This is the last screen of the make under the lib/tt - attached the full log
Last edit: Leo Schneider 2021-02-07
This is the latest install log after running
make Worldwuth the follwing changes:exportsI'm still getting the same error saying "ttsession is not running" and the log shows
/usr/dt/bin/ttrmas still missing.Interesting that
ttrmis compiled. Perhaps the install script has a bug... look below:Last edit: Leo Schneider 2021-02-07
Sorry for the delay. Unfortunately, CDE is very sensitive to the proper functioning of ToolTalk because all of its components use it as a form of inter-process communication.
Here's what I would recommend:
a) Start from a clean build directory (applying the patch but nothing else)
Ideally, this would be straight from unpacking the tarball or running
'git clean -dfx'
'git checkout .'
if you have cloned the repository.
b) Run the following commands in sequence from the CDE directory root:
make Makefile.boot
make Makefiles
make includes
make depend
c) Change directory to lib/tt and run 'make 2>&1 | tee build.log'
This should be significantly faster than a run of make World. Please send the resultant build.log
Thanks, Lev
Last edit: Lev Kujawski 2021-02-09
Sure, will try that. Have you seen on my last comment that there are some weird things happening, i.e. ttrm was compiled but not installed and the exports folder was empty and I had to create as symlink?
I had, but 'make includes' should do that for you, i.e., exports shouldn't exist beforehand but will after running that command. I am concerned the build system might not function properly if it thinks that exports has been updated after the fact because it is all based on timestamps. I certainly don't mean to indicate that you should delete your changes, but perhaps move that directory to a backup location.
Hi Leo,
All of the changes necessary to compile on SPARC should now be in git master. Please let me know if you are still having difficulties either building or running CDE.
I will wipe everything and recompile all over again from git. Will come back in a few days (you know...ancient machine)
Hi Lev,
I've wiped out all sources and binaries, cloned the repo from git and followed the instructions on the wiki. The compilation completed without errors and the installation was also completed ok except for some documentation. However something is not working still.
Have a look:
https://youtu.be/lALe_66Fb_s
On 2/23/21 5:19 AM, Leo Schneider wrote:
So, it looks like maybe dtwm is crashing? maybe dtsession?
I'd check you various log files: ~/.dt/errorlog and sessionlog
Also /var/dt/Xerrors
Maybe there are clues in there.
-jon
Thanks Jon
Looking the files you've mentioned:
errorlog
Xerrors
errorlog
Xerrors
It is great that someone else also wants to revive CDE on Sun Workstations. I am also trying to get CDE built on NetBSD9.1/sparc64.
However i can not get to a successful build by using a git checkout of today, the information on this thread and the wiki page. Currently i'm stuck somewhere in building dthelpview where libiconv can not be found.
However i don't want to clutter this ticket in any way with my problems, but may i ask that once this is running on NetBSD/sparc64 that you could either post a detailed howto somewhere or update the Wiki here accordingly?
Regards,
Connor
Last edit: connor 2021-04-06
Following the Wiki I was able to build CDE with a few errors (as shown in the ticket thread), however it is still not initiating a session. I think we are very close to get this resolved, but still depending on people's time to look at the issues.
Which machine do you have?