Package: gliv
Version: 1.9.7-2
Severity: important

Hi, Dear Maintainer

I've installed gliv 1.9.7-2 in wheezy. When I open gliv, it will meet
a fatal error as following


-------------------------------------------
liuxiangyu@F117A:~/temp/gliv$ gliv &
[3] 22360
liuxiangyu@F117A:~/temp/gliv$ Fatal error: GL_MAX_TEXTURE_SIZE = 0
GL_MAX_TEXTURE_SIZE must be >= 64
-------------------------------------------

I've also installed NVIDIA's driver (304.37) by HARD way (nvidia-installer).
I guess the NVIDIA driver is the key point of my fatal error. I rebuild 
the gliv (1.9.7-2) from deb-source package and found that if I force 
the rt->max_texture_size to be 128(or 256 ....), gliv will be OK.

It seems that src/gl_widget.c can't get real texture size from NVIDIA driver
(installed by HARD way)  ??? 

Here is my custom patch for source building : 

diff -Nurp gliv-1.9.7/debian/control gliv-1.9.7-M/debian/control
--- gliv-1.9.7/debian/control   2011-01-24 20:59:12.000000000 +0000
+++ gliv-1.9.7-M/debian/control 2012-08-28 19:13:01.587475452 +0000
@@ -13,7 +13,7 @@ Homepage: http://guichaz.free.fr/gliv/
 
 Package: gliv
 Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
+Depends: libc6 (>= 2.3), libgdk-pixbuf2.0-0 (>= 2.22.0), libgl1-mesa-glx, 
libglib2.0-0 (>= 2.24.0), libglu1-mesa, libgtk2.0-0 (>= 2.8.0), libgtkglext1, 
libpango1.0-0 (>= 1.14.0), libx11-6
 Description: image viewer using gdk-pixbuf and OpenGL
  GLiv is an image viewer that uses gdk-pixbuf to load images, and OpenGL to
  render them. Moving and zooming is very fast and smooth if you have an
diff -Nurp gliv-1.9.7/debian/rules gliv-1.9.7-M/debian/rules
--- gliv-1.9.7/debian/rules     2011-01-24 21:05:51.000000000 +0000
+++ gliv-1.9.7-M/debian/rules   2012-08-28 19:14:30.163477088 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-export CFLAGS = -Wall $(shell dpkg-buildflags --get CFLAGS)
+export CFLAGS = -O2 -g -pipe -g0 -Wall -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Werror=format-security
 export LDFLAGS = -Wl,--as-needed
 
 %:
@@ -8,3 +8,6 @@ export LDFLAGS = -Wl,--as-needed
 
 override_dh_installchangelogs:
        dh_installchangelogs NEWS
+
+override_dh_shlibdeps:
+
diff -Nurp gliv-1.9.7/src/gl_widget.c gliv-1.9.7-M/src/gl_widget.c
--- gliv-1.9.7/src/gl_widget.c  2012-08-28 19:14:45.000000000 +0000
+++ gliv-1.9.7-M/src/gl_widget.c        2012-08-28 19:13:01.587475452 +0000
@@ -221,6 +221,11 @@ static void get_max_texture_size(void)
     while (rt->max_texture_size > 0 && check_texture_size() == FALSE)
         rt->max_texture_size >>= 1;
 
+    if (rt->max_texture_size == 0)
+    {
+        rt->max_texture_size = 256;
+    }
+
     if (rt->max_texture_size < 64) {
         gchar *message, *texture;




-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gliv depends on:
ii  libc6                     2.13-35
ii  libgdk-pixbuf2.0-0        2.26.1-1
ii  libgl1-mesa-glx [libgl1]  8.0.4-2
ii  libglib2.0-0              2.32.3-1
ii  libglu1-mesa [libglu1]    8.0.4-2
ii  libgtk2.0-0               2.24.10-2
ii  libgtkglext1              1.2.0-2
ii  libpango1.0-0             1.30.0-1
ii  libx11-6                  2:1.5.0-1

gliv recommends no packages.

gliv suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to