The attached patch allows compilation of the dialogbase branch with DEC cc and
cxx.
Untarring it will create a directory patch containing
patch23may00 xtl/
The patch23may00 was created with
cvs diff -u -p > patch23may00
It contains almost nothing more than
* replace string.clear() with string.erase()
* using std::getline
The directory xtl contains xtl-1.3.pl.11. It should replace the xtl directory src/xtl
Compilation using the included xtl directory fails horribly (see below). Rather
than patch it, I took a working version of xtl.
With these changes I can compile the code successfully on the DEC using
CC=deccc CXX=deccxx ./configure --host=alphaev5-dec-osf4.0e --prefix=/usr/local
--with-extra-inc=/usr/local/include --disable-nls --with-included-gettext
--without-included-string
deccc and deccxx are JMarc-inspired shell scripts that result in
cc -O2 -std1
cxx -O2 -ptr /tmp/lyx_cxx_repository -std strict_ansi -nocleanup
Interestingly, specifying CC like this meant I had to also specify
--host=alphaev5-dec-osf4.0e
or the configure would die after complaining
checking host system type... Invalid configuration `cc': machine `cc' not recognized
checking target system type... Invalid configuration `cc': machine `cc' not recognized
checking build system type... Invalid configuration `cc': machine `cc' not recognized
This patch will allow the code to compile, but running lyx will result in a
crash when the print dialog is invoked.
(gdb) r ~/COLT/proposal.lyx
Program received signal SIGABRT, Aborted.
0x3ff800ecdd8 in kill ()
(gdb) where
#0 0x3ff800ecdd8 in kill ()
#1 0x3ff8019e684 in tis_lock_global ()
(gdb) up
#1 0x3ff8019e684 in tis_lock_global ()
(gdb) up
Initial frame selected; you cannot go up.
Not very useful, I know.
Angus
More details on compilation with the original src/xtl directory.
===========================================
Using the code in src/xtl compilation dies with:
cxx -O2 -ptr /tmp/lyx_cxx_repository -std strict_ansi -nocleanup -DHAVE_CONFIG_H -I.
-I. -I../../../src -I../../../src/ -I../../../src/frontends/include -I../../..
-I../../.. -I../../../src/cheaders -I/usr/local/include -g -MD -c FormPrint.C -o
FormPrint.o
cxx: Warning: ../../../src/xtl/config.h, line 44: the type "long long" is
nonstandard
typedef long long longlong;
---------------------^
cxx: Warning: ../../../src/xtl/config.h, line 45: the type "long long" is
nonstandard
typedef unsigned long long unsignedlonglong;
------------------------------^
cxx: Error: ../../../src/xtl/objio.h, line 710: list is not a template
inline void composite(Stream& stream, list<T>& data) {
--------------------------------------^
cxx: Error: ../../../src/xtl/objio.h, line 709: template parameter
"T" is not used in declaring the parameter types of function
template "composite<Stream,T>(Stream &, <error-type> &)"
template <class Stream, class T>
------------------------------^
cxx: Error: ../../../src/xtl/objio.h, line 715: vector is not a template
inline void composite(Stream& stream, vector<T>& data) {
--------------------------------------^
cxx: Error: ../../../src/xtl/objio.h, line 715: declaration has already been
defined by function template
"composite<Stream,T>(Stream &, <error-type> &)" (declared at line
710)
inline void composite(Stream& stream, vector<T>& data) {
------------^
cxx: Error: ../../../src/xtl/objio.h, line 714: template parameter
"T" is not used in declaring the parameter types of function
template "composite<Stream,T>(Stream &, <error-type> &)"
template <class Stream, class T>
------------------------------^
cxx: Error: ../../../src/xtl/objio.h, line 720: map is not a template
inline void composite(Stream& stream, map<T1, T2>& data) {
--------------------------------------^
cxx: Error: ../../../src/xtl/objio.h, line 719: template parameter
"T1" is not used in declaring the parameter types of function
template "composite<Stream,T1,T2>(Stream &, <error-type> &)"
template <class Stream, class T1, class T2>
------------------------------^
cxx: Error: ../../../src/xtl/objio.h, line 719: template parameter
"T2" is not used in declaring the parameter types of function
template "composite<Stream,T1,T2>(Stream &, <error-type> &)"
template <class Stream, class T1, class T2>
----------------------------------------^
cxx: Warning: ../../../src/xtl/md.h, line 67: the type "long long" is
nonstandard
static inline long long int
-------------------^
cxx: Warning: ../../../src/xtl/md.h, line 68: the type "long long" is
nonstandard
bswap_64 (long long int bsx)
---------------^
cxx: Warning: ../../../src/xtl/md.h, line 71: the type "long long" is
nonstandard
long long int ll;
---------^
cxx: Info: 8 errors detected in the compilation of "FormPrint.C".
patch23may00.tar.gz