On Mon, 8 Nov 2010, Gubinelli Massimiliano wrote:
Index: src/Plugins/Imlib2/imlib2.cpp
===================================================================
--- src/Plugins/Imlib2/imlib2.cpp       (revision 3586)
+++ src/Plugins/Imlib2/imlib2.cpp       (working copy)
@@ -15,6 +15,10 @@

#ifdef USE_IMLIB2

+#include <Imlib2.h>
+#include <stdio.h>
+#include <string.h>
+
/******************************************************************************
* Routines used from Imlib2
******************************************************************************/
Index: src/Plugins/Imlib2/imlib2.hpp
===================================================================
--- src/Plugins/Imlib2/imlib2.hpp       (revision 3586)
+++ src/Plugins/Imlib2/imlib2.hpp       (working copy)
@@ -23,10 +23,5 @@
                     double cx1, double cy1, double cx2, double cy2);
#endif

-#ifdef USE_IMLIB2
-#include <Imlib2.h>
-#include <stdio.h>
-#include <string.h>
-#endif // USE_IMLIB2

#endif // IMLIB2_H

Thanks. With this patch, TeXmacs-1.0.7.7 compiles.

When I start it, it segfaults immediately (no messages in the terminal window before segfault). OK, to debug it, I re-compiled it with CXXFLAGS="-O0 -g". And it works! The problem seems to be with my usual CXXFLAGS="-O2 -march=native -pipe". But 99.9% of software compile and run with this usual CXXFLAGS. What's so special about TeXmacs? My gcc is 4.4.5.

Andrey

_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to