Hello.
I encounter problems with C++ compilation when building package on a
Mandrake cooker, whereas everything is OK when compiling directly.
First problem is default no-exception compilation flag of %configure
macro, that breaks compilation. Suggested solution on cooker was to run
find . -type f -exec perl -pi -e "s|-fno-exceptions|-fexceptions|g" {}
\;
between %configue and %make. It works, but this doesn"t seems very clean
to run configure with some arguments, then change its results. I would
prefer to run directly configure with correct arguments from the
beginning, just changing the problem flag. I just don't know how.
Second problem is a compilation failure, with this error message :
c++ -DHAVE_CONFIG_H -I. -I. -I../../include -O3 -mpentium
-march=pentium -fexceptions -pipe -s -fomit-frame-pointer
-fexpensive-optimizations -march=i586 -I/usr/X11R6/include
-I/usr/include/SDL -D_REENTRANT -w -I../../include -I/usr/X11R6/include
-I/usr/include/qt2 -I/usr/include/SDL -D_REENTRANT -c rgn.cpp
{standard input}: Assembler messages:
{standard input}:516: Fatal error: Symbol mx0 already defined.
make[2]: *** [rgn.o] Erreur 1
How can this symbol be already defined in rpm building environnement,
and not otherwise ?
Any help appreciated.
--
Guillaume Rousse
Murphy's law : If anything can go wrong, it will.
O'Tool's commentary : Murphy was an optimist.