.. below is copy/paste from my terminal
gcc -g -O2 --param max-inline-insns-single=1200 -pthread -I/home/wayne/source/grief-code/include -DHAVE_CONFIG_H -o /home/wayne/source/grief-code/objects/libmisc/edthreads_win32.o -c edthreads_win32.c
In file included from edthreads_win32.c:41:
/home/wayne/source/grief-code/include/edthreads.h:126:15: error: expected ‘;’ before ‘extern’
__CBEGIN_DECLS
^
;
/home/wayne/source/grief-code/include/edthreads.h:128:1:
extern struct timespec timespec_diff(const struct timespec end, const struct timespec start);
~~~~~~
/home/wayne/source/grief-code/include/edthreads.h:131:13: error: expected ‘;’ before ‘void’
__CEND_DECLS
^
;
make[1]: *** [Makefile:160: /home/wayne/source/grief-code/objects/libmisc/edthreads_win32.o] Error 1
make[1]: Leaving directory '/home/wayne/source/grief-code/libmisc'
make: *** [Makefile:302: /home/wayne/source/grief-code/lib/libmisc.a] Error 2
...seems to be retated to __CEND_DECLS and __CBEGIN_DECLS
./configure_new worked fine
it failed during the make command.
Wayne
....summary of what I did to get it to build
modified include/edthreads.h
added line 3 #include <edtypes.h>
.. removed libduktape from the Makefile
commented out "use Prototype" in hlpdoc/makehelp.pl
extracted mandoc-1.14.4.gr.tgz to /home/wayne/source/grief-code/grmandoc
it was already there but it appeared to be MT. It may have just been inaccessable.
the permissions on the mandoc-1.14.4.gr directory was messed up.. added owner execute rights to it and all sub directories.
2 lines added to the config.h in /home/wayne/source/grief-code/grmandoc (lines 28 & 29 )
linker was unhappy with all the duplicats like atoi atof etc.
#define __NO_INLINE__
#undef __USE_EXTERN_INLINES
....still some missing help files but it looks like it might run</edtypes.h>
Last edit: wayne smith 2019-05-03
just to finish this off. I got it running.
commented out two occurances of D_HLPDOC in the Makefile one at line 209 other at line 150
the hlpdoc refused to build (perl Prototype.pm not installed I suspect)
there is enough help in /home/wayne/source/grief-code/hlpdoc/src to keep me happy
also changed 'E' from exe to ' ' in the Makefile
make (compiled all the macro's)
sudo make install
Install done. finally
/home/wayne/source/grief-code/macros (macros are here)
/usr/share/@PACKAGE@/macros/abbrev.cm (and also here)
/usr/share/@PACKAGE@/help
/usr/share/@PACKAGE@/src (macro source)
export GRPATH=/usr/share/@PACKAGE@/macros
worked :)
runs OK on Konsole but not on the Xfce Terminal Emulator
will try again to get the perl help stuff to compile
removed the commented out D_HLPDOC I put in the Makefile ( duktape is still comment out)
changed makehelp.pl
use lib '/home/wayne/source/grief-code/hlpdoc; .. added this line to makehelp.pl just above
use Prototype
... this worked
had to run sudo make instead of make because there were some permissions errors.
...next error
Can't open perl script "./ndplus/bin/NaturalDocs": No such file or directory
the file is there but its name is naturaldocs and it has no extension ??????
will rename the file to NaturalDocs
renamed naturaldocs->NaturalDocs
did a sudo make clean
then sudo make
....next error
Can't locate NaturalDocs/ConfigFile.pm in @INC
(you may need to install the NaturalDocs::ConfigFile module)
cpanm NaturalDocs can't seem to find it
ok found it on my computer looks something like the other perl problems
/home/wayne/source/grief-code/hlpdoc/ndplus/bin/Modules/NaturalDocs
in the NaturalDocs perl script changed some spelling mistakes
change: use NaturalDocs::ConfigFile;
to: use NaturalDocs::Configfile;
change: use NaturalDocs::NDMarkup;
to: use NaturalDocs::ndmarkup;
change: use NaturalDocs::SymbolTable;
to: use NaturalDocs::Symboltable;
......more spelling mistakes
/home/wayne/source/grief-code/hlpdoc/ndplus/bin/Modules/NaturalDocs/Languages.pm line 32.
change:use NaturalDocs::Languages::PLSQL;
to: use NaturalDocs::Languages::plsql;
next error
Natural Docs encountered the following error and was stopped:
Couldn't open topics file /home/wayne/source/grief-code/hlpdoc/ndplus/bin/Config/Topics.txt
... the file is there but its spelling is wrong again its topics.txt
... not sure which script is generating the error this so I'll rename the file to Topics.txt this time.
... renamed topics.txt -> Topics.txt
Couldn't open languages file /home/wayne/source/grief-code/hlpdoc/ndplus/bin/Config/Languages.txt
.... renamed languages.txt -> Lannguages.txt
... it finally build with no errors :)
sudo make install
.....no errors
.... may have been better to just rename all the bad files instead of changing the scripts .
.... too bad that to windows upper and lower case are the same thing :O
.. some required env variables
export GRPATH=/usr/share/@PACKAGE@/macros
export GRHELP=/usr/share/@PACKAGE@/help
export GRBACKUP=/home/wayne/BACKUP
export GRVERSIONS=5
mandoc-1.14.4.gr.tgz may have been built on windows, hence the permissions; shall correct
Xfce try forcing to an xterm
will check the ND push, looks related to a windows push/file case; what perl version r u running ?
shall review additional comments,
cheers
FYI/ libduktape is very experimental, considering a js macro binding.
Last edit: adamy 2019-04-30
bash-5.0$ perl -V
Summary of my perl5 (revision 5 version 28 subversion 1) configuration:
Platform:
osname=linux
osvers=4.19.5
archname=x86_64-linux-thread-multi
uname='linux hive64.slackware.lan 4.19.5 #2 smp tue nov 27 16:27:44 cst 2018 x86_64 amd phenom(tm) ii x6 1100t processor authenticamd gnulinux '
... its working fine on konsole .. like having an old friend back.
I used Brief for years back in the 80's. My fingers still remember most of the key codes.
Shall review shortly, seeking an open-source ci site.
@wayne smith: There are a couple more of this getting the same initial error trying to compile for Linux. Could you fork your fixes for us over on Github in case they might work for us as well?
current ci pipelines build without issue; please report status.