I attempted to build my own RPM by compiling from lyx-1.1.6-1.src.rpm.
The srpm is from ftp.sylvan.com. My system is a RedHat 7.0 with all available
bugfixes.
I have following (error) message:
.. -I../../boost -isystem /usr/X11R6/include -O2 -march=i386 -mcpu=i686 -c
formula.C
gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../ -I../..
-I../.. -I../../boost -isystem /usr/X11R6/include -O2 -march=i386 -mcpu=i686
-c formula.C -o formula.o
In file included from ../../src/gettext.h:35,
from ../../src/insets/lyxinset.h:22,
from formula.h:26,
from formula.C:24:
../../src/LString.h:20:2: #error The <string> header has been included before
LString.h
make[3]: *** [formula.lo] Fehler 1
make[3]: Verlassen des Verzeichnisses Verzeichnis
»/usr/src/redhat/BUILD/lyx-1.1.6/src/mathed«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis
»/usr/src/redhat/BUILD/lyx-1.1.6/src«
make[1]: *** [all-recursive-am] Fehler 2
make[1]: Verlassen des Verzeichnisses Verzeichnis
»/usr/src/redhat/BUILD/lyx-1.1.6/src«
make: *** [all-recursive] Fehler 1
Bad exit status from /var/tmp/rpm-tmp.40997 (%build)
[root@hotzenplotz SRPMS]#
The problem seems to lay in ../src/LString.h at row 20.
row12: #ifndef LSTRING_H
#define LSTRING_H
#ifndef USE_INCLUDED_STRING
#include <string>
using std::string;
#else
#ifdef __STRING__
row 20: #error The <string> header has been included before LString.h
#else
#define __STRING__
#endif
#include "support/lyxstring.h"
// using lyx::string;
typedef lyxstring string;
#endif
#endif
To be honest: I really don't know anything about C
Greetings from Utrecht,
Ulrich
--
_________________________________________________________
*Linux: the choice of a GNU generation*
_________________________________________________________
Ulrich Grün
Amsterdamsestraatweg 609 BIS
3553 EJ UTRECHT
030-2467141
mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
icq: 35629246
System: AMD-K6 350, 64MB. OS: RedHat 7, Kernel: 2.2.19pre3