Apache OpenOffice (AOO) Bugzilla – Issue 42418
build crashed on the odk/examples/CLI/C# with non-interactive build
Last modified: 2005-03-17 15:08:04 UTC
My build of src680_m76 eneded with the following error: --- cut --- rm -f ../../unxlngi4.pro/bin/odk680/examples/CLI/C#/Spreadsheet/GeneralTableSample.cs >& /dev/null tr -d "\015" < ../../examples/CLI/C#/Spreadsheet/GeneralTableSample.cs > ../../unxlngi4.pro/bin/odk680/examples/CLI/C#/Spreadsheet/GeneralTableSample.cs ../../examples/CLI/C: No such file or directory. dmake: Error code 1, while making '../../unxlngi4.pro/bin/odk680/examples/CLI/C #/Spreadsheet/GeneralTableSample.cs' --- cut --- I am building OOo in a chrooted environment using the shell in a non-interactive mode (without tty input), so the hash character '#' is taken as comment. The following note is taken from the csh man page: --- cut --- When the shell's input is not a terminal, the character `#' is taken to begin a comment. Each `#' and the rest of the input line on which it appears is discarded before further parsing. --- cut ---- I didn't catch this problem before because this subdirectory was not build on 680_m74 or earlier versions. I'll attach a patch which disables the build again. It would suggest to avoid '#' in the directory name as the best solution. Another possibility would be to add a right number of backshales '\' before the hash '#' in the related odk/examples/CLI/makefile.mk.
Created attachment 22415 [details] Temporary hack to fix build using a non-interactice shell. It is taken from src680_m74.
rebuilding this after crash and I found this: /data2/office/odk/pack/copying cd ../../unxlngi4.pro/bin/odk680/classes && zip -u -r ../../../bin/uno_loader_classes com/* win/* dmake: error: code 12, while making '../../unxlngi4.pro/bin/uno_loader_classes.zip' '---* RULES.MK *---' ERROR: Error 65280 occurred while making /data2/office/odk/pack/copying Zip fails with 12 when there is nothing to do...
Can we have a simple solution by renaming C# to csharp I tried modifying the makefile with c\\\# and this worked but... the directory in unxlngi4.pro is c\# breaking the test :-(
reassign
It sees that the problem was already solved as the issue #43561 and the fix is included in sdkbugfix02.
duplicate to i43561 *** This issue has been marked as a duplicate of 43561 ***
closed