Hi, Thanks for the various responses. I have now managed to compile LyX on SuSE 8.0 and Mandrake 9.0 (I assume RH 8.0 will also now compile and I guess SuSE 8.1 needs a compiler upgrade).
The problems appear to be in the build system, and/or lack of documenation in the INSTALL files to work around these problems. For SuSE 8.0, the compile is broken if you set CXXFLAGS in your env. This is the proper way for someone compiling to set the proper compile flags and hence setting this to typical values should not break a compile. If you use an unusual option, such as '-ftemplate-depth-30', I suggest you get it into the CXXFLAGS some other way (by appending it to the CXXFLAGS in the Makefile.am, for example), or make it clear in the documentation this option needs to be specifically included. For Mandrake 9.0 and RH 8.0, the problem is that you need to add "-DHAVE_STRERROR" to the compile flags, both systems include strerror() in /usr/include/string.h. For some reason the build system does not add it based on the configure values (it stems from configure.ac). Not sure how to fix it, I am far from an autoconf guru, but at least I can report the problem :-). Hope this is helpful, Dre Jean-Marc Lasgouttes wrote: > > >>>>> "Andreas" == Andreas Pour <[EMAIL PROTECTED]> writes: > > Andreas> Hi, > > Andreas> g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost > Andreas> -isystem /usr/X11R6/include -O2 -march=i386 -mcpu=i386 > Andreas> -DNDEBUG -O2 -march=i386 -mcpu=i386 -D_GNU_SOURCE -DNDEBUG > Andreas> -DNO_DEBUG -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT > Andreas> -pipe -c insetbib.C -Wp,-MD,.deps/insetbib.TPlo > Andreas> ../../boost/boost/shared_ptr.hpp:203: template instantiation > Andreas> depth exceeds maximum of 17 > > How did you do the compilation? It is not LyX that adds the > -march=i386 -mcpu=i386 thingies, as far as I know... > > OTOH, LyX does add to CXXFLAGS options like -ftemplate-depth-30 that > would avoid this error. > > JMarc