[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kdvi is broken by glibc2.1.1,  and maybe orphaned?
From:       Peter Putzer <pputzer () edu ! uni-klu ! ac ! at>
Date:       1999-08-01 12:43:42
[Download RAW message or body]

On Thu, 29 Jul 1999, Duncan Haldane wrote:

> *** kdvi seems to be orphaned, AND it's broken with glibc-2.1.1****.
> 
> Hi,
> 
> This is to draw peoples attention to kdvi, which is showing its age,
> and seems unmaintained....  There are problems needing fixing ASAP.
> kdvi is a crucial part of the TeX system for KDE.   
> 
>   ** can this be done for kde-1.1.2 ? kdvi has become **UNUSABLE**
>     with RedHat 6.0 ..... (and maybe other glibc-2.1.1 systems (?) )
> 
> 
> (1) kdvi is broken with glibc-2.1.1 (RedHat 6.0) but not glibc-2.0
> (RedHat-5.2).   Many dvi files (such as from the sample LaTeX file
> sample2e.tex) cause it to terminate when getenv() reports a NULL
> environment variable (that should not be null because it is was supposedly set
> by an earlier putenv call) and this is trapped by one of two assert() tests.
> There is an empirical workaround described below (A).

I couldn't get B) to work even compile... therefore only a small patch for
A), sorry.

bye,
Peter

["kdvi-redhat6.patch" (TEXT/PLAIN)]

--- kdegraphics/kdvi/kpathsea/xputenv.c	Sat Oct 18 13:34:00 1997
+++ kdegraphics.new/kdvi/kpathsea/xputenv.c	Sun Aug  1 16:15:37 1999
@@ -34,6 +34,10 @@
    a test for configure to check this, please send it to me. Until then,
    you'll have to define SMART_PUTENV yourself. */
 
+#if !defined(SMART_PUTENV) && defined(__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
+#define SMART_PUTENV 1
+#endif
+
 void
 xputenv P2C(const_string, var_name,  const_string, value)
 {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic