On Wed, Feb 14, 2001 at 09:32:06PM +0100, Bernd Harmsen wrote:
> 
> Hello Yves,
Hi,
> 
> On Wed, Feb 14, 2001 at 06:50:48PM +0100, Yves Bastide wrote:
> > The problem seems to come from libstdc++, at least on my Debian
> > unstable machine.. It's the parsing of the log file which is excruciating
> > slow, IIRC.
> > 
> > No problem with STLport.
> 
> I'm running debian-testing with libstc++2.10-glibc2.2, maybe that's the
> problem. 
> 
> Do you have an idea why libstdc++ has a Problem with the parsing of the 
> log file, and which log file?
I think it's the getline() call in the while loop, in LaTeX::scanLogFile
(src/LaTeX.C), which scans the .log file produced. But I never bothered to
investigate (with at least the debug versions of the libraries, since
I thought I was the only person affected, and using stlport solved this
problem... :-)

> 
> I have installed libstlport, libstlport-dbg & libstlport-dev 4.1, but
> the configure script of lyx seems not to notice it. The only thing I
> found is "checking for stl_string_fwd.h... no". Is this a funktion from
> the libstlport library? Can you give me a hint how to use this lib?
I think this will do the trick:
$ CPPFLAGS=-I/usr/include/stlport LIBS=-lstlport ./configure <your usual flags>

/usr/include/stlport must be in CPPFLAGS for istream and co. to be found, and
I think LIBS is used at link time--otherwise, just hack src/Makefile or
link by hand..

Oh, I forgot: this is STLport 4.1beta, and there is a bug in
/usr/include/stlport/stl/_istream.h.  Fix attached.

> 
> Will LyX in future depend on libstlport or is it planed to solve this
> with the libstdc++ library?
I suppose the best thing might be to fill a bug at bugs.debian.org.  But
remember that this libstdc++ is prerelease (pre-2.95.3).
About stlport: not everybody has it or want to use it (and this version
is in beta too :)

> 
> Thanks
> Bernd

-- 
        Yves
diff -ru /usr/include/stlport/stl/_istream.h 
/misc/rlin/usr/include/stlport/stl/_istream.h
--- /usr/include/stlport/stl/_istream.h Sat Jan  6 12:21:49 2001
+++ /misc/rlin/usr/include/stlport/stl/_istream.h       Sun Feb 11 03:26:18 2001
@@ -31,6 +31,10 @@
 # include <stl/_ostream.h>              // Needed as a base class of basic_iostream.
 #endif
 
+# ifndef __STL_INTERNAL_FUNCTION_H
+#  include <stl/_function.h>
+# endif
+
 #include <stl/_ctraits_fns.h>    // Helper functions that allow char traits
                                 // to be used as function objects.
 
@@ -367,7 +371,7 @@
 
   const char_type*
   operator()(const char_type* __first, const char_type* __last) const {
-    return find_if(__first, __last, bind2nd(_Eq_traits<_Traits>(), _M_val)); 
+    return find_if(__first, __last, __STLPORT_STD::bind2nd(_Eq_traits<_Traits>(), 
+_M_val)); 
   }
 };
 

Reply via email to