Package: evince
Severity: normal
Tags: patch

When building 'evince' on amd64 with gcc-4.0,
I get the following error:

Making all in dvilib
make[4]: Entering directory `/evince-0.1.3/dvi/dvilib'
if g++ -DHAVE_CONFIG_H -I. -I. -I../..     -g -Wall -O2 -MT dl-dvi-file.o -MD 
-MP -MF ".deps/dl-dvi-file.Tpo" \
  -c -o dl-dvi-file.o `test -f 'dl-dvi-file.cc' || echo './'`dl-dvi-file.cc; \
then mv -f ".deps/dl-dvi-file.Tpo" ".deps/dl-dvi-file.Po"; \
else rm -f ".deps/dl-dvi-file.Tpo"; exit 1; \
fi
dl-dvi-file.hh: In member function 'virtual void 
DviLib::DviPage::execute(DviLib::DviRuntime&)':
dl-dvi-file.hh:40: error: cast from 'DviLib::DviFontMap*' to 'int' loses 
precision
dl-vffont.hh: In member function 'virtual void 
DviLib::VfChar::paint(DviLib::DviRuntime&)':
dl-vffont.hh:23: error: cast from 'DviLib::DviFontMap*' to 'int' loses precision
make[4]: *** [dl-dvi-file.o] Error 1
make[4]: Leaving directory `/evince-0.1.3/dvi/dvilib'

With the attached patch 'evince' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/evince-0.1.3/dvi/dvilib/dl-dvi-file.hh 
./dvi/dvilib/dl-dvi-file.hh
--- ../tmp-orig/evince-0.1.3/dvi/dvilib/dl-dvi-file.hh  2004-12-22 
17:04:45.000000000 +0100
+++ ./dvi/dvilib/dl-dvi-file.hh 2005-02-08 17:45:13.372026086 +0100
@@ -37,7 +37,7 @@
        {
            runtime.push();
            runtime.fontmap (fontmap);
-           cout << "page " << (int)fontmap << endl;
+           cout << "page " << (long)fontmap << endl;
            program.execute (runtime);
            runtime.pop();
        }
diff -urN ../tmp-orig/evince-0.1.3/dvi/dvilib/dl-dvi-fontdefinition.cc 
./dvi/dvilib/dl-dvi-fontdefinition.cc
--- ../tmp-orig/evince-0.1.3/dvi/dvilib/dl-dvi-fontdefinition.cc        
2004-12-22 17:04:45.000000000 +0100
+++ ./dvi/dvilib/dl-dvi-fontdefinition.cc       2005-02-08 17:47:02.483009472 
+0100
@@ -18,7 +18,7 @@
     fd->ref();
 
     
-    cout << "froot " << fontnum << (int)this << endl;
+    cout << "froot " << fontnum << (long)this << endl;
     
     if (fontmap[fontnum])
     {
diff -urN ../tmp-orig/evince-0.1.3/dvi/dvilib/dl-vffont.hh 
./dvi/dvilib/dl-vffont.hh
--- ../tmp-orig/evince-0.1.3/dvi/dvilib/dl-vffont.hh    2004-12-22 
17:04:45.000000000 +0100
+++ ./dvi/dvilib/dl-vffont.hh   2005-02-08 17:45:25.804631490 +0100
@@ -20,7 +20,7 @@
            runtime.push();
            runtime.fontmap (fontmap);
            runtime.font_num (0);
-           cout << "vfchar (" << (int)fontmap << ')' << " " << character_code 
<< endl;
+           cout << "vfchar (" << (long)fontmap << ')' << " " << character_code 
<< endl;
            program->execute (runtime); // FIXME push, pop, etc.
            runtime.pop();
        }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to